configure revision 18b08247
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for font-alias 1.0.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/font/alias/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/font/alias/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='font-alias'
583PACKAGE_TARNAME='font-alias'
584PACKAGE_VERSION='1.0.4'
585PACKAGE_STRING='font-alias 1.0.4'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/alias/issues'
587PACKAGE_URL=''
588
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629FONTROOTDIR
630MAN_SUBSTS
631XORG_MAN_PAGE
632ADMIN_MAN_DIR
633DRIVER_MAN_DIR
634MISC_MAN_DIR
635FILE_MAN_DIR
636LIB_MAN_DIR
637APP_MAN_DIR
638ADMIN_MAN_SUFFIX
639DRIVER_MAN_SUFFIX
640MISC_MAN_SUFFIX
641FILE_MAN_SUFFIX
642LIB_MAN_SUFFIX
643APP_MAN_SUFFIX
644SED
645host_os
646host_vendor
647host_cpu
648host
649build_os
650build_vendor
651build_cpu
652build
653INSTALL_CMD
654PKG_CONFIG_LIBDIR
655PKG_CONFIG_PATH
656PKG_CONFIG
657CHANGELOG_CMD
658STRICT_CFLAGS
659CWARNFLAGS
660BASE_CFLAGS
661EGREP
662GREP
663CPP
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667am__nodep
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681AM_BACKSLASH
682AM_DEFAULT_VERBOSITY
683AM_DEFAULT_V
684AM_V
685am__untar
686am__tar
687AMTAR
688am__leading_dot
689SET_MAKE
690AWK
691mkdir_p
692MKDIR_P
693INSTALL_STRIP_PROGRAM
694STRIP
695install_sh
696MAKEINFO
697AUTOHEADER
698AUTOMAKE
699AUTOCONF
700ACLOCAL
701VERSION
702PACKAGE
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708target_alias
709host_alias
710build_alias
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
738PACKAGE_URL
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
746ac_subst_files=''
747ac_user_opts='
748enable_option_checking
749enable_silent_rules
750enable_dependency_tracking
751enable_selective_werror
752enable_strict_compilation
753with_fontrootdir
754with_top_fontdir
755'
756      ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CPP
765PKG_CONFIG
766PKG_CONFIG_PATH
767PKG_CONFIG_LIBDIR'
768
769
770# Initialize some variables set by options.
771ac_init_help=
772ac_init_version=false
773ac_unrecognized_opts=
774ac_unrecognized_sep=
775# The variables have the same names as the options, with
776# dashes changed to underlines.
777cache_file=/dev/null
778exec_prefix=NONE
779no_create=
780no_recursion=
781prefix=NONE
782program_prefix=NONE
783program_suffix=NONE
784program_transform_name=s,x,x,
785silent=
786site=
787srcdir=
788verbose=
789x_includes=NONE
790x_libraries=NONE
791
792# Installation directory options.
793# These are left unexpanded so users can "make install exec_prefix=/foo"
794# and all the variables that are supposed to be based on exec_prefix
795# by default will actually change.
796# Use braces instead of parens because sh, perl, etc. also accept them.
797# (The list follows the same order as the GNU Coding Standards.)
798bindir='${exec_prefix}/bin'
799sbindir='${exec_prefix}/sbin'
800libexecdir='${exec_prefix}/libexec'
801datarootdir='${prefix}/share'
802datadir='${datarootdir}'
803sysconfdir='${prefix}/etc'
804sharedstatedir='${prefix}/com'
805localstatedir='${prefix}/var'
806includedir='${prefix}/include'
807oldincludedir='/usr/include'
808docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809infodir='${datarootdir}/info'
810htmldir='${docdir}'
811dvidir='${docdir}'
812pdfdir='${docdir}'
813psdir='${docdir}'
814libdir='${exec_prefix}/lib'
815localedir='${datarootdir}/locale'
816mandir='${datarootdir}/man'
817
818ac_prev=
819ac_dashdash=
820for ac_option
821do
822  # If the previous option needs an argument, assign it.
823  if test -n "$ac_prev"; then
824    eval $ac_prev=\$ac_option
825    ac_prev=
826    continue
827  fi
828
829  case $ac_option in
830  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831  *=)   ac_optarg= ;;
832  *)    ac_optarg=yes ;;
833  esac
834
835  # Accept the important Cygnus configure options, so we can diagnose typos.
836
837  case $ac_dashdash$ac_option in
838  --)
839    ac_dashdash=yes ;;
840
841  -bindir | --bindir | --bindi | --bind | --bin | --bi)
842    ac_prev=bindir ;;
843  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844    bindir=$ac_optarg ;;
845
846  -build | --build | --buil | --bui | --bu)
847    ac_prev=build_alias ;;
848  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849    build_alias=$ac_optarg ;;
850
851  -cache-file | --cache-file | --cache-fil | --cache-fi \
852  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853    ac_prev=cache_file ;;
854  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856    cache_file=$ac_optarg ;;
857
858  --config-cache | -C)
859    cache_file=config.cache ;;
860
861  -datadir | --datadir | --datadi | --datad)
862    ac_prev=datadir ;;
863  -datadir=* | --datadir=* | --datadi=* | --datad=*)
864    datadir=$ac_optarg ;;
865
866  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867  | --dataroo | --dataro | --datar)
868    ac_prev=datarootdir ;;
869  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871    datarootdir=$ac_optarg ;;
872
873  -disable-* | --disable-*)
874    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875    # Reject names that are not valid shell variable names.
876    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877      as_fn_error $? "invalid feature name: $ac_useropt"
878    ac_useropt_orig=$ac_useropt
879    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880    case $ac_user_opts in
881      *"
882"enable_$ac_useropt"
883"*) ;;
884      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885	 ac_unrecognized_sep=', ';;
886    esac
887    eval enable_$ac_useropt=no ;;
888
889  -docdir | --docdir | --docdi | --doc | --do)
890    ac_prev=docdir ;;
891  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892    docdir=$ac_optarg ;;
893
894  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895    ac_prev=dvidir ;;
896  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897    dvidir=$ac_optarg ;;
898
899  -enable-* | --enable-*)
900    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901    # Reject names that are not valid shell variable names.
902    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903      as_fn_error $? "invalid feature name: $ac_useropt"
904    ac_useropt_orig=$ac_useropt
905    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906    case $ac_user_opts in
907      *"
908"enable_$ac_useropt"
909"*) ;;
910      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911	 ac_unrecognized_sep=', ';;
912    esac
913    eval enable_$ac_useropt=\$ac_optarg ;;
914
915  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917  | --exec | --exe | --ex)
918    ac_prev=exec_prefix ;;
919  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921  | --exec=* | --exe=* | --ex=*)
922    exec_prefix=$ac_optarg ;;
923
924  -gas | --gas | --ga | --g)
925    # Obsolete; use --with-gas.
926    with_gas=yes ;;
927
928  -help | --help | --hel | --he | -h)
929    ac_init_help=long ;;
930  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931    ac_init_help=recursive ;;
932  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933    ac_init_help=short ;;
934
935  -host | --host | --hos | --ho)
936    ac_prev=host_alias ;;
937  -host=* | --host=* | --hos=* | --ho=*)
938    host_alias=$ac_optarg ;;
939
940  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941    ac_prev=htmldir ;;
942  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943  | --ht=*)
944    htmldir=$ac_optarg ;;
945
946  -includedir | --includedir | --includedi | --included | --include \
947  | --includ | --inclu | --incl | --inc)
948    ac_prev=includedir ;;
949  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950  | --includ=* | --inclu=* | --incl=* | --inc=*)
951    includedir=$ac_optarg ;;
952
953  -infodir | --infodir | --infodi | --infod | --info | --inf)
954    ac_prev=infodir ;;
955  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956    infodir=$ac_optarg ;;
957
958  -libdir | --libdir | --libdi | --libd)
959    ac_prev=libdir ;;
960  -libdir=* | --libdir=* | --libdi=* | --libd=*)
961    libdir=$ac_optarg ;;
962
963  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964  | --libexe | --libex | --libe)
965    ac_prev=libexecdir ;;
966  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967  | --libexe=* | --libex=* | --libe=*)
968    libexecdir=$ac_optarg ;;
969
970  -localedir | --localedir | --localedi | --localed | --locale)
971    ac_prev=localedir ;;
972  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973    localedir=$ac_optarg ;;
974
975  -localstatedir | --localstatedir | --localstatedi | --localstated \
976  | --localstate | --localstat | --localsta | --localst | --locals)
977    ac_prev=localstatedir ;;
978  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980    localstatedir=$ac_optarg ;;
981
982  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983    ac_prev=mandir ;;
984  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985    mandir=$ac_optarg ;;
986
987  -nfp | --nfp | --nf)
988    # Obsolete; use --without-fp.
989    with_fp=no ;;
990
991  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992  | --no-cr | --no-c | -n)
993    no_create=yes ;;
994
995  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997    no_recursion=yes ;;
998
999  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001  | --oldin | --oldi | --old | --ol | --o)
1002    ac_prev=oldincludedir ;;
1003  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006    oldincludedir=$ac_optarg ;;
1007
1008  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009    ac_prev=prefix ;;
1010  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011    prefix=$ac_optarg ;;
1012
1013  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014  | --program-pre | --program-pr | --program-p)
1015    ac_prev=program_prefix ;;
1016  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018    program_prefix=$ac_optarg ;;
1019
1020  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021  | --program-suf | --program-su | --program-s)
1022    ac_prev=program_suffix ;;
1023  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025    program_suffix=$ac_optarg ;;
1026
1027  -program-transform-name | --program-transform-name \
1028  | --program-transform-nam | --program-transform-na \
1029  | --program-transform-n | --program-transform- \
1030  | --program-transform | --program-transfor \
1031  | --program-transfo | --program-transf \
1032  | --program-trans | --program-tran \
1033  | --progr-tra | --program-tr | --program-t)
1034    ac_prev=program_transform_name ;;
1035  -program-transform-name=* | --program-transform-name=* \
1036  | --program-transform-nam=* | --program-transform-na=* \
1037  | --program-transform-n=* | --program-transform-=* \
1038  | --program-transform=* | --program-transfor=* \
1039  | --program-transfo=* | --program-transf=* \
1040  | --program-trans=* | --program-tran=* \
1041  | --progr-tra=* | --program-tr=* | --program-t=*)
1042    program_transform_name=$ac_optarg ;;
1043
1044  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045    ac_prev=pdfdir ;;
1046  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047    pdfdir=$ac_optarg ;;
1048
1049  -psdir | --psdir | --psdi | --psd | --ps)
1050    ac_prev=psdir ;;
1051  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052    psdir=$ac_optarg ;;
1053
1054  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055  | -silent | --silent | --silen | --sile | --sil)
1056    silent=yes ;;
1057
1058  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059    ac_prev=sbindir ;;
1060  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061  | --sbi=* | --sb=*)
1062    sbindir=$ac_optarg ;;
1063
1064  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066  | --sharedst | --shareds | --shared | --share | --shar \
1067  | --sha | --sh)
1068    ac_prev=sharedstatedir ;;
1069  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072  | --sha=* | --sh=*)
1073    sharedstatedir=$ac_optarg ;;
1074
1075  -site | --site | --sit)
1076    ac_prev=site ;;
1077  -site=* | --site=* | --sit=*)
1078    site=$ac_optarg ;;
1079
1080  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081    ac_prev=srcdir ;;
1082  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083    srcdir=$ac_optarg ;;
1084
1085  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086  | --syscon | --sysco | --sysc | --sys | --sy)
1087    ac_prev=sysconfdir ;;
1088  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090    sysconfdir=$ac_optarg ;;
1091
1092  -target | --target | --targe | --targ | --tar | --ta | --t)
1093    ac_prev=target_alias ;;
1094  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095    target_alias=$ac_optarg ;;
1096
1097  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098    verbose=yes ;;
1099
1100  -version | --version | --versio | --versi | --vers | -V)
1101    ac_init_version=: ;;
1102
1103  -with-* | --with-*)
1104    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105    # Reject names that are not valid shell variable names.
1106    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107      as_fn_error $? "invalid package name: $ac_useropt"
1108    ac_useropt_orig=$ac_useropt
1109    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110    case $ac_user_opts in
1111      *"
1112"with_$ac_useropt"
1113"*) ;;
1114      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115	 ac_unrecognized_sep=', ';;
1116    esac
1117    eval with_$ac_useropt=\$ac_optarg ;;
1118
1119  -without-* | --without-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=no ;;
1134
1135  --x)
1136    # Obsolete; use --with-x.
1137    with_x=yes ;;
1138
1139  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140  | --x-incl | --x-inc | --x-in | --x-i)
1141    ac_prev=x_includes ;;
1142  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144    x_includes=$ac_optarg ;;
1145
1146  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148    ac_prev=x_libraries ;;
1149  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151    x_libraries=$ac_optarg ;;
1152
1153  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154Try \`$0 --help' for more information"
1155    ;;
1156
1157  *=*)
1158    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159    # Reject names that are not valid shell variable names.
1160    case $ac_envvar in #(
1161      '' | [0-9]* | *[!_$as_cr_alnum]* )
1162      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163    esac
1164    eval $ac_envvar=\$ac_optarg
1165    export $ac_envvar ;;
1166
1167  *)
1168    # FIXME: should be removed in autoconf 3.0.
1169    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173    ;;
1174
1175  esac
1176done
1177
1178if test -n "$ac_prev"; then
1179  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180  as_fn_error $? "missing argument to $ac_option"
1181fi
1182
1183if test -n "$ac_unrecognized_opts"; then
1184  case $enable_option_checking in
1185    no) ;;
1186    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188  esac
1189fi
1190
1191# Check all directory arguments for consistency.
1192for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193		datadir sysconfdir sharedstatedir localstatedir includedir \
1194		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195		libdir localedir mandir
1196do
1197  eval ac_val=\$$ac_var
1198  # Remove trailing slashes.
1199  case $ac_val in
1200    */ )
1201      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202      eval $ac_var=\$ac_val;;
1203  esac
1204  # Be sure to have absolute directory names.
1205  case $ac_val in
1206    [\\/$]* | ?:[\\/]* )  continue;;
1207    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208  esac
1209  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210done
1211
1212# There might be people who depend on the old broken behavior: `$host'
1213# used to hold the argument of --host etc.
1214# FIXME: To remove some day.
1215build=$build_alias
1216host=$host_alias
1217target=$target_alias
1218
1219# FIXME: To remove some day.
1220if test "x$host_alias" != x; then
1221  if test "x$build_alias" = x; then
1222    cross_compiling=maybe
1223  elif test "x$build_alias" != "x$host_alias"; then
1224    cross_compiling=yes
1225  fi
1226fi
1227
1228ac_tool_prefix=
1229test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231test "$silent" = yes && exec 6>/dev/null
1232
1233
1234ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235ac_ls_di=`ls -di .` &&
1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237  as_fn_error $? "working directory cannot be determined"
1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239  as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242# Find the source files, if location was not specified.
1243if test -z "$srcdir"; then
1244  ac_srcdir_defaulted=yes
1245  # Try the directory containing this script, then the parent directory.
1246  ac_confdir=`$as_dirname -- "$as_myself" ||
1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248	 X"$as_myself" : 'X\(//\)[^/]' \| \
1249	 X"$as_myself" : 'X\(//\)$' \| \
1250	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251$as_echo X"$as_myself" |
1252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253	    s//\1/
1254	    q
1255	  }
1256	  /^X\(\/\/\)[^/].*/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\/\)$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\).*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  s/.*/./; q'`
1269  srcdir=$ac_confdir
1270  if test ! -r "$srcdir/$ac_unique_file"; then
1271    srcdir=..
1272  fi
1273else
1274  ac_srcdir_defaulted=no
1275fi
1276if test ! -r "$srcdir/$ac_unique_file"; then
1277  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279fi
1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281ac_abs_confdir=`(
1282	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283	pwd)`
1284# When building in place, set srcdir=.
1285if test "$ac_abs_confdir" = "$ac_pwd"; then
1286  srcdir=.
1287fi
1288# Remove unnecessary trailing slashes from srcdir.
1289# Double slashes in file names in object file debugging info
1290# mess up M-x gdb in Emacs.
1291case $srcdir in
1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293esac
1294for ac_var in $ac_precious_vars; do
1295  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296  eval ac_env_${ac_var}_value=\$${ac_var}
1297  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299done
1300
1301#
1302# Report the --help message.
1303#
1304if test "$ac_init_help" = "long"; then
1305  # Omit some internal or obsolete options to make the list less imposing.
1306  # This message is too long to be a string in the A/UX 3.1 sh.
1307  cat <<_ACEOF
1308\`configure' configures font-alias 1.0.4 to adapt to many kinds of systems.
1309
1310Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313VAR=VALUE.  See below for descriptions of some of the useful variables.
1314
1315Defaults for the options are specified in brackets.
1316
1317Configuration:
1318  -h, --help              display this help and exit
1319      --help=short        display options specific to this package
1320      --help=recursive    display the short help of all the included packages
1321  -V, --version           display version information and exit
1322  -q, --quiet, --silent   do not print \`checking ...' messages
1323      --cache-file=FILE   cache test results in FILE [disabled]
1324  -C, --config-cache      alias for \`--cache-file=config.cache'
1325  -n, --no-create         do not create output files
1326      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1327
1328Installation directories:
1329  --prefix=PREFIX         install architecture-independent files in PREFIX
1330                          [$ac_default_prefix]
1331  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1332                          [PREFIX]
1333
1334By default, \`make install' will install all the files in
1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1336an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337for instance \`--prefix=\$HOME'.
1338
1339For better control, use the options below.
1340
1341Fine tuning of the installation directories:
1342  --bindir=DIR            user executables [EPREFIX/bin]
1343  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1344  --libexecdir=DIR        program executables [EPREFIX/libexec]
1345  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1346  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1347  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1348  --libdir=DIR            object code libraries [EPREFIX/lib]
1349  --includedir=DIR        C header files [PREFIX/include]
1350  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1351  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1352  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1353  --infodir=DIR           info documentation [DATAROOTDIR/info]
1354  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1355  --mandir=DIR            man documentation [DATAROOTDIR/man]
1356  --docdir=DIR            documentation root [DATAROOTDIR/doc/font-alias]
1357  --htmldir=DIR           html documentation [DOCDIR]
1358  --dvidir=DIR            dvi documentation [DOCDIR]
1359  --pdfdir=DIR            pdf documentation [DOCDIR]
1360  --psdir=DIR             ps documentation [DOCDIR]
1361_ACEOF
1362
1363  cat <<\_ACEOF
1364
1365Program names:
1366  --program-prefix=PREFIX            prepend PREFIX to installed program names
1367  --program-suffix=SUFFIX            append SUFFIX to installed program names
1368  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1369
1370System types:
1371  --build=BUILD     configure for building on BUILD [guessed]
1372  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1373_ACEOF
1374fi
1375
1376if test -n "$ac_init_help"; then
1377  case $ac_init_help in
1378     short | recursive ) echo "Configuration of font-alias 1.0.4:";;
1379   esac
1380  cat <<\_ACEOF
1381
1382Optional Features:
1383  --disable-option-checking  ignore unrecognized --enable/--with options
1384  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386  --enable-silent-rules   less verbose build output (undo: "make V=1")
1387  --disable-silent-rules  verbose build output (undo: "make V=0")
1388  --enable-dependency-tracking
1389                          do not reject slow dependency extractors
1390  --disable-dependency-tracking
1391                          speeds up one-time build
1392  --disable-selective-werror
1393                          Turn off selective compiler errors. (default:
1394                          enabled)
1395  --enable-strict-compilation
1396                          Enable all warnings from compiler and make them
1397                          errors (default: disabled)
1398
1399Optional Packages:
1400  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1401  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1402  --with-fontrootdir=DIR  Path to root directory for font files
1403  --with-top-fontdir=<pathname>
1404                          Obsolete: use --with-fontrootdir instead
1405
1406Some influential environment variables:
1407  CC          C compiler command
1408  CFLAGS      C compiler flags
1409  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1410              nonstandard directory <lib dir>
1411  LIBS        libraries to pass to the linker, e.g. -l<library>
1412  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413              you have headers in a nonstandard directory <include dir>
1414  CPP         C preprocessor
1415  PKG_CONFIG  path to pkg-config utility
1416  PKG_CONFIG_PATH
1417              directories to add to pkg-config's search path
1418  PKG_CONFIG_LIBDIR
1419              path overriding pkg-config's built-in search path
1420
1421Use these variables to override the choices made by `configure' or to help
1422it to find libraries and programs with nonstandard names/locations.
1423
1424Report bugs to <https://gitlab.freedesktop.org/xorg/font/alias/issues>.
1425_ACEOF
1426ac_status=$?
1427fi
1428
1429if test "$ac_init_help" = "recursive"; then
1430  # If there are subdirs, report their specific --help.
1431  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432    test -d "$ac_dir" ||
1433      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434      continue
1435    ac_builddir=.
1436
1437case "$ac_dir" in
1438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439*)
1440  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441  # A ".." for each directory in $ac_dir_suffix.
1442  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443  case $ac_top_builddir_sub in
1444  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446  esac ;;
1447esac
1448ac_abs_top_builddir=$ac_pwd
1449ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450# for backward compatibility:
1451ac_top_builddir=$ac_top_build_prefix
1452
1453case $srcdir in
1454  .)  # We are building in place.
1455    ac_srcdir=.
1456    ac_top_srcdir=$ac_top_builddir_sub
1457    ac_abs_top_srcdir=$ac_pwd ;;
1458  [\\/]* | ?:[\\/]* )  # Absolute name.
1459    ac_srcdir=$srcdir$ac_dir_suffix;
1460    ac_top_srcdir=$srcdir
1461    ac_abs_top_srcdir=$srcdir ;;
1462  *) # Relative name.
1463    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464    ac_top_srcdir=$ac_top_build_prefix$srcdir
1465    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466esac
1467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468
1469    cd "$ac_dir" || { ac_status=$?; continue; }
1470    # Check for guested configure.
1471    if test -f "$ac_srcdir/configure.gnu"; then
1472      echo &&
1473      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474    elif test -f "$ac_srcdir/configure"; then
1475      echo &&
1476      $SHELL "$ac_srcdir/configure" --help=recursive
1477    else
1478      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479    fi || ac_status=$?
1480    cd "$ac_pwd" || { ac_status=$?; break; }
1481  done
1482fi
1483
1484test -n "$ac_init_help" && exit $ac_status
1485if $ac_init_version; then
1486  cat <<\_ACEOF
1487font-alias configure 1.0.4
1488generated by GNU Autoconf 2.69
1489
1490Copyright (C) 2012 Free Software Foundation, Inc.
1491This configure script is free software; the Free Software Foundation
1492gives unlimited permission to copy, distribute and modify it.
1493_ACEOF
1494  exit
1495fi
1496
1497## ------------------------ ##
1498## Autoconf initialization. ##
1499## ------------------------ ##
1500
1501# ac_fn_c_try_compile LINENO
1502# --------------------------
1503# Try to compile conftest.$ac_ext, and return whether this succeeded.
1504ac_fn_c_try_compile ()
1505{
1506  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507  rm -f conftest.$ac_objext
1508  if { { ac_try="$ac_compile"
1509case "(($ac_try" in
1510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511  *) ac_try_echo=$ac_try;;
1512esac
1513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514$as_echo "$ac_try_echo"; } >&5
1515  (eval "$ac_compile") 2>conftest.err
1516  ac_status=$?
1517  if test -s conftest.err; then
1518    grep -v '^ *+' conftest.err >conftest.er1
1519    cat conftest.er1 >&5
1520    mv -f conftest.er1 conftest.err
1521  fi
1522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523  test $ac_status = 0; } && {
1524	 test -z "$ac_c_werror_flag" ||
1525	 test ! -s conftest.err
1526       } && test -s conftest.$ac_objext; then :
1527  ac_retval=0
1528else
1529  $as_echo "$as_me: failed program was:" >&5
1530sed 's/^/| /' conftest.$ac_ext >&5
1531
1532	ac_retval=1
1533fi
1534  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535  as_fn_set_status $ac_retval
1536
1537} # ac_fn_c_try_compile
1538
1539# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1540# ---------------------------------------------
1541# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1542# accordingly.
1543ac_fn_c_check_decl ()
1544{
1545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546  as_decl_name=`echo $2|sed 's/ *(.*//'`
1547  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1549$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1550if eval \${$3+:} false; then :
1551  $as_echo_n "(cached) " >&6
1552else
1553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1554/* end confdefs.h.  */
1555$4
1556int
1557main ()
1558{
1559#ifndef $as_decl_name
1560#ifdef __cplusplus
1561  (void) $as_decl_use;
1562#else
1563  (void) $as_decl_name;
1564#endif
1565#endif
1566
1567  ;
1568  return 0;
1569}
1570_ACEOF
1571if ac_fn_c_try_compile "$LINENO"; then :
1572  eval "$3=yes"
1573else
1574  eval "$3=no"
1575fi
1576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1577fi
1578eval ac_res=\$$3
1579	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580$as_echo "$ac_res" >&6; }
1581  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582
1583} # ac_fn_c_check_decl
1584
1585# ac_fn_c_try_cpp LINENO
1586# ----------------------
1587# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588ac_fn_c_try_cpp ()
1589{
1590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591  if { { ac_try="$ac_cpp conftest.$ac_ext"
1592case "(($ac_try" in
1593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594  *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599  ac_status=$?
1600  if test -s conftest.err; then
1601    grep -v '^ *+' conftest.err >conftest.er1
1602    cat conftest.er1 >&5
1603    mv -f conftest.er1 conftest.err
1604  fi
1605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606  test $ac_status = 0; } > conftest.i && {
1607	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608	 test ! -s conftest.err
1609       }; then :
1610  ac_retval=0
1611else
1612  $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615    ac_retval=1
1616fi
1617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618  as_fn_set_status $ac_retval
1619
1620} # ac_fn_c_try_cpp
1621
1622# ac_fn_c_try_run LINENO
1623# ----------------------
1624# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1625# that executables *can* be run.
1626ac_fn_c_try_run ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  if { { ac_try="$ac_link"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_link") 2>&5
1637  ac_status=$?
1638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1640  { { case "(($ac_try" in
1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642  *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646  (eval "$ac_try") 2>&5
1647  ac_status=$?
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; }; }; then :
1650  ac_retval=0
1651else
1652  $as_echo "$as_me: program exited with status $ac_status" >&5
1653       $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656       ac_retval=$ac_status
1657fi
1658  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_run
1663
1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665# -------------------------------------------------------
1666# Tests whether HEADER exists and can be compiled using the include files in
1667# INCLUDES, setting the cache variable VAR accordingly.
1668ac_fn_c_check_header_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if eval \${$3+:} false; then :
1674  $as_echo_n "(cached) " >&6
1675else
1676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682  eval "$3=yes"
1683else
1684  eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690$as_echo "$ac_res" >&6; }
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  rm -f conftest.$ac_objext conftest$ac_exeext
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>conftest.err
1710  ac_status=$?
1711  if test -s conftest.err; then
1712    grep -v '^ *+' conftest.err >conftest.er1
1713    cat conftest.er1 >&5
1714    mv -f conftest.er1 conftest.err
1715  fi
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } && {
1718	 test -z "$ac_c_werror_flag" ||
1719	 test ! -s conftest.err
1720       } && test -s conftest$ac_exeext && {
1721	 test "$cross_compiling" = yes ||
1722	 test -x conftest$ac_exeext
1723       }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729	ac_retval=1
1730fi
1731  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733  # interfere with the next link command; also delete a directory that is
1734  # left behind by Apple's compiler.  We do this before executing the actions.
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_link
1740cat >config.log <<_ACEOF
1741This file contains any messages produced by compilers while
1742running configure, to aid debugging if configure makes a mistake.
1743
1744It was created by font-alias $as_me 1.0.4, which was
1745generated by GNU Autoconf 2.69.  Invocation command line was
1746
1747  $ $0 $@
1748
1749_ACEOF
1750exec 5>>config.log
1751{
1752cat <<_ASUNAME
1753## --------- ##
1754## Platform. ##
1755## --------- ##
1756
1757hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762
1763/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1765
1766/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1767/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1768/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1770/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1771/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1772/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1773
1774_ASUNAME
1775
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  test -z "$as_dir" && as_dir=.
1781    $as_echo "PATH: $as_dir"
1782  done
1783IFS=$as_save_IFS
1784
1785} >&5
1786
1787cat >&5 <<_ACEOF
1788
1789
1790## ----------- ##
1791## Core tests. ##
1792## ----------- ##
1793
1794_ACEOF
1795
1796
1797# Keep a trace of the command line.
1798# Strip out --no-create and --no-recursion so they do not pile up.
1799# Strip out --silent because we don't want to record it for future runs.
1800# Also quote any args containing shell meta-characters.
1801# Make two passes to allow for proper duplicate-argument suppression.
1802ac_configure_args=
1803ac_configure_args0=
1804ac_configure_args1=
1805ac_must_keep_next=false
1806for ac_pass in 1 2
1807do
1808  for ac_arg
1809  do
1810    case $ac_arg in
1811    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813    | -silent | --silent | --silen | --sile | --sil)
1814      continue ;;
1815    *\'*)
1816      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817    esac
1818    case $ac_pass in
1819    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1820    2)
1821      as_fn_append ac_configure_args1 " '$ac_arg'"
1822      if test $ac_must_keep_next = true; then
1823	ac_must_keep_next=false # Got value, back to normal.
1824      else
1825	case $ac_arg in
1826	  *=* | --config-cache | -C | -disable-* | --disable-* \
1827	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829	  | -with-* | --with-* | -without-* | --without-* | --x)
1830	    case "$ac_configure_args0 " in
1831	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832	    esac
1833	    ;;
1834	  -* ) ac_must_keep_next=true ;;
1835	esac
1836      fi
1837      as_fn_append ac_configure_args " '$ac_arg'"
1838      ;;
1839    esac
1840  done
1841done
1842{ ac_configure_args0=; unset ac_configure_args0;}
1843{ ac_configure_args1=; unset ac_configure_args1;}
1844
1845# When interrupted or exit'd, cleanup temporary files, and complete
1846# config.log.  We remove comments because anyway the quotes in there
1847# would cause problems or look ugly.
1848# WARNING: Use '\'' to represent an apostrophe within the trap.
1849# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850trap 'exit_status=$?
1851  # Save into config.log some information that might help in debugging.
1852  {
1853    echo
1854
1855    $as_echo "## ---------------- ##
1856## Cache variables. ##
1857## ---------------- ##"
1858    echo
1859    # The following way of writing the cache mishandles newlines in values,
1860(
1861  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1862    eval ac_val=\$$ac_var
1863    case $ac_val in #(
1864    *${as_nl}*)
1865      case $ac_var in #(
1866      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1867$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1868      esac
1869      case $ac_var in #(
1870      _ | IFS | as_nl) ;; #(
1871      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1872      *) { eval $ac_var=; unset $ac_var;} ;;
1873      esac ;;
1874    esac
1875  done
1876  (set) 2>&1 |
1877    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1878    *${as_nl}ac_space=\ *)
1879      sed -n \
1880	"s/'\''/'\''\\\\'\'''\''/g;
1881	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1882      ;; #(
1883    *)
1884      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1885      ;;
1886    esac |
1887    sort
1888)
1889    echo
1890
1891    $as_echo "## ----------------- ##
1892## Output variables. ##
1893## ----------------- ##"
1894    echo
1895    for ac_var in $ac_subst_vars
1896    do
1897      eval ac_val=\$$ac_var
1898      case $ac_val in
1899      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900      esac
1901      $as_echo "$ac_var='\''$ac_val'\''"
1902    done | sort
1903    echo
1904
1905    if test -n "$ac_subst_files"; then
1906      $as_echo "## ------------------- ##
1907## File substitutions. ##
1908## ------------------- ##"
1909      echo
1910      for ac_var in $ac_subst_files
1911      do
1912	eval ac_val=\$$ac_var
1913	case $ac_val in
1914	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915	esac
1916	$as_echo "$ac_var='\''$ac_val'\''"
1917      done | sort
1918      echo
1919    fi
1920
1921    if test -s confdefs.h; then
1922      $as_echo "## ----------- ##
1923## confdefs.h. ##
1924## ----------- ##"
1925      echo
1926      cat confdefs.h
1927      echo
1928    fi
1929    test "$ac_signal" != 0 &&
1930      $as_echo "$as_me: caught signal $ac_signal"
1931    $as_echo "$as_me: exit $exit_status"
1932  } >&5
1933  rm -f core *.core core.conftest.* &&
1934    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1935    exit $exit_status
1936' 0
1937for ac_signal in 1 2 13 15; do
1938  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1939done
1940ac_signal=0
1941
1942# confdefs.h avoids OS command line length limits that DEFS can exceed.
1943rm -f -r conftest* confdefs.h
1944
1945$as_echo "/* confdefs.h */" > confdefs.h
1946
1947# Predefined preprocessor variables.
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_NAME "$PACKAGE_NAME"
1951_ACEOF
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_VERSION "$PACKAGE_VERSION"
1959_ACEOF
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_STRING "$PACKAGE_STRING"
1963_ACEOF
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1967_ACEOF
1968
1969cat >>confdefs.h <<_ACEOF
1970#define PACKAGE_URL "$PACKAGE_URL"
1971_ACEOF
1972
1973
1974# Let the site file select an alternate cache file if it wants to.
1975# Prefer an explicitly selected file to automatically selected ones.
1976ac_site_file1=NONE
1977ac_site_file2=NONE
1978if test -n "$CONFIG_SITE"; then
1979  # We do not want a PATH search for config.site.
1980  case $CONFIG_SITE in #((
1981    -*)  ac_site_file1=./$CONFIG_SITE;;
1982    */*) ac_site_file1=$CONFIG_SITE;;
1983    *)   ac_site_file1=./$CONFIG_SITE;;
1984  esac
1985elif test "x$prefix" != xNONE; then
1986  ac_site_file1=$prefix/share/config.site
1987  ac_site_file2=$prefix/etc/config.site
1988else
1989  ac_site_file1=$ac_default_prefix/share/config.site
1990  ac_site_file2=$ac_default_prefix/etc/config.site
1991fi
1992for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1993do
1994  test "x$ac_site_file" = xNONE && continue
1995  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1996    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1997$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1998    sed 's/^/| /' "$ac_site_file" >&5
1999    . "$ac_site_file" \
2000      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002as_fn_error $? "failed to load site script $ac_site_file
2003See \`config.log' for more details" "$LINENO" 5; }
2004  fi
2005done
2006
2007if test -r "$cache_file"; then
2008  # Some versions of bash will fail to source /dev/null (special files
2009  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2010  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2011    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2012$as_echo "$as_me: loading cache $cache_file" >&6;}
2013    case $cache_file in
2014      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015      *)                      . "./$cache_file";;
2016    esac
2017  fi
2018else
2019  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2020$as_echo "$as_me: creating cache $cache_file" >&6;}
2021  >$cache_file
2022fi
2023
2024# Check that the precious variables saved in the cache have kept the same
2025# value.
2026ac_cache_corrupted=false
2027for ac_var in $ac_precious_vars; do
2028  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029  eval ac_new_set=\$ac_env_${ac_var}_set
2030  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031  eval ac_new_val=\$ac_env_${ac_var}_value
2032  case $ac_old_set,$ac_new_set in
2033    set,)
2034      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036      ac_cache_corrupted=: ;;
2037    ,set)
2038      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2039$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040      ac_cache_corrupted=: ;;
2041    ,);;
2042    *)
2043      if test "x$ac_old_val" != "x$ac_new_val"; then
2044	# differences in whitespace do not lead to failure.
2045	ac_old_val_w=`echo x $ac_old_val`
2046	ac_new_val_w=`echo x $ac_new_val`
2047	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2049$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050	  ac_cache_corrupted=:
2051	else
2052	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054	  eval $ac_var=\$ac_old_val
2055	fi
2056	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2057$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2058	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2059$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2060      fi;;
2061  esac
2062  # Pass precious variables to config.status.
2063  if test "$ac_new_set" = set; then
2064    case $ac_new_val in
2065    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066    *) ac_arg=$ac_var=$ac_new_val ;;
2067    esac
2068    case " $ac_configure_args " in
2069      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2070      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2071    esac
2072  fi
2073done
2074if $ac_cache_corrupted; then
2075  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2078$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2080fi
2081## -------------------- ##
2082## Main body of script. ##
2083## -------------------- ##
2084
2085ac_ext=c
2086ac_cpp='$CPP $CPPFLAGS'
2087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090
2091
2092am__api_version='1.15'
2093
2094ac_aux_dir=
2095for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096  if test -f "$ac_dir/install-sh"; then
2097    ac_aux_dir=$ac_dir
2098    ac_install_sh="$ac_aux_dir/install-sh -c"
2099    break
2100  elif test -f "$ac_dir/install.sh"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/install.sh -c"
2103    break
2104  elif test -f "$ac_dir/shtool"; then
2105    ac_aux_dir=$ac_dir
2106    ac_install_sh="$ac_aux_dir/shtool install -c"
2107    break
2108  fi
2109done
2110if test -z "$ac_aux_dir"; then
2111  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2112fi
2113
2114# These three variables are undocumented and unsupported,
2115# and are intended to be withdrawn in a future Autoconf release.
2116# They can cause serious problems if a builder's source tree is in a directory
2117# whose full name contains unusual characters.
2118ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2119ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2120ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2121
2122
2123# Find a good install program.  We prefer a C program (faster),
2124# so one script is as good as another.  But avoid the broken or
2125# incompatible versions:
2126# SysV /etc/install, /usr/sbin/install
2127# SunOS /usr/etc/install
2128# IRIX /sbin/install
2129# AIX /bin/install
2130# AmigaOS /C/install, which installs bootblocks on floppy discs
2131# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134# OS/2's system install, which has a completely different semantic
2135# ./install, which can be erroneously created by make from ./install.sh.
2136# Reject install programs that cannot install multiple files.
2137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2138$as_echo_n "checking for a BSD-compatible install... " >&6; }
2139if test -z "$INSTALL"; then
2140if ${ac_cv_path_install+:} false; then :
2141  $as_echo_n "(cached) " >&6
2142else
2143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148    # Account for people who put trailing slashes in PATH elements.
2149case $as_dir/ in #((
2150  ./ | .// | /[cC]/* | \
2151  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2153  /usr/ucb/* ) ;;
2154  *)
2155    # OSF1 and SCO ODT 3.0 have their own names for install.
2156    # Don't use installbsd from OSF since it installs stuff as root
2157    # by default.
2158    for ac_prog in ginstall scoinst install; do
2159      for ac_exec_ext in '' $ac_executable_extensions; do
2160	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2161	  if test $ac_prog = install &&
2162	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163	    # AIX install.  It has an incompatible calling convention.
2164	    :
2165	  elif test $ac_prog = install &&
2166	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167	    # program-specific install script used by HP pwplus--don't use.
2168	    :
2169	  else
2170	    rm -rf conftest.one conftest.two conftest.dir
2171	    echo one > conftest.one
2172	    echo two > conftest.two
2173	    mkdir conftest.dir
2174	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2175	      test -s conftest.one && test -s conftest.two &&
2176	      test -s conftest.dir/conftest.one &&
2177	      test -s conftest.dir/conftest.two
2178	    then
2179	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2180	      break 3
2181	    fi
2182	  fi
2183	fi
2184      done
2185    done
2186    ;;
2187esac
2188
2189  done
2190IFS=$as_save_IFS
2191
2192rm -rf conftest.one conftest.two conftest.dir
2193
2194fi
2195  if test "${ac_cv_path_install+set}" = set; then
2196    INSTALL=$ac_cv_path_install
2197  else
2198    # As a last resort, use the slow shell script.  Don't cache a
2199    # value for INSTALL within a source directory, because that will
2200    # break other packages using the cache if that directory is
2201    # removed, or if the value is a relative name.
2202    INSTALL=$ac_install_sh
2203  fi
2204fi
2205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2206$as_echo "$INSTALL" >&6; }
2207
2208# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2209# It thinks the first close brace ends the variable substitution.
2210test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2211
2212test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2213
2214test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2215
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2217$as_echo_n "checking whether build environment is sane... " >&6; }
2218# Reject unsafe characters in $srcdir or the absolute working directory
2219# name.  Accept space and tab only in the latter.
2220am_lf='
2221'
2222case `pwd` in
2223  *[\\\"\#\$\&\'\`$am_lf]*)
2224    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2225esac
2226case $srcdir in
2227  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2228    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2229esac
2230
2231# Do 'set' in a subshell so we don't clobber the current shell's
2232# arguments.  Must try -L first in case configure is actually a
2233# symlink; some systems play weird games with the mod time of symlinks
2234# (eg FreeBSD returns the mod time of the symlink's containing
2235# directory).
2236if (
2237   am_has_slept=no
2238   for am_try in 1 2; do
2239     echo "timestamp, slept: $am_has_slept" > conftest.file
2240     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2241     if test "$*" = "X"; then
2242	# -L didn't work.
2243	set X `ls -t "$srcdir/configure" conftest.file`
2244     fi
2245     if test "$*" != "X $srcdir/configure conftest.file" \
2246	&& test "$*" != "X conftest.file $srcdir/configure"; then
2247
2248	# If neither matched, then we have a broken ls.  This can happen
2249	# if, for instance, CONFIG_SHELL is bash and it inherits a
2250	# broken ls alias from the environment.  This has actually
2251	# happened.  Such a system could not be considered "sane".
2252	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2253  alias in your environment" "$LINENO" 5
2254     fi
2255     if test "$2" = conftest.file || test $am_try -eq 2; then
2256       break
2257     fi
2258     # Just in case.
2259     sleep 1
2260     am_has_slept=yes
2261   done
2262   test "$2" = conftest.file
2263   )
2264then
2265   # Ok.
2266   :
2267else
2268   as_fn_error $? "newly created file is older than distributed files!
2269Check your system clock" "$LINENO" 5
2270fi
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2272$as_echo "yes" >&6; }
2273# If we didn't sleep, we still need to ensure time stamps of config.status and
2274# generated files are strictly newer.
2275am_sleep_pid=
2276if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2277  ( sleep 1 ) &
2278  am_sleep_pid=$!
2279fi
2280
2281rm -f conftest.file
2282
2283test "$program_prefix" != NONE &&
2284  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2285# Use a double $ so make ignores it.
2286test "$program_suffix" != NONE &&
2287  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2288# Double any \ or $.
2289# By default was `s,x,x', remove it if useless.
2290ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2291program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2292
2293# Expand $ac_aux_dir to an absolute path.
2294am_aux_dir=`cd "$ac_aux_dir" && pwd`
2295
2296if test x"${MISSING+set}" != xset; then
2297  case $am_aux_dir in
2298  *\ * | *\	*)
2299    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2300  *)
2301    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2302  esac
2303fi
2304# Use eval to expand $SHELL
2305if eval "$MISSING --is-lightweight"; then
2306  am_missing_run="$MISSING "
2307else
2308  am_missing_run=
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2310$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2311fi
2312
2313if test x"${install_sh+set}" != xset; then
2314  case $am_aux_dir in
2315  *\ * | *\	*)
2316    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2317  *)
2318    install_sh="\${SHELL} $am_aux_dir/install-sh"
2319  esac
2320fi
2321
2322# Installed binaries are usually stripped using 'strip' when the user
2323# run "make install-strip".  However 'strip' might not be the right
2324# tool to use in cross-compilation environments, therefore Automake
2325# will honor the 'STRIP' environment variable to overrule this program.
2326if test "$cross_compiling" != no; then
2327  if test -n "$ac_tool_prefix"; then
2328  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2329set dummy ${ac_tool_prefix}strip; ac_word=$2
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2331$as_echo_n "checking for $ac_word... " >&6; }
2332if ${ac_cv_prog_STRIP+:} false; then :
2333  $as_echo_n "(cached) " >&6
2334else
2335  if test -n "$STRIP"; then
2336  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2337else
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341  IFS=$as_save_IFS
2342  test -z "$as_dir" && as_dir=.
2343    for ac_exec_ext in '' $ac_executable_extensions; do
2344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2345    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2347    break 2
2348  fi
2349done
2350  done
2351IFS=$as_save_IFS
2352
2353fi
2354fi
2355STRIP=$ac_cv_prog_STRIP
2356if test -n "$STRIP"; then
2357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2358$as_echo "$STRIP" >&6; }
2359else
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2361$as_echo "no" >&6; }
2362fi
2363
2364
2365fi
2366if test -z "$ac_cv_prog_STRIP"; then
2367  ac_ct_STRIP=$STRIP
2368  # Extract the first word of "strip", so it can be a program name with args.
2369set dummy strip; ac_word=$2
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2371$as_echo_n "checking for $ac_word... " >&6; }
2372if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2373  $as_echo_n "(cached) " >&6
2374else
2375  if test -n "$ac_ct_STRIP"; then
2376  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2377else
2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381  IFS=$as_save_IFS
2382  test -z "$as_dir" && as_dir=.
2383    for ac_exec_ext in '' $ac_executable_extensions; do
2384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385    ac_cv_prog_ac_ct_STRIP="strip"
2386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2387    break 2
2388  fi
2389done
2390  done
2391IFS=$as_save_IFS
2392
2393fi
2394fi
2395ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2396if test -n "$ac_ct_STRIP"; then
2397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2398$as_echo "$ac_ct_STRIP" >&6; }
2399else
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2401$as_echo "no" >&6; }
2402fi
2403
2404  if test "x$ac_ct_STRIP" = x; then
2405    STRIP=":"
2406  else
2407    case $cross_compiling:$ac_tool_warned in
2408yes:)
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2411ac_tool_warned=yes ;;
2412esac
2413    STRIP=$ac_ct_STRIP
2414  fi
2415else
2416  STRIP="$ac_cv_prog_STRIP"
2417fi
2418
2419fi
2420INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2421
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2423$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2424if test -z "$MKDIR_P"; then
2425  if ${ac_cv_path_mkdir+:} false; then :
2426  $as_echo_n "(cached) " >&6
2427else
2428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2430do
2431  IFS=$as_save_IFS
2432  test -z "$as_dir" && as_dir=.
2433    for ac_prog in mkdir gmkdir; do
2434	 for ac_exec_ext in '' $ac_executable_extensions; do
2435	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2436	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2437	     'mkdir (GNU coreutils) '* | \
2438	     'mkdir (coreutils) '* | \
2439	     'mkdir (fileutils) '4.1*)
2440	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2441	       break 3;;
2442	   esac
2443	 done
2444       done
2445  done
2446IFS=$as_save_IFS
2447
2448fi
2449
2450  test -d ./--version && rmdir ./--version
2451  if test "${ac_cv_path_mkdir+set}" = set; then
2452    MKDIR_P="$ac_cv_path_mkdir -p"
2453  else
2454    # As a last resort, use the slow shell script.  Don't cache a
2455    # value for MKDIR_P within a source directory, because that will
2456    # break other packages using the cache if that directory is
2457    # removed, or if the value is a relative name.
2458    MKDIR_P="$ac_install_sh -d"
2459  fi
2460fi
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2462$as_echo "$MKDIR_P" >&6; }
2463
2464for ac_prog in gawk mawk nawk awk
2465do
2466  # Extract the first word of "$ac_prog", so it can be a program name with args.
2467set dummy $ac_prog; ac_word=$2
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
2470if ${ac_cv_prog_AWK+:} false; then :
2471  $as_echo_n "(cached) " >&6
2472else
2473  if test -n "$AWK"; then
2474  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479  IFS=$as_save_IFS
2480  test -z "$as_dir" && as_dir=.
2481    for ac_exec_ext in '' $ac_executable_extensions; do
2482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483    ac_cv_prog_AWK="$ac_prog"
2484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485    break 2
2486  fi
2487done
2488  done
2489IFS=$as_save_IFS
2490
2491fi
2492fi
2493AWK=$ac_cv_prog_AWK
2494if test -n "$AWK"; then
2495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2496$as_echo "$AWK" >&6; }
2497else
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499$as_echo "no" >&6; }
2500fi
2501
2502
2503  test -n "$AWK" && break
2504done
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2507$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2508set x ${MAKE-make}
2509ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2510if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  cat >conftest.make <<\_ACEOF
2514SHELL = /bin/sh
2515all:
2516	@echo '@@@%%%=$(MAKE)=@@@%%%'
2517_ACEOF
2518# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2519case `${MAKE-make} -f conftest.make 2>/dev/null` in
2520  *@@@%%%=?*=@@@%%%*)
2521    eval ac_cv_prog_make_${ac_make}_set=yes;;
2522  *)
2523    eval ac_cv_prog_make_${ac_make}_set=no;;
2524esac
2525rm -f conftest.make
2526fi
2527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2529$as_echo "yes" >&6; }
2530  SET_MAKE=
2531else
2532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533$as_echo "no" >&6; }
2534  SET_MAKE="MAKE=${MAKE-make}"
2535fi
2536
2537rm -rf .tst 2>/dev/null
2538mkdir .tst 2>/dev/null
2539if test -d .tst; then
2540  am__leading_dot=.
2541else
2542  am__leading_dot=_
2543fi
2544rmdir .tst 2>/dev/null
2545
2546# Check whether --enable-silent-rules was given.
2547if test "${enable_silent_rules+set}" = set; then :
2548  enableval=$enable_silent_rules;
2549fi
2550
2551case $enable_silent_rules in # (((
2552  yes) AM_DEFAULT_VERBOSITY=0;;
2553   no) AM_DEFAULT_VERBOSITY=1;;
2554    *) AM_DEFAULT_VERBOSITY=1;;
2555esac
2556am_make=${MAKE-make}
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2558$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2559if ${am_cv_make_support_nested_variables+:} false; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  if $as_echo 'TRUE=$(BAR$(V))
2563BAR0=false
2564BAR1=true
2565V=1
2566am__doit:
2567	@$(TRUE)
2568.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2569  am_cv_make_support_nested_variables=yes
2570else
2571  am_cv_make_support_nested_variables=no
2572fi
2573fi
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2575$as_echo "$am_cv_make_support_nested_variables" >&6; }
2576if test $am_cv_make_support_nested_variables = yes; then
2577    AM_V='$(V)'
2578  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2579else
2580  AM_V=$AM_DEFAULT_VERBOSITY
2581  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2582fi
2583AM_BACKSLASH='\'
2584
2585if test "`cd $srcdir && pwd`" != "`pwd`"; then
2586  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2587  # is not polluted with repeated "-I."
2588  am__isrc=' -I$(srcdir)'
2589  # test to see if srcdir already configured
2590  if test -f $srcdir/config.status; then
2591    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2592  fi
2593fi
2594
2595# test whether we have cygpath
2596if test -z "$CYGPATH_W"; then
2597  if (cygpath --version) >/dev/null 2>/dev/null; then
2598    CYGPATH_W='cygpath -w'
2599  else
2600    CYGPATH_W=echo
2601  fi
2602fi
2603
2604
2605# Define the identity of the package.
2606 PACKAGE='font-alias'
2607 VERSION='1.0.4'
2608
2609
2610cat >>confdefs.h <<_ACEOF
2611#define PACKAGE "$PACKAGE"
2612_ACEOF
2613
2614
2615cat >>confdefs.h <<_ACEOF
2616#define VERSION "$VERSION"
2617_ACEOF
2618
2619# Some tools Automake needs.
2620
2621ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2622
2623
2624AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2625
2626
2627AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2628
2629
2630AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2631
2632
2633MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2634
2635# For better backward compatibility.  To be removed once Automake 1.9.x
2636# dies out for good.  For more background, see:
2637# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2638# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2639mkdir_p='$(MKDIR_P)'
2640
2641# We need awk for the "check" target (and possibly the TAP driver).  The
2642# system "awk" is bad on some platforms.
2643# Always define AMTAR for backward compatibility.  Yes, it's still used
2644# in the wild :-(  We should find a proper way to deprecate it ...
2645AMTAR='$${TAR-tar}'
2646
2647
2648# We'll loop over all known methods to create a tar archive until one works.
2649_am_tools='gnutar  pax cpio none'
2650
2651am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2652
2653
2654
2655
2656
2657
2658# POSIX will say in a future version that running "rm -f" with no argument
2659# is OK; and we want to be able to make that assumption in our Makefile
2660# recipes.  So use an aggressive probe to check that the usage we want is
2661# actually supported "in the wild" to an acceptable degree.
2662# See automake bug#10828.
2663# To make any issue more visible, cause the running configure to be aborted
2664# by default if the 'rm' program in use doesn't match our expectations; the
2665# user can still override this though.
2666if rm -f && rm -fr && rm -rf; then : OK; else
2667  cat >&2 <<'END'
2668Oops!
2669
2670Your 'rm' program seems unable to run without file operands specified
2671on the command line, even when the '-f' option is present.  This is contrary
2672to the behaviour of most rm programs out there, and not conforming with
2673the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2674
2675Please tell bug-automake@gnu.org about your system, including the value
2676of your $PATH and any error possibly output before this message.  This
2677can help us improve future automake versions.
2678
2679END
2680  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2681    echo 'Configuration will proceed anyway, since you have set the' >&2
2682    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2683    echo >&2
2684  else
2685    cat >&2 <<'END'
2686Aborting the configuration process, to ensure you take notice of the issue.
2687
2688You can download and install GNU coreutils to get an 'rm' implementation
2689that behaves properly: <http://www.gnu.org/software/coreutils/>.
2690
2691If you want to complete the configuration process using your problematic
2692'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2693to "yes", and re-run configure.
2694
2695END
2696    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2697  fi
2698fi
2699
2700
2701# Require xorg-macros: XORG_DEFAULT_OPTIONS
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713DEPDIR="${am__leading_dot}deps"
2714
2715ac_config_commands="$ac_config_commands depfiles"
2716
2717
2718am_make=${MAKE-make}
2719cat > confinc << 'END'
2720am__doit:
2721	@echo this is the am__doit target
2722.PHONY: am__doit
2723END
2724# If we don't find an include directive, just comment out the code.
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2726$as_echo_n "checking for style of include used by $am_make... " >&6; }
2727am__include="#"
2728am__quote=
2729_am_result=none
2730# First try GNU make style include.
2731echo "include confinc" > confmf
2732# Ignore all kinds of additional output from 'make'.
2733case `$am_make -s -f confmf 2> /dev/null` in #(
2734*the\ am__doit\ target*)
2735  am__include=include
2736  am__quote=
2737  _am_result=GNU
2738  ;;
2739esac
2740# Now try BSD make style include.
2741if test "$am__include" = "#"; then
2742   echo '.include "confinc"' > confmf
2743   case `$am_make -s -f confmf 2> /dev/null` in #(
2744   *the\ am__doit\ target*)
2745     am__include=.include
2746     am__quote="\""
2747     _am_result=BSD
2748     ;;
2749   esac
2750fi
2751
2752
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2754$as_echo "$_am_result" >&6; }
2755rm -f confinc confmf
2756
2757# Check whether --enable-dependency-tracking was given.
2758if test "${enable_dependency_tracking+set}" = set; then :
2759  enableval=$enable_dependency_tracking;
2760fi
2761
2762if test "x$enable_dependency_tracking" != xno; then
2763  am_depcomp="$ac_aux_dir/depcomp"
2764  AMDEPBACKSLASH='\'
2765  am__nodep='_no'
2766fi
2767 if test "x$enable_dependency_tracking" != xno; then
2768  AMDEP_TRUE=
2769  AMDEP_FALSE='#'
2770else
2771  AMDEP_TRUE='#'
2772  AMDEP_FALSE=
2773fi
2774
2775
2776ac_ext=c
2777ac_cpp='$CPP $CPPFLAGS'
2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781if test -n "$ac_tool_prefix"; then
2782  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if ${ac_cv_prog_CC+:} false; then :
2787  $as_echo_n "(cached) " >&6
2788else
2789  if test -n "$CC"; then
2790  ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795  IFS=$as_save_IFS
2796  test -z "$as_dir" && as_dir=.
2797    for ac_exec_ext in '' $ac_executable_extensions; do
2798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801    break 2
2802  fi
2803done
2804  done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809CC=$ac_cv_prog_CC
2810if test -n "$CC"; then
2811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812$as_echo "$CC" >&6; }
2813else
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
2816fi
2817
2818
2819fi
2820if test -z "$ac_cv_prog_CC"; then
2821  ac_ct_CC=$CC
2822  # Extract the first word of "gcc", so it can be a program name with args.
2823set dummy gcc; ac_word=$2
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825$as_echo_n "checking for $ac_word... " >&6; }
2826if ${ac_cv_prog_ac_ct_CC+:} false; then :
2827  $as_echo_n "(cached) " >&6
2828else
2829  if test -n "$ac_ct_CC"; then
2830  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835  IFS=$as_save_IFS
2836  test -z "$as_dir" && as_dir=.
2837    for ac_exec_ext in '' $ac_executable_extensions; do
2838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839    ac_cv_prog_ac_ct_CC="gcc"
2840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841    break 2
2842  fi
2843done
2844  done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850if test -n "$ac_ct_CC"; then
2851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852$as_echo "$ac_ct_CC" >&6; }
2853else
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855$as_echo "no" >&6; }
2856fi
2857
2858  if test "x$ac_ct_CC" = x; then
2859    CC=""
2860  else
2861    case $cross_compiling:$ac_tool_warned in
2862yes:)
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867    CC=$ac_ct_CC
2868  fi
2869else
2870  CC="$ac_cv_prog_CC"
2871fi
2872
2873if test -z "$CC"; then
2874          if test -n "$ac_tool_prefix"; then
2875    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}cc; ac_word=$2
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
2879if ${ac_cv_prog_CC+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  if test -n "$CC"; then
2883  ac_cv_prog_CC="$CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  test -z "$as_dir" && as_dir=.
2890    for ac_exec_ext in '' $ac_executable_extensions; do
2891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892    ac_cv_prog_CC="${ac_tool_prefix}cc"
2893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905$as_echo "$CC" >&6; }
2906else
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
2910
2911
2912  fi
2913fi
2914if test -z "$CC"; then
2915  # Extract the first word of "cc", so it can be a program name with args.
2916set dummy cc; ac_word=$2
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
2919if ${ac_cv_prog_CC+:} false; then :
2920  $as_echo_n "(cached) " >&6
2921else
2922  if test -n "$CC"; then
2923  ac_cv_prog_CC="$CC" # Let the user override the test.
2924else
2925  ac_prog_rejected=no
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934       ac_prog_rejected=yes
2935       continue
2936     fi
2937    ac_cv_prog_CC="cc"
2938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942  done
2943IFS=$as_save_IFS
2944
2945if test $ac_prog_rejected = yes; then
2946  # We found a bogon in the path, so make sure we never use it.
2947  set dummy $ac_cv_prog_CC
2948  shift
2949  if test $# != 0; then
2950    # We chose a different compiler from the bogus one.
2951    # However, it has the same basename, so the bogon will be chosen
2952    # first if we set CC to just the basename; use the full file name.
2953    shift
2954    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955  fi
2956fi
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
2969fi
2970if test -z "$CC"; then
2971  if test -n "$ac_tool_prefix"; then
2972  for ac_prog in cl.exe
2973  do
2974    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
2978if ${ac_cv_prog_CC+:} false; then :
2979  $as_echo_n "(cached) " >&6
2980else
2981  if test -n "$CC"; then
2982  ac_cv_prog_CC="$CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989    for ac_exec_ext in '' $ac_executable_extensions; do
2990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993    break 2
2994  fi
2995done
2996  done
2997IFS=$as_save_IFS
2998
2999fi
3000fi
3001CC=$ac_cv_prog_CC
3002if test -n "$CC"; then
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004$as_echo "$CC" >&6; }
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
3009
3010
3011    test -n "$CC" && break
3012  done
3013fi
3014if test -z "$CC"; then
3015  ac_ct_CC=$CC
3016  for ac_prog in cl.exe
3017do
3018  # Extract the first word of "$ac_prog", so it can be a program name with args.
3019set dummy $ac_prog; ac_word=$2
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
3022if ${ac_cv_prog_ac_ct_CC+:} false; then :
3023  $as_echo_n "(cached) " >&6
3024else
3025  if test -n "$ac_ct_CC"; then
3026  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
3032  test -z "$as_dir" && as_dir=.
3033    for ac_exec_ext in '' $ac_executable_extensions; do
3034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035    ac_cv_prog_ac_ct_CC="$ac_prog"
3036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037    break 2
3038  fi
3039done
3040  done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
3045ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046if test -n "$ac_ct_CC"; then
3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048$as_echo "$ac_ct_CC" >&6; }
3049else
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
3055  test -n "$ac_ct_CC" && break
3056done
3057
3058  if test "x$ac_ct_CC" = x; then
3059    CC=""
3060  else
3061    case $cross_compiling:$ac_tool_warned in
3062yes:)
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065ac_tool_warned=yes ;;
3066esac
3067    CC=$ac_ct_CC
3068  fi
3069fi
3070
3071fi
3072
3073
3074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076as_fn_error $? "no acceptable C compiler found in \$PATH
3077See \`config.log' for more details" "$LINENO" 5; }
3078
3079# Provide some information about the compiler.
3080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081set X $ac_compile
3082ac_compiler=$2
3083for ac_option in --version -v -V -qversion; do
3084  { { ac_try="$ac_compiler $ac_option >&5"
3085case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092  ac_status=$?
3093  if test -s conftest.err; then
3094    sed '10a\
3095... rest of stderr output deleted ...
3096         10q' conftest.err >conftest.er1
3097    cat conftest.er1 >&5
3098  fi
3099  rm -f conftest.er1 conftest.err
3100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101  test $ac_status = 0; }
3102done
3103
3104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105/* end confdefs.h.  */
3106
3107int
3108main ()
3109{
3110
3111  ;
3112  return 0;
3113}
3114_ACEOF
3115ac_clean_files_save=$ac_clean_files
3116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117# Try to create an executable without -o first, disregard a.out.
3118# It will help us diagnose broken compilers, and finding out an intuition
3119# of exeext.
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3121$as_echo_n "checking whether the C compiler works... " >&6; }
3122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124# The possible output files:
3125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
3127ac_rmfiles=
3128for ac_file in $ac_files
3129do
3130  case $ac_file in
3131    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133  esac
3134done
3135rm -f $ac_rmfiles
3136
3137if { { ac_try="$ac_link_default"
3138case "(($ac_try" in
3139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140  *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144  (eval "$ac_link_default") 2>&5
3145  ac_status=$?
3146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147  test $ac_status = 0; }; then :
3148  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3151# so that the user can short-circuit this test for compilers unknown to
3152# Autoconf.
3153for ac_file in $ac_files ''
3154do
3155  test -f "$ac_file" || continue
3156  case $ac_file in
3157    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158	;;
3159    [ab].out )
3160	# We found the default executable, but exeext='' is most
3161	# certainly right.
3162	break;;
3163    *.* )
3164	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165	then :; else
3166	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167	fi
3168	# We set ac_cv_exeext here because the later test for it is not
3169	# safe: cross compilers may not add the suffix if given an `-o'
3170	# argument, so we may need to know it at that point already.
3171	# Even if this section looks crufty: it has the advantage of
3172	# actually working.
3173	break;;
3174    * )
3175	break;;
3176  esac
3177done
3178test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
3180else
3181  ac_file=''
3182fi
3183if test -z "$ac_file"; then :
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186$as_echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191as_fn_error 77 "C compiler cannot create executables
3192See \`config.log' for more details" "$LINENO" 5; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195$as_echo "yes" >&6; }
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198$as_echo_n "checking for C compiler default output file name... " >&6; }
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3200$as_echo "$ac_file" >&6; }
3201ac_exeext=$ac_cv_exeext
3202
3203rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3204ac_clean_files=$ac_clean_files_save
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206$as_echo_n "checking for suffix of executables... " >&6; }
3207if { { ac_try="$ac_link"
3208case "(($ac_try" in
3209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210  *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
3214  (eval "$ac_link") 2>&5
3215  ac_status=$?
3216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217  test $ac_status = 0; }; then :
3218  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3220# work properly (i.e., refer to `conftest.exe'), while it won't with
3221# `rm'.
3222for ac_file in conftest.exe conftest conftest.*; do
3223  test -f "$ac_file" || continue
3224  case $ac_file in
3225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227	  break;;
3228    * ) break;;
3229  esac
3230done
3231else
3232  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details" "$LINENO" 5; }
3236fi
3237rm -f conftest conftest$ac_cv_exeext
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239$as_echo "$ac_cv_exeext" >&6; }
3240
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246#include <stdio.h>
3247int
3248main ()
3249{
3250FILE *f = fopen ("conftest.out", "w");
3251 return ferror (f) || fclose (f) != 0;
3252
3253  ;
3254  return 0;
3255}
3256_ACEOF
3257ac_clean_files="$ac_clean_files conftest.out"
3258# Check that the compiler produces executables we can run.  If not, either
3259# the compiler is broken, or we cross compile.
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3261$as_echo_n "checking whether we are cross compiling... " >&6; }
3262if test "$cross_compiling" != yes; then
3263  { { ac_try="$ac_link"
3264case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270  (eval "$ac_link") 2>&5
3271  ac_status=$?
3272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273  test $ac_status = 0; }
3274  if { ac_try='./conftest$ac_cv_exeext'
3275  { { case "(($ac_try" in
3276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277  *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281  (eval "$ac_try") 2>&5
3282  ac_status=$?
3283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284  test $ac_status = 0; }; }; then
3285    cross_compiling=no
3286  else
3287    if test "$cross_compiling" = maybe; then
3288	cross_compiling=yes
3289    else
3290	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292as_fn_error $? "cannot run C compiled programs.
3293If you meant to cross compile, use \`--host'.
3294See \`config.log' for more details" "$LINENO" 5; }
3295    fi
3296  fi
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3299$as_echo "$cross_compiling" >&6; }
3300
3301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3302ac_clean_files=$ac_clean_files_save
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3304$as_echo_n "checking for suffix of object files... " >&6; }
3305if ${ac_cv_objext+:} false; then :
3306  $as_echo_n "(cached) " >&6
3307else
3308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h.  */
3310
3311int
3312main ()
3313{
3314
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319rm -f conftest.o conftest.obj
3320if { { ac_try="$ac_compile"
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_compile") 2>&5
3328  ac_status=$?
3329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330  test $ac_status = 0; }; then :
3331  for ac_file in conftest.o conftest.obj conftest.*; do
3332  test -f "$ac_file" || continue;
3333  case $ac_file in
3334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3335    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336       break;;
3337  esac
3338done
3339else
3340  $as_echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345as_fn_error $? "cannot compute suffix of object files: cannot compile
3346See \`config.log' for more details" "$LINENO" 5; }
3347fi
3348rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3351$as_echo "$ac_cv_objext" >&6; }
3352OBJEXT=$ac_cv_objext
3353ac_objext=$OBJEXT
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3355$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3356if ${ac_cv_c_compiler_gnu+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h.  */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366       choke me
3367#endif
3368
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373if ac_fn_c_try_compile "$LINENO"; then :
3374  ac_compiler_gnu=yes
3375else
3376  ac_compiler_gnu=no
3377fi
3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379ac_cv_c_compiler_gnu=$ac_compiler_gnu
3380
3381fi
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3384if test $ac_compiler_gnu = yes; then
3385  GCC=yes
3386else
3387  GCC=
3388fi
3389ac_test_CFLAGS=${CFLAGS+set}
3390ac_save_CFLAGS=$CFLAGS
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3392$as_echo_n "checking whether $CC accepts -g... " >&6; }
3393if ${ac_cv_prog_cc_g+:} false; then :
3394  $as_echo_n "(cached) " >&6
3395else
3396  ac_save_c_werror_flag=$ac_c_werror_flag
3397   ac_c_werror_flag=yes
3398   ac_cv_prog_cc_g=no
3399   CFLAGS="-g"
3400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h.  */
3402
3403int
3404main ()
3405{
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411if ac_fn_c_try_compile "$LINENO"; then :
3412  ac_cv_prog_cc_g=yes
3413else
3414  CFLAGS=""
3415      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426if ac_fn_c_try_compile "$LINENO"; then :
3427
3428else
3429  ac_c_werror_flag=$ac_save_c_werror_flag
3430	 CFLAGS="-g"
3431	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433
3434int
3435main ()
3436{
3437
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442if ac_fn_c_try_compile "$LINENO"; then :
3443  ac_cv_prog_cc_g=yes
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446fi
3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448fi
3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450   ac_c_werror_flag=$ac_save_c_werror_flag
3451fi
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3453$as_echo "$ac_cv_prog_cc_g" >&6; }
3454if test "$ac_test_CFLAGS" = set; then
3455  CFLAGS=$ac_save_CFLAGS
3456elif test $ac_cv_prog_cc_g = yes; then
3457  if test "$GCC" = yes; then
3458    CFLAGS="-g -O2"
3459  else
3460    CFLAGS="-g"
3461  fi
3462else
3463  if test "$GCC" = yes; then
3464    CFLAGS="-O2"
3465  else
3466    CFLAGS=
3467  fi
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3470$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3471if ${ac_cv_prog_cc_c89+:} false; then :
3472  $as_echo_n "(cached) " >&6
3473else
3474  ac_cv_prog_cc_c89=no
3475ac_save_CC=$CC
3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478#include <stdarg.h>
3479#include <stdio.h>
3480struct stat;
3481/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3482struct buf { int x; };
3483FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484static char *e (p, i)
3485     char **p;
3486     int i;
3487{
3488  return p[i];
3489}
3490static char *f (char * (*g) (char **, int), char **p, ...)
3491{
3492  char *s;
3493  va_list v;
3494  va_start (v,p);
3495  s = g (p, va_arg (v,int));
3496  va_end (v);
3497  return s;
3498}
3499
3500/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3501   function prototypes and stuff, but not '\xHH' hex character constants.
3502   These don't provoke an error unfortunately, instead are silently treated
3503   as 'x'.  The following induces an error, until -std is added to get
3504   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3505   array size at least.  It's necessary to write '\x00'==0 to get something
3506   that's true only with -std.  */
3507int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3508
3509/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510   inside strings and character constants.  */
3511#define FOO(x) 'x'
3512int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3513
3514int test (int i, double x);
3515struct s1 {int (*f) (int a);};
3516struct s2 {int (*f) (double a);};
3517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518int argc;
3519char **argv;
3520int
3521main ()
3522{
3523return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3530do
3531  CC="$ac_save_CC $ac_arg"
3532  if ac_fn_c_try_compile "$LINENO"; then :
3533  ac_cv_prog_cc_c89=$ac_arg
3534fi
3535rm -f core conftest.err conftest.$ac_objext
3536  test "x$ac_cv_prog_cc_c89" != "xno" && break
3537done
3538rm -f conftest.$ac_ext
3539CC=$ac_save_CC
3540
3541fi
3542# AC_CACHE_VAL
3543case "x$ac_cv_prog_cc_c89" in
3544  x)
3545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3546$as_echo "none needed" >&6; } ;;
3547  xno)
3548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549$as_echo "unsupported" >&6; } ;;
3550  *)
3551    CC="$CC $ac_cv_prog_cc_c89"
3552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3553$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3554esac
3555if test "x$ac_cv_prog_cc_c89" != xno; then :
3556
3557fi
3558
3559ac_ext=c
3560ac_cpp='$CPP $CPPFLAGS'
3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565ac_ext=c
3566ac_cpp='$CPP $CPPFLAGS'
3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3571$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3572if ${am_cv_prog_cc_c_o+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h.  */
3577
3578int
3579main ()
3580{
3581
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586  # Make sure it works both with $CC and with simple cc.
3587  # Following AC_PROG_CC_C_O, we do the test twice because some
3588  # compilers refuse to overwrite an existing .o file with -o,
3589  # though they will create one.
3590  am_cv_prog_cc_c_o=yes
3591  for am_i in 1 2; do
3592    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3593   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } \
3597         && test -f conftest2.$ac_objext; then
3598      : OK
3599    else
3600      am_cv_prog_cc_c_o=no
3601      break
3602    fi
3603  done
3604  rm -f core conftest*
3605  unset am_i
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3608$as_echo "$am_cv_prog_cc_c_o" >&6; }
3609if test "$am_cv_prog_cc_c_o" != yes; then
3610   # Losing compiler, so override with the script.
3611   # FIXME: It is wrong to rewrite CC.
3612   # But if we don't then we get into trouble of one sort or another.
3613   # A longer-term fix would be to have automake use am__CC in this case,
3614   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3615   CC="$am_aux_dir/compile $CC"
3616fi
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
3623
3624depcc="$CC"   am_compiler_list=
3625
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3627$as_echo_n "checking dependency style of $depcc... " >&6; }
3628if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3632  # We make a subdir and do the tests there.  Otherwise we can end up
3633  # making bogus files that we don't know about and never remove.  For
3634  # instance it was reported that on HP-UX the gcc test will end up
3635  # making a dummy file named 'D' -- because '-MD' means "put the output
3636  # in D".
3637  rm -rf conftest.dir
3638  mkdir conftest.dir
3639  # Copy depcomp to subdir because otherwise we won't find it if we're
3640  # using a relative directory.
3641  cp "$am_depcomp" conftest.dir
3642  cd conftest.dir
3643  # We will build objects and dependencies in a subdirectory because
3644  # it helps to detect inapplicable dependency modes.  For instance
3645  # both Tru64's cc and ICC support -MD to output dependencies as a
3646  # side effect of compilation, but ICC will put the dependencies in
3647  # the current directory while Tru64 will put them in the object
3648  # directory.
3649  mkdir sub
3650
3651  am_cv_CC_dependencies_compiler_type=none
3652  if test "$am_compiler_list" = ""; then
3653     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3654  fi
3655  am__universal=false
3656  case " $depcc " in #(
3657     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3658     esac
3659
3660  for depmode in $am_compiler_list; do
3661    # Setup a source with many dependencies, because some compilers
3662    # like to wrap large dependency lists on column 80 (with \), and
3663    # we should not choose a depcomp mode which is confused by this.
3664    #
3665    # We need to recreate these files for each test, as the compiler may
3666    # overwrite some of them when testing with obscure command lines.
3667    # This happens at least with the AIX C compiler.
3668    : > sub/conftest.c
3669    for i in 1 2 3 4 5 6; do
3670      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3671      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3672      # Solaris 10 /bin/sh.
3673      echo '/* dummy */' > sub/conftst$i.h
3674    done
3675    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3676
3677    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3678    # mode.  It turns out that the SunPro C++ compiler does not properly
3679    # handle '-M -o', and we need to detect this.  Also, some Intel
3680    # versions had trouble with output in subdirs.
3681    am__obj=sub/conftest.${OBJEXT-o}
3682    am__minus_obj="-o $am__obj"
3683    case $depmode in
3684    gcc)
3685      # This depmode causes a compiler race in universal mode.
3686      test "$am__universal" = false || continue
3687      ;;
3688    nosideeffect)
3689      # After this tag, mechanisms are not by side-effect, so they'll
3690      # only be used when explicitly requested.
3691      if test "x$enable_dependency_tracking" = xyes; then
3692	continue
3693      else
3694	break
3695      fi
3696      ;;
3697    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3698      # This compiler won't grok '-c -o', but also, the minuso test has
3699      # not run yet.  These depmodes are late enough in the game, and
3700      # so weak that their functioning should not be impacted.
3701      am__obj=conftest.${OBJEXT-o}
3702      am__minus_obj=
3703      ;;
3704    none) break ;;
3705    esac
3706    if depmode=$depmode \
3707       source=sub/conftest.c object=$am__obj \
3708       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3709       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3710         >/dev/null 2>conftest.err &&
3711       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3712       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3713       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3714       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3715      # icc doesn't choke on unknown options, it will just issue warnings
3716      # or remarks (even with -Werror).  So we grep stderr for any message
3717      # that says an option was ignored or not supported.
3718      # When given -MP, icc 7.0 and 7.1 complain thusly:
3719      #   icc: Command line warning: ignoring option '-M'; no argument required
3720      # The diagnosis changed in icc 8.0:
3721      #   icc: Command line remark: option '-MP' not supported
3722      if (grep 'ignoring option' conftest.err ||
3723          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3724        am_cv_CC_dependencies_compiler_type=$depmode
3725        break
3726      fi
3727    fi
3728  done
3729
3730  cd ..
3731  rm -rf conftest.dir
3732else
3733  am_cv_CC_dependencies_compiler_type=none
3734fi
3735
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3738$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3739CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3740
3741 if
3742  test "x$enable_dependency_tracking" != xno \
3743  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3744  am__fastdepCC_TRUE=
3745  am__fastdepCC_FALSE='#'
3746else
3747  am__fastdepCC_TRUE='#'
3748  am__fastdepCC_FALSE=
3749fi
3750
3751
3752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3753$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3754if ${ac_cv_prog_cc_c99+:} false; then :
3755  $as_echo_n "(cached) " >&6
3756else
3757  ac_cv_prog_cc_c99=no
3758ac_save_CC=$CC
3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761#include <stdarg.h>
3762#include <stdbool.h>
3763#include <stdlib.h>
3764#include <wchar.h>
3765#include <stdio.h>
3766
3767// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3768#define debug(...) fprintf (stderr, __VA_ARGS__)
3769#define showlist(...) puts (#__VA_ARGS__)
3770#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3771static void
3772test_varargs_macros (void)
3773{
3774  int x = 1234;
3775  int y = 5678;
3776  debug ("Flag");
3777  debug ("X = %d\n", x);
3778  showlist (The first, second, and third items.);
3779  report (x>y, "x is %d but y is %d", x, y);
3780}
3781
3782// Check long long types.
3783#define BIG64 18446744073709551615ull
3784#define BIG32 4294967295ul
3785#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3786#if !BIG_OK
3787  your preprocessor is broken;
3788#endif
3789#if BIG_OK
3790#else
3791  your preprocessor is broken;
3792#endif
3793static long long int bignum = -9223372036854775807LL;
3794static unsigned long long int ubignum = BIG64;
3795
3796struct incomplete_array
3797{
3798  int datasize;
3799  double data[];
3800};
3801
3802struct named_init {
3803  int number;
3804  const wchar_t *name;
3805  double average;
3806};
3807
3808typedef const char *ccp;
3809
3810static inline int
3811test_restrict (ccp restrict text)
3812{
3813  // See if C++-style comments work.
3814  // Iterate through items via the restricted pointer.
3815  // Also check for declarations in for loops.
3816  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3817    continue;
3818  return 0;
3819}
3820
3821// Check varargs and va_copy.
3822static void
3823test_varargs (const char *format, ...)
3824{
3825  va_list args;
3826  va_start (args, format);
3827  va_list args_copy;
3828  va_copy (args_copy, args);
3829
3830  const char *str;
3831  int number;
3832  float fnumber;
3833
3834  while (*format)
3835    {
3836      switch (*format++)
3837	{
3838	case 's': // string
3839	  str = va_arg (args_copy, const char *);
3840	  break;
3841	case 'd': // int
3842	  number = va_arg (args_copy, int);
3843	  break;
3844	case 'f': // float
3845	  fnumber = va_arg (args_copy, double);
3846	  break;
3847	default:
3848	  break;
3849	}
3850    }
3851  va_end (args_copy);
3852  va_end (args);
3853}
3854
3855int
3856main ()
3857{
3858
3859  // Check bool.
3860  _Bool success = false;
3861
3862  // Check restrict.
3863  if (test_restrict ("String literal") == 0)
3864    success = true;
3865  char *restrict newvar = "Another string";
3866
3867  // Check varargs.
3868  test_varargs ("s, d' f .", "string", 65, 34.234);
3869  test_varargs_macros ();
3870
3871  // Check flexible array members.
3872  struct incomplete_array *ia =
3873    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3874  ia->datasize = 10;
3875  for (int i = 0; i < ia->datasize; ++i)
3876    ia->data[i] = i * 1.234;
3877
3878  // Check named initializers.
3879  struct named_init ni = {
3880    .number = 34,
3881    .name = L"Test wide string",
3882    .average = 543.34343,
3883  };
3884
3885  ni.number = 58;
3886
3887  int dynamic_array[ni.number];
3888  dynamic_array[ni.number - 1] = 543;
3889
3890  // work around unused variable warnings
3891  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3892	  || dynamic_array[ni.number - 1] != 543);
3893
3894  ;
3895  return 0;
3896}
3897_ACEOF
3898for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3899do
3900  CC="$ac_save_CC $ac_arg"
3901  if ac_fn_c_try_compile "$LINENO"; then :
3902  ac_cv_prog_cc_c99=$ac_arg
3903fi
3904rm -f core conftest.err conftest.$ac_objext
3905  test "x$ac_cv_prog_cc_c99" != "xno" && break
3906done
3907rm -f conftest.$ac_ext
3908CC=$ac_save_CC
3909
3910fi
3911# AC_CACHE_VAL
3912case "x$ac_cv_prog_cc_c99" in
3913  x)
3914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3915$as_echo "none needed" >&6; } ;;
3916  xno)
3917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3918$as_echo "unsupported" >&6; } ;;
3919  *)
3920    CC="$CC $ac_cv_prog_cc_c99"
3921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3922$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3923esac
3924if test "x$ac_cv_prog_cc_c99" != xno; then :
3925
3926fi
3927
3928
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3936$as_echo_n "checking how to run the C preprocessor... " >&6; }
3937# On Suns, sometimes $CPP names a directory.
3938if test -n "$CPP" && test -d "$CPP"; then
3939  CPP=
3940fi
3941if test -z "$CPP"; then
3942  if ${ac_cv_prog_CPP+:} false; then :
3943  $as_echo_n "(cached) " >&6
3944else
3945      # Double quotes because CPP needs to be expanded
3946    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3947    do
3948      ac_preproc_ok=false
3949for ac_c_preproc_warn_flag in '' yes
3950do
3951  # Use a header file that comes with gcc, so configuring glibc
3952  # with a fresh cross-compiler works.
3953  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954  # <limits.h> exists even on freestanding compilers.
3955  # On the NeXT, cc -E runs the code through the compiler's parser,
3956  # not just through cpp. "Syntax error" is here to catch this case.
3957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959#ifdef __STDC__
3960# include <limits.h>
3961#else
3962# include <assert.h>
3963#endif
3964		     Syntax error
3965_ACEOF
3966if ac_fn_c_try_cpp "$LINENO"; then :
3967
3968else
3969  # Broken: fails on valid input.
3970continue
3971fi
3972rm -f conftest.err conftest.i conftest.$ac_ext
3973
3974  # OK, works on sane cases.  Now check whether nonexistent headers
3975  # can be detected and how.
3976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978#include <ac_nonexistent.h>
3979_ACEOF
3980if ac_fn_c_try_cpp "$LINENO"; then :
3981  # Broken: success on invalid input.
3982continue
3983else
3984  # Passes both tests.
3985ac_preproc_ok=:
3986break
3987fi
3988rm -f conftest.err conftest.i conftest.$ac_ext
3989
3990done
3991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3992rm -f conftest.i conftest.err conftest.$ac_ext
3993if $ac_preproc_ok; then :
3994  break
3995fi
3996
3997    done
3998    ac_cv_prog_CPP=$CPP
3999
4000fi
4001  CPP=$ac_cv_prog_CPP
4002else
4003  ac_cv_prog_CPP=$CPP
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4006$as_echo "$CPP" >&6; }
4007ac_preproc_ok=false
4008for ac_c_preproc_warn_flag in '' yes
4009do
4010  # Use a header file that comes with gcc, so configuring glibc
4011  # with a fresh cross-compiler works.
4012  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4013  # <limits.h> exists even on freestanding compilers.
4014  # On the NeXT, cc -E runs the code through the compiler's parser,
4015  # not just through cpp. "Syntax error" is here to catch this case.
4016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018#ifdef __STDC__
4019# include <limits.h>
4020#else
4021# include <assert.h>
4022#endif
4023		     Syntax error
4024_ACEOF
4025if ac_fn_c_try_cpp "$LINENO"; then :
4026
4027else
4028  # Broken: fails on valid input.
4029continue
4030fi
4031rm -f conftest.err conftest.i conftest.$ac_ext
4032
4033  # OK, works on sane cases.  Now check whether nonexistent headers
4034  # can be detected and how.
4035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h.  */
4037#include <ac_nonexistent.h>
4038_ACEOF
4039if ac_fn_c_try_cpp "$LINENO"; then :
4040  # Broken: success on invalid input.
4041continue
4042else
4043  # Passes both tests.
4044ac_preproc_ok=:
4045break
4046fi
4047rm -f conftest.err conftest.i conftest.$ac_ext
4048
4049done
4050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4051rm -f conftest.i conftest.err conftest.$ac_ext
4052if $ac_preproc_ok; then :
4053
4054else
4055  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4058See \`config.log' for more details" "$LINENO" 5; }
4059fi
4060
4061ac_ext=c
4062ac_cpp='$CPP $CPPFLAGS'
4063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066
4067
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4069$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4070if ${ac_cv_path_GREP+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  if test -z "$GREP"; then
4074  ac_path_GREP_found=false
4075  # Loop through the user's path and test for each of PROGNAME-LIST
4076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081    for ac_prog in grep ggrep; do
4082    for ac_exec_ext in '' $ac_executable_extensions; do
4083      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084      as_fn_executable_p "$ac_path_GREP" || continue
4085# Check for GNU ac_path_GREP and select it if it is found.
4086  # Check for GNU $ac_path_GREP
4087case `"$ac_path_GREP" --version 2>&1` in
4088*GNU*)
4089  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4090*)
4091  ac_count=0
4092  $as_echo_n 0123456789 >"conftest.in"
4093  while :
4094  do
4095    cat "conftest.in" "conftest.in" >"conftest.tmp"
4096    mv "conftest.tmp" "conftest.in"
4097    cp "conftest.in" "conftest.nl"
4098    $as_echo 'GREP' >> "conftest.nl"
4099    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101    as_fn_arith $ac_count + 1 && ac_count=$as_val
4102    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103      # Best one so far, save it but keep looking for a better one
4104      ac_cv_path_GREP="$ac_path_GREP"
4105      ac_path_GREP_max=$ac_count
4106    fi
4107    # 10*(2^10) chars as input seems more than enough
4108    test $ac_count -gt 10 && break
4109  done
4110  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111esac
4112
4113      $ac_path_GREP_found && break 3
4114    done
4115  done
4116  done
4117IFS=$as_save_IFS
4118  if test -z "$ac_cv_path_GREP"; then
4119    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4120  fi
4121else
4122  ac_cv_path_GREP=$GREP
4123fi
4124
4125fi
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4127$as_echo "$ac_cv_path_GREP" >&6; }
4128 GREP="$ac_cv_path_GREP"
4129
4130
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4132$as_echo_n "checking for egrep... " >&6; }
4133if ${ac_cv_path_EGREP+:} false; then :
4134  $as_echo_n "(cached) " >&6
4135else
4136  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4137   then ac_cv_path_EGREP="$GREP -E"
4138   else
4139     if test -z "$EGREP"; then
4140  ac_path_EGREP_found=false
4141  # Loop through the user's path and test for each of PROGNAME-LIST
4142  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4144do
4145  IFS=$as_save_IFS
4146  test -z "$as_dir" && as_dir=.
4147    for ac_prog in egrep; do
4148    for ac_exec_ext in '' $ac_executable_extensions; do
4149      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4150      as_fn_executable_p "$ac_path_EGREP" || continue
4151# Check for GNU ac_path_EGREP and select it if it is found.
4152  # Check for GNU $ac_path_EGREP
4153case `"$ac_path_EGREP" --version 2>&1` in
4154*GNU*)
4155  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4156*)
4157  ac_count=0
4158  $as_echo_n 0123456789 >"conftest.in"
4159  while :
4160  do
4161    cat "conftest.in" "conftest.in" >"conftest.tmp"
4162    mv "conftest.tmp" "conftest.in"
4163    cp "conftest.in" "conftest.nl"
4164    $as_echo 'EGREP' >> "conftest.nl"
4165    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167    as_fn_arith $ac_count + 1 && ac_count=$as_val
4168    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4169      # Best one so far, save it but keep looking for a better one
4170      ac_cv_path_EGREP="$ac_path_EGREP"
4171      ac_path_EGREP_max=$ac_count
4172    fi
4173    # 10*(2^10) chars as input seems more than enough
4174    test $ac_count -gt 10 && break
4175  done
4176  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177esac
4178
4179      $ac_path_EGREP_found && break 3
4180    done
4181  done
4182  done
4183IFS=$as_save_IFS
4184  if test -z "$ac_cv_path_EGREP"; then
4185    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4186  fi
4187else
4188  ac_cv_path_EGREP=$EGREP
4189fi
4190
4191   fi
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4194$as_echo "$ac_cv_path_EGREP" >&6; }
4195 EGREP="$ac_cv_path_EGREP"
4196
4197
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4199$as_echo_n "checking for ANSI C header files... " >&6; }
4200if ${ac_cv_header_stdc+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205#include <stdlib.h>
4206#include <stdarg.h>
4207#include <string.h>
4208#include <float.h>
4209
4210int
4211main ()
4212{
4213
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218if ac_fn_c_try_compile "$LINENO"; then :
4219  ac_cv_header_stdc=yes
4220else
4221  ac_cv_header_stdc=no
4222fi
4223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224
4225if test $ac_cv_header_stdc = yes; then
4226  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229#include <string.h>
4230
4231_ACEOF
4232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233  $EGREP "memchr" >/dev/null 2>&1; then :
4234
4235else
4236  ac_cv_header_stdc=no
4237fi
4238rm -f conftest*
4239
4240fi
4241
4242if test $ac_cv_header_stdc = yes; then
4243  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h.  */
4246#include <stdlib.h>
4247
4248_ACEOF
4249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250  $EGREP "free" >/dev/null 2>&1; then :
4251
4252else
4253  ac_cv_header_stdc=no
4254fi
4255rm -f conftest*
4256
4257fi
4258
4259if test $ac_cv_header_stdc = yes; then
4260  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4261  if test "$cross_compiling" = yes; then :
4262  :
4263else
4264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h.  */
4266#include <ctype.h>
4267#include <stdlib.h>
4268#if ((' ' & 0x0FF) == 0x020)
4269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4271#else
4272# define ISLOWER(c) \
4273		   (('a' <= (c) && (c) <= 'i') \
4274		     || ('j' <= (c) && (c) <= 'r') \
4275		     || ('s' <= (c) && (c) <= 'z'))
4276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4277#endif
4278
4279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4280int
4281main ()
4282{
4283  int i;
4284  for (i = 0; i < 256; i++)
4285    if (XOR (islower (i), ISLOWER (i))
4286	|| toupper (i) != TOUPPER (i))
4287      return 2;
4288  return 0;
4289}
4290_ACEOF
4291if ac_fn_c_try_run "$LINENO"; then :
4292
4293else
4294  ac_cv_header_stdc=no
4295fi
4296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4297  conftest.$ac_objext conftest.beam conftest.$ac_ext
4298fi
4299
4300fi
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4303$as_echo "$ac_cv_header_stdc" >&6; }
4304if test $ac_cv_header_stdc = yes; then
4305
4306$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4307
4308fi
4309
4310# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312		  inttypes.h stdint.h unistd.h
4313do :
4314  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4316"
4317if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4318  cat >>confdefs.h <<_ACEOF
4319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4320_ACEOF
4321
4322fi
4323
4324done
4325
4326
4327
4328
4329
4330
4331ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4332if test "x$ac_cv_have_decl___clang__" = xyes; then :
4333  CLANGCC="yes"
4334else
4335  CLANGCC="no"
4336fi
4337
4338ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4339if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4340  INTELCC="yes"
4341else
4342  INTELCC="no"
4343fi
4344
4345ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4346if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4347  SUNCC="yes"
4348else
4349  SUNCC="no"
4350fi
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4361	if test -n "$ac_tool_prefix"; then
4362  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4363set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365$as_echo_n "checking for $ac_word... " >&6; }
4366if ${ac_cv_path_PKG_CONFIG+:} false; then :
4367  $as_echo_n "(cached) " >&6
4368else
4369  case $PKG_CONFIG in
4370  [\\/]* | ?:[\\/]*)
4371  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4372  ;;
4373  *)
4374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377  IFS=$as_save_IFS
4378  test -z "$as_dir" && as_dir=.
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389  ;;
4390esac
4391fi
4392PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4393if test -n "$PKG_CONFIG"; then
4394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4395$as_echo "$PKG_CONFIG" >&6; }
4396else
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398$as_echo "no" >&6; }
4399fi
4400
4401
4402fi
4403if test -z "$ac_cv_path_PKG_CONFIG"; then
4404  ac_pt_PKG_CONFIG=$PKG_CONFIG
4405  # Extract the first word of "pkg-config", so it can be a program name with args.
4406set dummy pkg-config; ac_word=$2
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408$as_echo_n "checking for $ac_word... " >&6; }
4409if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  case $ac_pt_PKG_CONFIG in
4413  [\\/]* | ?:[\\/]*)
4414  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4415  ;;
4416  *)
4417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420  IFS=$as_save_IFS
4421  test -z "$as_dir" && as_dir=.
4422    for ac_exec_ext in '' $ac_executable_extensions; do
4423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426    break 2
4427  fi
4428done
4429  done
4430IFS=$as_save_IFS
4431
4432  ;;
4433esac
4434fi
4435ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4436if test -n "$ac_pt_PKG_CONFIG"; then
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4438$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4439else
4440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442fi
4443
4444  if test "x$ac_pt_PKG_CONFIG" = x; then
4445    PKG_CONFIG=""
4446  else
4447    case $cross_compiling:$ac_tool_warned in
4448yes:)
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4451ac_tool_warned=yes ;;
4452esac
4453    PKG_CONFIG=$ac_pt_PKG_CONFIG
4454  fi
4455else
4456  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4457fi
4458
4459fi
4460if test -n "$PKG_CONFIG"; then
4461	_pkg_min_version=0.9.0
4462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4463$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4464	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4466$as_echo "yes" >&6; }
4467	else
4468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469$as_echo "no" >&6; }
4470		PKG_CONFIG=""
4471	fi
4472fi
4473# Make sure we can run config.sub.
4474$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4475  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4476
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4478$as_echo_n "checking build system type... " >&6; }
4479if ${ac_cv_build+:} false; then :
4480  $as_echo_n "(cached) " >&6
4481else
4482  ac_build_alias=$build_alias
4483test "x$ac_build_alias" = x &&
4484  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4485test "x$ac_build_alias" = x &&
4486  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4487ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4488  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4489
4490fi
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4492$as_echo "$ac_cv_build" >&6; }
4493case $ac_cv_build in
4494*-*-*) ;;
4495*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4496esac
4497build=$ac_cv_build
4498ac_save_IFS=$IFS; IFS='-'
4499set x $ac_cv_build
4500shift
4501build_cpu=$1
4502build_vendor=$2
4503shift; shift
4504# Remember, the first character of IFS is used to create $*,
4505# except with old shells:
4506build_os=$*
4507IFS=$ac_save_IFS
4508case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4509
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4512$as_echo_n "checking host system type... " >&6; }
4513if ${ac_cv_host+:} false; then :
4514  $as_echo_n "(cached) " >&6
4515else
4516  if test "x$host_alias" = x; then
4517  ac_cv_host=$ac_cv_build
4518else
4519  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4520    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4521fi
4522
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4525$as_echo "$ac_cv_host" >&6; }
4526case $ac_cv_host in
4527*-*-*) ;;
4528*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4529esac
4530host=$ac_cv_host
4531ac_save_IFS=$IFS; IFS='-'
4532set x $ac_cv_host
4533shift
4534host_cpu=$1
4535host_vendor=$2
4536shift; shift
4537# Remember, the first character of IFS is used to create $*,
4538# except with old shells:
4539host_os=$*
4540IFS=$ac_save_IFS
4541case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4542
4543
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4545$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4546if ${ac_cv_path_SED+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4550     for ac_i in 1 2 3 4 5 6 7; do
4551       ac_script="$ac_script$as_nl$ac_script"
4552     done
4553     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4554     { ac_script=; unset ac_script;}
4555     if test -z "$SED"; then
4556  ac_path_SED_found=false
4557  # Loop through the user's path and test for each of PROGNAME-LIST
4558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561  IFS=$as_save_IFS
4562  test -z "$as_dir" && as_dir=.
4563    for ac_prog in sed gsed; do
4564    for ac_exec_ext in '' $ac_executable_extensions; do
4565      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4566      as_fn_executable_p "$ac_path_SED" || continue
4567# Check for GNU ac_path_SED and select it if it is found.
4568  # Check for GNU $ac_path_SED
4569case `"$ac_path_SED" --version 2>&1` in
4570*GNU*)
4571  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4572*)
4573  ac_count=0
4574  $as_echo_n 0123456789 >"conftest.in"
4575  while :
4576  do
4577    cat "conftest.in" "conftest.in" >"conftest.tmp"
4578    mv "conftest.tmp" "conftest.in"
4579    cp "conftest.in" "conftest.nl"
4580    $as_echo '' >> "conftest.nl"
4581    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583    as_fn_arith $ac_count + 1 && ac_count=$as_val
4584    if test $ac_count -gt ${ac_path_SED_max-0}; then
4585      # Best one so far, save it but keep looking for a better one
4586      ac_cv_path_SED="$ac_path_SED"
4587      ac_path_SED_max=$ac_count
4588    fi
4589    # 10*(2^10) chars as input seems more than enough
4590    test $ac_count -gt 10 && break
4591  done
4592  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593esac
4594
4595      $ac_path_SED_found && break 3
4596    done
4597  done
4598  done
4599IFS=$as_save_IFS
4600  if test -z "$ac_cv_path_SED"; then
4601    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4602  fi
4603else
4604  ac_cv_path_SED=$SED
4605fi
4606
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4609$as_echo "$ac_cv_path_SED" >&6; }
4610 SED="$ac_cv_path_SED"
4611  rm -f conftest.sed
4612
4613
4614
4615
4616
4617
4618# Check whether --enable-selective-werror was given.
4619if test "${enable_selective_werror+set}" = set; then :
4620  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4621else
4622  SELECTIVE_WERROR=yes
4623fi
4624
4625
4626
4627
4628
4629# -v is too short to test reliably with XORG_TESTSET_CFLAG
4630if test "x$SUNCC" = "xyes"; then
4631    BASE_CFLAGS="-v"
4632else
4633    BASE_CFLAGS=""
4634fi
4635
4636# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650xorg_testset_save_CFLAGS="$CFLAGS"
4651
4652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661int i;
4662_ACEOF
4663if ac_fn_c_try_compile "$LINENO"; then :
4664  xorg_cv_cc_flag_unknown_warning_option=yes
4665else
4666  xorg_cv_cc_flag_unknown_warning_option=no
4667fi
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4673	CFLAGS="$xorg_testset_save_CFLAGS"
4674fi
4675
4676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4679	fi
4680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688int i;
4689_ACEOF
4690if ac_fn_c_try_compile "$LINENO"; then :
4691  xorg_cv_cc_flag_unused_command_line_argument=yes
4692else
4693  xorg_cv_cc_flag_unused_command_line_argument=no
4694fi
4695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696fi
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4700	CFLAGS="$xorg_testset_save_CFLAGS"
4701fi
4702
4703found="no"
4704
4705	if test $found = "no" ; then
4706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4708		fi
4709
4710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4712		fi
4713
4714		CFLAGS="$CFLAGS -Wall"
4715
4716		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4717$as_echo_n "checking if $CC supports -Wall... " >&6; }
4718		cacheid=xorg_cv_cc_flag__Wall
4719		if eval \${$cacheid+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h.  */
4724int i;
4725int
4726main ()
4727{
4728
4729  ;
4730  return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_link "$LINENO"; then :
4734  eval $cacheid=yes
4735else
4736  eval $cacheid=no
4737fi
4738rm -f core conftest.err conftest.$ac_objext \
4739    conftest$ac_exeext conftest.$ac_ext
4740fi
4741
4742
4743		CFLAGS="$xorg_testset_save_CFLAGS"
4744
4745		eval supported=\$$cacheid
4746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4747$as_echo "$supported" >&6; }
4748		if test "$supported" = "yes" ; then
4749			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4750			found="yes"
4751		fi
4752	fi
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768xorg_testset_save_CFLAGS="$CFLAGS"
4769
4770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h.  */
4779int i;
4780_ACEOF
4781if ac_fn_c_try_compile "$LINENO"; then :
4782  xorg_cv_cc_flag_unknown_warning_option=yes
4783else
4784  xorg_cv_cc_flag_unknown_warning_option=no
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4791	CFLAGS="$xorg_testset_save_CFLAGS"
4792fi
4793
4794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4797	fi
4798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h.  */
4806int i;
4807_ACEOF
4808if ac_fn_c_try_compile "$LINENO"; then :
4809  xorg_cv_cc_flag_unused_command_line_argument=yes
4810else
4811  xorg_cv_cc_flag_unused_command_line_argument=no
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4818	CFLAGS="$xorg_testset_save_CFLAGS"
4819fi
4820
4821found="no"
4822
4823	if test $found = "no" ; then
4824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4826		fi
4827
4828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4830		fi
4831
4832		CFLAGS="$CFLAGS -Wpointer-arith"
4833
4834		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4835$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4836		cacheid=xorg_cv_cc_flag__Wpointer_arith
4837		if eval \${$cacheid+:} false; then :
4838  $as_echo_n "(cached) " >&6
4839else
4840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h.  */
4842int i;
4843int
4844main ()
4845{
4846
4847  ;
4848  return 0;
4849}
4850_ACEOF
4851if ac_fn_c_try_link "$LINENO"; then :
4852  eval $cacheid=yes
4853else
4854  eval $cacheid=no
4855fi
4856rm -f core conftest.err conftest.$ac_objext \
4857    conftest$ac_exeext conftest.$ac_ext
4858fi
4859
4860
4861		CFLAGS="$xorg_testset_save_CFLAGS"
4862
4863		eval supported=\$$cacheid
4864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4865$as_echo "$supported" >&6; }
4866		if test "$supported" = "yes" ; then
4867			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4868			found="yes"
4869		fi
4870	fi
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886xorg_testset_save_CFLAGS="$CFLAGS"
4887
4888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h.  */
4897int i;
4898_ACEOF
4899if ac_fn_c_try_compile "$LINENO"; then :
4900  xorg_cv_cc_flag_unknown_warning_option=yes
4901else
4902  xorg_cv_cc_flag_unknown_warning_option=no
4903fi
4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905fi
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4908	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4909	CFLAGS="$xorg_testset_save_CFLAGS"
4910fi
4911
4912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4913	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4914		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4915	fi
4916	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924int i;
4925_ACEOF
4926if ac_fn_c_try_compile "$LINENO"; then :
4927  xorg_cv_cc_flag_unused_command_line_argument=yes
4928else
4929  xorg_cv_cc_flag_unused_command_line_argument=no
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4936	CFLAGS="$xorg_testset_save_CFLAGS"
4937fi
4938
4939found="no"
4940
4941	if test $found = "no" ; then
4942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4944		fi
4945
4946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4948		fi
4949
4950		CFLAGS="$CFLAGS -Wmissing-declarations"
4951
4952		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4953$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4954		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4955		if eval \${$cacheid+:} false; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960int i;
4961int
4962main ()
4963{
4964
4965  ;
4966  return 0;
4967}
4968_ACEOF
4969if ac_fn_c_try_link "$LINENO"; then :
4970  eval $cacheid=yes
4971else
4972  eval $cacheid=no
4973fi
4974rm -f core conftest.err conftest.$ac_objext \
4975    conftest$ac_exeext conftest.$ac_ext
4976fi
4977
4978
4979		CFLAGS="$xorg_testset_save_CFLAGS"
4980
4981		eval supported=\$$cacheid
4982		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4983$as_echo "$supported" >&6; }
4984		if test "$supported" = "yes" ; then
4985			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4986			found="yes"
4987		fi
4988	fi
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004xorg_testset_save_CFLAGS="$CFLAGS"
5005
5006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015int i;
5016_ACEOF
5017if ac_fn_c_try_compile "$LINENO"; then :
5018  xorg_cv_cc_flag_unknown_warning_option=yes
5019else
5020  xorg_cv_cc_flag_unknown_warning_option=no
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023fi
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5026	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5027	CFLAGS="$xorg_testset_save_CFLAGS"
5028fi
5029
5030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5031	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5032		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033	fi
5034	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h.  */
5042int i;
5043_ACEOF
5044if ac_fn_c_try_compile "$LINENO"; then :
5045  xorg_cv_cc_flag_unused_command_line_argument=yes
5046else
5047  xorg_cv_cc_flag_unused_command_line_argument=no
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050fi
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5054	CFLAGS="$xorg_testset_save_CFLAGS"
5055fi
5056
5057found="no"
5058
5059	if test $found = "no" ; then
5060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5062		fi
5063
5064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5066		fi
5067
5068		CFLAGS="$CFLAGS -Wformat=2"
5069
5070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5071$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5072		cacheid=xorg_cv_cc_flag__Wformat_2
5073		if eval \${$cacheid+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078int i;
5079int
5080main ()
5081{
5082
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087if ac_fn_c_try_link "$LINENO"; then :
5088  eval $cacheid=yes
5089else
5090  eval $cacheid=no
5091fi
5092rm -f core conftest.err conftest.$ac_objext \
5093    conftest$ac_exeext conftest.$ac_ext
5094fi
5095
5096
5097		CFLAGS="$xorg_testset_save_CFLAGS"
5098
5099		eval supported=\$$cacheid
5100		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5101$as_echo "$supported" >&6; }
5102		if test "$supported" = "yes" ; then
5103			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5104			found="yes"
5105		fi
5106	fi
5107
5108	if test $found = "no" ; then
5109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5111		fi
5112
5113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5115		fi
5116
5117		CFLAGS="$CFLAGS -Wformat"
5118
5119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5120$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5121		cacheid=xorg_cv_cc_flag__Wformat
5122		if eval \${$cacheid+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h.  */
5127int i;
5128int
5129main ()
5130{
5131
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136if ac_fn_c_try_link "$LINENO"; then :
5137  eval $cacheid=yes
5138else
5139  eval $cacheid=no
5140fi
5141rm -f core conftest.err conftest.$ac_objext \
5142    conftest$ac_exeext conftest.$ac_ext
5143fi
5144
5145
5146		CFLAGS="$xorg_testset_save_CFLAGS"
5147
5148		eval supported=\$$cacheid
5149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5150$as_echo "$supported" >&6; }
5151		if test "$supported" = "yes" ; then
5152			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5153			found="yes"
5154		fi
5155	fi
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173xorg_testset_save_CFLAGS="$CFLAGS"
5174
5175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184int i;
5185_ACEOF
5186if ac_fn_c_try_compile "$LINENO"; then :
5187  xorg_cv_cc_flag_unknown_warning_option=yes
5188else
5189  xorg_cv_cc_flag_unknown_warning_option=no
5190fi
5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192fi
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5196	CFLAGS="$xorg_testset_save_CFLAGS"
5197fi
5198
5199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5202	fi
5203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212_ACEOF
5213if ac_fn_c_try_compile "$LINENO"; then :
5214  xorg_cv_cc_flag_unused_command_line_argument=yes
5215else
5216  xorg_cv_cc_flag_unused_command_line_argument=no
5217fi
5218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219fi
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5223	CFLAGS="$xorg_testset_save_CFLAGS"
5224fi
5225
5226found="no"
5227
5228	if test $found = "no" ; then
5229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231		fi
5232
5233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5235		fi
5236
5237		CFLAGS="$CFLAGS -Wstrict-prototypes"
5238
5239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5240$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5241		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5242		if eval \${$cacheid+:} false; then :
5243  $as_echo_n "(cached) " >&6
5244else
5245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246/* end confdefs.h.  */
5247int i;
5248int
5249main ()
5250{
5251
5252  ;
5253  return 0;
5254}
5255_ACEOF
5256if ac_fn_c_try_link "$LINENO"; then :
5257  eval $cacheid=yes
5258else
5259  eval $cacheid=no
5260fi
5261rm -f core conftest.err conftest.$ac_objext \
5262    conftest$ac_exeext conftest.$ac_ext
5263fi
5264
5265
5266		CFLAGS="$xorg_testset_save_CFLAGS"
5267
5268		eval supported=\$$cacheid
5269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5270$as_echo "$supported" >&6; }
5271		if test "$supported" = "yes" ; then
5272			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5273			found="yes"
5274		fi
5275	fi
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291xorg_testset_save_CFLAGS="$CFLAGS"
5292
5293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h.  */
5302int i;
5303_ACEOF
5304if ac_fn_c_try_compile "$LINENO"; then :
5305  xorg_cv_cc_flag_unknown_warning_option=yes
5306else
5307  xorg_cv_cc_flag_unknown_warning_option=no
5308fi
5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5314	CFLAGS="$xorg_testset_save_CFLAGS"
5315fi
5316
5317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5320	fi
5321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329int i;
5330_ACEOF
5331if ac_fn_c_try_compile "$LINENO"; then :
5332  xorg_cv_cc_flag_unused_command_line_argument=yes
5333else
5334  xorg_cv_cc_flag_unused_command_line_argument=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337fi
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5341	CFLAGS="$xorg_testset_save_CFLAGS"
5342fi
5343
5344found="no"
5345
5346	if test $found = "no" ; then
5347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5349		fi
5350
5351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5353		fi
5354
5355		CFLAGS="$CFLAGS -Wmissing-prototypes"
5356
5357		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5358$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5359		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5360		if eval \${$cacheid+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h.  */
5365int i;
5366int
5367main ()
5368{
5369
5370  ;
5371  return 0;
5372}
5373_ACEOF
5374if ac_fn_c_try_link "$LINENO"; then :
5375  eval $cacheid=yes
5376else
5377  eval $cacheid=no
5378fi
5379rm -f core conftest.err conftest.$ac_objext \
5380    conftest$ac_exeext conftest.$ac_ext
5381fi
5382
5383
5384		CFLAGS="$xorg_testset_save_CFLAGS"
5385
5386		eval supported=\$$cacheid
5387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5388$as_echo "$supported" >&6; }
5389		if test "$supported" = "yes" ; then
5390			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5391			found="yes"
5392		fi
5393	fi
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409xorg_testset_save_CFLAGS="$CFLAGS"
5410
5411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420int i;
5421_ACEOF
5422if ac_fn_c_try_compile "$LINENO"; then :
5423  xorg_cv_cc_flag_unknown_warning_option=yes
5424else
5425  xorg_cv_cc_flag_unknown_warning_option=no
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5431	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5432	CFLAGS="$xorg_testset_save_CFLAGS"
5433fi
5434
5435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5436	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438	fi
5439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h.  */
5447int i;
5448_ACEOF
5449if ac_fn_c_try_compile "$LINENO"; then :
5450  xorg_cv_cc_flag_unused_command_line_argument=yes
5451else
5452  xorg_cv_cc_flag_unused_command_line_argument=no
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5459	CFLAGS="$xorg_testset_save_CFLAGS"
5460fi
5461
5462found="no"
5463
5464	if test $found = "no" ; then
5465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5467		fi
5468
5469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5471		fi
5472
5473		CFLAGS="$CFLAGS -Wnested-externs"
5474
5475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5476$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5477		cacheid=xorg_cv_cc_flag__Wnested_externs
5478		if eval \${$cacheid+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483int i;
5484int
5485main ()
5486{
5487
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492if ac_fn_c_try_link "$LINENO"; then :
5493  eval $cacheid=yes
5494else
5495  eval $cacheid=no
5496fi
5497rm -f core conftest.err conftest.$ac_objext \
5498    conftest$ac_exeext conftest.$ac_ext
5499fi
5500
5501
5502		CFLAGS="$xorg_testset_save_CFLAGS"
5503
5504		eval supported=\$$cacheid
5505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5506$as_echo "$supported" >&6; }
5507		if test "$supported" = "yes" ; then
5508			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5509			found="yes"
5510		fi
5511	fi
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527xorg_testset_save_CFLAGS="$CFLAGS"
5528
5529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538int i;
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541  xorg_cv_cc_flag_unknown_warning_option=yes
5542else
5543  xorg_cv_cc_flag_unknown_warning_option=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5550	CFLAGS="$xorg_testset_save_CFLAGS"
5551fi
5552
5553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5556	fi
5557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565int i;
5566_ACEOF
5567if ac_fn_c_try_compile "$LINENO"; then :
5568  xorg_cv_cc_flag_unused_command_line_argument=yes
5569else
5570  xorg_cv_cc_flag_unused_command_line_argument=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5577	CFLAGS="$xorg_testset_save_CFLAGS"
5578fi
5579
5580found="no"
5581
5582	if test $found = "no" ; then
5583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585		fi
5586
5587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5589		fi
5590
5591		CFLAGS="$CFLAGS -Wbad-function-cast"
5592
5593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5594$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5595		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5596		if eval \${$cacheid+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h.  */
5601int i;
5602int
5603main ()
5604{
5605
5606  ;
5607  return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_link "$LINENO"; then :
5611  eval $cacheid=yes
5612else
5613  eval $cacheid=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext \
5616    conftest$ac_exeext conftest.$ac_ext
5617fi
5618
5619
5620		CFLAGS="$xorg_testset_save_CFLAGS"
5621
5622		eval supported=\$$cacheid
5623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5624$as_echo "$supported" >&6; }
5625		if test "$supported" = "yes" ; then
5626			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5627			found="yes"
5628		fi
5629	fi
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645xorg_testset_save_CFLAGS="$CFLAGS"
5646
5647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656int i;
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"; then :
5659  xorg_cv_cc_flag_unknown_warning_option=yes
5660else
5661  xorg_cv_cc_flag_unknown_warning_option=no
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5668	CFLAGS="$xorg_testset_save_CFLAGS"
5669fi
5670
5671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674	fi
5675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683int i;
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686  xorg_cv_cc_flag_unused_command_line_argument=yes
5687else
5688  xorg_cv_cc_flag_unused_command_line_argument=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5695	CFLAGS="$xorg_testset_save_CFLAGS"
5696fi
5697
5698found="no"
5699
5700	if test $found = "no" ; then
5701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703		fi
5704
5705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707		fi
5708
5709		CFLAGS="$CFLAGS -Wold-style-definition"
5710
5711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5712$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5713		cacheid=xorg_cv_cc_flag__Wold_style_definition
5714		if eval \${$cacheid+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720int
5721main ()
5722{
5723
5724  ;
5725  return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_link "$LINENO"; then :
5729  eval $cacheid=yes
5730else
5731  eval $cacheid=no
5732fi
5733rm -f core conftest.err conftest.$ac_objext \
5734    conftest$ac_exeext conftest.$ac_ext
5735fi
5736
5737
5738		CFLAGS="$xorg_testset_save_CFLAGS"
5739
5740		eval supported=\$$cacheid
5741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5742$as_echo "$supported" >&6; }
5743		if test "$supported" = "yes" ; then
5744			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5745			found="yes"
5746		fi
5747	fi
5748
5749	if test $found = "no" ; then
5750		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752		fi
5753
5754		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5756		fi
5757
5758		CFLAGS="$CFLAGS -fd"
5759
5760		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5761$as_echo_n "checking if $CC supports -fd... " >&6; }
5762		cacheid=xorg_cv_cc_flag__fd
5763		if eval \${$cacheid+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768int i;
5769int
5770main ()
5771{
5772
5773  ;
5774  return 0;
5775}
5776_ACEOF
5777if ac_fn_c_try_link "$LINENO"; then :
5778  eval $cacheid=yes
5779else
5780  eval $cacheid=no
5781fi
5782rm -f core conftest.err conftest.$ac_objext \
5783    conftest$ac_exeext conftest.$ac_ext
5784fi
5785
5786
5787		CFLAGS="$xorg_testset_save_CFLAGS"
5788
5789		eval supported=\$$cacheid
5790		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5791$as_echo "$supported" >&6; }
5792		if test "$supported" = "yes" ; then
5793			BASE_CFLAGS="$BASE_CFLAGS -fd"
5794			found="yes"
5795		fi
5796	fi
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812xorg_testset_save_CFLAGS="$CFLAGS"
5813
5814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823int i;
5824_ACEOF
5825if ac_fn_c_try_compile "$LINENO"; then :
5826  xorg_cv_cc_flag_unknown_warning_option=yes
5827else
5828  xorg_cv_cc_flag_unknown_warning_option=no
5829fi
5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5834	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5835	CFLAGS="$xorg_testset_save_CFLAGS"
5836fi
5837
5838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5839	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5840		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841	fi
5842	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5846  $as_echo_n "(cached) " >&6
5847else
5848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h.  */
5850int i;
5851_ACEOF
5852if ac_fn_c_try_compile "$LINENO"; then :
5853  xorg_cv_cc_flag_unused_command_line_argument=yes
5854else
5855  xorg_cv_cc_flag_unused_command_line_argument=no
5856fi
5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5861	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5862	CFLAGS="$xorg_testset_save_CFLAGS"
5863fi
5864
5865found="no"
5866
5867	if test $found = "no" ; then
5868		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5869			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5870		fi
5871
5872		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5873			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5874		fi
5875
5876		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5877
5878		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5879$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5880		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5881		if eval \${$cacheid+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886int i;
5887int
5888main ()
5889{
5890
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_link "$LINENO"; then :
5896  eval $cacheid=yes
5897else
5898  eval $cacheid=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext \
5901    conftest$ac_exeext conftest.$ac_ext
5902fi
5903
5904
5905		CFLAGS="$xorg_testset_save_CFLAGS"
5906
5907		eval supported=\$$cacheid
5908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5909$as_echo "$supported" >&6; }
5910		if test "$supported" = "yes" ; then
5911			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5912			found="yes"
5913		fi
5914	fi
5915
5916
5917
5918
5919
5920# This chunk adds additional warnings that could catch undesired effects.
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934xorg_testset_save_CFLAGS="$CFLAGS"
5935
5936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5941  $as_echo_n "(cached) " >&6
5942else
5943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h.  */
5945int i;
5946_ACEOF
5947if ac_fn_c_try_compile "$LINENO"; then :
5948  xorg_cv_cc_flag_unknown_warning_option=yes
5949else
5950  xorg_cv_cc_flag_unknown_warning_option=no
5951fi
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5957	CFLAGS="$xorg_testset_save_CFLAGS"
5958fi
5959
5960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963	fi
5964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972int i;
5973_ACEOF
5974if ac_fn_c_try_compile "$LINENO"; then :
5975  xorg_cv_cc_flag_unused_command_line_argument=yes
5976else
5977  xorg_cv_cc_flag_unused_command_line_argument=no
5978fi
5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980fi
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5984	CFLAGS="$xorg_testset_save_CFLAGS"
5985fi
5986
5987found="no"
5988
5989	if test $found = "no" ; then
5990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992		fi
5993
5994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996		fi
5997
5998		CFLAGS="$CFLAGS -Wunused"
5999
6000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6001$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6002		cacheid=xorg_cv_cc_flag__Wunused
6003		if eval \${$cacheid+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009int
6010main ()
6011{
6012
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_link "$LINENO"; then :
6018  eval $cacheid=yes
6019else
6020  eval $cacheid=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext \
6023    conftest$ac_exeext conftest.$ac_ext
6024fi
6025
6026
6027		CFLAGS="$xorg_testset_save_CFLAGS"
6028
6029		eval supported=\$$cacheid
6030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031$as_echo "$supported" >&6; }
6032		if test "$supported" = "yes" ; then
6033			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6034			found="yes"
6035		fi
6036	fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052xorg_testset_save_CFLAGS="$CFLAGS"
6053
6054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062/* end confdefs.h.  */
6063int i;
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066  xorg_cv_cc_flag_unknown_warning_option=yes
6067else
6068  xorg_cv_cc_flag_unknown_warning_option=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071fi
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6075	CFLAGS="$xorg_testset_save_CFLAGS"
6076fi
6077
6078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081	fi
6082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090int i;
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  xorg_cv_cc_flag_unused_command_line_argument=yes
6094else
6095  xorg_cv_cc_flag_unused_command_line_argument=no
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6102	CFLAGS="$xorg_testset_save_CFLAGS"
6103fi
6104
6105found="no"
6106
6107	if test $found = "no" ; then
6108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110		fi
6111
6112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114		fi
6115
6116		CFLAGS="$CFLAGS -Wuninitialized"
6117
6118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6119$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6120		cacheid=xorg_cv_cc_flag__Wuninitialized
6121		if eval \${$cacheid+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126int i;
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135if ac_fn_c_try_link "$LINENO"; then :
6136  eval $cacheid=yes
6137else
6138  eval $cacheid=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext \
6141    conftest$ac_exeext conftest.$ac_ext
6142fi
6143
6144
6145		CFLAGS="$xorg_testset_save_CFLAGS"
6146
6147		eval supported=\$$cacheid
6148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6149$as_echo "$supported" >&6; }
6150		if test "$supported" = "yes" ; then
6151			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6152			found="yes"
6153		fi
6154	fi
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170xorg_testset_save_CFLAGS="$CFLAGS"
6171
6172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181int i;
6182_ACEOF
6183if ac_fn_c_try_compile "$LINENO"; then :
6184  xorg_cv_cc_flag_unknown_warning_option=yes
6185else
6186  xorg_cv_cc_flag_unknown_warning_option=no
6187fi
6188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189fi
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6193	CFLAGS="$xorg_testset_save_CFLAGS"
6194fi
6195
6196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199	fi
6200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207/* end confdefs.h.  */
6208int i;
6209_ACEOF
6210if ac_fn_c_try_compile "$LINENO"; then :
6211  xorg_cv_cc_flag_unused_command_line_argument=yes
6212else
6213  xorg_cv_cc_flag_unused_command_line_argument=no
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6220	CFLAGS="$xorg_testset_save_CFLAGS"
6221fi
6222
6223found="no"
6224
6225	if test $found = "no" ; then
6226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6228		fi
6229
6230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232		fi
6233
6234		CFLAGS="$CFLAGS -Wshadow"
6235
6236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6237$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6238		cacheid=xorg_cv_cc_flag__Wshadow
6239		if eval \${$cacheid+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245int
6246main ()
6247{
6248
6249  ;
6250  return 0;
6251}
6252_ACEOF
6253if ac_fn_c_try_link "$LINENO"; then :
6254  eval $cacheid=yes
6255else
6256  eval $cacheid=no
6257fi
6258rm -f core conftest.err conftest.$ac_objext \
6259    conftest$ac_exeext conftest.$ac_ext
6260fi
6261
6262
6263		CFLAGS="$xorg_testset_save_CFLAGS"
6264
6265		eval supported=\$$cacheid
6266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6267$as_echo "$supported" >&6; }
6268		if test "$supported" = "yes" ; then
6269			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6270			found="yes"
6271		fi
6272	fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288xorg_testset_save_CFLAGS="$CFLAGS"
6289
6290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then :
6302  xorg_cv_cc_flag_unknown_warning_option=yes
6303else
6304  xorg_cv_cc_flag_unknown_warning_option=no
6305fi
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6311	CFLAGS="$xorg_testset_save_CFLAGS"
6312fi
6313
6314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317	fi
6318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326int i;
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"; then :
6329  xorg_cv_cc_flag_unused_command_line_argument=yes
6330else
6331  xorg_cv_cc_flag_unused_command_line_argument=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6338	CFLAGS="$xorg_testset_save_CFLAGS"
6339fi
6340
6341found="no"
6342
6343	if test $found = "no" ; then
6344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346		fi
6347
6348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350		fi
6351
6352		CFLAGS="$CFLAGS -Wmissing-noreturn"
6353
6354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6355$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6356		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6357		if eval \${$cacheid+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363int
6364main ()
6365{
6366
6367  ;
6368  return 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_link "$LINENO"; then :
6372  eval $cacheid=yes
6373else
6374  eval $cacheid=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377    conftest$ac_exeext conftest.$ac_ext
6378fi
6379
6380
6381		CFLAGS="$xorg_testset_save_CFLAGS"
6382
6383		eval supported=\$$cacheid
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385$as_echo "$supported" >&6; }
6386		if test "$supported" = "yes" ; then
6387			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6388			found="yes"
6389		fi
6390	fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406xorg_testset_save_CFLAGS="$CFLAGS"
6407
6408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417int i;
6418_ACEOF
6419if ac_fn_c_try_compile "$LINENO"; then :
6420  xorg_cv_cc_flag_unknown_warning_option=yes
6421else
6422  xorg_cv_cc_flag_unknown_warning_option=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6429	CFLAGS="$xorg_testset_save_CFLAGS"
6430fi
6431
6432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435	fi
6436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"; then :
6447  xorg_cv_cc_flag_unused_command_line_argument=yes
6448else
6449  xorg_cv_cc_flag_unused_command_line_argument=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6456	CFLAGS="$xorg_testset_save_CFLAGS"
6457fi
6458
6459found="no"
6460
6461	if test $found = "no" ; then
6462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464		fi
6465
6466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468		fi
6469
6470		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6471
6472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6473$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6474		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6475		if eval \${$cacheid+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481int
6482main ()
6483{
6484
6485  ;
6486  return 0;
6487}
6488_ACEOF
6489if ac_fn_c_try_link "$LINENO"; then :
6490  eval $cacheid=yes
6491else
6492  eval $cacheid=no
6493fi
6494rm -f core conftest.err conftest.$ac_objext \
6495    conftest$ac_exeext conftest.$ac_ext
6496fi
6497
6498
6499		CFLAGS="$xorg_testset_save_CFLAGS"
6500
6501		eval supported=\$$cacheid
6502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6503$as_echo "$supported" >&6; }
6504		if test "$supported" = "yes" ; then
6505			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6506			found="yes"
6507		fi
6508	fi
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524xorg_testset_save_CFLAGS="$CFLAGS"
6525
6526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535int i;
6536_ACEOF
6537if ac_fn_c_try_compile "$LINENO"; then :
6538  xorg_cv_cc_flag_unknown_warning_option=yes
6539else
6540  xorg_cv_cc_flag_unknown_warning_option=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6547	CFLAGS="$xorg_testset_save_CFLAGS"
6548fi
6549
6550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553	fi
6554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562int i;
6563_ACEOF
6564if ac_fn_c_try_compile "$LINENO"; then :
6565  xorg_cv_cc_flag_unused_command_line_argument=yes
6566else
6567  xorg_cv_cc_flag_unused_command_line_argument=no
6568fi
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6574	CFLAGS="$xorg_testset_save_CFLAGS"
6575fi
6576
6577found="no"
6578
6579	if test $found = "no" ; then
6580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582		fi
6583
6584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586		fi
6587
6588		CFLAGS="$CFLAGS -Wredundant-decls"
6589
6590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6591$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6592		cacheid=xorg_cv_cc_flag__Wredundant_decls
6593		if eval \${$cacheid+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598int i;
6599int
6600main ()
6601{
6602
6603  ;
6604  return 0;
6605}
6606_ACEOF
6607if ac_fn_c_try_link "$LINENO"; then :
6608  eval $cacheid=yes
6609else
6610  eval $cacheid=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext \
6613    conftest$ac_exeext conftest.$ac_ext
6614fi
6615
6616
6617		CFLAGS="$xorg_testset_save_CFLAGS"
6618
6619		eval supported=\$$cacheid
6620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6621$as_echo "$supported" >&6; }
6622		if test "$supported" = "yes" ; then
6623			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6624			found="yes"
6625		fi
6626	fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653int i;
6654_ACEOF
6655if ac_fn_c_try_compile "$LINENO"; then :
6656  xorg_cv_cc_flag_unknown_warning_option=yes
6657else
6658  xorg_cv_cc_flag_unknown_warning_option=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6665	CFLAGS="$xorg_testset_save_CFLAGS"
6666fi
6667
6668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671	fi
6672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680int i;
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"; then :
6683  xorg_cv_cc_flag_unused_command_line_argument=yes
6684else
6685  xorg_cv_cc_flag_unused_command_line_argument=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6692	CFLAGS="$xorg_testset_save_CFLAGS"
6693fi
6694
6695found="no"
6696
6697	if test $found = "no" ; then
6698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6700		fi
6701
6702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704		fi
6705
6706		CFLAGS="$CFLAGS -Wlogical-op"
6707
6708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6709$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6710		cacheid=xorg_cv_cc_flag__Wlogical_op
6711		if eval \${$cacheid+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716int i;
6717int
6718main ()
6719{
6720
6721  ;
6722  return 0;
6723}
6724_ACEOF
6725if ac_fn_c_try_link "$LINENO"; then :
6726  eval $cacheid=yes
6727else
6728  eval $cacheid=no
6729fi
6730rm -f core conftest.err conftest.$ac_objext \
6731    conftest$ac_exeext conftest.$ac_ext
6732fi
6733
6734
6735		CFLAGS="$xorg_testset_save_CFLAGS"
6736
6737		eval supported=\$$cacheid
6738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6739$as_echo "$supported" >&6; }
6740		if test "$supported" = "yes" ; then
6741			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6742			found="yes"
6743		fi
6744	fi
6745
6746
6747
6748# These are currently disabled because they are noisy.  They will be enabled
6749# in the future once the codebase is sufficiently modernized to silence
6750# them.  For now, I don't want them to drown out the other warnings.
6751# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6752# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6753# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6754
6755# Turn some warnings into errors, so we don't accidently get successful builds
6756# when there are problems that should be fixed.
6757
6758if test "x$SELECTIVE_WERROR" = "xyes" ; then
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786  xorg_cv_cc_flag_unknown_warning_option=yes
6787else
6788  xorg_cv_cc_flag_unknown_warning_option=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801	fi
6802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else
6815  xorg_cv_cc_flag_unused_command_line_argument=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825found="no"
6826
6827	if test $found = "no" ; then
6828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830		fi
6831
6832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834		fi
6835
6836		CFLAGS="$CFLAGS -Werror=implicit"
6837
6838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6839$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6840		cacheid=xorg_cv_cc_flag__Werror_implicit
6841		if eval \${$cacheid+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  eval $cacheid=yes
6857else
6858  eval $cacheid=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862fi
6863
6864
6865		CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867		eval supported=\$$cacheid
6868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869$as_echo "$supported" >&6; }
6870		if test "$supported" = "yes" ; then
6871			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6872			found="yes"
6873		fi
6874	fi
6875
6876	if test $found = "no" ; then
6877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6879		fi
6880
6881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883		fi
6884
6885		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6886
6887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6888$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6889		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6890		if eval \${$cacheid+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896int
6897main ()
6898{
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_link "$LINENO"; then :
6905  eval $cacheid=yes
6906else
6907  eval $cacheid=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext \
6910    conftest$ac_exeext conftest.$ac_ext
6911fi
6912
6913
6914		CFLAGS="$xorg_testset_save_CFLAGS"
6915
6916		eval supported=\$$cacheid
6917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6918$as_echo "$supported" >&6; }
6919		if test "$supported" = "yes" ; then
6920			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6921			found="yes"
6922		fi
6923	fi
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939xorg_testset_save_CFLAGS="$CFLAGS"
6940
6941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6946  $as_echo_n "(cached) " >&6
6947else
6948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950int i;
6951_ACEOF
6952if ac_fn_c_try_compile "$LINENO"; then :
6953  xorg_cv_cc_flag_unknown_warning_option=yes
6954else
6955  xorg_cv_cc_flag_unknown_warning_option=no
6956fi
6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6962	CFLAGS="$xorg_testset_save_CFLAGS"
6963fi
6964
6965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968	fi
6969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6973  $as_echo_n "(cached) " >&6
6974else
6975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976/* end confdefs.h.  */
6977int i;
6978_ACEOF
6979if ac_fn_c_try_compile "$LINENO"; then :
6980  xorg_cv_cc_flag_unused_command_line_argument=yes
6981else
6982  xorg_cv_cc_flag_unused_command_line_argument=no
6983fi
6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985fi
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6989	CFLAGS="$xorg_testset_save_CFLAGS"
6990fi
6991
6992found="no"
6993
6994	if test $found = "no" ; then
6995		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997		fi
6998
6999		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001		fi
7002
7003		CFLAGS="$CFLAGS -Werror=nonnull"
7004
7005		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7006$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7007		cacheid=xorg_cv_cc_flag__Werror_nonnull
7008		if eval \${$cacheid+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013int i;
7014int
7015main ()
7016{
7017
7018  ;
7019  return 0;
7020}
7021_ACEOF
7022if ac_fn_c_try_link "$LINENO"; then :
7023  eval $cacheid=yes
7024else
7025  eval $cacheid=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext \
7028    conftest$ac_exeext conftest.$ac_ext
7029fi
7030
7031
7032		CFLAGS="$xorg_testset_save_CFLAGS"
7033
7034		eval supported=\$$cacheid
7035		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7036$as_echo "$supported" >&6; }
7037		if test "$supported" = "yes" ; then
7038			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7039			found="yes"
7040		fi
7041	fi
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057xorg_testset_save_CFLAGS="$CFLAGS"
7058
7059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h.  */
7068int i;
7069_ACEOF
7070if ac_fn_c_try_compile "$LINENO"; then :
7071  xorg_cv_cc_flag_unknown_warning_option=yes
7072else
7073  xorg_cv_cc_flag_unknown_warning_option=no
7074fi
7075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076fi
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7080	CFLAGS="$xorg_testset_save_CFLAGS"
7081fi
7082
7083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	fi
7087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095int i;
7096_ACEOF
7097if ac_fn_c_try_compile "$LINENO"; then :
7098  xorg_cv_cc_flag_unused_command_line_argument=yes
7099else
7100  xorg_cv_cc_flag_unused_command_line_argument=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7106	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7107	CFLAGS="$xorg_testset_save_CFLAGS"
7108fi
7109
7110found="no"
7111
7112	if test $found = "no" ; then
7113		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115		fi
7116
7117		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119		fi
7120
7121		CFLAGS="$CFLAGS -Werror=init-self"
7122
7123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7124$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7125		cacheid=xorg_cv_cc_flag__Werror_init_self
7126		if eval \${$cacheid+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h.  */
7131int i;
7132int
7133main ()
7134{
7135
7136  ;
7137  return 0;
7138}
7139_ACEOF
7140if ac_fn_c_try_link "$LINENO"; then :
7141  eval $cacheid=yes
7142else
7143  eval $cacheid=no
7144fi
7145rm -f core conftest.err conftest.$ac_objext \
7146    conftest$ac_exeext conftest.$ac_ext
7147fi
7148
7149
7150		CFLAGS="$xorg_testset_save_CFLAGS"
7151
7152		eval supported=\$$cacheid
7153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7154$as_echo "$supported" >&6; }
7155		if test "$supported" = "yes" ; then
7156			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7157			found="yes"
7158		fi
7159	fi
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175xorg_testset_save_CFLAGS="$CFLAGS"
7176
7177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7182  $as_echo_n "(cached) " >&6
7183else
7184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186int i;
7187_ACEOF
7188if ac_fn_c_try_compile "$LINENO"; then :
7189  xorg_cv_cc_flag_unknown_warning_option=yes
7190else
7191  xorg_cv_cc_flag_unknown_warning_option=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7197	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7198	CFLAGS="$xorg_testset_save_CFLAGS"
7199fi
7200
7201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7202	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7203		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204	fi
7205	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h.  */
7213int i;
7214_ACEOF
7215if ac_fn_c_try_compile "$LINENO"; then :
7216  xorg_cv_cc_flag_unused_command_line_argument=yes
7217else
7218  xorg_cv_cc_flag_unused_command_line_argument=no
7219fi
7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7225	CFLAGS="$xorg_testset_save_CFLAGS"
7226fi
7227
7228found="no"
7229
7230	if test $found = "no" ; then
7231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233		fi
7234
7235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237		fi
7238
7239		CFLAGS="$CFLAGS -Werror=main"
7240
7241		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7242$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7243		cacheid=xorg_cv_cc_flag__Werror_main
7244		if eval \${$cacheid+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250int
7251main ()
7252{
7253
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_link "$LINENO"; then :
7259  eval $cacheid=yes
7260else
7261  eval $cacheid=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext \
7264    conftest$ac_exeext conftest.$ac_ext
7265fi
7266
7267
7268		CFLAGS="$xorg_testset_save_CFLAGS"
7269
7270		eval supported=\$$cacheid
7271		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7272$as_echo "$supported" >&6; }
7273		if test "$supported" = "yes" ; then
7274			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7275			found="yes"
7276		fi
7277	fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293xorg_testset_save_CFLAGS="$CFLAGS"
7294
7295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h.  */
7304int i;
7305_ACEOF
7306if ac_fn_c_try_compile "$LINENO"; then :
7307  xorg_cv_cc_flag_unknown_warning_option=yes
7308else
7309  xorg_cv_cc_flag_unknown_warning_option=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7316	CFLAGS="$xorg_testset_save_CFLAGS"
7317fi
7318
7319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322	fi
7323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330/* end confdefs.h.  */
7331int i;
7332_ACEOF
7333if ac_fn_c_try_compile "$LINENO"; then :
7334  xorg_cv_cc_flag_unused_command_line_argument=yes
7335else
7336  xorg_cv_cc_flag_unused_command_line_argument=no
7337fi
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7343	CFLAGS="$xorg_testset_save_CFLAGS"
7344fi
7345
7346found="no"
7347
7348	if test $found = "no" ; then
7349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351		fi
7352
7353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355		fi
7356
7357		CFLAGS="$CFLAGS -Werror=missing-braces"
7358
7359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7360$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7361		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7362		if eval \${$cacheid+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368int
7369main ()
7370{
7371
7372  ;
7373  return 0;
7374}
7375_ACEOF
7376if ac_fn_c_try_link "$LINENO"; then :
7377  eval $cacheid=yes
7378else
7379  eval $cacheid=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext \
7382    conftest$ac_exeext conftest.$ac_ext
7383fi
7384
7385
7386		CFLAGS="$xorg_testset_save_CFLAGS"
7387
7388		eval supported=\$$cacheid
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390$as_echo "$supported" >&6; }
7391		if test "$supported" = "yes" ; then
7392			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7393			found="yes"
7394		fi
7395	fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411xorg_testset_save_CFLAGS="$CFLAGS"
7412
7413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h.  */
7422int i;
7423_ACEOF
7424if ac_fn_c_try_compile "$LINENO"; then :
7425  xorg_cv_cc_flag_unknown_warning_option=yes
7426else
7427  xorg_cv_cc_flag_unknown_warning_option=no
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7434	CFLAGS="$xorg_testset_save_CFLAGS"
7435fi
7436
7437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440	fi
7441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452  xorg_cv_cc_flag_unused_command_line_argument=yes
7453else
7454  xorg_cv_cc_flag_unused_command_line_argument=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7461	CFLAGS="$xorg_testset_save_CFLAGS"
7462fi
7463
7464found="no"
7465
7466	if test $found = "no" ; then
7467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469		fi
7470
7471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473		fi
7474
7475		CFLAGS="$CFLAGS -Werror=sequence-point"
7476
7477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7478$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7479		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7480		if eval \${$cacheid+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486int
7487main ()
7488{
7489
7490  ;
7491  return 0;
7492}
7493_ACEOF
7494if ac_fn_c_try_link "$LINENO"; then :
7495  eval $cacheid=yes
7496else
7497  eval $cacheid=no
7498fi
7499rm -f core conftest.err conftest.$ac_objext \
7500    conftest$ac_exeext conftest.$ac_ext
7501fi
7502
7503
7504		CFLAGS="$xorg_testset_save_CFLAGS"
7505
7506		eval supported=\$$cacheid
7507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7508$as_echo "$supported" >&6; }
7509		if test "$supported" = "yes" ; then
7510			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7511			found="yes"
7512		fi
7513	fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529xorg_testset_save_CFLAGS="$CFLAGS"
7530
7531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h.  */
7540int i;
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543  xorg_cv_cc_flag_unknown_warning_option=yes
7544else
7545  xorg_cv_cc_flag_unknown_warning_option=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7552	CFLAGS="$xorg_testset_save_CFLAGS"
7553fi
7554
7555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	fi
7559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567int i;
7568_ACEOF
7569if ac_fn_c_try_compile "$LINENO"; then :
7570  xorg_cv_cc_flag_unused_command_line_argument=yes
7571else
7572  xorg_cv_cc_flag_unused_command_line_argument=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582found="no"
7583
7584	if test $found = "no" ; then
7585		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587		fi
7588
7589		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591		fi
7592
7593		CFLAGS="$CFLAGS -Werror=return-type"
7594
7595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7596$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7597		cacheid=xorg_cv_cc_flag__Werror_return_type
7598		if eval \${$cacheid+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603int i;
7604int
7605main ()
7606{
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612if ac_fn_c_try_link "$LINENO"; then :
7613  eval $cacheid=yes
7614else
7615  eval $cacheid=no
7616fi
7617rm -f core conftest.err conftest.$ac_objext \
7618    conftest$ac_exeext conftest.$ac_ext
7619fi
7620
7621
7622		CFLAGS="$xorg_testset_save_CFLAGS"
7623
7624		eval supported=\$$cacheid
7625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7626$as_echo "$supported" >&6; }
7627		if test "$supported" = "yes" ; then
7628			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7629			found="yes"
7630		fi
7631	fi
7632
7633	if test $found = "no" ; then
7634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636		fi
7637
7638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640		fi
7641
7642		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7643
7644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7645$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7646		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7647		if eval \${$cacheid+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653int
7654main ()
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661if ac_fn_c_try_link "$LINENO"; then :
7662  eval $cacheid=yes
7663else
7664  eval $cacheid=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext \
7667    conftest$ac_exeext conftest.$ac_ext
7668fi
7669
7670
7671		CFLAGS="$xorg_testset_save_CFLAGS"
7672
7673		eval supported=\$$cacheid
7674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7675$as_echo "$supported" >&6; }
7676		if test "$supported" = "yes" ; then
7677			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7678			found="yes"
7679		fi
7680	fi
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696xorg_testset_save_CFLAGS="$CFLAGS"
7697
7698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h.  */
7707int i;
7708_ACEOF
7709if ac_fn_c_try_compile "$LINENO"; then :
7710  xorg_cv_cc_flag_unknown_warning_option=yes
7711else
7712  xorg_cv_cc_flag_unknown_warning_option=no
7713fi
7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7719	CFLAGS="$xorg_testset_save_CFLAGS"
7720fi
7721
7722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725	fi
7726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7730  $as_echo_n "(cached) " >&6
7731else
7732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733/* end confdefs.h.  */
7734int i;
7735_ACEOF
7736if ac_fn_c_try_compile "$LINENO"; then :
7737  xorg_cv_cc_flag_unused_command_line_argument=yes
7738else
7739  xorg_cv_cc_flag_unused_command_line_argument=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742fi
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7745	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7746	CFLAGS="$xorg_testset_save_CFLAGS"
7747fi
7748
7749found="no"
7750
7751	if test $found = "no" ; then
7752		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7754		fi
7755
7756		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7758		fi
7759
7760		CFLAGS="$CFLAGS -Werror=trigraphs"
7761
7762		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7763$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7764		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7765		if eval \${$cacheid+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769/* end confdefs.h.  */
7770int i;
7771int
7772main ()
7773{
7774
7775  ;
7776  return 0;
7777}
7778_ACEOF
7779if ac_fn_c_try_link "$LINENO"; then :
7780  eval $cacheid=yes
7781else
7782  eval $cacheid=no
7783fi
7784rm -f core conftest.err conftest.$ac_objext \
7785    conftest$ac_exeext conftest.$ac_ext
7786fi
7787
7788
7789		CFLAGS="$xorg_testset_save_CFLAGS"
7790
7791		eval supported=\$$cacheid
7792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7793$as_echo "$supported" >&6; }
7794		if test "$supported" = "yes" ; then
7795			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7796			found="yes"
7797		fi
7798	fi
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814xorg_testset_save_CFLAGS="$CFLAGS"
7815
7816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h.  */
7825int i;
7826_ACEOF
7827if ac_fn_c_try_compile "$LINENO"; then :
7828  xorg_cv_cc_flag_unknown_warning_option=yes
7829else
7830  xorg_cv_cc_flag_unknown_warning_option=no
7831fi
7832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833fi
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7837	CFLAGS="$xorg_testset_save_CFLAGS"
7838fi
7839
7840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7843	fi
7844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852int i;
7853_ACEOF
7854if ac_fn_c_try_compile "$LINENO"; then :
7855  xorg_cv_cc_flag_unused_command_line_argument=yes
7856else
7857  xorg_cv_cc_flag_unused_command_line_argument=no
7858fi
7859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7864	CFLAGS="$xorg_testset_save_CFLAGS"
7865fi
7866
7867found="no"
7868
7869	if test $found = "no" ; then
7870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872		fi
7873
7874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7876		fi
7877
7878		CFLAGS="$CFLAGS -Werror=array-bounds"
7879
7880		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7881$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7882		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7883		if eval \${$cacheid+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888int i;
7889int
7890main ()
7891{
7892
7893  ;
7894  return 0;
7895}
7896_ACEOF
7897if ac_fn_c_try_link "$LINENO"; then :
7898  eval $cacheid=yes
7899else
7900  eval $cacheid=no
7901fi
7902rm -f core conftest.err conftest.$ac_objext \
7903    conftest$ac_exeext conftest.$ac_ext
7904fi
7905
7906
7907		CFLAGS="$xorg_testset_save_CFLAGS"
7908
7909		eval supported=\$$cacheid
7910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7911$as_echo "$supported" >&6; }
7912		if test "$supported" = "yes" ; then
7913			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7914			found="yes"
7915		fi
7916	fi
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932xorg_testset_save_CFLAGS="$CFLAGS"
7933
7934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7935	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943int i;
7944_ACEOF
7945if ac_fn_c_try_compile "$LINENO"; then :
7946  xorg_cv_cc_flag_unknown_warning_option=yes
7947else
7948  xorg_cv_cc_flag_unknown_warning_option=no
7949fi
7950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7955	CFLAGS="$xorg_testset_save_CFLAGS"
7956fi
7957
7958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961	fi
7962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970int i;
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"; then :
7973  xorg_cv_cc_flag_unused_command_line_argument=yes
7974else
7975  xorg_cv_cc_flag_unused_command_line_argument=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7982	CFLAGS="$xorg_testset_save_CFLAGS"
7983fi
7984
7985found="no"
7986
7987	if test $found = "no" ; then
7988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990		fi
7991
7992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994		fi
7995
7996		CFLAGS="$CFLAGS -Werror=write-strings"
7997
7998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7999$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8000		cacheid=xorg_cv_cc_flag__Werror_write_strings
8001		if eval \${$cacheid+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007int
8008main ()
8009{
8010
8011  ;
8012  return 0;
8013}
8014_ACEOF
8015if ac_fn_c_try_link "$LINENO"; then :
8016  eval $cacheid=yes
8017else
8018  eval $cacheid=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext \
8021    conftest$ac_exeext conftest.$ac_ext
8022fi
8023
8024
8025		CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027		eval supported=\$$cacheid
8028		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029$as_echo "$supported" >&6; }
8030		if test "$supported" = "yes" ; then
8031			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8032			found="yes"
8033		fi
8034	fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050xorg_testset_save_CFLAGS="$CFLAGS"
8051
8052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061int i;
8062_ACEOF
8063if ac_fn_c_try_compile "$LINENO"; then :
8064  xorg_cv_cc_flag_unknown_warning_option=yes
8065else
8066  xorg_cv_cc_flag_unknown_warning_option=no
8067fi
8068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069fi
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8073	CFLAGS="$xorg_testset_save_CFLAGS"
8074fi
8075
8076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079	fi
8080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089_ACEOF
8090if ac_fn_c_try_compile "$LINENO"; then :
8091  xorg_cv_cc_flag_unused_command_line_argument=yes
8092else
8093  xorg_cv_cc_flag_unused_command_line_argument=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8100	CFLAGS="$xorg_testset_save_CFLAGS"
8101fi
8102
8103found="no"
8104
8105	if test $found = "no" ; then
8106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8108		fi
8109
8110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112		fi
8113
8114		CFLAGS="$CFLAGS -Werror=address"
8115
8116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8117$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8118		cacheid=xorg_cv_cc_flag__Werror_address
8119		if eval \${$cacheid+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124int i;
8125int
8126main ()
8127{
8128
8129  ;
8130  return 0;
8131}
8132_ACEOF
8133if ac_fn_c_try_link "$LINENO"; then :
8134  eval $cacheid=yes
8135else
8136  eval $cacheid=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext \
8139    conftest$ac_exeext conftest.$ac_ext
8140fi
8141
8142
8143		CFLAGS="$xorg_testset_save_CFLAGS"
8144
8145		eval supported=\$$cacheid
8146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8147$as_echo "$supported" >&6; }
8148		if test "$supported" = "yes" ; then
8149			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8150			found="yes"
8151		fi
8152	fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168xorg_testset_save_CFLAGS="$CFLAGS"
8169
8170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180_ACEOF
8181if ac_fn_c_try_compile "$LINENO"; then :
8182  xorg_cv_cc_flag_unknown_warning_option=yes
8183else
8184  xorg_cv_cc_flag_unknown_warning_option=no
8185fi
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8191	CFLAGS="$xorg_testset_save_CFLAGS"
8192fi
8193
8194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197	fi
8198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206int i;
8207_ACEOF
8208if ac_fn_c_try_compile "$LINENO"; then :
8209  xorg_cv_cc_flag_unused_command_line_argument=yes
8210else
8211  xorg_cv_cc_flag_unused_command_line_argument=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8218	CFLAGS="$xorg_testset_save_CFLAGS"
8219fi
8220
8221found="no"
8222
8223	if test $found = "no" ; then
8224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226		fi
8227
8228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230		fi
8231
8232		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8233
8234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8235$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8236		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8237		if eval \${$cacheid+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243int
8244main ()
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"; then :
8252  eval $cacheid=yes
8253else
8254  eval $cacheid=no
8255fi
8256rm -f core conftest.err conftest.$ac_objext \
8257    conftest$ac_exeext conftest.$ac_ext
8258fi
8259
8260
8261		CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263		eval supported=\$$cacheid
8264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8265$as_echo "$supported" >&6; }
8266		if test "$supported" = "yes" ; then
8267			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8268			found="yes"
8269		fi
8270	fi
8271
8272	if test $found = "no" ; then
8273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275		fi
8276
8277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279		fi
8280
8281		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8282
8283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8284$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8285		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8286		if eval \${$cacheid+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292int
8293main ()
8294{
8295
8296  ;
8297  return 0;
8298}
8299_ACEOF
8300if ac_fn_c_try_link "$LINENO"; then :
8301  eval $cacheid=yes
8302else
8303  eval $cacheid=no
8304fi
8305rm -f core conftest.err conftest.$ac_objext \
8306    conftest$ac_exeext conftest.$ac_ext
8307fi
8308
8309
8310		CFLAGS="$xorg_testset_save_CFLAGS"
8311
8312		eval supported=\$$cacheid
8313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8314$as_echo "$supported" >&6; }
8315		if test "$supported" = "yes" ; then
8316			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8317			found="yes"
8318		fi
8319	fi
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335xorg_testset_save_CFLAGS="$CFLAGS"
8336
8337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346int i;
8347_ACEOF
8348if ac_fn_c_try_compile "$LINENO"; then :
8349  xorg_cv_cc_flag_unknown_warning_option=yes
8350else
8351  xorg_cv_cc_flag_unknown_warning_option=no
8352fi
8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354fi
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8358	CFLAGS="$xorg_testset_save_CFLAGS"
8359fi
8360
8361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8364	fi
8365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h.  */
8373int i;
8374_ACEOF
8375if ac_fn_c_try_compile "$LINENO"; then :
8376  xorg_cv_cc_flag_unused_command_line_argument=yes
8377else
8378  xorg_cv_cc_flag_unused_command_line_argument=no
8379fi
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381fi
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8385	CFLAGS="$xorg_testset_save_CFLAGS"
8386fi
8387
8388found="no"
8389
8390	if test $found = "no" ; then
8391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393		fi
8394
8395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8397		fi
8398
8399		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8400
8401		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8402$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8403		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8404		if eval \${$cacheid+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409int i;
8410int
8411main ()
8412{
8413
8414  ;
8415  return 0;
8416}
8417_ACEOF
8418if ac_fn_c_try_link "$LINENO"; then :
8419  eval $cacheid=yes
8420else
8421  eval $cacheid=no
8422fi
8423rm -f core conftest.err conftest.$ac_objext \
8424    conftest$ac_exeext conftest.$ac_ext
8425fi
8426
8427
8428		CFLAGS="$xorg_testset_save_CFLAGS"
8429
8430		eval supported=\$$cacheid
8431		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8432$as_echo "$supported" >&6; }
8433		if test "$supported" = "yes" ; then
8434			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8435			found="yes"
8436		fi
8437	fi
8438
8439 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8440else
8441{ $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
8442$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;}
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456xorg_testset_save_CFLAGS="$CFLAGS"
8457
8458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h.  */
8467int i;
8468_ACEOF
8469if ac_fn_c_try_compile "$LINENO"; then :
8470  xorg_cv_cc_flag_unknown_warning_option=yes
8471else
8472  xorg_cv_cc_flag_unknown_warning_option=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475fi
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8479	CFLAGS="$xorg_testset_save_CFLAGS"
8480fi
8481
8482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485	fi
8486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h.  */
8494int i;
8495_ACEOF
8496if ac_fn_c_try_compile "$LINENO"; then :
8497  xorg_cv_cc_flag_unused_command_line_argument=yes
8498else
8499  xorg_cv_cc_flag_unused_command_line_argument=no
8500fi
8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502fi
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8506	CFLAGS="$xorg_testset_save_CFLAGS"
8507fi
8508
8509found="no"
8510
8511	if test $found = "no" ; then
8512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514		fi
8515
8516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8518		fi
8519
8520		CFLAGS="$CFLAGS -Wimplicit"
8521
8522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8523$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8524		cacheid=xorg_cv_cc_flag__Wimplicit
8525		if eval \${$cacheid+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529/* end confdefs.h.  */
8530int i;
8531int
8532main ()
8533{
8534
8535  ;
8536  return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540  eval $cacheid=yes
8541else
8542  eval $cacheid=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545    conftest$ac_exeext conftest.$ac_ext
8546fi
8547
8548
8549		CFLAGS="$xorg_testset_save_CFLAGS"
8550
8551		eval supported=\$$cacheid
8552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8553$as_echo "$supported" >&6; }
8554		if test "$supported" = "yes" ; then
8555			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8556			found="yes"
8557		fi
8558	fi
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574xorg_testset_save_CFLAGS="$CFLAGS"
8575
8576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h.  */
8585int i;
8586_ACEOF
8587if ac_fn_c_try_compile "$LINENO"; then :
8588  xorg_cv_cc_flag_unknown_warning_option=yes
8589else
8590  xorg_cv_cc_flag_unknown_warning_option=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8597	CFLAGS="$xorg_testset_save_CFLAGS"
8598fi
8599
8600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	fi
8604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612int i;
8613_ACEOF
8614if ac_fn_c_try_compile "$LINENO"; then :
8615  xorg_cv_cc_flag_unused_command_line_argument=yes
8616else
8617  xorg_cv_cc_flag_unused_command_line_argument=no
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8624	CFLAGS="$xorg_testset_save_CFLAGS"
8625fi
8626
8627found="no"
8628
8629	if test $found = "no" ; then
8630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632		fi
8633
8634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636		fi
8637
8638		CFLAGS="$CFLAGS -Wnonnull"
8639
8640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8641$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8642		cacheid=xorg_cv_cc_flag__Wnonnull
8643		if eval \${$cacheid+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648int i;
8649int
8650main ()
8651{
8652
8653  ;
8654  return 0;
8655}
8656_ACEOF
8657if ac_fn_c_try_link "$LINENO"; then :
8658  eval $cacheid=yes
8659else
8660  eval $cacheid=no
8661fi
8662rm -f core conftest.err conftest.$ac_objext \
8663    conftest$ac_exeext conftest.$ac_ext
8664fi
8665
8666
8667		CFLAGS="$xorg_testset_save_CFLAGS"
8668
8669		eval supported=\$$cacheid
8670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8671$as_echo "$supported" >&6; }
8672		if test "$supported" = "yes" ; then
8673			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8674			found="yes"
8675		fi
8676	fi
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692xorg_testset_save_CFLAGS="$CFLAGS"
8693
8694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702/* end confdefs.h.  */
8703int i;
8704_ACEOF
8705if ac_fn_c_try_compile "$LINENO"; then :
8706  xorg_cv_cc_flag_unknown_warning_option=yes
8707else
8708  xorg_cv_cc_flag_unknown_warning_option=no
8709fi
8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711fi
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8715	CFLAGS="$xorg_testset_save_CFLAGS"
8716fi
8717
8718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721	fi
8722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730int i;
8731_ACEOF
8732if ac_fn_c_try_compile "$LINENO"; then :
8733  xorg_cv_cc_flag_unused_command_line_argument=yes
8734else
8735  xorg_cv_cc_flag_unused_command_line_argument=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738fi
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742	CFLAGS="$xorg_testset_save_CFLAGS"
8743fi
8744
8745found="no"
8746
8747	if test $found = "no" ; then
8748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750		fi
8751
8752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754		fi
8755
8756		CFLAGS="$CFLAGS -Winit-self"
8757
8758		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8759$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8760		cacheid=xorg_cv_cc_flag__Winit_self
8761		if eval \${$cacheid+:} false; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767int
8768main ()
8769{
8770
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_link "$LINENO"; then :
8776  eval $cacheid=yes
8777else
8778  eval $cacheid=no
8779fi
8780rm -f core conftest.err conftest.$ac_objext \
8781    conftest$ac_exeext conftest.$ac_ext
8782fi
8783
8784
8785		CFLAGS="$xorg_testset_save_CFLAGS"
8786
8787		eval supported=\$$cacheid
8788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8789$as_echo "$supported" >&6; }
8790		if test "$supported" = "yes" ; then
8791			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8792			found="yes"
8793		fi
8794	fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810xorg_testset_save_CFLAGS="$CFLAGS"
8811
8812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821int i;
8822_ACEOF
8823if ac_fn_c_try_compile "$LINENO"; then :
8824  xorg_cv_cc_flag_unknown_warning_option=yes
8825else
8826  xorg_cv_cc_flag_unknown_warning_option=no
8827fi
8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8833	CFLAGS="$xorg_testset_save_CFLAGS"
8834fi
8835
8836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839	fi
8840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848int i;
8849_ACEOF
8850if ac_fn_c_try_compile "$LINENO"; then :
8851  xorg_cv_cc_flag_unused_command_line_argument=yes
8852else
8853  xorg_cv_cc_flag_unused_command_line_argument=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8860	CFLAGS="$xorg_testset_save_CFLAGS"
8861fi
8862
8863found="no"
8864
8865	if test $found = "no" ; then
8866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868		fi
8869
8870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872		fi
8873
8874		CFLAGS="$CFLAGS -Wmain"
8875
8876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8877$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8878		cacheid=xorg_cv_cc_flag__Wmain
8879		if eval \${$cacheid+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885int
8886main ()
8887{
8888
8889  ;
8890  return 0;
8891}
8892_ACEOF
8893if ac_fn_c_try_link "$LINENO"; then :
8894  eval $cacheid=yes
8895else
8896  eval $cacheid=no
8897fi
8898rm -f core conftest.err conftest.$ac_objext \
8899    conftest$ac_exeext conftest.$ac_ext
8900fi
8901
8902
8903		CFLAGS="$xorg_testset_save_CFLAGS"
8904
8905		eval supported=\$$cacheid
8906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8907$as_echo "$supported" >&6; }
8908		if test "$supported" = "yes" ; then
8909			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8910			found="yes"
8911		fi
8912	fi
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928xorg_testset_save_CFLAGS="$CFLAGS"
8929
8930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"; then :
8942  xorg_cv_cc_flag_unknown_warning_option=yes
8943else
8944  xorg_cv_cc_flag_unknown_warning_option=no
8945fi
8946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947fi
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8951	CFLAGS="$xorg_testset_save_CFLAGS"
8952fi
8953
8954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957	fi
8958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965/* end confdefs.h.  */
8966int i;
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"; then :
8969  xorg_cv_cc_flag_unused_command_line_argument=yes
8970else
8971  xorg_cv_cc_flag_unused_command_line_argument=no
8972fi
8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8978	CFLAGS="$xorg_testset_save_CFLAGS"
8979fi
8980
8981found="no"
8982
8983	if test $found = "no" ; then
8984		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986		fi
8987
8988		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990		fi
8991
8992		CFLAGS="$CFLAGS -Wmissing-braces"
8993
8994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8995$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8996		cacheid=xorg_cv_cc_flag__Wmissing_braces
8997		if eval \${$cacheid+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003int
9004main ()
9005{
9006
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011if ac_fn_c_try_link "$LINENO"; then :
9012  eval $cacheid=yes
9013else
9014  eval $cacheid=no
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017    conftest$ac_exeext conftest.$ac_ext
9018fi
9019
9020
9021		CFLAGS="$xorg_testset_save_CFLAGS"
9022
9023		eval supported=\$$cacheid
9024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9025$as_echo "$supported" >&6; }
9026		if test "$supported" = "yes" ; then
9027			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9028			found="yes"
9029		fi
9030	fi
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046xorg_testset_save_CFLAGS="$CFLAGS"
9047
9048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h.  */
9057int i;
9058_ACEOF
9059if ac_fn_c_try_compile "$LINENO"; then :
9060  xorg_cv_cc_flag_unknown_warning_option=yes
9061else
9062  xorg_cv_cc_flag_unknown_warning_option=no
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065fi
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069	CFLAGS="$xorg_testset_save_CFLAGS"
9070fi
9071
9072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	fi
9076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084int i;
9085_ACEOF
9086if ac_fn_c_try_compile "$LINENO"; then :
9087  xorg_cv_cc_flag_unused_command_line_argument=yes
9088else
9089  xorg_cv_cc_flag_unused_command_line_argument=no
9090fi
9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9096	CFLAGS="$xorg_testset_save_CFLAGS"
9097fi
9098
9099found="no"
9100
9101	if test $found = "no" ; then
9102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104		fi
9105
9106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108		fi
9109
9110		CFLAGS="$CFLAGS -Wsequence-point"
9111
9112		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9113$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9114		cacheid=xorg_cv_cc_flag__Wsequence_point
9115		if eval \${$cacheid+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121int
9122main ()
9123{
9124
9125  ;
9126  return 0;
9127}
9128_ACEOF
9129if ac_fn_c_try_link "$LINENO"; then :
9130  eval $cacheid=yes
9131else
9132  eval $cacheid=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135    conftest$ac_exeext conftest.$ac_ext
9136fi
9137
9138
9139		CFLAGS="$xorg_testset_save_CFLAGS"
9140
9141		eval supported=\$$cacheid
9142		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9143$as_echo "$supported" >&6; }
9144		if test "$supported" = "yes" ; then
9145			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9146			found="yes"
9147		fi
9148	fi
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164xorg_testset_save_CFLAGS="$CFLAGS"
9165
9166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174/* end confdefs.h.  */
9175int i;
9176_ACEOF
9177if ac_fn_c_try_compile "$LINENO"; then :
9178  xorg_cv_cc_flag_unknown_warning_option=yes
9179else
9180  xorg_cv_cc_flag_unknown_warning_option=no
9181fi
9182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9186	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9187	CFLAGS="$xorg_testset_save_CFLAGS"
9188fi
9189
9190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9191	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9192		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193	fi
9194	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202int i;
9203_ACEOF
9204if ac_fn_c_try_compile "$LINENO"; then :
9205  xorg_cv_cc_flag_unused_command_line_argument=yes
9206else
9207  xorg_cv_cc_flag_unused_command_line_argument=no
9208fi
9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210fi
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9214	CFLAGS="$xorg_testset_save_CFLAGS"
9215fi
9216
9217found="no"
9218
9219	if test $found = "no" ; then
9220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222		fi
9223
9224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226		fi
9227
9228		CFLAGS="$CFLAGS -Wreturn-type"
9229
9230		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9231$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9232		cacheid=xorg_cv_cc_flag__Wreturn_type
9233		if eval \${$cacheid+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239int
9240main ()
9241{
9242
9243  ;
9244  return 0;
9245}
9246_ACEOF
9247if ac_fn_c_try_link "$LINENO"; then :
9248  eval $cacheid=yes
9249else
9250  eval $cacheid=no
9251fi
9252rm -f core conftest.err conftest.$ac_objext \
9253    conftest$ac_exeext conftest.$ac_ext
9254fi
9255
9256
9257		CFLAGS="$xorg_testset_save_CFLAGS"
9258
9259		eval supported=\$$cacheid
9260		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9261$as_echo "$supported" >&6; }
9262		if test "$supported" = "yes" ; then
9263			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9264			found="yes"
9265		fi
9266	fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282xorg_testset_save_CFLAGS="$CFLAGS"
9283
9284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9289  $as_echo_n "(cached) " >&6
9290else
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293int i;
9294_ACEOF
9295if ac_fn_c_try_compile "$LINENO"; then :
9296  xorg_cv_cc_flag_unknown_warning_option=yes
9297else
9298  xorg_cv_cc_flag_unknown_warning_option=no
9299fi
9300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301fi
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9305	CFLAGS="$xorg_testset_save_CFLAGS"
9306fi
9307
9308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311	fi
9312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9316  $as_echo_n "(cached) " >&6
9317else
9318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h.  */
9320int i;
9321_ACEOF
9322if ac_fn_c_try_compile "$LINENO"; then :
9323  xorg_cv_cc_flag_unused_command_line_argument=yes
9324else
9325  xorg_cv_cc_flag_unused_command_line_argument=no
9326fi
9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328fi
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9332	CFLAGS="$xorg_testset_save_CFLAGS"
9333fi
9334
9335found="no"
9336
9337	if test $found = "no" ; then
9338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340		fi
9341
9342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344		fi
9345
9346		CFLAGS="$CFLAGS -Wtrigraphs"
9347
9348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9349$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9350		cacheid=xorg_cv_cc_flag__Wtrigraphs
9351		if eval \${$cacheid+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h.  */
9356int i;
9357int
9358main ()
9359{
9360
9361  ;
9362  return 0;
9363}
9364_ACEOF
9365if ac_fn_c_try_link "$LINENO"; then :
9366  eval $cacheid=yes
9367else
9368  eval $cacheid=no
9369fi
9370rm -f core conftest.err conftest.$ac_objext \
9371    conftest$ac_exeext conftest.$ac_ext
9372fi
9373
9374
9375		CFLAGS="$xorg_testset_save_CFLAGS"
9376
9377		eval supported=\$$cacheid
9378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9379$as_echo "$supported" >&6; }
9380		if test "$supported" = "yes" ; then
9381			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9382			found="yes"
9383		fi
9384	fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400xorg_testset_save_CFLAGS="$CFLAGS"
9401
9402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9407  $as_echo_n "(cached) " >&6
9408else
9409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h.  */
9411int i;
9412_ACEOF
9413if ac_fn_c_try_compile "$LINENO"; then :
9414  xorg_cv_cc_flag_unknown_warning_option=yes
9415else
9416  xorg_cv_cc_flag_unknown_warning_option=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419fi
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9423	CFLAGS="$xorg_testset_save_CFLAGS"
9424fi
9425
9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429	fi
9430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9434  $as_echo_n "(cached) " >&6
9435else
9436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h.  */
9438int i;
9439_ACEOF
9440if ac_fn_c_try_compile "$LINENO"; then :
9441  xorg_cv_cc_flag_unused_command_line_argument=yes
9442else
9443  xorg_cv_cc_flag_unused_command_line_argument=no
9444fi
9445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446fi
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9450	CFLAGS="$xorg_testset_save_CFLAGS"
9451fi
9452
9453found="no"
9454
9455	if test $found = "no" ; then
9456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458		fi
9459
9460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462		fi
9463
9464		CFLAGS="$CFLAGS -Warray-bounds"
9465
9466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9467$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9468		cacheid=xorg_cv_cc_flag__Warray_bounds
9469		if eval \${$cacheid+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475int
9476main ()
9477{
9478
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"; then :
9484  eval $cacheid=yes
9485else
9486  eval $cacheid=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489    conftest$ac_exeext conftest.$ac_ext
9490fi
9491
9492
9493		CFLAGS="$xorg_testset_save_CFLAGS"
9494
9495		eval supported=\$$cacheid
9496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9497$as_echo "$supported" >&6; }
9498		if test "$supported" = "yes" ; then
9499			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9500			found="yes"
9501		fi
9502	fi
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518xorg_testset_save_CFLAGS="$CFLAGS"
9519
9520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9525  $as_echo_n "(cached) " >&6
9526else
9527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529int i;
9530_ACEOF
9531if ac_fn_c_try_compile "$LINENO"; then :
9532  xorg_cv_cc_flag_unknown_warning_option=yes
9533else
9534  xorg_cv_cc_flag_unknown_warning_option=no
9535fi
9536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537fi
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9541	CFLAGS="$xorg_testset_save_CFLAGS"
9542fi
9543
9544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547	fi
9548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556int i;
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"; then :
9559  xorg_cv_cc_flag_unused_command_line_argument=yes
9560else
9561  xorg_cv_cc_flag_unused_command_line_argument=no
9562fi
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9568	CFLAGS="$xorg_testset_save_CFLAGS"
9569fi
9570
9571found="no"
9572
9573	if test $found = "no" ; then
9574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576		fi
9577
9578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9580		fi
9581
9582		CFLAGS="$CFLAGS -Wwrite-strings"
9583
9584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9585$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9586		cacheid=xorg_cv_cc_flag__Wwrite_strings
9587		if eval \${$cacheid+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h.  */
9592int i;
9593int
9594main ()
9595{
9596
9597  ;
9598  return 0;
9599}
9600_ACEOF
9601if ac_fn_c_try_link "$LINENO"; then :
9602  eval $cacheid=yes
9603else
9604  eval $cacheid=no
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607    conftest$ac_exeext conftest.$ac_ext
9608fi
9609
9610
9611		CFLAGS="$xorg_testset_save_CFLAGS"
9612
9613		eval supported=\$$cacheid
9614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9615$as_echo "$supported" >&6; }
9616		if test "$supported" = "yes" ; then
9617			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9618			found="yes"
9619		fi
9620	fi
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636xorg_testset_save_CFLAGS="$CFLAGS"
9637
9638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647int i;
9648_ACEOF
9649if ac_fn_c_try_compile "$LINENO"; then :
9650  xorg_cv_cc_flag_unknown_warning_option=yes
9651else
9652  xorg_cv_cc_flag_unknown_warning_option=no
9653fi
9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655fi
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9659	CFLAGS="$xorg_testset_save_CFLAGS"
9660fi
9661
9662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665	fi
9666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9670  $as_echo_n "(cached) " >&6
9671else
9672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673/* end confdefs.h.  */
9674int i;
9675_ACEOF
9676if ac_fn_c_try_compile "$LINENO"; then :
9677  xorg_cv_cc_flag_unused_command_line_argument=yes
9678else
9679  xorg_cv_cc_flag_unused_command_line_argument=no
9680fi
9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9686	CFLAGS="$xorg_testset_save_CFLAGS"
9687fi
9688
9689found="no"
9690
9691	if test $found = "no" ; then
9692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9694		fi
9695
9696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698		fi
9699
9700		CFLAGS="$CFLAGS -Waddress"
9701
9702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9703$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9704		cacheid=xorg_cv_cc_flag__Waddress
9705		if eval \${$cacheid+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711int
9712main ()
9713{
9714
9715  ;
9716  return 0;
9717}
9718_ACEOF
9719if ac_fn_c_try_link "$LINENO"; then :
9720  eval $cacheid=yes
9721else
9722  eval $cacheid=no
9723fi
9724rm -f core conftest.err conftest.$ac_objext \
9725    conftest$ac_exeext conftest.$ac_ext
9726fi
9727
9728
9729		CFLAGS="$xorg_testset_save_CFLAGS"
9730
9731		eval supported=\$$cacheid
9732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9733$as_echo "$supported" >&6; }
9734		if test "$supported" = "yes" ; then
9735			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9736			found="yes"
9737		fi
9738	fi
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754xorg_testset_save_CFLAGS="$CFLAGS"
9755
9756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9761  $as_echo_n "(cached) " >&6
9762else
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766_ACEOF
9767if ac_fn_c_try_compile "$LINENO"; then :
9768  xorg_cv_cc_flag_unknown_warning_option=yes
9769else
9770  xorg_cv_cc_flag_unknown_warning_option=no
9771fi
9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9777	CFLAGS="$xorg_testset_save_CFLAGS"
9778fi
9779
9780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783	fi
9784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9788  $as_echo_n "(cached) " >&6
9789else
9790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int i;
9793_ACEOF
9794if ac_fn_c_try_compile "$LINENO"; then :
9795  xorg_cv_cc_flag_unused_command_line_argument=yes
9796else
9797  xorg_cv_cc_flag_unused_command_line_argument=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804	CFLAGS="$xorg_testset_save_CFLAGS"
9805fi
9806
9807found="no"
9808
9809	if test $found = "no" ; then
9810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812		fi
9813
9814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816		fi
9817
9818		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9819
9820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9821$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9822		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9823		if eval \${$cacheid+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829int
9830main ()
9831{
9832
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"; then :
9838  eval $cacheid=yes
9839else
9840  eval $cacheid=no
9841fi
9842rm -f core conftest.err conftest.$ac_objext \
9843    conftest$ac_exeext conftest.$ac_ext
9844fi
9845
9846
9847		CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849		eval supported=\$$cacheid
9850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851$as_echo "$supported" >&6; }
9852		if test "$supported" = "yes" ; then
9853			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9854			found="yes"
9855		fi
9856	fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872xorg_testset_save_CFLAGS="$CFLAGS"
9873
9874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883int i;
9884_ACEOF
9885if ac_fn_c_try_compile "$LINENO"; then :
9886  xorg_cv_cc_flag_unknown_warning_option=yes
9887else
9888  xorg_cv_cc_flag_unknown_warning_option=no
9889fi
9890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9895	CFLAGS="$xorg_testset_save_CFLAGS"
9896fi
9897
9898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9901	fi
9902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909/* end confdefs.h.  */
9910int i;
9911_ACEOF
9912if ac_fn_c_try_compile "$LINENO"; then :
9913  xorg_cv_cc_flag_unused_command_line_argument=yes
9914else
9915  xorg_cv_cc_flag_unused_command_line_argument=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9922	CFLAGS="$xorg_testset_save_CFLAGS"
9923fi
9924
9925found="no"
9926
9927	if test $found = "no" ; then
9928		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9930		fi
9931
9932		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9934		fi
9935
9936		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9937
9938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9939$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9940		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9941		if eval \${$cacheid+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947int
9948main ()
9949{
9950
9951  ;
9952  return 0;
9953}
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"; then :
9956  eval $cacheid=yes
9957else
9958  eval $cacheid=no
9959fi
9960rm -f core conftest.err conftest.$ac_objext \
9961    conftest$ac_exeext conftest.$ac_ext
9962fi
9963
9964
9965		CFLAGS="$xorg_testset_save_CFLAGS"
9966
9967		eval supported=\$$cacheid
9968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9969$as_echo "$supported" >&6; }
9970		if test "$supported" = "yes" ; then
9971			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9972			found="yes"
9973		fi
9974	fi
9975
9976
9977fi
9978
9979
9980
9981
9982
9983
9984
9985		CWARNFLAGS="$BASE_CFLAGS"
9986		if  test "x$GCC" = xyes ; then
9987		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9988		fi
9989
9990
9991
9992
9993
9994
9995
9996
9997# Check whether --enable-strict-compilation was given.
9998if test "${enable_strict_compilation+set}" = set; then :
9999  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10000else
10001  STRICT_COMPILE=no
10002fi
10003
10004
10005
10006
10007
10008
10009STRICT_CFLAGS=""
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023xorg_testset_save_CFLAGS="$CFLAGS"
10024
10025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10030  $as_echo_n "(cached) " >&6
10031else
10032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033/* end confdefs.h.  */
10034int i;
10035_ACEOF
10036if ac_fn_c_try_compile "$LINENO"; then :
10037  xorg_cv_cc_flag_unknown_warning_option=yes
10038else
10039  xorg_cv_cc_flag_unknown_warning_option=no
10040fi
10041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042fi
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10046	CFLAGS="$xorg_testset_save_CFLAGS"
10047fi
10048
10049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052	fi
10053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10057  $as_echo_n "(cached) " >&6
10058else
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062_ACEOF
10063if ac_fn_c_try_compile "$LINENO"; then :
10064  xorg_cv_cc_flag_unused_command_line_argument=yes
10065else
10066  xorg_cv_cc_flag_unused_command_line_argument=no
10067fi
10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069fi
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10073	CFLAGS="$xorg_testset_save_CFLAGS"
10074fi
10075
10076found="no"
10077
10078	if test $found = "no" ; then
10079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081		fi
10082
10083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10085		fi
10086
10087		CFLAGS="$CFLAGS -pedantic"
10088
10089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10090$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10091		cacheid=xorg_cv_cc_flag__pedantic
10092		if eval \${$cacheid+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097int i;
10098int
10099main ()
10100{
10101
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106if ac_fn_c_try_link "$LINENO"; then :
10107  eval $cacheid=yes
10108else
10109  eval $cacheid=no
10110fi
10111rm -f core conftest.err conftest.$ac_objext \
10112    conftest$ac_exeext conftest.$ac_ext
10113fi
10114
10115
10116		CFLAGS="$xorg_testset_save_CFLAGS"
10117
10118		eval supported=\$$cacheid
10119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10120$as_echo "$supported" >&6; }
10121		if test "$supported" = "yes" ; then
10122			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10123			found="yes"
10124		fi
10125	fi
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141xorg_testset_save_CFLAGS="$CFLAGS"
10142
10143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h.  */
10152int i;
10153_ACEOF
10154if ac_fn_c_try_compile "$LINENO"; then :
10155  xorg_cv_cc_flag_unknown_warning_option=yes
10156else
10157  xorg_cv_cc_flag_unknown_warning_option=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160fi
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164	CFLAGS="$xorg_testset_save_CFLAGS"
10165fi
10166
10167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170	fi
10171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"; then :
10182  xorg_cv_cc_flag_unused_command_line_argument=yes
10183else
10184  xorg_cv_cc_flag_unused_command_line_argument=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187fi
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10191	CFLAGS="$xorg_testset_save_CFLAGS"
10192fi
10193
10194found="no"
10195
10196	if test $found = "no" ; then
10197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199		fi
10200
10201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10203		fi
10204
10205		CFLAGS="$CFLAGS -Werror"
10206
10207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10208$as_echo_n "checking if $CC supports -Werror... " >&6; }
10209		cacheid=xorg_cv_cc_flag__Werror
10210		if eval \${$cacheid+:} false; then :
10211  $as_echo_n "(cached) " >&6
10212else
10213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h.  */
10215int i;
10216int
10217main ()
10218{
10219
10220  ;
10221  return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
10225  eval $cacheid=yes
10226else
10227  eval $cacheid=no
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230    conftest$ac_exeext conftest.$ac_ext
10231fi
10232
10233
10234		CFLAGS="$xorg_testset_save_CFLAGS"
10235
10236		eval supported=\$$cacheid
10237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10238$as_echo "$supported" >&6; }
10239		if test "$supported" = "yes" ; then
10240			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10241			found="yes"
10242		fi
10243	fi
10244
10245	if test $found = "no" ; then
10246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248		fi
10249
10250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252		fi
10253
10254		CFLAGS="$CFLAGS -errwarn"
10255
10256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10257$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10258		cacheid=xorg_cv_cc_flag__errwarn
10259		if eval \${$cacheid+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263/* end confdefs.h.  */
10264int i;
10265int
10266main ()
10267{
10268
10269  ;
10270  return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_link "$LINENO"; then :
10274  eval $cacheid=yes
10275else
10276  eval $cacheid=no
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279    conftest$ac_exeext conftest.$ac_ext
10280fi
10281
10282
10283		CFLAGS="$xorg_testset_save_CFLAGS"
10284
10285		eval supported=\$$cacheid
10286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10287$as_echo "$supported" >&6; }
10288		if test "$supported" = "yes" ; then
10289			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10290			found="yes"
10291		fi
10292	fi
10293
10294
10295
10296# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10297# activate it with -Werror, so we add it here explicitly.
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311xorg_testset_save_CFLAGS="$CFLAGS"
10312
10313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10318  $as_echo_n "(cached) " >&6
10319else
10320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321/* end confdefs.h.  */
10322int i;
10323_ACEOF
10324if ac_fn_c_try_compile "$LINENO"; then :
10325  xorg_cv_cc_flag_unknown_warning_option=yes
10326else
10327  xorg_cv_cc_flag_unknown_warning_option=no
10328fi
10329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10330fi
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10334	CFLAGS="$xorg_testset_save_CFLAGS"
10335fi
10336
10337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10340	fi
10341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10345  $as_echo_n "(cached) " >&6
10346else
10347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h.  */
10349int i;
10350_ACEOF
10351if ac_fn_c_try_compile "$LINENO"; then :
10352  xorg_cv_cc_flag_unused_command_line_argument=yes
10353else
10354  xorg_cv_cc_flag_unused_command_line_argument=no
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357fi
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10361	CFLAGS="$xorg_testset_save_CFLAGS"
10362fi
10363
10364found="no"
10365
10366	if test $found = "no" ; then
10367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369		fi
10370
10371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10373		fi
10374
10375		CFLAGS="$CFLAGS -Werror=attributes"
10376
10377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10378$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10379		cacheid=xorg_cv_cc_flag__Werror_attributes
10380		if eval \${$cacheid+:} false; then :
10381  $as_echo_n "(cached) " >&6
10382else
10383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385int i;
10386int
10387main ()
10388{
10389
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395  eval $cacheid=yes
10396else
10397  eval $cacheid=no
10398fi
10399rm -f core conftest.err conftest.$ac_objext \
10400    conftest$ac_exeext conftest.$ac_ext
10401fi
10402
10403
10404		CFLAGS="$xorg_testset_save_CFLAGS"
10405
10406		eval supported=\$$cacheid
10407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10408$as_echo "$supported" >&6; }
10409		if test "$supported" = "yes" ; then
10410			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10411			found="yes"
10412		fi
10413	fi
10414
10415
10416
10417if test "x$STRICT_COMPILE" = "xyes"; then
10418    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10419    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10420fi
10421
10422
10423
10424
10425
10426
10427cat >>confdefs.h <<_ACEOF
10428#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10429_ACEOF
10430
10431	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10432	if test "x$PVM" = "x"; then
10433		PVM="0"
10434	fi
10435
10436cat >>confdefs.h <<_ACEOF
10437#define PACKAGE_VERSION_MINOR $PVM
10438_ACEOF
10439
10440	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10441	if test "x$PVP" = "x"; then
10442		PVP="0"
10443	fi
10444
10445cat >>confdefs.h <<_ACEOF
10446#define PACKAGE_VERSION_PATCHLEVEL $PVP
10447_ACEOF
10448
10449
10450
10451CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10452mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10453|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10454touch \$(top_srcdir)/ChangeLog; \
10455echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10456
10457
10458
10459
10460macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10461INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10462mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10463|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10464touch \$(top_srcdir)/INSTALL; \
10465echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10466
10467
10468
10469
10470
10471
10472case $host_os in
10473    solaris*)
10474        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10475        # check for a man page file found in later versions that use
10476        # traditional section numbers instead
10477        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10478$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10479if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10480  $as_echo_n "(cached) " >&6
10481else
10482  test "$cross_compiling" = yes &&
10483  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10484if test -r "/usr/share/man/man7/attributes.7"; then
10485  ac_cv_file__usr_share_man_man7_attributes_7=yes
10486else
10487  ac_cv_file__usr_share_man_man7_attributes_7=no
10488fi
10489fi
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10491$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10492if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10493  SYSV_MAN_SECTIONS=false
10494else
10495  SYSV_MAN_SECTIONS=true
10496fi
10497
10498        ;;
10499    *) SYSV_MAN_SECTIONS=false ;;
10500esac
10501
10502if test x$APP_MAN_SUFFIX = x    ; then
10503    APP_MAN_SUFFIX=1
10504fi
10505if test x$APP_MAN_DIR = x    ; then
10506    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10507fi
10508
10509if test x$LIB_MAN_SUFFIX = x    ; then
10510    LIB_MAN_SUFFIX=3
10511fi
10512if test x$LIB_MAN_DIR = x    ; then
10513    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10514fi
10515
10516if test x$FILE_MAN_SUFFIX = x    ; then
10517    case $SYSV_MAN_SECTIONS in
10518	true)				FILE_MAN_SUFFIX=4  ;;
10519	*)				FILE_MAN_SUFFIX=5  ;;
10520    esac
10521fi
10522if test x$FILE_MAN_DIR = x    ; then
10523    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10524fi
10525
10526if test x$MISC_MAN_SUFFIX = x    ; then
10527    case $SYSV_MAN_SECTIONS in
10528	true)				MISC_MAN_SUFFIX=5  ;;
10529	*)				MISC_MAN_SUFFIX=7  ;;
10530    esac
10531fi
10532if test x$MISC_MAN_DIR = x    ; then
10533    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10534fi
10535
10536if test x$DRIVER_MAN_SUFFIX = x    ; then
10537    case $SYSV_MAN_SECTIONS in
10538	true)				DRIVER_MAN_SUFFIX=7  ;;
10539	*)				DRIVER_MAN_SUFFIX=4  ;;
10540    esac
10541fi
10542if test x$DRIVER_MAN_DIR = x    ; then
10543    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10544fi
10545
10546if test x$ADMIN_MAN_SUFFIX = x    ; then
10547    case $SYSV_MAN_SECTIONS in
10548	true)				ADMIN_MAN_SUFFIX=1m ;;
10549	*)				ADMIN_MAN_SUFFIX=8  ;;
10550    esac
10551fi
10552if test x$ADMIN_MAN_DIR = x    ; then
10553    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10554fi
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570XORG_MAN_PAGE="X Version 11"
10571
10572MAN_SUBSTS="\
10573	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10574	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10575	-e 's|__xservername__|Xorg|g' \
10576	-e 's|__xconfigfile__|xorg.conf|g' \
10577	-e 's|__projectroot__|\$(prefix)|g' \
10578	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10579	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10580	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10581	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10582	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10583	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10584	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10585
10586
10587
10588# Check whether --enable-silent-rules was given.
10589if test "${enable_silent_rules+set}" = set; then :
10590  enableval=$enable_silent_rules;
10591fi
10592
10593case $enable_silent_rules in # (((
10594  yes) AM_DEFAULT_VERBOSITY=0;;
10595   no) AM_DEFAULT_VERBOSITY=1;;
10596    *) AM_DEFAULT_VERBOSITY=0;;
10597esac
10598am_make=${MAKE-make}
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10600$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10601if ${am_cv_make_support_nested_variables+:} false; then :
10602  $as_echo_n "(cached) " >&6
10603else
10604  if $as_echo 'TRUE=$(BAR$(V))
10605BAR0=false
10606BAR1=true
10607V=1
10608am__doit:
10609	@$(TRUE)
10610.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10611  am_cv_make_support_nested_variables=yes
10612else
10613  am_cv_make_support_nested_variables=no
10614fi
10615fi
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10617$as_echo "$am_cv_make_support_nested_variables" >&6; }
10618if test $am_cv_make_support_nested_variables = yes; then
10619    AM_V='$(V)'
10620  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10621else
10622  AM_V=$AM_DEFAULT_VERBOSITY
10623  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10624fi
10625AM_BACKSLASH='\'
10626
10627
10628
10629
10630
10631# Require X.Org's font util macros 1.2 or later
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
10648$as_echo_n "checking for root directory for font files... " >&6; }
10649
10650# Check whether --with-fontrootdir was given.
10651if test "${with_fontrootdir+set}" = set; then :
10652  withval=$with_fontrootdir; FONTROOTDIR="$withval"
10653fi
10654
10655	# if --with-fontrootdir not specified...
10656	if test "x${FONTROOTDIR}" = "x"; then
10657		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
10658	fi
10659	# ...and if pkg-config didn't find fontdir in fontutil.pc...
10660	if test "x${FONTROOTDIR}" = "x"; then
10661		FONTROOTDIR="${datadir}/fonts/X11"
10662	fi
10663
10664	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
10665$as_echo "${FONTROOTDIR}" >&6; }
10666
10667
10668
10669# Check whether --with-top-fontdir was given.
10670if test "${with_top_fontdir+set}" = set; then :
10671  withval=$with_top_fontdir; as_fn_error $? "--with-top-fontdir is obsolete, use --with-fontrootdir instead" "$LINENO" 5
10672fi
10673
10674
10675
10676ac_config_files="$ac_config_files Makefile 100dpi/Makefile 75dpi/Makefile cyrillic/Makefile misc/Makefile"
10677
10678cat >confcache <<\_ACEOF
10679# This file is a shell script that caches the results of configure
10680# tests run on this system so they can be shared between configure
10681# scripts and configure runs, see configure's option --config-cache.
10682# It is not useful on other systems.  If it contains results you don't
10683# want to keep, you may remove or edit it.
10684#
10685# config.status only pays attention to the cache file if you give it
10686# the --recheck option to rerun configure.
10687#
10688# `ac_cv_env_foo' variables (set or unset) will be overridden when
10689# loading this file, other *unset* `ac_cv_foo' will be assigned the
10690# following values.
10691
10692_ACEOF
10693
10694# The following way of writing the cache mishandles newlines in values,
10695# but we know of no workaround that is simple, portable, and efficient.
10696# So, we kill variables containing newlines.
10697# Ultrix sh set writes to stderr and can't be redirected directly,
10698# and sets the high bit in the cache file unless we assign to the vars.
10699(
10700  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10701    eval ac_val=\$$ac_var
10702    case $ac_val in #(
10703    *${as_nl}*)
10704      case $ac_var in #(
10705      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10706$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10707      esac
10708      case $ac_var in #(
10709      _ | IFS | as_nl) ;; #(
10710      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10711      *) { eval $ac_var=; unset $ac_var;} ;;
10712      esac ;;
10713    esac
10714  done
10715
10716  (set) 2>&1 |
10717    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10718    *${as_nl}ac_space=\ *)
10719      # `set' does not quote correctly, so add quotes: double-quote
10720      # substitution turns \\\\ into \\, and sed turns \\ into \.
10721      sed -n \
10722	"s/'/'\\\\''/g;
10723	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10724      ;; #(
10725    *)
10726      # `set' quotes correctly as required by POSIX, so do not add quotes.
10727      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10728      ;;
10729    esac |
10730    sort
10731) |
10732  sed '
10733     /^ac_cv_env_/b end
10734     t clear
10735     :clear
10736     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10737     t end
10738     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10739     :end' >>confcache
10740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10741  if test -w "$cache_file"; then
10742    if test "x$cache_file" != "x/dev/null"; then
10743      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10744$as_echo "$as_me: updating cache $cache_file" >&6;}
10745      if test ! -f "$cache_file" || test -h "$cache_file"; then
10746	cat confcache >"$cache_file"
10747      else
10748        case $cache_file in #(
10749        */* | ?:*)
10750	  mv -f confcache "$cache_file"$$ &&
10751	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10752        *)
10753	  mv -f confcache "$cache_file" ;;
10754	esac
10755      fi
10756    fi
10757  else
10758    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10759$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10760  fi
10761fi
10762rm -f confcache
10763
10764test "x$prefix" = xNONE && prefix=$ac_default_prefix
10765# Let make expand exec_prefix.
10766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10767
10768# Transform confdefs.h into DEFS.
10769# Protect against shell expansion while executing Makefile rules.
10770# Protect against Makefile macro expansion.
10771#
10772# If the first sed substitution is executed (which looks for macros that
10773# take arguments), then branch to the quote section.  Otherwise,
10774# look for a macro that doesn't take arguments.
10775ac_script='
10776:mline
10777/\\$/{
10778 N
10779 s,\\\n,,
10780 b mline
10781}
10782t clear
10783:clear
10784s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
10785t quote
10786s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
10787t quote
10788b any
10789:quote
10790s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10791s/\[/\\&/g
10792s/\]/\\&/g
10793s/\$/$$/g
10794H
10795:any
10796${
10797	g
10798	s/^\n//
10799	s/\n/ /g
10800	p
10801}
10802'
10803DEFS=`sed -n "$ac_script" confdefs.h`
10804
10805
10806ac_libobjs=
10807ac_ltlibobjs=
10808U=
10809for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10810  # 1. Remove the extension, and $U if already installed.
10811  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10812  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10813  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10814  #    will be set to the directory where LIBOBJS objects are built.
10815  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10816  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10817done
10818LIBOBJS=$ac_libobjs
10819
10820LTLIBOBJS=$ac_ltlibobjs
10821
10822
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10824$as_echo_n "checking that generated files are newer than configure... " >&6; }
10825   if test -n "$am_sleep_pid"; then
10826     # Hide warnings about reused PIDs.
10827     wait $am_sleep_pid 2>/dev/null
10828   fi
10829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10830$as_echo "done" >&6; }
10831 if test -n "$EXEEXT"; then
10832  am__EXEEXT_TRUE=
10833  am__EXEEXT_FALSE='#'
10834else
10835  am__EXEEXT_TRUE='#'
10836  am__EXEEXT_FALSE=
10837fi
10838
10839if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10840  as_fn_error $? "conditional \"AMDEP\" was never defined.
10841Usually this means the macro was only invoked conditionally." "$LINENO" 5
10842fi
10843if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10844  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10845Usually this means the macro was only invoked conditionally." "$LINENO" 5
10846fi
10847
10848: "${CONFIG_STATUS=./config.status}"
10849ac_write_fail=0
10850ac_clean_files_save=$ac_clean_files
10851ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10853$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10854as_write_fail=0
10855cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10856#! $SHELL
10857# Generated by $as_me.
10858# Run this file to recreate the current configuration.
10859# Compiler output produced by configure, useful for debugging
10860# configure, is in config.log if it exists.
10861
10862debug=false
10863ac_cs_recheck=false
10864ac_cs_silent=false
10865
10866SHELL=\${CONFIG_SHELL-$SHELL}
10867export SHELL
10868_ASEOF
10869cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10870## -------------------- ##
10871## M4sh Initialization. ##
10872## -------------------- ##
10873
10874# Be more Bourne compatible
10875DUALCASE=1; export DUALCASE # for MKS sh
10876if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10877  emulate sh
10878  NULLCMD=:
10879  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10880  # is contrary to our usage.  Disable this feature.
10881  alias -g '${1+"$@"}'='"$@"'
10882  setopt NO_GLOB_SUBST
10883else
10884  case `(set -o) 2>/dev/null` in #(
10885  *posix*) :
10886    set -o posix ;; #(
10887  *) :
10888     ;;
10889esac
10890fi
10891
10892
10893as_nl='
10894'
10895export as_nl
10896# Printing a long string crashes Solaris 7 /usr/bin/printf.
10897as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10898as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10900# Prefer a ksh shell builtin over an external printf program on Solaris,
10901# but without wasting forks for bash or zsh.
10902if test -z "$BASH_VERSION$ZSH_VERSION" \
10903    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10904  as_echo='print -r --'
10905  as_echo_n='print -rn --'
10906elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10907  as_echo='printf %s\n'
10908  as_echo_n='printf %s'
10909else
10910  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10911    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10912    as_echo_n='/usr/ucb/echo -n'
10913  else
10914    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10915    as_echo_n_body='eval
10916      arg=$1;
10917      case $arg in #(
10918      *"$as_nl"*)
10919	expr "X$arg" : "X\\(.*\\)$as_nl";
10920	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10921      esac;
10922      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10923    '
10924    export as_echo_n_body
10925    as_echo_n='sh -c $as_echo_n_body as_echo'
10926  fi
10927  export as_echo_body
10928  as_echo='sh -c $as_echo_body as_echo'
10929fi
10930
10931# The user is always right.
10932if test "${PATH_SEPARATOR+set}" != set; then
10933  PATH_SEPARATOR=:
10934  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10935    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10936      PATH_SEPARATOR=';'
10937  }
10938fi
10939
10940
10941# IFS
10942# We need space, tab and new line, in precisely that order.  Quoting is
10943# there to prevent editors from complaining about space-tab.
10944# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10945# splitting by setting IFS to empty value.)
10946IFS=" ""	$as_nl"
10947
10948# Find who we are.  Look in the path if we contain no directory separator.
10949as_myself=
10950case $0 in #((
10951  *[\\/]* ) as_myself=$0 ;;
10952  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955  IFS=$as_save_IFS
10956  test -z "$as_dir" && as_dir=.
10957    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10958  done
10959IFS=$as_save_IFS
10960
10961     ;;
10962esac
10963# We did not find ourselves, most probably we were run as `sh COMMAND'
10964# in which case we are not to be found in the path.
10965if test "x$as_myself" = x; then
10966  as_myself=$0
10967fi
10968if test ! -f "$as_myself"; then
10969  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10970  exit 1
10971fi
10972
10973# Unset variables that we do not need and which cause bugs (e.g. in
10974# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10975# suppresses any "Segmentation fault" message there.  '((' could
10976# trigger a bug in pdksh 5.2.14.
10977for as_var in BASH_ENV ENV MAIL MAILPATH
10978do eval test x\${$as_var+set} = xset \
10979  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10980done
10981PS1='$ '
10982PS2='> '
10983PS4='+ '
10984
10985# NLS nuisances.
10986LC_ALL=C
10987export LC_ALL
10988LANGUAGE=C
10989export LANGUAGE
10990
10991# CDPATH.
10992(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10993
10994
10995# as_fn_error STATUS ERROR [LINENO LOG_FD]
10996# ----------------------------------------
10997# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10998# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10999# script with STATUS, using 1 if that was 0.
11000as_fn_error ()
11001{
11002  as_status=$1; test $as_status -eq 0 && as_status=1
11003  if test "$4"; then
11004    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11005    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11006  fi
11007  $as_echo "$as_me: error: $2" >&2
11008  as_fn_exit $as_status
11009} # as_fn_error
11010
11011
11012# as_fn_set_status STATUS
11013# -----------------------
11014# Set $? to STATUS, without forking.
11015as_fn_set_status ()
11016{
11017  return $1
11018} # as_fn_set_status
11019
11020# as_fn_exit STATUS
11021# -----------------
11022# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11023as_fn_exit ()
11024{
11025  set +e
11026  as_fn_set_status $1
11027  exit $1
11028} # as_fn_exit
11029
11030# as_fn_unset VAR
11031# ---------------
11032# Portably unset VAR.
11033as_fn_unset ()
11034{
11035  { eval $1=; unset $1;}
11036}
11037as_unset=as_fn_unset
11038# as_fn_append VAR VALUE
11039# ----------------------
11040# Append the text in VALUE to the end of the definition contained in VAR. Take
11041# advantage of any shell optimizations that allow amortized linear growth over
11042# repeated appends, instead of the typical quadratic growth present in naive
11043# implementations.
11044if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11045  eval 'as_fn_append ()
11046  {
11047    eval $1+=\$2
11048  }'
11049else
11050  as_fn_append ()
11051  {
11052    eval $1=\$$1\$2
11053  }
11054fi # as_fn_append
11055
11056# as_fn_arith ARG...
11057# ------------------
11058# Perform arithmetic evaluation on the ARGs, and store the result in the
11059# global $as_val. Take advantage of shells that can avoid forks. The arguments
11060# must be portable across $(()) and expr.
11061if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11062  eval 'as_fn_arith ()
11063  {
11064    as_val=$(( $* ))
11065  }'
11066else
11067  as_fn_arith ()
11068  {
11069    as_val=`expr "$@" || test $? -eq 1`
11070  }
11071fi # as_fn_arith
11072
11073
11074if expr a : '\(a\)' >/dev/null 2>&1 &&
11075   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11076  as_expr=expr
11077else
11078  as_expr=false
11079fi
11080
11081if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11082  as_basename=basename
11083else
11084  as_basename=false
11085fi
11086
11087if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11088  as_dirname=dirname
11089else
11090  as_dirname=false
11091fi
11092
11093as_me=`$as_basename -- "$0" ||
11094$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11095	 X"$0" : 'X\(//\)$' \| \
11096	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11097$as_echo X/"$0" |
11098    sed '/^.*\/\([^/][^/]*\)\/*$/{
11099	    s//\1/
11100	    q
11101	  }
11102	  /^X\/\(\/\/\)$/{
11103	    s//\1/
11104	    q
11105	  }
11106	  /^X\/\(\/\).*/{
11107	    s//\1/
11108	    q
11109	  }
11110	  s/.*/./; q'`
11111
11112# Avoid depending upon Character Ranges.
11113as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11114as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11115as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11116as_cr_digits='0123456789'
11117as_cr_alnum=$as_cr_Letters$as_cr_digits
11118
11119ECHO_C= ECHO_N= ECHO_T=
11120case `echo -n x` in #(((((
11121-n*)
11122  case `echo 'xy\c'` in
11123  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11124  xy)  ECHO_C='\c';;
11125  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11126       ECHO_T='	';;
11127  esac;;
11128*)
11129  ECHO_N='-n';;
11130esac
11131
11132rm -f conf$$ conf$$.exe conf$$.file
11133if test -d conf$$.dir; then
11134  rm -f conf$$.dir/conf$$.file
11135else
11136  rm -f conf$$.dir
11137  mkdir conf$$.dir 2>/dev/null
11138fi
11139if (echo >conf$$.file) 2>/dev/null; then
11140  if ln -s conf$$.file conf$$ 2>/dev/null; then
11141    as_ln_s='ln -s'
11142    # ... but there are two gotchas:
11143    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11144    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11145    # In both cases, we have to default to `cp -pR'.
11146    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11147      as_ln_s='cp -pR'
11148  elif ln conf$$.file conf$$ 2>/dev/null; then
11149    as_ln_s=ln
11150  else
11151    as_ln_s='cp -pR'
11152  fi
11153else
11154  as_ln_s='cp -pR'
11155fi
11156rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11157rmdir conf$$.dir 2>/dev/null
11158
11159
11160# as_fn_mkdir_p
11161# -------------
11162# Create "$as_dir" as a directory, including parents if necessary.
11163as_fn_mkdir_p ()
11164{
11165
11166  case $as_dir in #(
11167  -*) as_dir=./$as_dir;;
11168  esac
11169  test -d "$as_dir" || eval $as_mkdir_p || {
11170    as_dirs=
11171    while :; do
11172      case $as_dir in #(
11173      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11174      *) as_qdir=$as_dir;;
11175      esac
11176      as_dirs="'$as_qdir' $as_dirs"
11177      as_dir=`$as_dirname -- "$as_dir" ||
11178$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11179	 X"$as_dir" : 'X\(//\)[^/]' \| \
11180	 X"$as_dir" : 'X\(//\)$' \| \
11181	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11182$as_echo X"$as_dir" |
11183    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11184	    s//\1/
11185	    q
11186	  }
11187	  /^X\(\/\/\)[^/].*/{
11188	    s//\1/
11189	    q
11190	  }
11191	  /^X\(\/\/\)$/{
11192	    s//\1/
11193	    q
11194	  }
11195	  /^X\(\/\).*/{
11196	    s//\1/
11197	    q
11198	  }
11199	  s/.*/./; q'`
11200      test -d "$as_dir" && break
11201    done
11202    test -z "$as_dirs" || eval "mkdir $as_dirs"
11203  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11204
11205
11206} # as_fn_mkdir_p
11207if mkdir -p . 2>/dev/null; then
11208  as_mkdir_p='mkdir -p "$as_dir"'
11209else
11210  test -d ./-p && rmdir ./-p
11211  as_mkdir_p=false
11212fi
11213
11214
11215# as_fn_executable_p FILE
11216# -----------------------
11217# Test if FILE is an executable regular file.
11218as_fn_executable_p ()
11219{
11220  test -f "$1" && test -x "$1"
11221} # as_fn_executable_p
11222as_test_x='test -x'
11223as_executable_p=as_fn_executable_p
11224
11225# Sed expression to map a string onto a valid CPP name.
11226as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11227
11228# Sed expression to map a string onto a valid variable name.
11229as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11230
11231
11232exec 6>&1
11233## ----------------------------------- ##
11234## Main body of $CONFIG_STATUS script. ##
11235## ----------------------------------- ##
11236_ASEOF
11237test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11238
11239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11240# Save the log message, to keep $0 and so on meaningful, and to
11241# report actual input values of CONFIG_FILES etc. instead of their
11242# values after options handling.
11243ac_log="
11244This file was extended by font-alias $as_me 1.0.4, which was
11245generated by GNU Autoconf 2.69.  Invocation command line was
11246
11247  CONFIG_FILES    = $CONFIG_FILES
11248  CONFIG_HEADERS  = $CONFIG_HEADERS
11249  CONFIG_LINKS    = $CONFIG_LINKS
11250  CONFIG_COMMANDS = $CONFIG_COMMANDS
11251  $ $0 $@
11252
11253on `(hostname || uname -n) 2>/dev/null | sed 1q`
11254"
11255
11256_ACEOF
11257
11258case $ac_config_files in *"
11259"*) set x $ac_config_files; shift; ac_config_files=$*;;
11260esac
11261
11262
11263
11264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11265# Files that config.status was made for.
11266config_files="$ac_config_files"
11267config_commands="$ac_config_commands"
11268
11269_ACEOF
11270
11271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11272ac_cs_usage="\
11273\`$as_me' instantiates files and other configuration actions
11274from templates according to the current configuration.  Unless the files
11275and actions are specified as TAGs, all are instantiated by default.
11276
11277Usage: $0 [OPTION]... [TAG]...
11278
11279  -h, --help       print this help, then exit
11280  -V, --version    print version number and configuration settings, then exit
11281      --config     print configuration, then exit
11282  -q, --quiet, --silent
11283                   do not print progress messages
11284  -d, --debug      don't remove temporary files
11285      --recheck    update $as_me by reconfiguring in the same conditions
11286      --file=FILE[:TEMPLATE]
11287                   instantiate the configuration file FILE
11288
11289Configuration files:
11290$config_files
11291
11292Configuration commands:
11293$config_commands
11294
11295Report bugs to <https://gitlab.freedesktop.org/xorg/font/alias/issues>."
11296
11297_ACEOF
11298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11299ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11300ac_cs_version="\\
11301font-alias config.status 1.0.4
11302configured by $0, generated by GNU Autoconf 2.69,
11303  with options \\"\$ac_cs_config\\"
11304
11305Copyright (C) 2012 Free Software Foundation, Inc.
11306This config.status script is free software; the Free Software Foundation
11307gives unlimited permission to copy, distribute and modify it."
11308
11309ac_pwd='$ac_pwd'
11310srcdir='$srcdir'
11311INSTALL='$INSTALL'
11312MKDIR_P='$MKDIR_P'
11313AWK='$AWK'
11314test -n "\$AWK" || AWK=awk
11315_ACEOF
11316
11317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11318# The default lists apply if the user does not specify any file.
11319ac_need_defaults=:
11320while test $# != 0
11321do
11322  case $1 in
11323  --*=?*)
11324    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11325    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11326    ac_shift=:
11327    ;;
11328  --*=)
11329    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11330    ac_optarg=
11331    ac_shift=:
11332    ;;
11333  *)
11334    ac_option=$1
11335    ac_optarg=$2
11336    ac_shift=shift
11337    ;;
11338  esac
11339
11340  case $ac_option in
11341  # Handling of the options.
11342  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11343    ac_cs_recheck=: ;;
11344  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11345    $as_echo "$ac_cs_version"; exit ;;
11346  --config | --confi | --conf | --con | --co | --c )
11347    $as_echo "$ac_cs_config"; exit ;;
11348  --debug | --debu | --deb | --de | --d | -d )
11349    debug=: ;;
11350  --file | --fil | --fi | --f )
11351    $ac_shift
11352    case $ac_optarg in
11353    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11354    '') as_fn_error $? "missing file argument" ;;
11355    esac
11356    as_fn_append CONFIG_FILES " '$ac_optarg'"
11357    ac_need_defaults=false;;
11358  --he | --h |  --help | --hel | -h )
11359    $as_echo "$ac_cs_usage"; exit ;;
11360  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11361  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11362    ac_cs_silent=: ;;
11363
11364  # This is an error.
11365  -*) as_fn_error $? "unrecognized option: \`$1'
11366Try \`$0 --help' for more information." ;;
11367
11368  *) as_fn_append ac_config_targets " $1"
11369     ac_need_defaults=false ;;
11370
11371  esac
11372  shift
11373done
11374
11375ac_configure_extra_args=
11376
11377if $ac_cs_silent; then
11378  exec 6>/dev/null
11379  ac_configure_extra_args="$ac_configure_extra_args --silent"
11380fi
11381
11382_ACEOF
11383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11384if \$ac_cs_recheck; then
11385  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11386  shift
11387  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11388  CONFIG_SHELL='$SHELL'
11389  export CONFIG_SHELL
11390  exec "\$@"
11391fi
11392
11393_ACEOF
11394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11395exec 5>>config.log
11396{
11397  echo
11398  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11399## Running $as_me. ##
11400_ASBOX
11401  $as_echo "$ac_log"
11402} >&5
11403
11404_ACEOF
11405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11406#
11407# INIT-COMMANDS
11408#
11409AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11410
11411_ACEOF
11412
11413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11414
11415# Handling of arguments.
11416for ac_config_target in $ac_config_targets
11417do
11418  case $ac_config_target in
11419    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11420    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11421    "100dpi/Makefile") CONFIG_FILES="$CONFIG_FILES 100dpi/Makefile" ;;
11422    "75dpi/Makefile") CONFIG_FILES="$CONFIG_FILES 75dpi/Makefile" ;;
11423    "cyrillic/Makefile") CONFIG_FILES="$CONFIG_FILES cyrillic/Makefile" ;;
11424    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
11425
11426  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11427  esac
11428done
11429
11430
11431# If the user did not use the arguments to specify the items to instantiate,
11432# then the envvar interface is used.  Set only those that are not.
11433# We use the long form for the default assignment because of an extremely
11434# bizarre bug on SunOS 4.1.3.
11435if $ac_need_defaults; then
11436  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11437  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11438fi
11439
11440# Have a temporary directory for convenience.  Make it in the build tree
11441# simply because there is no reason against having it here, and in addition,
11442# creating and moving files from /tmp can sometimes cause problems.
11443# Hook for its removal unless debugging.
11444# Note that there is a small window in which the directory will not be cleaned:
11445# after its creation but before its name has been assigned to `$tmp'.
11446$debug ||
11447{
11448  tmp= ac_tmp=
11449  trap 'exit_status=$?
11450  : "${ac_tmp:=$tmp}"
11451  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11452' 0
11453  trap 'as_fn_exit 1' 1 2 13 15
11454}
11455# Create a (secure) tmp directory for tmp files.
11456
11457{
11458  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11459  test -d "$tmp"
11460}  ||
11461{
11462  tmp=./conf$$-$RANDOM
11463  (umask 077 && mkdir "$tmp")
11464} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11465ac_tmp=$tmp
11466
11467# Set up the scripts for CONFIG_FILES section.
11468# No need to generate them if there are no CONFIG_FILES.
11469# This happens for instance with `./config.status config.h'.
11470if test -n "$CONFIG_FILES"; then
11471
11472
11473ac_cr=`echo X | tr X '\015'`
11474# On cygwin, bash can eat \r inside `` if the user requested igncr.
11475# But we know of no other shell where ac_cr would be empty at this
11476# point, so we can use a bashism as a fallback.
11477if test "x$ac_cr" = x; then
11478  eval ac_cr=\$\'\\r\'
11479fi
11480ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11481if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11482  ac_cs_awk_cr='\\r'
11483else
11484  ac_cs_awk_cr=$ac_cr
11485fi
11486
11487echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11488_ACEOF
11489
11490
11491{
11492  echo "cat >conf$$subs.awk <<_ACEOF" &&
11493  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11494  echo "_ACEOF"
11495} >conf$$subs.sh ||
11496  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11497ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11498ac_delim='%!_!# '
11499for ac_last_try in false false false false false :; do
11500  . ./conf$$subs.sh ||
11501    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11502
11503  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11504  if test $ac_delim_n = $ac_delim_num; then
11505    break
11506  elif $ac_last_try; then
11507    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11508  else
11509    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11510  fi
11511done
11512rm -f conf$$subs.sh
11513
11514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11515cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11516_ACEOF
11517sed -n '
11518h
11519s/^/S["/; s/!.*/"]=/
11520p
11521g
11522s/^[^!]*!//
11523:repl
11524t repl
11525s/'"$ac_delim"'$//
11526t delim
11527:nl
11528h
11529s/\(.\{148\}\)..*/\1/
11530t more1
11531s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11532p
11533n
11534b repl
11535:more1
11536s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11537p
11538g
11539s/.\{148\}//
11540t nl
11541:delim
11542h
11543s/\(.\{148\}\)..*/\1/
11544t more2
11545s/["\\]/\\&/g; s/^/"/; s/$/"/
11546p
11547b
11548:more2
11549s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11550p
11551g
11552s/.\{148\}//
11553t delim
11554' <conf$$subs.awk | sed '
11555/^[^""]/{
11556  N
11557  s/\n//
11558}
11559' >>$CONFIG_STATUS || ac_write_fail=1
11560rm -f conf$$subs.awk
11561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11562_ACAWK
11563cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11564  for (key in S) S_is_set[key] = 1
11565  FS = ""
11566
11567}
11568{
11569  line = $ 0
11570  nfields = split(line, field, "@")
11571  substed = 0
11572  len = length(field[1])
11573  for (i = 2; i < nfields; i++) {
11574    key = field[i]
11575    keylen = length(key)
11576    if (S_is_set[key]) {
11577      value = S[key]
11578      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11579      len += length(value) + length(field[++i])
11580      substed = 1
11581    } else
11582      len += 1 + keylen
11583  }
11584
11585  print line
11586}
11587
11588_ACAWK
11589_ACEOF
11590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11591if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11592  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11593else
11594  cat
11595fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11596  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11597_ACEOF
11598
11599# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11600# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11601# trailing colons and then remove the whole line if VPATH becomes empty
11602# (actually we leave an empty line to preserve line numbers).
11603if test "x$srcdir" = x.; then
11604  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11605h
11606s///
11607s/^/:/
11608s/[	 ]*$/:/
11609s/:\$(srcdir):/:/g
11610s/:\${srcdir}:/:/g
11611s/:@srcdir@:/:/g
11612s/^:*//
11613s/:*$//
11614x
11615s/\(=[	 ]*\).*/\1/
11616G
11617s/\n//
11618s/^[^=]*=[	 ]*$//
11619}'
11620fi
11621
11622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11623fi # test -n "$CONFIG_FILES"
11624
11625
11626eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11627shift
11628for ac_tag
11629do
11630  case $ac_tag in
11631  :[FHLC]) ac_mode=$ac_tag; continue;;
11632  esac
11633  case $ac_mode$ac_tag in
11634  :[FHL]*:*);;
11635  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11636  :[FH]-) ac_tag=-:-;;
11637  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11638  esac
11639  ac_save_IFS=$IFS
11640  IFS=:
11641  set x $ac_tag
11642  IFS=$ac_save_IFS
11643  shift
11644  ac_file=$1
11645  shift
11646
11647  case $ac_mode in
11648  :L) ac_source=$1;;
11649  :[FH])
11650    ac_file_inputs=
11651    for ac_f
11652    do
11653      case $ac_f in
11654      -) ac_f="$ac_tmp/stdin";;
11655      *) # Look for the file first in the build tree, then in the source tree
11656	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11657	 # because $ac_f cannot contain `:'.
11658	 test -f "$ac_f" ||
11659	   case $ac_f in
11660	   [\\/$]*) false;;
11661	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11662	   esac ||
11663	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11664      esac
11665      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11666      as_fn_append ac_file_inputs " '$ac_f'"
11667    done
11668
11669    # Let's still pretend it is `configure' which instantiates (i.e., don't
11670    # use $as_me), people would be surprised to read:
11671    #    /* config.h.  Generated by config.status.  */
11672    configure_input='Generated from '`
11673	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11674	`' by configure.'
11675    if test x"$ac_file" != x-; then
11676      configure_input="$ac_file.  $configure_input"
11677      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11678$as_echo "$as_me: creating $ac_file" >&6;}
11679    fi
11680    # Neutralize special characters interpreted by sed in replacement strings.
11681    case $configure_input in #(
11682    *\&* | *\|* | *\\* )
11683       ac_sed_conf_input=`$as_echo "$configure_input" |
11684       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11685    *) ac_sed_conf_input=$configure_input;;
11686    esac
11687
11688    case $ac_tag in
11689    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11690      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11691    esac
11692    ;;
11693  esac
11694
11695  ac_dir=`$as_dirname -- "$ac_file" ||
11696$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11697	 X"$ac_file" : 'X\(//\)[^/]' \| \
11698	 X"$ac_file" : 'X\(//\)$' \| \
11699	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11700$as_echo X"$ac_file" |
11701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11702	    s//\1/
11703	    q
11704	  }
11705	  /^X\(\/\/\)[^/].*/{
11706	    s//\1/
11707	    q
11708	  }
11709	  /^X\(\/\/\)$/{
11710	    s//\1/
11711	    q
11712	  }
11713	  /^X\(\/\).*/{
11714	    s//\1/
11715	    q
11716	  }
11717	  s/.*/./; q'`
11718  as_dir="$ac_dir"; as_fn_mkdir_p
11719  ac_builddir=.
11720
11721case "$ac_dir" in
11722.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11723*)
11724  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11725  # A ".." for each directory in $ac_dir_suffix.
11726  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11727  case $ac_top_builddir_sub in
11728  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11729  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11730  esac ;;
11731esac
11732ac_abs_top_builddir=$ac_pwd
11733ac_abs_builddir=$ac_pwd$ac_dir_suffix
11734# for backward compatibility:
11735ac_top_builddir=$ac_top_build_prefix
11736
11737case $srcdir in
11738  .)  # We are building in place.
11739    ac_srcdir=.
11740    ac_top_srcdir=$ac_top_builddir_sub
11741    ac_abs_top_srcdir=$ac_pwd ;;
11742  [\\/]* | ?:[\\/]* )  # Absolute name.
11743    ac_srcdir=$srcdir$ac_dir_suffix;
11744    ac_top_srcdir=$srcdir
11745    ac_abs_top_srcdir=$srcdir ;;
11746  *) # Relative name.
11747    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11748    ac_top_srcdir=$ac_top_build_prefix$srcdir
11749    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11750esac
11751ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11752
11753
11754  case $ac_mode in
11755  :F)
11756  #
11757  # CONFIG_FILE
11758  #
11759
11760  case $INSTALL in
11761  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11762  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11763  esac
11764  ac_MKDIR_P=$MKDIR_P
11765  case $MKDIR_P in
11766  [\\/$]* | ?:[\\/]* ) ;;
11767  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11768  esac
11769_ACEOF
11770
11771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11772# If the template does not know about datarootdir, expand it.
11773# FIXME: This hack should be removed a few years after 2.60.
11774ac_datarootdir_hack=; ac_datarootdir_seen=
11775ac_sed_dataroot='
11776/datarootdir/ {
11777  p
11778  q
11779}
11780/@datadir@/p
11781/@docdir@/p
11782/@infodir@/p
11783/@localedir@/p
11784/@mandir@/p'
11785case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11786*datarootdir*) ac_datarootdir_seen=yes;;
11787*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11788  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11789$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11790_ACEOF
11791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11792  ac_datarootdir_hack='
11793  s&@datadir@&$datadir&g
11794  s&@docdir@&$docdir&g
11795  s&@infodir@&$infodir&g
11796  s&@localedir@&$localedir&g
11797  s&@mandir@&$mandir&g
11798  s&\\\${datarootdir}&$datarootdir&g' ;;
11799esac
11800_ACEOF
11801
11802# Neutralize VPATH when `$srcdir' = `.'.
11803# Shell code in configure.ac might set extrasub.
11804# FIXME: do we really want to maintain this feature?
11805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11806ac_sed_extra="$ac_vpsub
11807$extrasub
11808_ACEOF
11809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11810:t
11811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11812s|@configure_input@|$ac_sed_conf_input|;t t
11813s&@top_builddir@&$ac_top_builddir_sub&;t t
11814s&@top_build_prefix@&$ac_top_build_prefix&;t t
11815s&@srcdir@&$ac_srcdir&;t t
11816s&@abs_srcdir@&$ac_abs_srcdir&;t t
11817s&@top_srcdir@&$ac_top_srcdir&;t t
11818s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11819s&@builddir@&$ac_builddir&;t t
11820s&@abs_builddir@&$ac_abs_builddir&;t t
11821s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11822s&@INSTALL@&$ac_INSTALL&;t t
11823s&@MKDIR_P@&$ac_MKDIR_P&;t t
11824$ac_datarootdir_hack
11825"
11826eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11827  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11828
11829test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11830  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11831  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11832      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11833  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11834which seems to be undefined.  Please make sure it is defined" >&5
11835$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11836which seems to be undefined.  Please make sure it is defined" >&2;}
11837
11838  rm -f "$ac_tmp/stdin"
11839  case $ac_file in
11840  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11841  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11842  esac \
11843  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11844 ;;
11845
11846
11847  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11848$as_echo "$as_me: executing $ac_file commands" >&6;}
11849 ;;
11850  esac
11851
11852
11853  case $ac_file$ac_mode in
11854    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11855  # Older Autoconf quotes --file arguments for eval, but not when files
11856  # are listed without --file.  Let's play safe and only enable the eval
11857  # if we detect the quoting.
11858  case $CONFIG_FILES in
11859  *\'*) eval set x "$CONFIG_FILES" ;;
11860  *)   set x $CONFIG_FILES ;;
11861  esac
11862  shift
11863  for mf
11864  do
11865    # Strip MF so we end up with the name of the file.
11866    mf=`echo "$mf" | sed -e 's/:.*$//'`
11867    # Check whether this is an Automake generated Makefile or not.
11868    # We used to match only the files named 'Makefile.in', but
11869    # some people rename them; so instead we look at the file content.
11870    # Grep'ing the first line is not enough: some people post-process
11871    # each Makefile.in and add a new line on top of each file to say so.
11872    # Grep'ing the whole file is not good either: AIX grep has a line
11873    # limit of 2048, but all sed's we know have understand at least 4000.
11874    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11875      dirpart=`$as_dirname -- "$mf" ||
11876$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11877	 X"$mf" : 'X\(//\)[^/]' \| \
11878	 X"$mf" : 'X\(//\)$' \| \
11879	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11880$as_echo X"$mf" |
11881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11882	    s//\1/
11883	    q
11884	  }
11885	  /^X\(\/\/\)[^/].*/{
11886	    s//\1/
11887	    q
11888	  }
11889	  /^X\(\/\/\)$/{
11890	    s//\1/
11891	    q
11892	  }
11893	  /^X\(\/\).*/{
11894	    s//\1/
11895	    q
11896	  }
11897	  s/.*/./; q'`
11898    else
11899      continue
11900    fi
11901    # Extract the definition of DEPDIR, am__include, and am__quote
11902    # from the Makefile without running 'make'.
11903    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11904    test -z "$DEPDIR" && continue
11905    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11906    test -z "$am__include" && continue
11907    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11908    # Find all dependency output files, they are included files with
11909    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11910    # simplest approach to changing $(DEPDIR) to its actual value in the
11911    # expansion.
11912    for file in `sed -n "
11913      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11914	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11915      # Make sure the directory exists.
11916      test -f "$dirpart/$file" && continue
11917      fdir=`$as_dirname -- "$file" ||
11918$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11919	 X"$file" : 'X\(//\)[^/]' \| \
11920	 X"$file" : 'X\(//\)$' \| \
11921	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11922$as_echo X"$file" |
11923    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11924	    s//\1/
11925	    q
11926	  }
11927	  /^X\(\/\/\)[^/].*/{
11928	    s//\1/
11929	    q
11930	  }
11931	  /^X\(\/\/\)$/{
11932	    s//\1/
11933	    q
11934	  }
11935	  /^X\(\/\).*/{
11936	    s//\1/
11937	    q
11938	  }
11939	  s/.*/./; q'`
11940      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11941      # echo "creating $dirpart/$file"
11942      echo '# dummy' > "$dirpart/$file"
11943    done
11944  done
11945}
11946 ;;
11947
11948  esac
11949done # for ac_tag
11950
11951
11952as_fn_exit 0
11953_ACEOF
11954ac_clean_files=$ac_clean_files_save
11955
11956test $ac_write_fail = 0 ||
11957  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11958
11959
11960# configure is writing to config.log, and then calls config.status.
11961# config.status does its own redirection, appending to config.log.
11962# Unfortunately, on DOS this fails, as config.log is still kept open
11963# by configure, so config.status won't be able to write to it; its
11964# output is simply discarded.  So we exec the FD to /dev/null,
11965# effectively closing config.log, so it can be properly (re)opened and
11966# appended to by config.status.  When coming back to configure, we
11967# need to make the FD available again.
11968if test "$no_create" != yes; then
11969  ac_cs_success=:
11970  ac_config_status_args=
11971  test "$silent" = yes &&
11972    ac_config_status_args="$ac_config_status_args --quiet"
11973  exec 5>/dev/null
11974  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11975  exec 5>>config.log
11976  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11977  # would make configure fail if this is the last instruction.
11978  $ac_cs_success || as_fn_exit 1
11979fi
11980if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11981  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11982$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11983fi
11984
11985