configure revision d87830e5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for mkfontscale 1.1.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
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='mkfontscale'
583PACKAGE_TARNAME='mkfontscale'
584PACKAGE_VERSION='1.1.3'
585PACKAGE_STRING='mkfontscale 1.1.3'
586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630LINT_FALSE
631LINT_TRUE
632LINT_FLAGS
633LINT
634X11_LIBS
635X11_CFLAGS
636MKFONTSCALE_LIBS
637MKFONTSCALE_CFLAGS
638MAN_SUBSTS
639XORG_MAN_PAGE
640ADMIN_MAN_DIR
641DRIVER_MAN_DIR
642MISC_MAN_DIR
643FILE_MAN_DIR
644LIB_MAN_DIR
645APP_MAN_DIR
646ADMIN_MAN_SUFFIX
647DRIVER_MAN_SUFFIX
648MISC_MAN_SUFFIX
649FILE_MAN_SUFFIX
650LIB_MAN_SUFFIX
651APP_MAN_SUFFIX
652SED
653host_os
654host_vendor
655host_cpu
656host
657build_os
658build_vendor
659build_cpu
660build
661INSTALL_CMD
662PKG_CONFIG_LIBDIR
663PKG_CONFIG_PATH
664PKG_CONFIG
665CHANGELOG_CMD
666STRICT_CFLAGS
667CWARNFLAGS
668BASE_CFLAGS
669AM_BACKSLASH
670AM_DEFAULT_VERBOSITY
671AM_DEFAULT_V
672AM_V
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683am__untar
684am__tar
685AMTAR
686am__leading_dot
687SET_MAKE
688AWK
689mkdir_p
690MKDIR_P
691INSTALL_STRIP_PROGRAM
692STRIP
693install_sh
694MAKEINFO
695AUTOHEADER
696AUTOMAKE
697AUTOCONF
698ACLOCAL
699VERSION
700PACKAGE
701CYGPATH_W
702am__isrc
703INSTALL_DATA
704INSTALL_SCRIPT
705INSTALL_PROGRAM
706EGREP
707GREP
708CPP
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_dependency_tracking
758enable_silent_rules
759enable_selective_werror
760enable_strict_compilation
761with_bzip2
762with_lint
763'
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CPP
773PKG_CONFIG
774PKG_CONFIG_PATH
775PKG_CONFIG_LIBDIR
776MKFONTSCALE_CFLAGS
777MKFONTSCALE_LIBS
778X11_CFLAGS
779X11_LIBS
780LINT
781LINT_FLAGS'
782
783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
787ac_unrecognized_opts=
788ac_unrecognized_sep=
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
811# (The list follows the same order as the GNU Coding Standards.)
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836  # If the previous option needs an argument, assign it.
837  if test -n "$ac_prev"; then
838    eval $ac_prev=\$ac_option
839    ac_prev=
840    continue
841  fi
842
843  case $ac_option in
844  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845  *=)   ac_optarg= ;;
846  *)    ac_optarg=yes ;;
847  esac
848
849  # Accept the important Cygnus configure options, so we can diagnose typos.
850
851  case $ac_dashdash$ac_option in
852  --)
853    ac_dashdash=yes ;;
854
855  -bindir | --bindir | --bindi | --bind | --bin | --bi)
856    ac_prev=bindir ;;
857  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858    bindir=$ac_optarg ;;
859
860  -build | --build | --buil | --bui | --bu)
861    ac_prev=build_alias ;;
862  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863    build_alias=$ac_optarg ;;
864
865  -cache-file | --cache-file | --cache-fil | --cache-fi \
866  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867    ac_prev=cache_file ;;
868  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870    cache_file=$ac_optarg ;;
871
872  --config-cache | -C)
873    cache_file=config.cache ;;
874
875  -datadir | --datadir | --datadi | --datad)
876    ac_prev=datadir ;;
877  -datadir=* | --datadir=* | --datadi=* | --datad=*)
878    datadir=$ac_optarg ;;
879
880  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881  | --dataroo | --dataro | --datar)
882    ac_prev=datarootdir ;;
883  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885    datarootdir=$ac_optarg ;;
886
887  -disable-* | --disable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=no ;;
902
903  -docdir | --docdir | --docdi | --doc | --do)
904    ac_prev=docdir ;;
905  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906    docdir=$ac_optarg ;;
907
908  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909    ac_prev=dvidir ;;
910  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911    dvidir=$ac_optarg ;;
912
913  -enable-* | --enable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=\$ac_optarg ;;
928
929  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931  | --exec | --exe | --ex)
932    ac_prev=exec_prefix ;;
933  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935  | --exec=* | --exe=* | --ex=*)
936    exec_prefix=$ac_optarg ;;
937
938  -gas | --gas | --ga | --g)
939    # Obsolete; use --with-gas.
940    with_gas=yes ;;
941
942  -help | --help | --hel | --he | -h)
943    ac_init_help=long ;;
944  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945    ac_init_help=recursive ;;
946  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947    ac_init_help=short ;;
948
949  -host | --host | --hos | --ho)
950    ac_prev=host_alias ;;
951  -host=* | --host=* | --hos=* | --ho=*)
952    host_alias=$ac_optarg ;;
953
954  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955    ac_prev=htmldir ;;
956  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957  | --ht=*)
958    htmldir=$ac_optarg ;;
959
960  -includedir | --includedir | --includedi | --included | --include \
961  | --includ | --inclu | --incl | --inc)
962    ac_prev=includedir ;;
963  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964  | --includ=* | --inclu=* | --incl=* | --inc=*)
965    includedir=$ac_optarg ;;
966
967  -infodir | --infodir | --infodi | --infod | --info | --inf)
968    ac_prev=infodir ;;
969  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970    infodir=$ac_optarg ;;
971
972  -libdir | --libdir | --libdi | --libd)
973    ac_prev=libdir ;;
974  -libdir=* | --libdir=* | --libdi=* | --libd=*)
975    libdir=$ac_optarg ;;
976
977  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978  | --libexe | --libex | --libe)
979    ac_prev=libexecdir ;;
980  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981  | --libexe=* | --libex=* | --libe=*)
982    libexecdir=$ac_optarg ;;
983
984  -localedir | --localedir | --localedi | --localed | --locale)
985    ac_prev=localedir ;;
986  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987    localedir=$ac_optarg ;;
988
989  -localstatedir | --localstatedir | --localstatedi | --localstated \
990  | --localstate | --localstat | --localsta | --localst | --locals)
991    ac_prev=localstatedir ;;
992  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994    localstatedir=$ac_optarg ;;
995
996  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997    ac_prev=mandir ;;
998  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999    mandir=$ac_optarg ;;
1000
1001  -nfp | --nfp | --nf)
1002    # Obsolete; use --without-fp.
1003    with_fp=no ;;
1004
1005  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006  | --no-cr | --no-c | -n)
1007    no_create=yes ;;
1008
1009  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011    no_recursion=yes ;;
1012
1013  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015  | --oldin | --oldi | --old | --ol | --o)
1016    ac_prev=oldincludedir ;;
1017  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020    oldincludedir=$ac_optarg ;;
1021
1022  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023    ac_prev=prefix ;;
1024  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025    prefix=$ac_optarg ;;
1026
1027  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028  | --program-pre | --program-pr | --program-p)
1029    ac_prev=program_prefix ;;
1030  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032    program_prefix=$ac_optarg ;;
1033
1034  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035  | --program-suf | --program-su | --program-s)
1036    ac_prev=program_suffix ;;
1037  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039    program_suffix=$ac_optarg ;;
1040
1041  -program-transform-name | --program-transform-name \
1042  | --program-transform-nam | --program-transform-na \
1043  | --program-transform-n | --program-transform- \
1044  | --program-transform | --program-transfor \
1045  | --program-transfo | --program-transf \
1046  | --program-trans | --program-tran \
1047  | --progr-tra | --program-tr | --program-t)
1048    ac_prev=program_transform_name ;;
1049  -program-transform-name=* | --program-transform-name=* \
1050  | --program-transform-nam=* | --program-transform-na=* \
1051  | --program-transform-n=* | --program-transform-=* \
1052  | --program-transform=* | --program-transfor=* \
1053  | --program-transfo=* | --program-transf=* \
1054  | --program-trans=* | --program-tran=* \
1055  | --progr-tra=* | --program-tr=* | --program-t=*)
1056    program_transform_name=$ac_optarg ;;
1057
1058  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059    ac_prev=pdfdir ;;
1060  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061    pdfdir=$ac_optarg ;;
1062
1063  -psdir | --psdir | --psdi | --psd | --ps)
1064    ac_prev=psdir ;;
1065  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066    psdir=$ac_optarg ;;
1067
1068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069  | -silent | --silent | --silen | --sile | --sil)
1070    silent=yes ;;
1071
1072  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073    ac_prev=sbindir ;;
1074  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075  | --sbi=* | --sb=*)
1076    sbindir=$ac_optarg ;;
1077
1078  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080  | --sharedst | --shareds | --shared | --share | --shar \
1081  | --sha | --sh)
1082    ac_prev=sharedstatedir ;;
1083  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086  | --sha=* | --sh=*)
1087    sharedstatedir=$ac_optarg ;;
1088
1089  -site | --site | --sit)
1090    ac_prev=site ;;
1091  -site=* | --site=* | --sit=*)
1092    site=$ac_optarg ;;
1093
1094  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095    ac_prev=srcdir ;;
1096  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097    srcdir=$ac_optarg ;;
1098
1099  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100  | --syscon | --sysco | --sysc | --sys | --sy)
1101    ac_prev=sysconfdir ;;
1102  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104    sysconfdir=$ac_optarg ;;
1105
1106  -target | --target | --targe | --targ | --tar | --ta | --t)
1107    ac_prev=target_alias ;;
1108  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109    target_alias=$ac_optarg ;;
1110
1111  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112    verbose=yes ;;
1113
1114  -version | --version | --versio | --versi | --vers | -V)
1115    ac_init_version=: ;;
1116
1117  -with-* | --with-*)
1118    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119    # Reject names that are not valid shell variable names.
1120    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121      as_fn_error $? "invalid package name: $ac_useropt"
1122    ac_useropt_orig=$ac_useropt
1123    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124    case $ac_user_opts in
1125      *"
1126"with_$ac_useropt"
1127"*) ;;
1128      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129	 ac_unrecognized_sep=', ';;
1130    esac
1131    eval with_$ac_useropt=\$ac_optarg ;;
1132
1133  -without-* | --without-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=no ;;
1148
1149  --x)
1150    # Obsolete; use --with-x.
1151    with_x=yes ;;
1152
1153  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154  | --x-incl | --x-inc | --x-in | --x-i)
1155    ac_prev=x_includes ;;
1156  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158    x_includes=$ac_optarg ;;
1159
1160  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162    ac_prev=x_libraries ;;
1163  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165    x_libraries=$ac_optarg ;;
1166
1167  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information"
1169    ;;
1170
1171  *=*)
1172    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173    # Reject names that are not valid shell variable names.
1174    case $ac_envvar in #(
1175      '' | [0-9]* | *[!_$as_cr_alnum]* )
1176      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177    esac
1178    eval $ac_envvar=\$ac_optarg
1179    export $ac_envvar ;;
1180
1181  *)
1182    # FIXME: should be removed in autoconf 3.0.
1183    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187    ;;
1188
1189  esac
1190done
1191
1192if test -n "$ac_prev"; then
1193  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194  as_fn_error $? "missing argument to $ac_option"
1195fi
1196
1197if test -n "$ac_unrecognized_opts"; then
1198  case $enable_option_checking in
1199    no) ;;
1200    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202  esac
1203fi
1204
1205# Check all directory arguments for consistency.
1206for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207		datadir sysconfdir sharedstatedir localstatedir includedir \
1208		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209		libdir localedir mandir
1210do
1211  eval ac_val=\$$ac_var
1212  # Remove trailing slashes.
1213  case $ac_val in
1214    */ )
1215      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216      eval $ac_var=\$ac_val;;
1217  esac
1218  # Be sure to have absolute directory names.
1219  case $ac_val in
1220    [\\/$]* | ?:[\\/]* )  continue;;
1221    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222  esac
1223  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235  if test "x$build_alias" = x; then
1236    cross_compiling=maybe
1237  elif test "x$build_alias" != "x$host_alias"; then
1238    cross_compiling=yes
1239  fi
1240fi
1241
1242ac_tool_prefix=
1243test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245test "$silent" = yes && exec 6>/dev/null
1246
1247
1248ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249ac_ls_di=`ls -di .` &&
1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251  as_fn_error $? "working directory cannot be determined"
1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253  as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258  ac_srcdir_defaulted=yes
1259  # Try the directory containing this script, then the parent directory.
1260  ac_confdir=`$as_dirname -- "$as_myself" ||
1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262	 X"$as_myself" : 'X\(//\)[^/]' \| \
1263	 X"$as_myself" : 'X\(//\)$' \| \
1264	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265$as_echo X"$as_myself" |
1266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\/\)[^/].*/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\).*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  s/.*/./; q'`
1283  srcdir=$ac_confdir
1284  if test ! -r "$srcdir/$ac_unique_file"; then
1285    srcdir=..
1286  fi
1287else
1288  ac_srcdir_defaulted=no
1289fi
1290if test ! -r "$srcdir/$ac_unique_file"; then
1291  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293fi
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
1296	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297	pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300  srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_env_${ac_var}_value=\$${ac_var}
1311  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
1314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319  # Omit some internal or obsolete options to make the list less imposing.
1320  # This message is too long to be a string in the A/UX 3.1 sh.
1321  cat <<_ACEOF
1322\`configure' configures mkfontscale 1.1.3 to adapt to many kinds of systems.
1323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332  -h, --help              display this help and exit
1333      --help=short        display options specific to this package
1334      --help=recursive    display the short help of all the included packages
1335  -V, --version           display version information and exit
1336  -q, --quiet, --silent   do not print \`checking ...' messages
1337      --cache-file=FILE   cache test results in FILE [disabled]
1338  -C, --config-cache      alias for \`--cache-file=config.cache'
1339  -n, --no-create         do not create output files
1340      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342Installation directories:
1343  --prefix=PREFIX         install architecture-independent files in PREFIX
1344                          [$ac_default_prefix]
1345  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                          [PREFIX]
1347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
1356  --bindir=DIR            user executables [EPREFIX/bin]
1357  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1358  --libexecdir=DIR        program executables [EPREFIX/libexec]
1359  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1360  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1361  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1362  --libdir=DIR            object code libraries [EPREFIX/lib]
1363  --includedir=DIR        C header files [PREFIX/include]
1364  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1365  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1366  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1367  --infodir=DIR           info documentation [DATAROOTDIR/info]
1368  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1369  --mandir=DIR            man documentation [DATAROOTDIR/man]
1370  --docdir=DIR            documentation root [DATAROOTDIR/doc/mkfontscale]
1371  --htmldir=DIR           html documentation [DOCDIR]
1372  --dvidir=DIR            dvi documentation [DOCDIR]
1373  --pdfdir=DIR            pdf documentation [DOCDIR]
1374  --psdir=DIR             ps documentation [DOCDIR]
1375_ACEOF
1376
1377  cat <<\_ACEOF
1378
1379Program names:
1380  --program-prefix=PREFIX            prepend PREFIX to installed program names
1381  --program-suffix=SUFFIX            append SUFFIX to installed program names
1382  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384System types:
1385  --build=BUILD     configure for building on BUILD [guessed]
1386  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387_ACEOF
1388fi
1389
1390if test -n "$ac_init_help"; then
1391  case $ac_init_help in
1392     short | recursive ) echo "Configuration of mkfontscale 1.1.3:";;
1393   esac
1394  cat <<\_ACEOF
1395
1396Optional Features:
1397  --disable-option-checking  ignore unrecognized --enable/--with options
1398  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400  --enable-dependency-tracking
1401                          do not reject slow dependency extractors
1402  --disable-dependency-tracking
1403                          speeds up one-time build
1404  --enable-silent-rules   less verbose build output (undo: "make V=1")
1405  --disable-silent-rules  verbose build output (undo: "make V=0")
1406  --disable-selective-werror
1407                          Turn off selective compiler errors. (default:
1408                          enabled)
1409  --enable-strict-compilation
1410                          Enable all warnings from compiler and make them
1411                          errors (default: disabled)
1412
1413Optional Packages:
1414  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1415  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1416  --with-bzip2            Support bzip2 compressed bitmap fonts
1417  --with-lint             Use a lint-style source code checker (default:
1418                          disabled)
1419
1420Some influential environment variables:
1421  CC          C compiler command
1422  CFLAGS      C compiler flags
1423  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424              nonstandard directory <lib dir>
1425  LIBS        libraries to pass to the linker, e.g. -l<library>
1426  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427              you have headers in a nonstandard directory <include dir>
1428  CPP         C preprocessor
1429  PKG_CONFIG  path to pkg-config utility
1430  PKG_CONFIG_PATH
1431              directories to add to pkg-config's search path
1432  PKG_CONFIG_LIBDIR
1433              path overriding pkg-config's built-in search path
1434  MKFONTSCALE_CFLAGS
1435              C compiler flags for MKFONTSCALE, overriding pkg-config
1436  MKFONTSCALE_LIBS
1437              linker flags for MKFONTSCALE, overriding pkg-config
1438  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1439  X11_LIBS    linker flags for X11, overriding pkg-config
1440  LINT        Path to a lint-style command
1441  LINT_FLAGS  Flags for the lint-style command
1442
1443Use these variables to override the choices made by `configure' or to help
1444it to find libraries and programs with nonstandard names/locations.
1445
1446Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1447_ACEOF
1448ac_status=$?
1449fi
1450
1451if test "$ac_init_help" = "recursive"; then
1452  # If there are subdirs, report their specific --help.
1453  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454    test -d "$ac_dir" ||
1455      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456      continue
1457    ac_builddir=.
1458
1459case "$ac_dir" in
1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461*)
1462  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463  # A ".." for each directory in $ac_dir_suffix.
1464  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465  case $ac_top_builddir_sub in
1466  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468  esac ;;
1469esac
1470ac_abs_top_builddir=$ac_pwd
1471ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472# for backward compatibility:
1473ac_top_builddir=$ac_top_build_prefix
1474
1475case $srcdir in
1476  .)  # We are building in place.
1477    ac_srcdir=.
1478    ac_top_srcdir=$ac_top_builddir_sub
1479    ac_abs_top_srcdir=$ac_pwd ;;
1480  [\\/]* | ?:[\\/]* )  # Absolute name.
1481    ac_srcdir=$srcdir$ac_dir_suffix;
1482    ac_top_srcdir=$srcdir
1483    ac_abs_top_srcdir=$srcdir ;;
1484  *) # Relative name.
1485    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486    ac_top_srcdir=$ac_top_build_prefix$srcdir
1487    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488esac
1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491    cd "$ac_dir" || { ac_status=$?; continue; }
1492    # Check for guested configure.
1493    if test -f "$ac_srcdir/configure.gnu"; then
1494      echo &&
1495      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496    elif test -f "$ac_srcdir/configure"; then
1497      echo &&
1498      $SHELL "$ac_srcdir/configure" --help=recursive
1499    else
1500      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501    fi || ac_status=$?
1502    cd "$ac_pwd" || { ac_status=$?; break; }
1503  done
1504fi
1505
1506test -n "$ac_init_help" && exit $ac_status
1507if $ac_init_version; then
1508  cat <<\_ACEOF
1509mkfontscale configure 1.1.3
1510generated by GNU Autoconf 2.69
1511
1512Copyright (C) 2012 Free Software Foundation, Inc.
1513This configure script is free software; the Free Software Foundation
1514gives unlimited permission to copy, distribute and modify it.
1515_ACEOF
1516  exit
1517fi
1518
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
1522
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
1527{
1528  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529  rm -f conftest.$ac_objext
1530  if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533  *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537  (eval "$ac_compile") 2>conftest.err
1538  ac_status=$?
1539  if test -s conftest.err; then
1540    grep -v '^ *+' conftest.err >conftest.er1
1541    cat conftest.er1 >&5
1542    mv -f conftest.er1 conftest.err
1543  fi
1544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545  test $ac_status = 0; } && {
1546	 test -z "$ac_c_werror_flag" ||
1547	 test ! -s conftest.err
1548       } && test -s conftest.$ac_objext; then :
1549  ac_retval=0
1550else
1551  $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554	ac_retval=1
1555fi
1556  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557  as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_compile
1560
1561# ac_fn_c_try_cpp LINENO
1562# ----------------------
1563# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_cpp ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  if { { ac_try="$ac_cpp conftest.$ac_ext"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } > conftest.i && {
1583	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       }; then :
1586  ac_retval=0
1587else
1588  $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591    ac_retval=1
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_cpp
1597
1598# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599# -------------------------------------------------------
1600# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601# the include files in INCLUDES and setting the cache variable VAR
1602# accordingly.
1603ac_fn_c_check_header_mongrel ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  if eval \${$3+:} false; then :
1607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if eval \${$3+:} false; then :
1610  $as_echo_n "(cached) " >&6
1611fi
1612eval ac_res=\$$3
1613	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614$as_echo "$ac_res" >&6; }
1615else
1616  # Is the header compilable?
1617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618$as_echo_n "checking $2 usability... " >&6; }
1619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h.  */
1621$4
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625  ac_header_compiler=yes
1626else
1627  ac_header_compiler=no
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631$as_echo "$ac_header_compiler" >&6; }
1632
1633# Is the header present?
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635$as_echo_n "checking $2 presence... " >&6; }
1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h.  */
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_cpp "$LINENO"; then :
1641  ac_header_preproc=yes
1642else
1643  ac_header_preproc=no
1644fi
1645rm -f conftest.err conftest.i conftest.$ac_ext
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647$as_echo "$ac_header_preproc" >&6; }
1648
1649# So?  What about this header?
1650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651  yes:no: )
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656    ;;
1657  no:yes:* )
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1661$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1665$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668( $as_echo "## ---------------------------------------------------------------------- ##
1669## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1670## ---------------------------------------------------------------------- ##"
1671     ) | sed "s/^/$as_me: WARNING:     /" >&2
1672    ;;
1673esac
1674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if eval \${$3+:} false; then :
1677  $as_echo_n "(cached) " >&6
1678else
1679  eval "$3=\$ac_header_compiler"
1680fi
1681eval ac_res=\$$3
1682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_header_mongrel
1688
1689# ac_fn_c_try_run LINENO
1690# ----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692# that executables *can* be run.
1693ac_fn_c_try_run ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_link") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707  { { case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_try") 2>&5
1714  ac_status=$?
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; }; }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: program exited with status $ac_status" >&5
1720       $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723       ac_retval=$ac_status
1724fi
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_run
1730
1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists and can be compiled using the include files in
1734# INCLUDES, setting the cache variable VAR accordingly.
1735ac_fn_c_check_header_compile ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742else
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749  eval "$3=yes"
1750else
1751  eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760} # ac_fn_c_check_header_compile
1761
1762# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1763# ---------------------------------------------
1764# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1765# accordingly.
1766ac_fn_c_check_decl ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  as_decl_name=`echo $2|sed 's/ *(.*//'`
1770  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1772$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1773if eval \${$3+:} false; then :
1774  $as_echo_n "(cached) " >&6
1775else
1776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778$4
1779int
1780main ()
1781{
1782#ifndef $as_decl_name
1783#ifdef __cplusplus
1784  (void) $as_decl_use;
1785#else
1786  (void) $as_decl_name;
1787#endif
1788#endif
1789
1790  ;
1791  return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795  eval "$3=yes"
1796else
1797  eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_decl
1807
1808# ac_fn_c_try_link LINENO
1809# -----------------------
1810# Try to link conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_link ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  rm -f conftest.$ac_objext conftest$ac_exeext
1815  if { { ac_try="$ac_link"
1816case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_link") 2>conftest.err
1823  ac_status=$?
1824  if test -s conftest.err; then
1825    grep -v '^ *+' conftest.err >conftest.er1
1826    cat conftest.er1 >&5
1827    mv -f conftest.er1 conftest.err
1828  fi
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } && {
1831	 test -z "$ac_c_werror_flag" ||
1832	 test ! -s conftest.err
1833       } && test -s conftest$ac_exeext && {
1834	 test "$cross_compiling" = yes ||
1835	 test -x conftest$ac_exeext
1836       }; then :
1837  ac_retval=0
1838else
1839  $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842	ac_retval=1
1843fi
1844  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846  # interfere with the next link command; also delete a directory that is
1847  # left behind by Apple's compiler.  We do this before executing the actions.
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_link
1853cat >config.log <<_ACEOF
1854This file contains any messages produced by compilers while
1855running configure, to aid debugging if configure makes a mistake.
1856
1857It was created by mkfontscale $as_me 1.1.3, which was
1858generated by GNU Autoconf 2.69.  Invocation command line was
1859
1860  $ $0 $@
1861
1862_ACEOF
1863exec 5>>config.log
1864{
1865cat <<_ASUNAME
1866## --------- ##
1867## Platform. ##
1868## --------- ##
1869
1870hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874uname -v = `(uname -v) 2>/dev/null || echo unknown`
1875
1876/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1878
1879/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1880/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1881/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1883/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1884/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1885/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1886
1887_ASUNAME
1888
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894    $as_echo "PATH: $as_dir"
1895  done
1896IFS=$as_save_IFS
1897
1898} >&5
1899
1900cat >&5 <<_ACEOF
1901
1902
1903## ----------- ##
1904## Core tests. ##
1905## ----------- ##
1906
1907_ACEOF
1908
1909
1910# Keep a trace of the command line.
1911# Strip out --no-create and --no-recursion so they do not pile up.
1912# Strip out --silent because we don't want to record it for future runs.
1913# Also quote any args containing shell meta-characters.
1914# Make two passes to allow for proper duplicate-argument suppression.
1915ac_configure_args=
1916ac_configure_args0=
1917ac_configure_args1=
1918ac_must_keep_next=false
1919for ac_pass in 1 2
1920do
1921  for ac_arg
1922  do
1923    case $ac_arg in
1924    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926    | -silent | --silent | --silen | --sile | --sil)
1927      continue ;;
1928    *\'*)
1929      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930    esac
1931    case $ac_pass in
1932    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933    2)
1934      as_fn_append ac_configure_args1 " '$ac_arg'"
1935      if test $ac_must_keep_next = true; then
1936	ac_must_keep_next=false # Got value, back to normal.
1937      else
1938	case $ac_arg in
1939	  *=* | --config-cache | -C | -disable-* | --disable-* \
1940	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942	  | -with-* | --with-* | -without-* | --without-* | --x)
1943	    case "$ac_configure_args0 " in
1944	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945	    esac
1946	    ;;
1947	  -* ) ac_must_keep_next=true ;;
1948	esac
1949      fi
1950      as_fn_append ac_configure_args " '$ac_arg'"
1951      ;;
1952    esac
1953  done
1954done
1955{ ac_configure_args0=; unset ac_configure_args0;}
1956{ ac_configure_args1=; unset ac_configure_args1;}
1957
1958# When interrupted or exit'd, cleanup temporary files, and complete
1959# config.log.  We remove comments because anyway the quotes in there
1960# would cause problems or look ugly.
1961# WARNING: Use '\'' to represent an apostrophe within the trap.
1962# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963trap 'exit_status=$?
1964  # Save into config.log some information that might help in debugging.
1965  {
1966    echo
1967
1968    $as_echo "## ---------------- ##
1969## Cache variables. ##
1970## ---------------- ##"
1971    echo
1972    # The following way of writing the cache mishandles newlines in values,
1973(
1974  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975    eval ac_val=\$$ac_var
1976    case $ac_val in #(
1977    *${as_nl}*)
1978      case $ac_var in #(
1979      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981      esac
1982      case $ac_var in #(
1983      _ | IFS | as_nl) ;; #(
1984      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985      *) { eval $ac_var=; unset $ac_var;} ;;
1986      esac ;;
1987    esac
1988  done
1989  (set) 2>&1 |
1990    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991    *${as_nl}ac_space=\ *)
1992      sed -n \
1993	"s/'\''/'\''\\\\'\'''\''/g;
1994	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995      ;; #(
1996    *)
1997      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998      ;;
1999    esac |
2000    sort
2001)
2002    echo
2003
2004    $as_echo "## ----------------- ##
2005## Output variables. ##
2006## ----------------- ##"
2007    echo
2008    for ac_var in $ac_subst_vars
2009    do
2010      eval ac_val=\$$ac_var
2011      case $ac_val in
2012      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013      esac
2014      $as_echo "$ac_var='\''$ac_val'\''"
2015    done | sort
2016    echo
2017
2018    if test -n "$ac_subst_files"; then
2019      $as_echo "## ------------------- ##
2020## File substitutions. ##
2021## ------------------- ##"
2022      echo
2023      for ac_var in $ac_subst_files
2024      do
2025	eval ac_val=\$$ac_var
2026	case $ac_val in
2027	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028	esac
2029	$as_echo "$ac_var='\''$ac_val'\''"
2030      done | sort
2031      echo
2032    fi
2033
2034    if test -s confdefs.h; then
2035      $as_echo "## ----------- ##
2036## confdefs.h. ##
2037## ----------- ##"
2038      echo
2039      cat confdefs.h
2040      echo
2041    fi
2042    test "$ac_signal" != 0 &&
2043      $as_echo "$as_me: caught signal $ac_signal"
2044    $as_echo "$as_me: exit $exit_status"
2045  } >&5
2046  rm -f core *.core core.conftest.* &&
2047    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048    exit $exit_status
2049' 0
2050for ac_signal in 1 2 13 15; do
2051  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052done
2053ac_signal=0
2054
2055# confdefs.h avoids OS command line length limits that DEFS can exceed.
2056rm -f -r conftest* confdefs.h
2057
2058$as_echo "/* confdefs.h */" > confdefs.h
2059
2060# Predefined preprocessor variables.
2061
2062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_NAME "$PACKAGE_NAME"
2064_ACEOF
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2068_ACEOF
2069
2070cat >>confdefs.h <<_ACEOF
2071#define PACKAGE_VERSION "$PACKAGE_VERSION"
2072_ACEOF
2073
2074cat >>confdefs.h <<_ACEOF
2075#define PACKAGE_STRING "$PACKAGE_STRING"
2076_ACEOF
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_URL "$PACKAGE_URL"
2084_ACEOF
2085
2086
2087# Let the site file select an alternate cache file if it wants to.
2088# Prefer an explicitly selected file to automatically selected ones.
2089ac_site_file1=NONE
2090ac_site_file2=NONE
2091if test -n "$CONFIG_SITE"; then
2092  # We do not want a PATH search for config.site.
2093  case $CONFIG_SITE in #((
2094    -*)  ac_site_file1=./$CONFIG_SITE;;
2095    */*) ac_site_file1=$CONFIG_SITE;;
2096    *)   ac_site_file1=./$CONFIG_SITE;;
2097  esac
2098elif test "x$prefix" != xNONE; then
2099  ac_site_file1=$prefix/share/config.site
2100  ac_site_file2=$prefix/etc/config.site
2101else
2102  ac_site_file1=$ac_default_prefix/share/config.site
2103  ac_site_file2=$ac_default_prefix/etc/config.site
2104fi
2105for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2106do
2107  test "x$ac_site_file" = xNONE && continue
2108  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2109    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111    sed 's/^/| /' "$ac_site_file" >&5
2112    . "$ac_site_file" \
2113      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115as_fn_error $? "failed to load site script $ac_site_file
2116See \`config.log' for more details" "$LINENO" 5; }
2117  fi
2118done
2119
2120if test -r "$cache_file"; then
2121  # Some versions of bash will fail to source /dev/null (special files
2122  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2123  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125$as_echo "$as_me: loading cache $cache_file" >&6;}
2126    case $cache_file in
2127      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128      *)                      . "./$cache_file";;
2129    esac
2130  fi
2131else
2132  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133$as_echo "$as_me: creating cache $cache_file" >&6;}
2134  >$cache_file
2135fi
2136
2137# Check that the precious variables saved in the cache have kept the same
2138# value.
2139ac_cache_corrupted=false
2140for ac_var in $ac_precious_vars; do
2141  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142  eval ac_new_set=\$ac_env_${ac_var}_set
2143  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144  eval ac_new_val=\$ac_env_${ac_var}_value
2145  case $ac_old_set,$ac_new_set in
2146    set,)
2147      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149      ac_cache_corrupted=: ;;
2150    ,set)
2151      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153      ac_cache_corrupted=: ;;
2154    ,);;
2155    *)
2156      if test "x$ac_old_val" != "x$ac_new_val"; then
2157	# differences in whitespace do not lead to failure.
2158	ac_old_val_w=`echo x $ac_old_val`
2159	ac_new_val_w=`echo x $ac_new_val`
2160	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163	  ac_cache_corrupted=:
2164	else
2165	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167	  eval $ac_var=\$ac_old_val
2168	fi
2169	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2170$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2171	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2172$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2173      fi;;
2174  esac
2175  # Pass precious variables to config.status.
2176  if test "$ac_new_set" = set; then
2177    case $ac_new_val in
2178    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179    *) ac_arg=$ac_var=$ac_new_val ;;
2180    esac
2181    case " $ac_configure_args " in
2182      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2183      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184    esac
2185  fi
2186done
2187if $ac_cache_corrupted; then
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2193fi
2194## -------------------- ##
2195## Main body of script. ##
2196## -------------------- ##
2197
2198ac_ext=c
2199ac_cpp='$CPP $CPPFLAGS'
2200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
2204
2205
2206ac_config_headers="$ac_config_headers config.h"
2207
2208ac_aux_dir=
2209for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210  if test -f "$ac_dir/install-sh"; then
2211    ac_aux_dir=$ac_dir
2212    ac_install_sh="$ac_aux_dir/install-sh -c"
2213    break
2214  elif test -f "$ac_dir/install.sh"; then
2215    ac_aux_dir=$ac_dir
2216    ac_install_sh="$ac_aux_dir/install.sh -c"
2217    break
2218  elif test -f "$ac_dir/shtool"; then
2219    ac_aux_dir=$ac_dir
2220    ac_install_sh="$ac_aux_dir/shtool install -c"
2221    break
2222  fi
2223done
2224if test -z "$ac_aux_dir"; then
2225  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2226fi
2227
2228# These three variables are undocumented and unsupported,
2229# and are intended to be withdrawn in a future Autoconf release.
2230# They can cause serious problems if a builder's source tree is in a directory
2231# whose full name contains unusual characters.
2232ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2233ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2234ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2235
2236
2237# Expand $ac_aux_dir to an absolute path.
2238am_aux_dir=`cd "$ac_aux_dir" && pwd`
2239
2240ac_ext=c
2241ac_cpp='$CPP $CPPFLAGS'
2242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245if test -n "$ac_tool_prefix"; then
2246  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2247set dummy ${ac_tool_prefix}gcc; ac_word=$2
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2249$as_echo_n "checking for $ac_word... " >&6; }
2250if ${ac_cv_prog_CC+:} false; then :
2251  $as_echo_n "(cached) " >&6
2252else
2253  if test -n "$CC"; then
2254  ac_cv_prog_CC="$CC" # Let the user override the test.
2255else
2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257for as_dir in $PATH
2258do
2259  IFS=$as_save_IFS
2260  test -z "$as_dir" && as_dir=.
2261    for ac_exec_ext in '' $ac_executable_extensions; do
2262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2265    break 2
2266  fi
2267done
2268  done
2269IFS=$as_save_IFS
2270
2271fi
2272fi
2273CC=$ac_cv_prog_CC
2274if test -n "$CC"; then
2275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2276$as_echo "$CC" >&6; }
2277else
2278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2279$as_echo "no" >&6; }
2280fi
2281
2282
2283fi
2284if test -z "$ac_cv_prog_CC"; then
2285  ac_ct_CC=$CC
2286  # Extract the first word of "gcc", so it can be a program name with args.
2287set dummy gcc; ac_word=$2
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2289$as_echo_n "checking for $ac_word... " >&6; }
2290if ${ac_cv_prog_ac_ct_CC+:} false; then :
2291  $as_echo_n "(cached) " >&6
2292else
2293  if test -n "$ac_ct_CC"; then
2294  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295else
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299  IFS=$as_save_IFS
2300  test -z "$as_dir" && as_dir=.
2301    for ac_exec_ext in '' $ac_executable_extensions; do
2302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303    ac_cv_prog_ac_ct_CC="gcc"
2304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305    break 2
2306  fi
2307done
2308  done
2309IFS=$as_save_IFS
2310
2311fi
2312fi
2313ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314if test -n "$ac_ct_CC"; then
2315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2316$as_echo "$ac_ct_CC" >&6; }
2317else
2318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2319$as_echo "no" >&6; }
2320fi
2321
2322  if test "x$ac_ct_CC" = x; then
2323    CC=""
2324  else
2325    case $cross_compiling:$ac_tool_warned in
2326yes:)
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329ac_tool_warned=yes ;;
2330esac
2331    CC=$ac_ct_CC
2332  fi
2333else
2334  CC="$ac_cv_prog_CC"
2335fi
2336
2337if test -z "$CC"; then
2338          if test -n "$ac_tool_prefix"; then
2339    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2340set dummy ${ac_tool_prefix}cc; ac_word=$2
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2342$as_echo_n "checking for $ac_word... " >&6; }
2343if ${ac_cv_prog_CC+:} false; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  if test -n "$CC"; then
2347  ac_cv_prog_CC="$CC" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354    for ac_exec_ext in '' $ac_executable_extensions; do
2355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356    ac_cv_prog_CC="${ac_tool_prefix}cc"
2357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2358    break 2
2359  fi
2360done
2361  done
2362IFS=$as_save_IFS
2363
2364fi
2365fi
2366CC=$ac_cv_prog_CC
2367if test -n "$CC"; then
2368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2369$as_echo "$CC" >&6; }
2370else
2371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372$as_echo "no" >&6; }
2373fi
2374
2375
2376  fi
2377fi
2378if test -z "$CC"; then
2379  # Extract the first word of "cc", so it can be a program name with args.
2380set dummy cc; ac_word=$2
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382$as_echo_n "checking for $ac_word... " >&6; }
2383if ${ac_cv_prog_CC+:} false; then :
2384  $as_echo_n "(cached) " >&6
2385else
2386  if test -n "$CC"; then
2387  ac_cv_prog_CC="$CC" # Let the user override the test.
2388else
2389  ac_prog_rejected=no
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393  IFS=$as_save_IFS
2394  test -z "$as_dir" && as_dir=.
2395    for ac_exec_ext in '' $ac_executable_extensions; do
2396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2398       ac_prog_rejected=yes
2399       continue
2400     fi
2401    ac_cv_prog_CC="cc"
2402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403    break 2
2404  fi
2405done
2406  done
2407IFS=$as_save_IFS
2408
2409if test $ac_prog_rejected = yes; then
2410  # We found a bogon in the path, so make sure we never use it.
2411  set dummy $ac_cv_prog_CC
2412  shift
2413  if test $# != 0; then
2414    # We chose a different compiler from the bogus one.
2415    # However, it has the same basename, so the bogon will be chosen
2416    # first if we set CC to just the basename; use the full file name.
2417    shift
2418    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2419  fi
2420fi
2421fi
2422fi
2423CC=$ac_cv_prog_CC
2424if test -n "$CC"; then
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2426$as_echo "$CC" >&6; }
2427else
2428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429$as_echo "no" >&6; }
2430fi
2431
2432
2433fi
2434if test -z "$CC"; then
2435  if test -n "$ac_tool_prefix"; then
2436  for ac_prog in cl.exe
2437  do
2438    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441$as_echo_n "checking for $ac_word... " >&6; }
2442if ${ac_cv_prog_CC+:} false; then :
2443  $as_echo_n "(cached) " >&6
2444else
2445  if test -n "$CC"; then
2446  ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451  IFS=$as_save_IFS
2452  test -z "$as_dir" && as_dir=.
2453    for ac_exec_ext in '' $ac_executable_extensions; do
2454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457    break 2
2458  fi
2459done
2460  done
2461IFS=$as_save_IFS
2462
2463fi
2464fi
2465CC=$ac_cv_prog_CC
2466if test -n "$CC"; then
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468$as_echo "$CC" >&6; }
2469else
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471$as_echo "no" >&6; }
2472fi
2473
2474
2475    test -n "$CC" && break
2476  done
2477fi
2478if test -z "$CC"; then
2479  ac_ct_CC=$CC
2480  for ac_prog in cl.exe
2481do
2482  # Extract the first word of "$ac_prog", so it can be a program name with args.
2483set dummy $ac_prog; ac_word=$2
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if ${ac_cv_prog_ac_ct_CC+:} false; then :
2487  $as_echo_n "(cached) " >&6
2488else
2489  if test -n "$ac_ct_CC"; then
2490  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    for ac_exec_ext in '' $ac_executable_extensions; do
2498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499    ac_cv_prog_ac_ct_CC="$ac_prog"
2500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504  done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510if test -n "$ac_ct_CC"; then
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2512$as_echo "$ac_ct_CC" >&6; }
2513else
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518
2519  test -n "$ac_ct_CC" && break
2520done
2521
2522  if test "x$ac_ct_CC" = x; then
2523    CC=""
2524  else
2525    case $cross_compiling:$ac_tool_warned in
2526yes:)
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529ac_tool_warned=yes ;;
2530esac
2531    CC=$ac_ct_CC
2532  fi
2533fi
2534
2535fi
2536
2537
2538test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540as_fn_error $? "no acceptable C compiler found in \$PATH
2541See \`config.log' for more details" "$LINENO" 5; }
2542
2543# Provide some information about the compiler.
2544$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2545set X $ac_compile
2546ac_compiler=$2
2547for ac_option in --version -v -V -qversion; do
2548  { { ac_try="$ac_compiler $ac_option >&5"
2549case "(($ac_try" in
2550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551  *) ac_try_echo=$ac_try;;
2552esac
2553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554$as_echo "$ac_try_echo"; } >&5
2555  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2556  ac_status=$?
2557  if test -s conftest.err; then
2558    sed '10a\
2559... rest of stderr output deleted ...
2560         10q' conftest.err >conftest.er1
2561    cat conftest.er1 >&5
2562  fi
2563  rm -f conftest.er1 conftest.err
2564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565  test $ac_status = 0; }
2566done
2567
2568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569/* end confdefs.h.  */
2570
2571int
2572main ()
2573{
2574
2575  ;
2576  return 0;
2577}
2578_ACEOF
2579ac_clean_files_save=$ac_clean_files
2580ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2581# Try to create an executable without -o first, disregard a.out.
2582# It will help us diagnose broken compilers, and finding out an intuition
2583# of exeext.
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2585$as_echo_n "checking whether the C compiler works... " >&6; }
2586ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587
2588# The possible output files:
2589ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2590
2591ac_rmfiles=
2592for ac_file in $ac_files
2593do
2594  case $ac_file in
2595    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2596    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2597  esac
2598done
2599rm -f $ac_rmfiles
2600
2601if { { ac_try="$ac_link_default"
2602case "(($ac_try" in
2603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604  *) ac_try_echo=$ac_try;;
2605esac
2606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2607$as_echo "$ac_try_echo"; } >&5
2608  (eval "$ac_link_default") 2>&5
2609  ac_status=$?
2610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611  test $ac_status = 0; }; then :
2612  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2613# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2614# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2615# so that the user can short-circuit this test for compilers unknown to
2616# Autoconf.
2617for ac_file in $ac_files ''
2618do
2619  test -f "$ac_file" || continue
2620  case $ac_file in
2621    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2622	;;
2623    [ab].out )
2624	# We found the default executable, but exeext='' is most
2625	# certainly right.
2626	break;;
2627    *.* )
2628	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2629	then :; else
2630	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631	fi
2632	# We set ac_cv_exeext here because the later test for it is not
2633	# safe: cross compilers may not add the suffix if given an `-o'
2634	# argument, so we may need to know it at that point already.
2635	# Even if this section looks crufty: it has the advantage of
2636	# actually working.
2637	break;;
2638    * )
2639	break;;
2640  esac
2641done
2642test "$ac_cv_exeext" = no && ac_cv_exeext=
2643
2644else
2645  ac_file=''
2646fi
2647if test -z "$ac_file"; then :
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650$as_echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655as_fn_error 77 "C compiler cannot create executables
2656See \`config.log' for more details" "$LINENO" 5; }
2657else
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659$as_echo "yes" >&6; }
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2662$as_echo_n "checking for C compiler default output file name... " >&6; }
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2664$as_echo "$ac_file" >&6; }
2665ac_exeext=$ac_cv_exeext
2666
2667rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2668ac_clean_files=$ac_clean_files_save
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2670$as_echo_n "checking for suffix of executables... " >&6; }
2671if { { ac_try="$ac_link"
2672case "(($ac_try" in
2673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674  *) ac_try_echo=$ac_try;;
2675esac
2676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677$as_echo "$ac_try_echo"; } >&5
2678  (eval "$ac_link") 2>&5
2679  ac_status=$?
2680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681  test $ac_status = 0; }; then :
2682  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2683# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2684# work properly (i.e., refer to `conftest.exe'), while it won't with
2685# `rm'.
2686for ac_file in conftest.exe conftest conftest.*; do
2687  test -f "$ac_file" || continue
2688  case $ac_file in
2689    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2690    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2691	  break;;
2692    * ) break;;
2693  esac
2694done
2695else
2696  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2699See \`config.log' for more details" "$LINENO" 5; }
2700fi
2701rm -f conftest conftest$ac_cv_exeext
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2703$as_echo "$ac_cv_exeext" >&6; }
2704
2705rm -f conftest.$ac_ext
2706EXEEXT=$ac_cv_exeext
2707ac_exeext=$EXEEXT
2708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h.  */
2710#include <stdio.h>
2711int
2712main ()
2713{
2714FILE *f = fopen ("conftest.out", "w");
2715 return ferror (f) || fclose (f) != 0;
2716
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721ac_clean_files="$ac_clean_files conftest.out"
2722# Check that the compiler produces executables we can run.  If not, either
2723# the compiler is broken, or we cross compile.
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2725$as_echo_n "checking whether we are cross compiling... " >&6; }
2726if test "$cross_compiling" != yes; then
2727  { { ac_try="$ac_link"
2728case "(($ac_try" in
2729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730  *) ac_try_echo=$ac_try;;
2731esac
2732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733$as_echo "$ac_try_echo"; } >&5
2734  (eval "$ac_link") 2>&5
2735  ac_status=$?
2736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737  test $ac_status = 0; }
2738  if { ac_try='./conftest$ac_cv_exeext'
2739  { { case "(($ac_try" in
2740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741  *) ac_try_echo=$ac_try;;
2742esac
2743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744$as_echo "$ac_try_echo"; } >&5
2745  (eval "$ac_try") 2>&5
2746  ac_status=$?
2747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748  test $ac_status = 0; }; }; then
2749    cross_compiling=no
2750  else
2751    if test "$cross_compiling" = maybe; then
2752	cross_compiling=yes
2753    else
2754	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756as_fn_error $? "cannot run C compiled programs.
2757If you meant to cross compile, use \`--host'.
2758See \`config.log' for more details" "$LINENO" 5; }
2759    fi
2760  fi
2761fi
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2763$as_echo "$cross_compiling" >&6; }
2764
2765rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2766ac_clean_files=$ac_clean_files_save
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2768$as_echo_n "checking for suffix of object files... " >&6; }
2769if ${ac_cv_objext+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773/* end confdefs.h.  */
2774
2775int
2776main ()
2777{
2778
2779  ;
2780  return 0;
2781}
2782_ACEOF
2783rm -f conftest.o conftest.obj
2784if { { ac_try="$ac_compile"
2785case "(($ac_try" in
2786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787  *) ac_try_echo=$ac_try;;
2788esac
2789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790$as_echo "$ac_try_echo"; } >&5
2791  (eval "$ac_compile") 2>&5
2792  ac_status=$?
2793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794  test $ac_status = 0; }; then :
2795  for ac_file in conftest.o conftest.obj conftest.*; do
2796  test -f "$ac_file" || continue;
2797  case $ac_file in
2798    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2799    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2800       break;;
2801  esac
2802done
2803else
2804  $as_echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809as_fn_error $? "cannot compute suffix of object files: cannot compile
2810See \`config.log' for more details" "$LINENO" 5; }
2811fi
2812rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2815$as_echo "$ac_cv_objext" >&6; }
2816OBJEXT=$ac_cv_objext
2817ac_objext=$OBJEXT
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2819$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2820if ${ac_cv_c_compiler_gnu+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829#ifndef __GNUC__
2830       choke me
2831#endif
2832
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837if ac_fn_c_try_compile "$LINENO"; then :
2838  ac_compiler_gnu=yes
2839else
2840  ac_compiler_gnu=no
2841fi
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843ac_cv_c_compiler_gnu=$ac_compiler_gnu
2844
2845fi
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2847$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2848if test $ac_compiler_gnu = yes; then
2849  GCC=yes
2850else
2851  GCC=
2852fi
2853ac_test_CFLAGS=${CFLAGS+set}
2854ac_save_CFLAGS=$CFLAGS
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2856$as_echo_n "checking whether $CC accepts -g... " >&6; }
2857if ${ac_cv_prog_cc_g+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  ac_save_c_werror_flag=$ac_c_werror_flag
2861   ac_c_werror_flag=yes
2862   ac_cv_prog_cc_g=no
2863   CFLAGS="-g"
2864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865/* end confdefs.h.  */
2866
2867int
2868main ()
2869{
2870
2871  ;
2872  return 0;
2873}
2874_ACEOF
2875if ac_fn_c_try_compile "$LINENO"; then :
2876  ac_cv_prog_cc_g=yes
2877else
2878  CFLAGS=""
2879      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880/* end confdefs.h.  */
2881
2882int
2883main ()
2884{
2885
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890if ac_fn_c_try_compile "$LINENO"; then :
2891
2892else
2893  ac_c_werror_flag=$ac_save_c_werror_flag
2894	 CFLAGS="-g"
2895	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906if ac_fn_c_try_compile "$LINENO"; then :
2907  ac_cv_prog_cc_g=yes
2908fi
2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910fi
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912fi
2913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914   ac_c_werror_flag=$ac_save_c_werror_flag
2915fi
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2917$as_echo "$ac_cv_prog_cc_g" >&6; }
2918if test "$ac_test_CFLAGS" = set; then
2919  CFLAGS=$ac_save_CFLAGS
2920elif test $ac_cv_prog_cc_g = yes; then
2921  if test "$GCC" = yes; then
2922    CFLAGS="-g -O2"
2923  else
2924    CFLAGS="-g"
2925  fi
2926else
2927  if test "$GCC" = yes; then
2928    CFLAGS="-O2"
2929  else
2930    CFLAGS=
2931  fi
2932fi
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2934$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2935if ${ac_cv_prog_cc_c89+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  ac_cv_prog_cc_c89=no
2939ac_save_CC=$CC
2940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h.  */
2942#include <stdarg.h>
2943#include <stdio.h>
2944struct stat;
2945/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2946struct buf { int x; };
2947FILE * (*rcsopen) (struct buf *, struct stat *, int);
2948static char *e (p, i)
2949     char **p;
2950     int i;
2951{
2952  return p[i];
2953}
2954static char *f (char * (*g) (char **, int), char **p, ...)
2955{
2956  char *s;
2957  va_list v;
2958  va_start (v,p);
2959  s = g (p, va_arg (v,int));
2960  va_end (v);
2961  return s;
2962}
2963
2964/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2965   function prototypes and stuff, but not '\xHH' hex character constants.
2966   These don't provoke an error unfortunately, instead are silently treated
2967   as 'x'.  The following induces an error, until -std is added to get
2968   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2969   array size at least.  It's necessary to write '\x00'==0 to get something
2970   that's true only with -std.  */
2971int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972
2973/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2974   inside strings and character constants.  */
2975#define FOO(x) 'x'
2976int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977
2978int test (int i, double x);
2979struct s1 {int (*f) (int a);};
2980struct s2 {int (*f) (double a);};
2981int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2982int argc;
2983char **argv;
2984int
2985main ()
2986{
2987return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2988  ;
2989  return 0;
2990}
2991_ACEOF
2992for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2993	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994do
2995  CC="$ac_save_CC $ac_arg"
2996  if ac_fn_c_try_compile "$LINENO"; then :
2997  ac_cv_prog_cc_c89=$ac_arg
2998fi
2999rm -f core conftest.err conftest.$ac_objext
3000  test "x$ac_cv_prog_cc_c89" != "xno" && break
3001done
3002rm -f conftest.$ac_ext
3003CC=$ac_save_CC
3004
3005fi
3006# AC_CACHE_VAL
3007case "x$ac_cv_prog_cc_c89" in
3008  x)
3009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3010$as_echo "none needed" >&6; } ;;
3011  xno)
3012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3013$as_echo "unsupported" >&6; } ;;
3014  *)
3015    CC="$CC $ac_cv_prog_cc_c89"
3016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3017$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3018esac
3019if test "x$ac_cv_prog_cc_c89" != xno; then :
3020
3021fi
3022
3023ac_ext=c
3024ac_cpp='$CPP $CPPFLAGS'
3025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028
3029ac_ext=c
3030ac_cpp='$CPP $CPPFLAGS'
3031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3035$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3036if ${am_cv_prog_cc_c_o+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040/* end confdefs.h.  */
3041
3042int
3043main ()
3044{
3045
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050  # Make sure it works both with $CC and with simple cc.
3051  # Following AC_PROG_CC_C_O, we do the test twice because some
3052  # compilers refuse to overwrite an existing .o file with -o,
3053  # though they will create one.
3054  am_cv_prog_cc_c_o=yes
3055  for am_i in 1 2; do
3056    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3057   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } \
3061         && test -f conftest2.$ac_objext; then
3062      : OK
3063    else
3064      am_cv_prog_cc_c_o=no
3065      break
3066    fi
3067  done
3068  rm -f core conftest*
3069  unset am_i
3070fi
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3072$as_echo "$am_cv_prog_cc_c_o" >&6; }
3073if test "$am_cv_prog_cc_c_o" != yes; then
3074   # Losing compiler, so override with the script.
3075   # FIXME: It is wrong to rewrite CC.
3076   # But if we don't then we get into trouble of one sort or another.
3077   # A longer-term fix would be to have automake use am__CC in this case,
3078   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3079   CC="$am_aux_dir/compile $CC"
3080fi
3081ac_ext=c
3082ac_cpp='$CPP $CPPFLAGS'
3083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086
3087
3088
3089ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3095$as_echo_n "checking how to run the C preprocessor... " >&6; }
3096# On Suns, sometimes $CPP names a directory.
3097if test -n "$CPP" && test -d "$CPP"; then
3098  CPP=
3099fi
3100if test -z "$CPP"; then
3101  if ${ac_cv_prog_CPP+:} false; then :
3102  $as_echo_n "(cached) " >&6
3103else
3104      # Double quotes because CPP needs to be expanded
3105    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106    do
3107      ac_preproc_ok=false
3108for ac_c_preproc_warn_flag in '' yes
3109do
3110  # Use a header file that comes with gcc, so configuring glibc
3111  # with a fresh cross-compiler works.
3112  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113  # <limits.h> exists even on freestanding compilers.
3114  # On the NeXT, cc -E runs the code through the compiler's parser,
3115  # not just through cpp. "Syntax error" is here to catch this case.
3116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117/* end confdefs.h.  */
3118#ifdef __STDC__
3119# include <limits.h>
3120#else
3121# include <assert.h>
3122#endif
3123		     Syntax error
3124_ACEOF
3125if ac_fn_c_try_cpp "$LINENO"; then :
3126
3127else
3128  # Broken: fails on valid input.
3129continue
3130fi
3131rm -f conftest.err conftest.i conftest.$ac_ext
3132
3133  # OK, works on sane cases.  Now check whether nonexistent headers
3134  # can be detected and how.
3135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136/* end confdefs.h.  */
3137#include <ac_nonexistent.h>
3138_ACEOF
3139if ac_fn_c_try_cpp "$LINENO"; then :
3140  # Broken: success on invalid input.
3141continue
3142else
3143  # Passes both tests.
3144ac_preproc_ok=:
3145break
3146fi
3147rm -f conftest.err conftest.i conftest.$ac_ext
3148
3149done
3150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3151rm -f conftest.i conftest.err conftest.$ac_ext
3152if $ac_preproc_ok; then :
3153  break
3154fi
3155
3156    done
3157    ac_cv_prog_CPP=$CPP
3158
3159fi
3160  CPP=$ac_cv_prog_CPP
3161else
3162  ac_cv_prog_CPP=$CPP
3163fi
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3165$as_echo "$CPP" >&6; }
3166ac_preproc_ok=false
3167for ac_c_preproc_warn_flag in '' yes
3168do
3169  # Use a header file that comes with gcc, so configuring glibc
3170  # with a fresh cross-compiler works.
3171  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3172  # <limits.h> exists even on freestanding compilers.
3173  # On the NeXT, cc -E runs the code through the compiler's parser,
3174  # not just through cpp. "Syntax error" is here to catch this case.
3175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176/* end confdefs.h.  */
3177#ifdef __STDC__
3178# include <limits.h>
3179#else
3180# include <assert.h>
3181#endif
3182		     Syntax error
3183_ACEOF
3184if ac_fn_c_try_cpp "$LINENO"; then :
3185
3186else
3187  # Broken: fails on valid input.
3188continue
3189fi
3190rm -f conftest.err conftest.i conftest.$ac_ext
3191
3192  # OK, works on sane cases.  Now check whether nonexistent headers
3193  # can be detected and how.
3194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195/* end confdefs.h.  */
3196#include <ac_nonexistent.h>
3197_ACEOF
3198if ac_fn_c_try_cpp "$LINENO"; then :
3199  # Broken: success on invalid input.
3200continue
3201else
3202  # Passes both tests.
3203ac_preproc_ok=:
3204break
3205fi
3206rm -f conftest.err conftest.i conftest.$ac_ext
3207
3208done
3209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3210rm -f conftest.i conftest.err conftest.$ac_ext
3211if $ac_preproc_ok; then :
3212
3213else
3214  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3217See \`config.log' for more details" "$LINENO" 5; }
3218fi
3219
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225
3226
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3228$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3229if ${ac_cv_path_GREP+:} false; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  if test -z "$GREP"; then
3233  ac_path_GREP_found=false
3234  # Loop through the user's path and test for each of PROGNAME-LIST
3235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240    for ac_prog in grep ggrep; do
3241    for ac_exec_ext in '' $ac_executable_extensions; do
3242      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3243      as_fn_executable_p "$ac_path_GREP" || continue
3244# Check for GNU ac_path_GREP and select it if it is found.
3245  # Check for GNU $ac_path_GREP
3246case `"$ac_path_GREP" --version 2>&1` in
3247*GNU*)
3248  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3249*)
3250  ac_count=0
3251  $as_echo_n 0123456789 >"conftest.in"
3252  while :
3253  do
3254    cat "conftest.in" "conftest.in" >"conftest.tmp"
3255    mv "conftest.tmp" "conftest.in"
3256    cp "conftest.in" "conftest.nl"
3257    $as_echo 'GREP' >> "conftest.nl"
3258    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3260    as_fn_arith $ac_count + 1 && ac_count=$as_val
3261    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3262      # Best one so far, save it but keep looking for a better one
3263      ac_cv_path_GREP="$ac_path_GREP"
3264      ac_path_GREP_max=$ac_count
3265    fi
3266    # 10*(2^10) chars as input seems more than enough
3267    test $ac_count -gt 10 && break
3268  done
3269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3270esac
3271
3272      $ac_path_GREP_found && break 3
3273    done
3274  done
3275  done
3276IFS=$as_save_IFS
3277  if test -z "$ac_cv_path_GREP"; then
3278    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3279  fi
3280else
3281  ac_cv_path_GREP=$GREP
3282fi
3283
3284fi
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3286$as_echo "$ac_cv_path_GREP" >&6; }
3287 GREP="$ac_cv_path_GREP"
3288
3289
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3291$as_echo_n "checking for egrep... " >&6; }
3292if ${ac_cv_path_EGREP+:} false; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3296   then ac_cv_path_EGREP="$GREP -E"
3297   else
3298     if test -z "$EGREP"; then
3299  ac_path_EGREP_found=false
3300  # Loop through the user's path and test for each of PROGNAME-LIST
3301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306    for ac_prog in egrep; do
3307    for ac_exec_ext in '' $ac_executable_extensions; do
3308      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3309      as_fn_executable_p "$ac_path_EGREP" || continue
3310# Check for GNU ac_path_EGREP and select it if it is found.
3311  # Check for GNU $ac_path_EGREP
3312case `"$ac_path_EGREP" --version 2>&1` in
3313*GNU*)
3314  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3315*)
3316  ac_count=0
3317  $as_echo_n 0123456789 >"conftest.in"
3318  while :
3319  do
3320    cat "conftest.in" "conftest.in" >"conftest.tmp"
3321    mv "conftest.tmp" "conftest.in"
3322    cp "conftest.in" "conftest.nl"
3323    $as_echo 'EGREP' >> "conftest.nl"
3324    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326    as_fn_arith $ac_count + 1 && ac_count=$as_val
3327    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3328      # Best one so far, save it but keep looking for a better one
3329      ac_cv_path_EGREP="$ac_path_EGREP"
3330      ac_path_EGREP_max=$ac_count
3331    fi
3332    # 10*(2^10) chars as input seems more than enough
3333    test $ac_count -gt 10 && break
3334  done
3335  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336esac
3337
3338      $ac_path_EGREP_found && break 3
3339    done
3340  done
3341  done
3342IFS=$as_save_IFS
3343  if test -z "$ac_cv_path_EGREP"; then
3344    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3345  fi
3346else
3347  ac_cv_path_EGREP=$EGREP
3348fi
3349
3350   fi
3351fi
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3353$as_echo "$ac_cv_path_EGREP" >&6; }
3354 EGREP="$ac_cv_path_EGREP"
3355
3356
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3358$as_echo_n "checking for ANSI C header files... " >&6; }
3359if ${ac_cv_header_stdc+:} false; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h.  */
3364#include <stdlib.h>
3365#include <stdarg.h>
3366#include <string.h>
3367#include <float.h>
3368
3369int
3370main ()
3371{
3372
3373  ;
3374  return 0;
3375}
3376_ACEOF
3377if ac_fn_c_try_compile "$LINENO"; then :
3378  ac_cv_header_stdc=yes
3379else
3380  ac_cv_header_stdc=no
3381fi
3382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383
3384if test $ac_cv_header_stdc = yes; then
3385  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388#include <string.h>
3389
3390_ACEOF
3391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392  $EGREP "memchr" >/dev/null 2>&1; then :
3393
3394else
3395  ac_cv_header_stdc=no
3396fi
3397rm -f conftest*
3398
3399fi
3400
3401if test $ac_cv_header_stdc = yes; then
3402  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405#include <stdlib.h>
3406
3407_ACEOF
3408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409  $EGREP "free" >/dev/null 2>&1; then :
3410
3411else
3412  ac_cv_header_stdc=no
3413fi
3414rm -f conftest*
3415
3416fi
3417
3418if test $ac_cv_header_stdc = yes; then
3419  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3420  if test "$cross_compiling" = yes; then :
3421  :
3422else
3423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425#include <ctype.h>
3426#include <stdlib.h>
3427#if ((' ' & 0x0FF) == 0x020)
3428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3430#else
3431# define ISLOWER(c) \
3432		   (('a' <= (c) && (c) <= 'i') \
3433		     || ('j' <= (c) && (c) <= 'r') \
3434		     || ('s' <= (c) && (c) <= 'z'))
3435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3436#endif
3437
3438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3439int
3440main ()
3441{
3442  int i;
3443  for (i = 0; i < 256; i++)
3444    if (XOR (islower (i), ISLOWER (i))
3445	|| toupper (i) != TOUPPER (i))
3446      return 2;
3447  return 0;
3448}
3449_ACEOF
3450if ac_fn_c_try_run "$LINENO"; then :
3451
3452else
3453  ac_cv_header_stdc=no
3454fi
3455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3456  conftest.$ac_objext conftest.beam conftest.$ac_ext
3457fi
3458
3459fi
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3462$as_echo "$ac_cv_header_stdc" >&6; }
3463if test $ac_cv_header_stdc = yes; then
3464
3465$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3466
3467fi
3468
3469# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3470for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3471		  inttypes.h stdint.h unistd.h
3472do :
3473  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3474ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3475"
3476if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3477  cat >>confdefs.h <<_ACEOF
3478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3479_ACEOF
3480
3481fi
3482
3483done
3484
3485
3486
3487  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3488if test "x$ac_cv_header_minix_config_h" = xyes; then :
3489  MINIX=yes
3490else
3491  MINIX=
3492fi
3493
3494
3495  if test "$MINIX" = yes; then
3496
3497$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3498
3499
3500$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3501
3502
3503$as_echo "#define _MINIX 1" >>confdefs.h
3504
3505  fi
3506
3507
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3509$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3510if ${ac_cv_safe_to_define___extensions__+:} false; then :
3511  $as_echo_n "(cached) " >&6
3512else
3513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514/* end confdefs.h.  */
3515
3516#         define __EXTENSIONS__ 1
3517          $ac_includes_default
3518int
3519main ()
3520{
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526if ac_fn_c_try_compile "$LINENO"; then :
3527  ac_cv_safe_to_define___extensions__=yes
3528else
3529  ac_cv_safe_to_define___extensions__=no
3530fi
3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532fi
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3534$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3535  test $ac_cv_safe_to_define___extensions__ = yes &&
3536    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3537
3538  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3539
3540  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3541
3542  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3543
3544  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3545
3546
3547
3548# Initialize Automake
3549am__api_version='1.15'
3550
3551# Find a good install program.  We prefer a C program (faster),
3552# so one script is as good as another.  But avoid the broken or
3553# incompatible versions:
3554# SysV /etc/install, /usr/sbin/install
3555# SunOS /usr/etc/install
3556# IRIX /sbin/install
3557# AIX /bin/install
3558# AmigaOS /C/install, which installs bootblocks on floppy discs
3559# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3560# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3561# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3562# OS/2's system install, which has a completely different semantic
3563# ./install, which can be erroneously created by make from ./install.sh.
3564# Reject install programs that cannot install multiple files.
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3566$as_echo_n "checking for a BSD-compatible install... " >&6; }
3567if test -z "$INSTALL"; then
3568if ${ac_cv_path_install+:} false; then :
3569  $as_echo_n "(cached) " >&6
3570else
3571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH
3573do
3574  IFS=$as_save_IFS
3575  test -z "$as_dir" && as_dir=.
3576    # Account for people who put trailing slashes in PATH elements.
3577case $as_dir/ in #((
3578  ./ | .// | /[cC]/* | \
3579  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3580  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3581  /usr/ucb/* ) ;;
3582  *)
3583    # OSF1 and SCO ODT 3.0 have their own names for install.
3584    # Don't use installbsd from OSF since it installs stuff as root
3585    # by default.
3586    for ac_prog in ginstall scoinst install; do
3587      for ac_exec_ext in '' $ac_executable_extensions; do
3588	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3589	  if test $ac_prog = install &&
3590	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3591	    # AIX install.  It has an incompatible calling convention.
3592	    :
3593	  elif test $ac_prog = install &&
3594	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595	    # program-specific install script used by HP pwplus--don't use.
3596	    :
3597	  else
3598	    rm -rf conftest.one conftest.two conftest.dir
3599	    echo one > conftest.one
3600	    echo two > conftest.two
3601	    mkdir conftest.dir
3602	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3603	      test -s conftest.one && test -s conftest.two &&
3604	      test -s conftest.dir/conftest.one &&
3605	      test -s conftest.dir/conftest.two
3606	    then
3607	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3608	      break 3
3609	    fi
3610	  fi
3611	fi
3612      done
3613    done
3614    ;;
3615esac
3616
3617  done
3618IFS=$as_save_IFS
3619
3620rm -rf conftest.one conftest.two conftest.dir
3621
3622fi
3623  if test "${ac_cv_path_install+set}" = set; then
3624    INSTALL=$ac_cv_path_install
3625  else
3626    # As a last resort, use the slow shell script.  Don't cache a
3627    # value for INSTALL within a source directory, because that will
3628    # break other packages using the cache if that directory is
3629    # removed, or if the value is a relative name.
3630    INSTALL=$ac_install_sh
3631  fi
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3634$as_echo "$INSTALL" >&6; }
3635
3636# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3637# It thinks the first close brace ends the variable substitution.
3638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3639
3640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3641
3642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3643
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3645$as_echo_n "checking whether build environment is sane... " >&6; }
3646# Reject unsafe characters in $srcdir or the absolute working directory
3647# name.  Accept space and tab only in the latter.
3648am_lf='
3649'
3650case `pwd` in
3651  *[\\\"\#\$\&\'\`$am_lf]*)
3652    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3653esac
3654case $srcdir in
3655  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3656    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3657esac
3658
3659# Do 'set' in a subshell so we don't clobber the current shell's
3660# arguments.  Must try -L first in case configure is actually a
3661# symlink; some systems play weird games with the mod time of symlinks
3662# (eg FreeBSD returns the mod time of the symlink's containing
3663# directory).
3664if (
3665   am_has_slept=no
3666   for am_try in 1 2; do
3667     echo "timestamp, slept: $am_has_slept" > conftest.file
3668     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3669     if test "$*" = "X"; then
3670	# -L didn't work.
3671	set X `ls -t "$srcdir/configure" conftest.file`
3672     fi
3673     if test "$*" != "X $srcdir/configure conftest.file" \
3674	&& test "$*" != "X conftest.file $srcdir/configure"; then
3675
3676	# If neither matched, then we have a broken ls.  This can happen
3677	# if, for instance, CONFIG_SHELL is bash and it inherits a
3678	# broken ls alias from the environment.  This has actually
3679	# happened.  Such a system could not be considered "sane".
3680	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3681  alias in your environment" "$LINENO" 5
3682     fi
3683     if test "$2" = conftest.file || test $am_try -eq 2; then
3684       break
3685     fi
3686     # Just in case.
3687     sleep 1
3688     am_has_slept=yes
3689   done
3690   test "$2" = conftest.file
3691   )
3692then
3693   # Ok.
3694   :
3695else
3696   as_fn_error $? "newly created file is older than distributed files!
3697Check your system clock" "$LINENO" 5
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3700$as_echo "yes" >&6; }
3701# If we didn't sleep, we still need to ensure time stamps of config.status and
3702# generated files are strictly newer.
3703am_sleep_pid=
3704if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3705  ( sleep 1 ) &
3706  am_sleep_pid=$!
3707fi
3708
3709rm -f conftest.file
3710
3711test "$program_prefix" != NONE &&
3712  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3713# Use a double $ so make ignores it.
3714test "$program_suffix" != NONE &&
3715  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3716# Double any \ or $.
3717# By default was `s,x,x', remove it if useless.
3718ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3719program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3720
3721if test x"${MISSING+set}" != xset; then
3722  case $am_aux_dir in
3723  *\ * | *\	*)
3724    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3725  *)
3726    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3727  esac
3728fi
3729# Use eval to expand $SHELL
3730if eval "$MISSING --is-lightweight"; then
3731  am_missing_run="$MISSING "
3732else
3733  am_missing_run=
3734  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3735$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3736fi
3737
3738if test x"${install_sh+set}" != xset; then
3739  case $am_aux_dir in
3740  *\ * | *\	*)
3741    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3742  *)
3743    install_sh="\${SHELL} $am_aux_dir/install-sh"
3744  esac
3745fi
3746
3747# Installed binaries are usually stripped using 'strip' when the user
3748# run "make install-strip".  However 'strip' might not be the right
3749# tool to use in cross-compilation environments, therefore Automake
3750# will honor the 'STRIP' environment variable to overrule this program.
3751if test "$cross_compiling" != no; then
3752  if test -n "$ac_tool_prefix"; then
3753  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3754set dummy ${ac_tool_prefix}strip; ac_word=$2
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756$as_echo_n "checking for $ac_word... " >&6; }
3757if ${ac_cv_prog_STRIP+:} false; then :
3758  $as_echo_n "(cached) " >&6
3759else
3760  if test -n "$STRIP"; then
3761  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3762else
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766  IFS=$as_save_IFS
3767  test -z "$as_dir" && as_dir=.
3768    for ac_exec_ext in '' $ac_executable_extensions; do
3769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772    break 2
3773  fi
3774done
3775  done
3776IFS=$as_save_IFS
3777
3778fi
3779fi
3780STRIP=$ac_cv_prog_STRIP
3781if test -n "$STRIP"; then
3782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3783$as_echo "$STRIP" >&6; }
3784else
3785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786$as_echo "no" >&6; }
3787fi
3788
3789
3790fi
3791if test -z "$ac_cv_prog_STRIP"; then
3792  ac_ct_STRIP=$STRIP
3793  # Extract the first word of "strip", so it can be a program name with args.
3794set dummy strip; ac_word=$2
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796$as_echo_n "checking for $ac_word... " >&6; }
3797if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800  if test -n "$ac_ct_STRIP"; then
3801  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802else
3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH
3805do
3806  IFS=$as_save_IFS
3807  test -z "$as_dir" && as_dir=.
3808    for ac_exec_ext in '' $ac_executable_extensions; do
3809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810    ac_cv_prog_ac_ct_STRIP="strip"
3811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812    break 2
3813  fi
3814done
3815  done
3816IFS=$as_save_IFS
3817
3818fi
3819fi
3820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3821if test -n "$ac_ct_STRIP"; then
3822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3823$as_echo "$ac_ct_STRIP" >&6; }
3824else
3825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826$as_echo "no" >&6; }
3827fi
3828
3829  if test "x$ac_ct_STRIP" = x; then
3830    STRIP=":"
3831  else
3832    case $cross_compiling:$ac_tool_warned in
3833yes:)
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836ac_tool_warned=yes ;;
3837esac
3838    STRIP=$ac_ct_STRIP
3839  fi
3840else
3841  STRIP="$ac_cv_prog_STRIP"
3842fi
3843
3844fi
3845INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3846
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3848$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3849if test -z "$MKDIR_P"; then
3850  if ${ac_cv_path_mkdir+:} false; then :
3851  $as_echo_n "(cached) " >&6
3852else
3853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3855do
3856  IFS=$as_save_IFS
3857  test -z "$as_dir" && as_dir=.
3858    for ac_prog in mkdir gmkdir; do
3859	 for ac_exec_ext in '' $ac_executable_extensions; do
3860	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3861	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3862	     'mkdir (GNU coreutils) '* | \
3863	     'mkdir (coreutils) '* | \
3864	     'mkdir (fileutils) '4.1*)
3865	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3866	       break 3;;
3867	   esac
3868	 done
3869       done
3870  done
3871IFS=$as_save_IFS
3872
3873fi
3874
3875  test -d ./--version && rmdir ./--version
3876  if test "${ac_cv_path_mkdir+set}" = set; then
3877    MKDIR_P="$ac_cv_path_mkdir -p"
3878  else
3879    # As a last resort, use the slow shell script.  Don't cache a
3880    # value for MKDIR_P within a source directory, because that will
3881    # break other packages using the cache if that directory is
3882    # removed, or if the value is a relative name.
3883    MKDIR_P="$ac_install_sh -d"
3884  fi
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3887$as_echo "$MKDIR_P" >&6; }
3888
3889for ac_prog in gawk mawk nawk awk
3890do
3891  # Extract the first word of "$ac_prog", so it can be a program name with args.
3892set dummy $ac_prog; ac_word=$2
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
3895if ${ac_cv_prog_AWK+:} false; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  if test -n "$AWK"; then
3899  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_exec_ext in '' $ac_executable_extensions; do
3907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908    ac_cv_prog_AWK="$ac_prog"
3909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910    break 2
3911  fi
3912done
3913  done
3914IFS=$as_save_IFS
3915
3916fi
3917fi
3918AWK=$ac_cv_prog_AWK
3919if test -n "$AWK"; then
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3921$as_echo "$AWK" >&6; }
3922else
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925fi
3926
3927
3928  test -n "$AWK" && break
3929done
3930
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3932$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3933set x ${MAKE-make}
3934ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3935if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  cat >conftest.make <<\_ACEOF
3939SHELL = /bin/sh
3940all:
3941	@echo '@@@%%%=$(MAKE)=@@@%%%'
3942_ACEOF
3943# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3944case `${MAKE-make} -f conftest.make 2>/dev/null` in
3945  *@@@%%%=?*=@@@%%%*)
3946    eval ac_cv_prog_make_${ac_make}_set=yes;;
3947  *)
3948    eval ac_cv_prog_make_${ac_make}_set=no;;
3949esac
3950rm -f conftest.make
3951fi
3952if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954$as_echo "yes" >&6; }
3955  SET_MAKE=
3956else
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959  SET_MAKE="MAKE=${MAKE-make}"
3960fi
3961
3962rm -rf .tst 2>/dev/null
3963mkdir .tst 2>/dev/null
3964if test -d .tst; then
3965  am__leading_dot=.
3966else
3967  am__leading_dot=_
3968fi
3969rmdir .tst 2>/dev/null
3970
3971DEPDIR="${am__leading_dot}deps"
3972
3973ac_config_commands="$ac_config_commands depfiles"
3974
3975
3976am_make=${MAKE-make}
3977cat > confinc << 'END'
3978am__doit:
3979	@echo this is the am__doit target
3980.PHONY: am__doit
3981END
3982# If we don't find an include directive, just comment out the code.
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3984$as_echo_n "checking for style of include used by $am_make... " >&6; }
3985am__include="#"
3986am__quote=
3987_am_result=none
3988# First try GNU make style include.
3989echo "include confinc" > confmf
3990# Ignore all kinds of additional output from 'make'.
3991case `$am_make -s -f confmf 2> /dev/null` in #(
3992*the\ am__doit\ target*)
3993  am__include=include
3994  am__quote=
3995  _am_result=GNU
3996  ;;
3997esac
3998# Now try BSD make style include.
3999if test "$am__include" = "#"; then
4000   echo '.include "confinc"' > confmf
4001   case `$am_make -s -f confmf 2> /dev/null` in #(
4002   *the\ am__doit\ target*)
4003     am__include=.include
4004     am__quote="\""
4005     _am_result=BSD
4006     ;;
4007   esac
4008fi
4009
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4012$as_echo "$_am_result" >&6; }
4013rm -f confinc confmf
4014
4015# Check whether --enable-dependency-tracking was given.
4016if test "${enable_dependency_tracking+set}" = set; then :
4017  enableval=$enable_dependency_tracking;
4018fi
4019
4020if test "x$enable_dependency_tracking" != xno; then
4021  am_depcomp="$ac_aux_dir/depcomp"
4022  AMDEPBACKSLASH='\'
4023  am__nodep='_no'
4024fi
4025 if test "x$enable_dependency_tracking" != xno; then
4026  AMDEP_TRUE=
4027  AMDEP_FALSE='#'
4028else
4029  AMDEP_TRUE='#'
4030  AMDEP_FALSE=
4031fi
4032
4033
4034# Check whether --enable-silent-rules was given.
4035if test "${enable_silent_rules+set}" = set; then :
4036  enableval=$enable_silent_rules;
4037fi
4038
4039case $enable_silent_rules in # (((
4040  yes) AM_DEFAULT_VERBOSITY=0;;
4041   no) AM_DEFAULT_VERBOSITY=1;;
4042    *) AM_DEFAULT_VERBOSITY=1;;
4043esac
4044am_make=${MAKE-make}
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4046$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4047if ${am_cv_make_support_nested_variables+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  if $as_echo 'TRUE=$(BAR$(V))
4051BAR0=false
4052BAR1=true
4053V=1
4054am__doit:
4055	@$(TRUE)
4056.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4057  am_cv_make_support_nested_variables=yes
4058else
4059  am_cv_make_support_nested_variables=no
4060fi
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4063$as_echo "$am_cv_make_support_nested_variables" >&6; }
4064if test $am_cv_make_support_nested_variables = yes; then
4065    AM_V='$(V)'
4066  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4067else
4068  AM_V=$AM_DEFAULT_VERBOSITY
4069  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4070fi
4071AM_BACKSLASH='\'
4072
4073if test "`cd $srcdir && pwd`" != "`pwd`"; then
4074  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4075  # is not polluted with repeated "-I."
4076  am__isrc=' -I$(srcdir)'
4077  # test to see if srcdir already configured
4078  if test -f $srcdir/config.status; then
4079    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4080  fi
4081fi
4082
4083# test whether we have cygpath
4084if test -z "$CYGPATH_W"; then
4085  if (cygpath --version) >/dev/null 2>/dev/null; then
4086    CYGPATH_W='cygpath -w'
4087  else
4088    CYGPATH_W=echo
4089  fi
4090fi
4091
4092
4093# Define the identity of the package.
4094 PACKAGE='mkfontscale'
4095 VERSION='1.1.3'
4096
4097
4098cat >>confdefs.h <<_ACEOF
4099#define PACKAGE "$PACKAGE"
4100_ACEOF
4101
4102
4103cat >>confdefs.h <<_ACEOF
4104#define VERSION "$VERSION"
4105_ACEOF
4106
4107# Some tools Automake needs.
4108
4109ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4110
4111
4112AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4113
4114
4115AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4116
4117
4118AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4119
4120
4121MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4122
4123# For better backward compatibility.  To be removed once Automake 1.9.x
4124# dies out for good.  For more background, see:
4125# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4126# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4127mkdir_p='$(MKDIR_P)'
4128
4129# We need awk for the "check" target (and possibly the TAP driver).  The
4130# system "awk" is bad on some platforms.
4131# Always define AMTAR for backward compatibility.  Yes, it's still used
4132# in the wild :-(  We should find a proper way to deprecate it ...
4133AMTAR='$${TAR-tar}'
4134
4135
4136# We'll loop over all known methods to create a tar archive until one works.
4137_am_tools='gnutar  pax cpio none'
4138
4139am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4140
4141
4142
4143
4144
4145depcc="$CC"   am_compiler_list=
4146
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4148$as_echo_n "checking dependency style of $depcc... " >&6; }
4149if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4153  # We make a subdir and do the tests there.  Otherwise we can end up
4154  # making bogus files that we don't know about and never remove.  For
4155  # instance it was reported that on HP-UX the gcc test will end up
4156  # making a dummy file named 'D' -- because '-MD' means "put the output
4157  # in D".
4158  rm -rf conftest.dir
4159  mkdir conftest.dir
4160  # Copy depcomp to subdir because otherwise we won't find it if we're
4161  # using a relative directory.
4162  cp "$am_depcomp" conftest.dir
4163  cd conftest.dir
4164  # We will build objects and dependencies in a subdirectory because
4165  # it helps to detect inapplicable dependency modes.  For instance
4166  # both Tru64's cc and ICC support -MD to output dependencies as a
4167  # side effect of compilation, but ICC will put the dependencies in
4168  # the current directory while Tru64 will put them in the object
4169  # directory.
4170  mkdir sub
4171
4172  am_cv_CC_dependencies_compiler_type=none
4173  if test "$am_compiler_list" = ""; then
4174     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4175  fi
4176  am__universal=false
4177  case " $depcc " in #(
4178     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4179     esac
4180
4181  for depmode in $am_compiler_list; do
4182    # Setup a source with many dependencies, because some compilers
4183    # like to wrap large dependency lists on column 80 (with \), and
4184    # we should not choose a depcomp mode which is confused by this.
4185    #
4186    # We need to recreate these files for each test, as the compiler may
4187    # overwrite some of them when testing with obscure command lines.
4188    # This happens at least with the AIX C compiler.
4189    : > sub/conftest.c
4190    for i in 1 2 3 4 5 6; do
4191      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4192      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4193      # Solaris 10 /bin/sh.
4194      echo '/* dummy */' > sub/conftst$i.h
4195    done
4196    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4197
4198    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4199    # mode.  It turns out that the SunPro C++ compiler does not properly
4200    # handle '-M -o', and we need to detect this.  Also, some Intel
4201    # versions had trouble with output in subdirs.
4202    am__obj=sub/conftest.${OBJEXT-o}
4203    am__minus_obj="-o $am__obj"
4204    case $depmode in
4205    gcc)
4206      # This depmode causes a compiler race in universal mode.
4207      test "$am__universal" = false || continue
4208      ;;
4209    nosideeffect)
4210      # After this tag, mechanisms are not by side-effect, so they'll
4211      # only be used when explicitly requested.
4212      if test "x$enable_dependency_tracking" = xyes; then
4213	continue
4214      else
4215	break
4216      fi
4217      ;;
4218    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4219      # This compiler won't grok '-c -o', but also, the minuso test has
4220      # not run yet.  These depmodes are late enough in the game, and
4221      # so weak that their functioning should not be impacted.
4222      am__obj=conftest.${OBJEXT-o}
4223      am__minus_obj=
4224      ;;
4225    none) break ;;
4226    esac
4227    if depmode=$depmode \
4228       source=sub/conftest.c object=$am__obj \
4229       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4230       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4231         >/dev/null 2>conftest.err &&
4232       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4233       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4234       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4235       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4236      # icc doesn't choke on unknown options, it will just issue warnings
4237      # or remarks (even with -Werror).  So we grep stderr for any message
4238      # that says an option was ignored or not supported.
4239      # When given -MP, icc 7.0 and 7.1 complain thusly:
4240      #   icc: Command line warning: ignoring option '-M'; no argument required
4241      # The diagnosis changed in icc 8.0:
4242      #   icc: Command line remark: option '-MP' not supported
4243      if (grep 'ignoring option' conftest.err ||
4244          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4245        am_cv_CC_dependencies_compiler_type=$depmode
4246        break
4247      fi
4248    fi
4249  done
4250
4251  cd ..
4252  rm -rf conftest.dir
4253else
4254  am_cv_CC_dependencies_compiler_type=none
4255fi
4256
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4259$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4260CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4261
4262 if
4263  test "x$enable_dependency_tracking" != xno \
4264  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4265  am__fastdepCC_TRUE=
4266  am__fastdepCC_FALSE='#'
4267else
4268  am__fastdepCC_TRUE='#'
4269  am__fastdepCC_FALSE=
4270fi
4271
4272
4273
4274# POSIX will say in a future version that running "rm -f" with no argument
4275# is OK; and we want to be able to make that assumption in our Makefile
4276# recipes.  So use an aggressive probe to check that the usage we want is
4277# actually supported "in the wild" to an acceptable degree.
4278# See automake bug#10828.
4279# To make any issue more visible, cause the running configure to be aborted
4280# by default if the 'rm' program in use doesn't match our expectations; the
4281# user can still override this though.
4282if rm -f && rm -fr && rm -rf; then : OK; else
4283  cat >&2 <<'END'
4284Oops!
4285
4286Your 'rm' program seems unable to run without file operands specified
4287on the command line, even when the '-f' option is present.  This is contrary
4288to the behaviour of most rm programs out there, and not conforming with
4289the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4290
4291Please tell bug-automake@gnu.org about your system, including the value
4292of your $PATH and any error possibly output before this message.  This
4293can help us improve future automake versions.
4294
4295END
4296  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4297    echo 'Configuration will proceed anyway, since you have set the' >&2
4298    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4299    echo >&2
4300  else
4301    cat >&2 <<'END'
4302Aborting the configuration process, to ensure you take notice of the issue.
4303
4304You can download and install GNU coreutils to get an 'rm' implementation
4305that behaves properly: <http://www.gnu.org/software/coreutils/>.
4306
4307If you want to complete the configuration process using your problematic
4308'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4309to "yes", and re-run configure.
4310
4311END
4312    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4313  fi
4314fi
4315
4316
4317# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4330$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4331if ${ac_cv_prog_cc_c99+:} false; then :
4332  $as_echo_n "(cached) " >&6
4333else
4334  ac_cv_prog_cc_c99=no
4335ac_save_CC=$CC
4336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338#include <stdarg.h>
4339#include <stdbool.h>
4340#include <stdlib.h>
4341#include <wchar.h>
4342#include <stdio.h>
4343
4344// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4345#define debug(...) fprintf (stderr, __VA_ARGS__)
4346#define showlist(...) puts (#__VA_ARGS__)
4347#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4348static void
4349test_varargs_macros (void)
4350{
4351  int x = 1234;
4352  int y = 5678;
4353  debug ("Flag");
4354  debug ("X = %d\n", x);
4355  showlist (The first, second, and third items.);
4356  report (x>y, "x is %d but y is %d", x, y);
4357}
4358
4359// Check long long types.
4360#define BIG64 18446744073709551615ull
4361#define BIG32 4294967295ul
4362#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4363#if !BIG_OK
4364  your preprocessor is broken;
4365#endif
4366#if BIG_OK
4367#else
4368  your preprocessor is broken;
4369#endif
4370static long long int bignum = -9223372036854775807LL;
4371static unsigned long long int ubignum = BIG64;
4372
4373struct incomplete_array
4374{
4375  int datasize;
4376  double data[];
4377};
4378
4379struct named_init {
4380  int number;
4381  const wchar_t *name;
4382  double average;
4383};
4384
4385typedef const char *ccp;
4386
4387static inline int
4388test_restrict (ccp restrict text)
4389{
4390  // See if C++-style comments work.
4391  // Iterate through items via the restricted pointer.
4392  // Also check for declarations in for loops.
4393  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4394    continue;
4395  return 0;
4396}
4397
4398// Check varargs and va_copy.
4399static void
4400test_varargs (const char *format, ...)
4401{
4402  va_list args;
4403  va_start (args, format);
4404  va_list args_copy;
4405  va_copy (args_copy, args);
4406
4407  const char *str;
4408  int number;
4409  float fnumber;
4410
4411  while (*format)
4412    {
4413      switch (*format++)
4414	{
4415	case 's': // string
4416	  str = va_arg (args_copy, const char *);
4417	  break;
4418	case 'd': // int
4419	  number = va_arg (args_copy, int);
4420	  break;
4421	case 'f': // float
4422	  fnumber = va_arg (args_copy, double);
4423	  break;
4424	default:
4425	  break;
4426	}
4427    }
4428  va_end (args_copy);
4429  va_end (args);
4430}
4431
4432int
4433main ()
4434{
4435
4436  // Check bool.
4437  _Bool success = false;
4438
4439  // Check restrict.
4440  if (test_restrict ("String literal") == 0)
4441    success = true;
4442  char *restrict newvar = "Another string";
4443
4444  // Check varargs.
4445  test_varargs ("s, d' f .", "string", 65, 34.234);
4446  test_varargs_macros ();
4447
4448  // Check flexible array members.
4449  struct incomplete_array *ia =
4450    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4451  ia->datasize = 10;
4452  for (int i = 0; i < ia->datasize; ++i)
4453    ia->data[i] = i * 1.234;
4454
4455  // Check named initializers.
4456  struct named_init ni = {
4457    .number = 34,
4458    .name = L"Test wide string",
4459    .average = 543.34343,
4460  };
4461
4462  ni.number = 58;
4463
4464  int dynamic_array[ni.number];
4465  dynamic_array[ni.number - 1] = 543;
4466
4467  // work around unused variable warnings
4468  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4469	  || dynamic_array[ni.number - 1] != 543);
4470
4471  ;
4472  return 0;
4473}
4474_ACEOF
4475for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4476do
4477  CC="$ac_save_CC $ac_arg"
4478  if ac_fn_c_try_compile "$LINENO"; then :
4479  ac_cv_prog_cc_c99=$ac_arg
4480fi
4481rm -f core conftest.err conftest.$ac_objext
4482  test "x$ac_cv_prog_cc_c99" != "xno" && break
4483done
4484rm -f conftest.$ac_ext
4485CC=$ac_save_CC
4486
4487fi
4488# AC_CACHE_VAL
4489case "x$ac_cv_prog_cc_c99" in
4490  x)
4491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4492$as_echo "none needed" >&6; } ;;
4493  xno)
4494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4495$as_echo "unsupported" >&6; } ;;
4496  *)
4497    CC="$CC $ac_cv_prog_cc_c99"
4498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4499$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4500esac
4501if test "x$ac_cv_prog_cc_c99" != xno; then :
4502
4503fi
4504
4505
4506
4507
4508
4509
4510ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4511if test "x$ac_cv_have_decl___clang__" = xyes; then :
4512  CLANGCC="yes"
4513else
4514  CLANGCC="no"
4515fi
4516
4517ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4518if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4519  INTELCC="yes"
4520else
4521  INTELCC="no"
4522fi
4523
4524ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4525if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4526  SUNCC="yes"
4527else
4528  SUNCC="no"
4529fi
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4540	if test -n "$ac_tool_prefix"; then
4541  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4542set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
4545if ${ac_cv_path_PKG_CONFIG+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  case $PKG_CONFIG in
4549  [\\/]* | ?:[\\/]*)
4550  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4551  ;;
4552  *)
4553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556  IFS=$as_save_IFS
4557  test -z "$as_dir" && as_dir=.
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568  ;;
4569esac
4570fi
4571PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4572if test -n "$PKG_CONFIG"; then
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4574$as_echo "$PKG_CONFIG" >&6; }
4575else
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581fi
4582if test -z "$ac_cv_path_PKG_CONFIG"; then
4583  ac_pt_PKG_CONFIG=$PKG_CONFIG
4584  # Extract the first word of "pkg-config", so it can be a program name with args.
4585set dummy pkg-config; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
4588if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  case $ac_pt_PKG_CONFIG in
4592  [\\/]* | ?:[\\/]*)
4593  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4594  ;;
4595  *)
4596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601    for ac_exec_ext in '' $ac_executable_extensions; do
4602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605    break 2
4606  fi
4607done
4608  done
4609IFS=$as_save_IFS
4610
4611  ;;
4612esac
4613fi
4614ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4615if test -n "$ac_pt_PKG_CONFIG"; then
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4617$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4618else
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620$as_echo "no" >&6; }
4621fi
4622
4623  if test "x$ac_pt_PKG_CONFIG" = x; then
4624    PKG_CONFIG=""
4625  else
4626    case $cross_compiling:$ac_tool_warned in
4627yes:)
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630ac_tool_warned=yes ;;
4631esac
4632    PKG_CONFIG=$ac_pt_PKG_CONFIG
4633  fi
4634else
4635  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4636fi
4637
4638fi
4639if test -n "$PKG_CONFIG"; then
4640	_pkg_min_version=0.9.0
4641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4642$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4643	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645$as_echo "yes" >&6; }
4646	else
4647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648$as_echo "no" >&6; }
4649		PKG_CONFIG=""
4650	fi
4651fi
4652# Make sure we can run config.sub.
4653$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4654  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4657$as_echo_n "checking build system type... " >&6; }
4658if ${ac_cv_build+:} false; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661  ac_build_alias=$build_alias
4662test "x$ac_build_alias" = x &&
4663  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4664test "x$ac_build_alias" = x &&
4665  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4666ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4667  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4668
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4671$as_echo "$ac_cv_build" >&6; }
4672case $ac_cv_build in
4673*-*-*) ;;
4674*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4675esac
4676build=$ac_cv_build
4677ac_save_IFS=$IFS; IFS='-'
4678set x $ac_cv_build
4679shift
4680build_cpu=$1
4681build_vendor=$2
4682shift; shift
4683# Remember, the first character of IFS is used to create $*,
4684# except with old shells:
4685build_os=$*
4686IFS=$ac_save_IFS
4687case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4688
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4691$as_echo_n "checking host system type... " >&6; }
4692if ${ac_cv_host+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  if test "x$host_alias" = x; then
4696  ac_cv_host=$ac_cv_build
4697else
4698  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4699    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4700fi
4701
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4704$as_echo "$ac_cv_host" >&6; }
4705case $ac_cv_host in
4706*-*-*) ;;
4707*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4708esac
4709host=$ac_cv_host
4710ac_save_IFS=$IFS; IFS='-'
4711set x $ac_cv_host
4712shift
4713host_cpu=$1
4714host_vendor=$2
4715shift; shift
4716# Remember, the first character of IFS is used to create $*,
4717# except with old shells:
4718host_os=$*
4719IFS=$ac_save_IFS
4720case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4721
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4724$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4725if ${ac_cv_path_SED+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4729     for ac_i in 1 2 3 4 5 6 7; do
4730       ac_script="$ac_script$as_nl$ac_script"
4731     done
4732     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4733     { ac_script=; unset ac_script;}
4734     if test -z "$SED"; then
4735  ac_path_SED_found=false
4736  # Loop through the user's path and test for each of PROGNAME-LIST
4737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742    for ac_prog in sed gsed; do
4743    for ac_exec_ext in '' $ac_executable_extensions; do
4744      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4745      as_fn_executable_p "$ac_path_SED" || continue
4746# Check for GNU ac_path_SED and select it if it is found.
4747  # Check for GNU $ac_path_SED
4748case `"$ac_path_SED" --version 2>&1` in
4749*GNU*)
4750  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4751*)
4752  ac_count=0
4753  $as_echo_n 0123456789 >"conftest.in"
4754  while :
4755  do
4756    cat "conftest.in" "conftest.in" >"conftest.tmp"
4757    mv "conftest.tmp" "conftest.in"
4758    cp "conftest.in" "conftest.nl"
4759    $as_echo '' >> "conftest.nl"
4760    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762    as_fn_arith $ac_count + 1 && ac_count=$as_val
4763    if test $ac_count -gt ${ac_path_SED_max-0}; then
4764      # Best one so far, save it but keep looking for a better one
4765      ac_cv_path_SED="$ac_path_SED"
4766      ac_path_SED_max=$ac_count
4767    fi
4768    # 10*(2^10) chars as input seems more than enough
4769    test $ac_count -gt 10 && break
4770  done
4771  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772esac
4773
4774      $ac_path_SED_found && break 3
4775    done
4776  done
4777  done
4778IFS=$as_save_IFS
4779  if test -z "$ac_cv_path_SED"; then
4780    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4781  fi
4782else
4783  ac_cv_path_SED=$SED
4784fi
4785
4786fi
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4788$as_echo "$ac_cv_path_SED" >&6; }
4789 SED="$ac_cv_path_SED"
4790  rm -f conftest.sed
4791
4792
4793
4794
4795
4796
4797# Check whether --enable-selective-werror was given.
4798if test "${enable_selective_werror+set}" = set; then :
4799  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4800else
4801  SELECTIVE_WERROR=yes
4802fi
4803
4804
4805
4806
4807
4808# -v is too short to test reliably with XORG_TESTSET_CFLAG
4809if test "x$SUNCC" = "xyes"; then
4810    BASE_CFLAGS="-v"
4811else
4812    BASE_CFLAGS=""
4813fi
4814
4815# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829xorg_testset_save_CFLAGS="$CFLAGS"
4830
4831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4836  $as_echo_n "(cached) " >&6
4837else
4838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h.  */
4840int i;
4841_ACEOF
4842if ac_fn_c_try_compile "$LINENO"; then :
4843  xorg_cv_cc_flag_unknown_warning_option=yes
4844else
4845  xorg_cv_cc_flag_unknown_warning_option=no
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4852	CFLAGS="$xorg_testset_save_CFLAGS"
4853fi
4854
4855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4858	fi
4859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h.  */
4867int i;
4868_ACEOF
4869if ac_fn_c_try_compile "$LINENO"; then :
4870  xorg_cv_cc_flag_unused_command_line_argument=yes
4871else
4872  xorg_cv_cc_flag_unused_command_line_argument=no
4873fi
4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4879	CFLAGS="$xorg_testset_save_CFLAGS"
4880fi
4881
4882found="no"
4883
4884	if test $found = "no" ; then
4885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887		fi
4888
4889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891		fi
4892
4893		CFLAGS="$CFLAGS -Wall"
4894
4895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4896$as_echo_n "checking if $CC supports -Wall... " >&6; }
4897		cacheid=xorg_cv_cc_flag__Wall
4898		if eval \${$cacheid+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h.  */
4903int i;
4904int
4905main ()
4906{
4907
4908  ;
4909  return 0;
4910}
4911_ACEOF
4912if ac_fn_c_try_link "$LINENO"; then :
4913  eval $cacheid=yes
4914else
4915  eval $cacheid=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext \
4918    conftest$ac_exeext conftest.$ac_ext
4919fi
4920
4921
4922		CFLAGS="$xorg_testset_save_CFLAGS"
4923
4924		eval supported=\$$cacheid
4925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4926$as_echo "$supported" >&6; }
4927		if test "$supported" = "yes" ; then
4928			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4929			found="yes"
4930		fi
4931	fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947xorg_testset_save_CFLAGS="$CFLAGS"
4948
4949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957/* end confdefs.h.  */
4958int i;
4959_ACEOF
4960if ac_fn_c_try_compile "$LINENO"; then :
4961  xorg_cv_cc_flag_unknown_warning_option=yes
4962else
4963  xorg_cv_cc_flag_unknown_warning_option=no
4964fi
4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966fi
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4970	CFLAGS="$xorg_testset_save_CFLAGS"
4971fi
4972
4973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976	fi
4977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h.  */
4985int i;
4986_ACEOF
4987if ac_fn_c_try_compile "$LINENO"; then :
4988  xorg_cv_cc_flag_unused_command_line_argument=yes
4989else
4990  xorg_cv_cc_flag_unused_command_line_argument=no
4991fi
4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4997	CFLAGS="$xorg_testset_save_CFLAGS"
4998fi
4999
5000found="no"
5001
5002	if test $found = "no" ; then
5003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005		fi
5006
5007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5009		fi
5010
5011		CFLAGS="$CFLAGS -Wpointer-arith"
5012
5013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5014$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5015		cacheid=xorg_cv_cc_flag__Wpointer_arith
5016		if eval \${$cacheid+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h.  */
5021int i;
5022int
5023main ()
5024{
5025
5026  ;
5027  return 0;
5028}
5029_ACEOF
5030if ac_fn_c_try_link "$LINENO"; then :
5031  eval $cacheid=yes
5032else
5033  eval $cacheid=no
5034fi
5035rm -f core conftest.err conftest.$ac_objext \
5036    conftest$ac_exeext conftest.$ac_ext
5037fi
5038
5039
5040		CFLAGS="$xorg_testset_save_CFLAGS"
5041
5042		eval supported=\$$cacheid
5043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5044$as_echo "$supported" >&6; }
5045		if test "$supported" = "yes" ; then
5046			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5047			found="yes"
5048		fi
5049	fi
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065xorg_testset_save_CFLAGS="$CFLAGS"
5066
5067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h.  */
5076int i;
5077_ACEOF
5078if ac_fn_c_try_compile "$LINENO"; then :
5079  xorg_cv_cc_flag_unknown_warning_option=yes
5080else
5081  xorg_cv_cc_flag_unknown_warning_option=no
5082fi
5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084fi
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5088	CFLAGS="$xorg_testset_save_CFLAGS"
5089fi
5090
5091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094	fi
5095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103int i;
5104_ACEOF
5105if ac_fn_c_try_compile "$LINENO"; then :
5106  xorg_cv_cc_flag_unused_command_line_argument=yes
5107else
5108  xorg_cv_cc_flag_unused_command_line_argument=no
5109fi
5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111fi
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5115	CFLAGS="$xorg_testset_save_CFLAGS"
5116fi
5117
5118found="no"
5119
5120	if test $found = "no" ; then
5121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123		fi
5124
5125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127		fi
5128
5129		CFLAGS="$CFLAGS -Wmissing-declarations"
5130
5131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5132$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5133		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5134		if eval \${$cacheid+:} false; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139int i;
5140int
5141main ()
5142{
5143
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148if ac_fn_c_try_link "$LINENO"; then :
5149  eval $cacheid=yes
5150else
5151  eval $cacheid=no
5152fi
5153rm -f core conftest.err conftest.$ac_objext \
5154    conftest$ac_exeext conftest.$ac_ext
5155fi
5156
5157
5158		CFLAGS="$xorg_testset_save_CFLAGS"
5159
5160		eval supported=\$$cacheid
5161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5162$as_echo "$supported" >&6; }
5163		if test "$supported" = "yes" ; then
5164			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5165			found="yes"
5166		fi
5167	fi
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183xorg_testset_save_CFLAGS="$CFLAGS"
5184
5185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h.  */
5194int i;
5195_ACEOF
5196if ac_fn_c_try_compile "$LINENO"; then :
5197  xorg_cv_cc_flag_unknown_warning_option=yes
5198else
5199  xorg_cv_cc_flag_unknown_warning_option=no
5200fi
5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5206	CFLAGS="$xorg_testset_save_CFLAGS"
5207fi
5208
5209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212	fi
5213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221int i;
5222_ACEOF
5223if ac_fn_c_try_compile "$LINENO"; then :
5224  xorg_cv_cc_flag_unused_command_line_argument=yes
5225else
5226  xorg_cv_cc_flag_unused_command_line_argument=no
5227fi
5228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229fi
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5233	CFLAGS="$xorg_testset_save_CFLAGS"
5234fi
5235
5236found="no"
5237
5238	if test $found = "no" ; then
5239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241		fi
5242
5243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5245		fi
5246
5247		CFLAGS="$CFLAGS -Wformat=2"
5248
5249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5250$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5251		cacheid=xorg_cv_cc_flag__Wformat_2
5252		if eval \${$cacheid+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257int i;
5258int
5259main ()
5260{
5261
5262  ;
5263  return 0;
5264}
5265_ACEOF
5266if ac_fn_c_try_link "$LINENO"; then :
5267  eval $cacheid=yes
5268else
5269  eval $cacheid=no
5270fi
5271rm -f core conftest.err conftest.$ac_objext \
5272    conftest$ac_exeext conftest.$ac_ext
5273fi
5274
5275
5276		CFLAGS="$xorg_testset_save_CFLAGS"
5277
5278		eval supported=\$$cacheid
5279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5280$as_echo "$supported" >&6; }
5281		if test "$supported" = "yes" ; then
5282			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5283			found="yes"
5284		fi
5285	fi
5286
5287	if test $found = "no" ; then
5288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290		fi
5291
5292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294		fi
5295
5296		CFLAGS="$CFLAGS -Wformat"
5297
5298		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5299$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5300		cacheid=xorg_cv_cc_flag__Wformat
5301		if eval \${$cacheid+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305/* end confdefs.h.  */
5306int i;
5307int
5308main ()
5309{
5310
5311  ;
5312  return 0;
5313}
5314_ACEOF
5315if ac_fn_c_try_link "$LINENO"; then :
5316  eval $cacheid=yes
5317else
5318  eval $cacheid=no
5319fi
5320rm -f core conftest.err conftest.$ac_objext \
5321    conftest$ac_exeext conftest.$ac_ext
5322fi
5323
5324
5325		CFLAGS="$xorg_testset_save_CFLAGS"
5326
5327		eval supported=\$$cacheid
5328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5329$as_echo "$supported" >&6; }
5330		if test "$supported" = "yes" ; then
5331			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5332			found="yes"
5333		fi
5334	fi
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352xorg_testset_save_CFLAGS="$CFLAGS"
5353
5354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5359  $as_echo_n "(cached) " >&6
5360else
5361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h.  */
5363int i;
5364_ACEOF
5365if ac_fn_c_try_compile "$LINENO"; then :
5366  xorg_cv_cc_flag_unknown_warning_option=yes
5367else
5368  xorg_cv_cc_flag_unknown_warning_option=no
5369fi
5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371fi
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5375	CFLAGS="$xorg_testset_save_CFLAGS"
5376fi
5377
5378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381	fi
5382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389/* end confdefs.h.  */
5390int i;
5391_ACEOF
5392if ac_fn_c_try_compile "$LINENO"; then :
5393  xorg_cv_cc_flag_unused_command_line_argument=yes
5394else
5395  xorg_cv_cc_flag_unused_command_line_argument=no
5396fi
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398fi
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5402	CFLAGS="$xorg_testset_save_CFLAGS"
5403fi
5404
5405found="no"
5406
5407	if test $found = "no" ; then
5408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410		fi
5411
5412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414		fi
5415
5416		CFLAGS="$CFLAGS -Wstrict-prototypes"
5417
5418		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5419$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5420		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5421		if eval \${$cacheid+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425/* end confdefs.h.  */
5426int i;
5427int
5428main ()
5429{
5430
5431  ;
5432  return 0;
5433}
5434_ACEOF
5435if ac_fn_c_try_link "$LINENO"; then :
5436  eval $cacheid=yes
5437else
5438  eval $cacheid=no
5439fi
5440rm -f core conftest.err conftest.$ac_objext \
5441    conftest$ac_exeext conftest.$ac_ext
5442fi
5443
5444
5445		CFLAGS="$xorg_testset_save_CFLAGS"
5446
5447		eval supported=\$$cacheid
5448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5449$as_echo "$supported" >&6; }
5450		if test "$supported" = "yes" ; then
5451			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5452			found="yes"
5453		fi
5454	fi
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470xorg_testset_save_CFLAGS="$CFLAGS"
5471
5472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h.  */
5481int i;
5482_ACEOF
5483if ac_fn_c_try_compile "$LINENO"; then :
5484  xorg_cv_cc_flag_unknown_warning_option=yes
5485else
5486  xorg_cv_cc_flag_unknown_warning_option=no
5487fi
5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5493	CFLAGS="$xorg_testset_save_CFLAGS"
5494fi
5495
5496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499	fi
5500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508int i;
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"; then :
5511  xorg_cv_cc_flag_unused_command_line_argument=yes
5512else
5513  xorg_cv_cc_flag_unused_command_line_argument=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5520	CFLAGS="$xorg_testset_save_CFLAGS"
5521fi
5522
5523found="no"
5524
5525	if test $found = "no" ; then
5526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528		fi
5529
5530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5532		fi
5533
5534		CFLAGS="$CFLAGS -Wmissing-prototypes"
5535
5536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5537$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5538		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5539		if eval \${$cacheid+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h.  */
5544int i;
5545int
5546main ()
5547{
5548
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_link "$LINENO"; then :
5554  eval $cacheid=yes
5555else
5556  eval $cacheid=no
5557fi
5558rm -f core conftest.err conftest.$ac_objext \
5559    conftest$ac_exeext conftest.$ac_ext
5560fi
5561
5562
5563		CFLAGS="$xorg_testset_save_CFLAGS"
5564
5565		eval supported=\$$cacheid
5566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5567$as_echo "$supported" >&6; }
5568		if test "$supported" = "yes" ; then
5569			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5570			found="yes"
5571		fi
5572	fi
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588xorg_testset_save_CFLAGS="$CFLAGS"
5589
5590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599int i;
5600_ACEOF
5601if ac_fn_c_try_compile "$LINENO"; then :
5602  xorg_cv_cc_flag_unknown_warning_option=yes
5603else
5604  xorg_cv_cc_flag_unknown_warning_option=no
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5611	CFLAGS="$xorg_testset_save_CFLAGS"
5612fi
5613
5614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5617	fi
5618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626int i;
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629  xorg_cv_cc_flag_unused_command_line_argument=yes
5630else
5631  xorg_cv_cc_flag_unused_command_line_argument=no
5632fi
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5638	CFLAGS="$xorg_testset_save_CFLAGS"
5639fi
5640
5641found="no"
5642
5643	if test $found = "no" ; then
5644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646		fi
5647
5648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650		fi
5651
5652		CFLAGS="$CFLAGS -Wnested-externs"
5653
5654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5655$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5656		cacheid=xorg_cv_cc_flag__Wnested_externs
5657		if eval \${$cacheid+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h.  */
5662int i;
5663int
5664main ()
5665{
5666
5667  ;
5668  return 0;
5669}
5670_ACEOF
5671if ac_fn_c_try_link "$LINENO"; then :
5672  eval $cacheid=yes
5673else
5674  eval $cacheid=no
5675fi
5676rm -f core conftest.err conftest.$ac_objext \
5677    conftest$ac_exeext conftest.$ac_ext
5678fi
5679
5680
5681		CFLAGS="$xorg_testset_save_CFLAGS"
5682
5683		eval supported=\$$cacheid
5684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5685$as_echo "$supported" >&6; }
5686		if test "$supported" = "yes" ; then
5687			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5688			found="yes"
5689		fi
5690	fi
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706xorg_testset_save_CFLAGS="$CFLAGS"
5707
5708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h.  */
5717int i;
5718_ACEOF
5719if ac_fn_c_try_compile "$LINENO"; then :
5720  xorg_cv_cc_flag_unknown_warning_option=yes
5721else
5722  xorg_cv_cc_flag_unknown_warning_option=no
5723fi
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725fi
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5729	CFLAGS="$xorg_testset_save_CFLAGS"
5730fi
5731
5732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735	fi
5736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744int i;
5745_ACEOF
5746if ac_fn_c_try_compile "$LINENO"; then :
5747  xorg_cv_cc_flag_unused_command_line_argument=yes
5748else
5749  xorg_cv_cc_flag_unused_command_line_argument=no
5750fi
5751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5756	CFLAGS="$xorg_testset_save_CFLAGS"
5757fi
5758
5759found="no"
5760
5761	if test $found = "no" ; then
5762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764		fi
5765
5766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5768		fi
5769
5770		CFLAGS="$CFLAGS -Wbad-function-cast"
5771
5772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5773$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5774		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5775		if eval \${$cacheid+:} false; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780int i;
5781int
5782main ()
5783{
5784
5785  ;
5786  return 0;
5787}
5788_ACEOF
5789if ac_fn_c_try_link "$LINENO"; then :
5790  eval $cacheid=yes
5791else
5792  eval $cacheid=no
5793fi
5794rm -f core conftest.err conftest.$ac_objext \
5795    conftest$ac_exeext conftest.$ac_ext
5796fi
5797
5798
5799		CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801		eval supported=\$$cacheid
5802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803$as_echo "$supported" >&6; }
5804		if test "$supported" = "yes" ; then
5805			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5806			found="yes"
5807		fi
5808	fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5831  $as_echo_n "(cached) " >&6
5832else
5833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h.  */
5835int i;
5836_ACEOF
5837if ac_fn_c_try_compile "$LINENO"; then :
5838  xorg_cv_cc_flag_unknown_warning_option=yes
5839else
5840  xorg_cv_cc_flag_unknown_warning_option=no
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843fi
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5847	CFLAGS="$xorg_testset_save_CFLAGS"
5848fi
5849
5850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853	fi
5854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861/* end confdefs.h.  */
5862int i;
5863_ACEOF
5864if ac_fn_c_try_compile "$LINENO"; then :
5865  xorg_cv_cc_flag_unused_command_line_argument=yes
5866else
5867  xorg_cv_cc_flag_unused_command_line_argument=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870fi
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5874	CFLAGS="$xorg_testset_save_CFLAGS"
5875fi
5876
5877found="no"
5878
5879	if test $found = "no" ; then
5880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882		fi
5883
5884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5886		fi
5887
5888		CFLAGS="$CFLAGS -Wold-style-definition"
5889
5890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5891$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5892		cacheid=xorg_cv_cc_flag__Wold_style_definition
5893		if eval \${$cacheid+:} false; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899int
5900main ()
5901{
5902
5903  ;
5904  return 0;
5905}
5906_ACEOF
5907if ac_fn_c_try_link "$LINENO"; then :
5908  eval $cacheid=yes
5909else
5910  eval $cacheid=no
5911fi
5912rm -f core conftest.err conftest.$ac_objext \
5913    conftest$ac_exeext conftest.$ac_ext
5914fi
5915
5916
5917		CFLAGS="$xorg_testset_save_CFLAGS"
5918
5919		eval supported=\$$cacheid
5920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5921$as_echo "$supported" >&6; }
5922		if test "$supported" = "yes" ; then
5923			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5924			found="yes"
5925		fi
5926	fi
5927
5928	if test $found = "no" ; then
5929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5931		fi
5932
5933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5935		fi
5936
5937		CFLAGS="$CFLAGS -fd"
5938
5939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5940$as_echo_n "checking if $CC supports -fd... " >&6; }
5941		cacheid=xorg_cv_cc_flag__fd
5942		if eval \${$cacheid+:} false; then :
5943  $as_echo_n "(cached) " >&6
5944else
5945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946/* end confdefs.h.  */
5947int i;
5948int
5949main ()
5950{
5951
5952  ;
5953  return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_link "$LINENO"; then :
5957  eval $cacheid=yes
5958else
5959  eval $cacheid=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext \
5962    conftest$ac_exeext conftest.$ac_ext
5963fi
5964
5965
5966		CFLAGS="$xorg_testset_save_CFLAGS"
5967
5968		eval supported=\$$cacheid
5969		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5970$as_echo "$supported" >&6; }
5971		if test "$supported" = "yes" ; then
5972			BASE_CFLAGS="$BASE_CFLAGS -fd"
5973			found="yes"
5974		fi
5975	fi
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991xorg_testset_save_CFLAGS="$CFLAGS"
5992
5993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002int i;
6003_ACEOF
6004if ac_fn_c_try_compile "$LINENO"; then :
6005  xorg_cv_cc_flag_unknown_warning_option=yes
6006else
6007  xorg_cv_cc_flag_unknown_warning_option=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6014	CFLAGS="$xorg_testset_save_CFLAGS"
6015fi
6016
6017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020	fi
6021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h.  */
6029int i;
6030_ACEOF
6031if ac_fn_c_try_compile "$LINENO"; then :
6032  xorg_cv_cc_flag_unused_command_line_argument=yes
6033else
6034  xorg_cv_cc_flag_unused_command_line_argument=no
6035fi
6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6040	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6041	CFLAGS="$xorg_testset_save_CFLAGS"
6042fi
6043
6044found="no"
6045
6046	if test $found = "no" ; then
6047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6049		fi
6050
6051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6053		fi
6054
6055		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6056
6057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6058$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6059		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6060		if eval \${$cacheid+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065int i;
6066int
6067main ()
6068{
6069
6070  ;
6071  return 0;
6072}
6073_ACEOF
6074if ac_fn_c_try_link "$LINENO"; then :
6075  eval $cacheid=yes
6076else
6077  eval $cacheid=no
6078fi
6079rm -f core conftest.err conftest.$ac_objext \
6080    conftest$ac_exeext conftest.$ac_ext
6081fi
6082
6083
6084		CFLAGS="$xorg_testset_save_CFLAGS"
6085
6086		eval supported=\$$cacheid
6087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6088$as_echo "$supported" >&6; }
6089		if test "$supported" = "yes" ; then
6090			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6091			found="yes"
6092		fi
6093	fi
6094
6095
6096
6097
6098
6099# This chunk adds additional warnings that could catch undesired effects.
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113xorg_testset_save_CFLAGS="$CFLAGS"
6114
6115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6120  $as_echo_n "(cached) " >&6
6121else
6122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h.  */
6124int i;
6125_ACEOF
6126if ac_fn_c_try_compile "$LINENO"; then :
6127  xorg_cv_cc_flag_unknown_warning_option=yes
6128else
6129  xorg_cv_cc_flag_unknown_warning_option=no
6130fi
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6136	CFLAGS="$xorg_testset_save_CFLAGS"
6137fi
6138
6139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142	fi
6143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151int i;
6152_ACEOF
6153if ac_fn_c_try_compile "$LINENO"; then :
6154  xorg_cv_cc_flag_unused_command_line_argument=yes
6155else
6156  xorg_cv_cc_flag_unused_command_line_argument=no
6157fi
6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159fi
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6163	CFLAGS="$xorg_testset_save_CFLAGS"
6164fi
6165
6166found="no"
6167
6168	if test $found = "no" ; then
6169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171		fi
6172
6173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6175		fi
6176
6177		CFLAGS="$CFLAGS -Wunused"
6178
6179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6180$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6181		cacheid=xorg_cv_cc_flag__Wunused
6182		if eval \${$cacheid+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187int i;
6188int
6189main ()
6190{
6191
6192  ;
6193  return 0;
6194}
6195_ACEOF
6196if ac_fn_c_try_link "$LINENO"; then :
6197  eval $cacheid=yes
6198else
6199  eval $cacheid=no
6200fi
6201rm -f core conftest.err conftest.$ac_objext \
6202    conftest$ac_exeext conftest.$ac_ext
6203fi
6204
6205
6206		CFLAGS="$xorg_testset_save_CFLAGS"
6207
6208		eval supported=\$$cacheid
6209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6210$as_echo "$supported" >&6; }
6211		if test "$supported" = "yes" ; then
6212			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6213			found="yes"
6214		fi
6215	fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231xorg_testset_save_CFLAGS="$CFLAGS"
6232
6233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6238  $as_echo_n "(cached) " >&6
6239else
6240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241/* end confdefs.h.  */
6242int i;
6243_ACEOF
6244if ac_fn_c_try_compile "$LINENO"; then :
6245  xorg_cv_cc_flag_unknown_warning_option=yes
6246else
6247  xorg_cv_cc_flag_unknown_warning_option=no
6248fi
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6254	CFLAGS="$xorg_testset_save_CFLAGS"
6255fi
6256
6257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260	fi
6261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268/* end confdefs.h.  */
6269int i;
6270_ACEOF
6271if ac_fn_c_try_compile "$LINENO"; then :
6272  xorg_cv_cc_flag_unused_command_line_argument=yes
6273else
6274  xorg_cv_cc_flag_unused_command_line_argument=no
6275fi
6276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6281	CFLAGS="$xorg_testset_save_CFLAGS"
6282fi
6283
6284found="no"
6285
6286	if test $found = "no" ; then
6287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289		fi
6290
6291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6293		fi
6294
6295		CFLAGS="$CFLAGS -Wuninitialized"
6296
6297		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6298$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6299		cacheid=xorg_cv_cc_flag__Wuninitialized
6300		if eval \${$cacheid+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305int i;
6306int
6307main ()
6308{
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314if ac_fn_c_try_link "$LINENO"; then :
6315  eval $cacheid=yes
6316else
6317  eval $cacheid=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext \
6320    conftest$ac_exeext conftest.$ac_ext
6321fi
6322
6323
6324		CFLAGS="$xorg_testset_save_CFLAGS"
6325
6326		eval supported=\$$cacheid
6327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6328$as_echo "$supported" >&6; }
6329		if test "$supported" = "yes" ; then
6330			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6331			found="yes"
6332		fi
6333	fi
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349xorg_testset_save_CFLAGS="$CFLAGS"
6350
6351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h.  */
6360int i;
6361_ACEOF
6362if ac_fn_c_try_compile "$LINENO"; then :
6363  xorg_cv_cc_flag_unknown_warning_option=yes
6364else
6365  xorg_cv_cc_flag_unknown_warning_option=no
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368fi
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6371	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6372	CFLAGS="$xorg_testset_save_CFLAGS"
6373fi
6374
6375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6376	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6377		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378	fi
6379	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387int i;
6388_ACEOF
6389if ac_fn_c_try_compile "$LINENO"; then :
6390  xorg_cv_cc_flag_unused_command_line_argument=yes
6391else
6392  xorg_cv_cc_flag_unused_command_line_argument=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395fi
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6399	CFLAGS="$xorg_testset_save_CFLAGS"
6400fi
6401
6402found="no"
6403
6404	if test $found = "no" ; then
6405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407		fi
6408
6409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6411		fi
6412
6413		CFLAGS="$CFLAGS -Wshadow"
6414
6415		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6416$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6417		cacheid=xorg_cv_cc_flag__Wshadow
6418		if eval \${$cacheid+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h.  */
6423int i;
6424int
6425main ()
6426{
6427
6428  ;
6429  return 0;
6430}
6431_ACEOF
6432if ac_fn_c_try_link "$LINENO"; then :
6433  eval $cacheid=yes
6434else
6435  eval $cacheid=no
6436fi
6437rm -f core conftest.err conftest.$ac_objext \
6438    conftest$ac_exeext conftest.$ac_ext
6439fi
6440
6441
6442		CFLAGS="$xorg_testset_save_CFLAGS"
6443
6444		eval supported=\$$cacheid
6445		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6446$as_echo "$supported" >&6; }
6447		if test "$supported" = "yes" ; then
6448			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6449			found="yes"
6450		fi
6451	fi
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467xorg_testset_save_CFLAGS="$CFLAGS"
6468
6469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6474  $as_echo_n "(cached) " >&6
6475else
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478int i;
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"; then :
6481  xorg_cv_cc_flag_unknown_warning_option=yes
6482else
6483  xorg_cv_cc_flag_unknown_warning_option=no
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6489	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6490	CFLAGS="$xorg_testset_save_CFLAGS"
6491fi
6492
6493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6494	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6495		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496	fi
6497	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6501  $as_echo_n "(cached) " >&6
6502else
6503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h.  */
6505int i;
6506_ACEOF
6507if ac_fn_c_try_compile "$LINENO"; then :
6508  xorg_cv_cc_flag_unused_command_line_argument=yes
6509else
6510  xorg_cv_cc_flag_unused_command_line_argument=no
6511fi
6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6516	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6517	CFLAGS="$xorg_testset_save_CFLAGS"
6518fi
6519
6520found="no"
6521
6522	if test $found = "no" ; then
6523		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6525		fi
6526
6527		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6529		fi
6530
6531		CFLAGS="$CFLAGS -Wmissing-noreturn"
6532
6533		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6534$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6535		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6536		if eval \${$cacheid+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541int i;
6542int
6543main ()
6544{
6545
6546  ;
6547  return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_link "$LINENO"; then :
6551  eval $cacheid=yes
6552else
6553  eval $cacheid=no
6554fi
6555rm -f core conftest.err conftest.$ac_objext \
6556    conftest$ac_exeext conftest.$ac_ext
6557fi
6558
6559
6560		CFLAGS="$xorg_testset_save_CFLAGS"
6561
6562		eval supported=\$$cacheid
6563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6564$as_echo "$supported" >&6; }
6565		if test "$supported" = "yes" ; then
6566			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6567			found="yes"
6568		fi
6569	fi
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585xorg_testset_save_CFLAGS="$CFLAGS"
6586
6587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596int i;
6597_ACEOF
6598if ac_fn_c_try_compile "$LINENO"; then :
6599  xorg_cv_cc_flag_unknown_warning_option=yes
6600else
6601  xorg_cv_cc_flag_unknown_warning_option=no
6602fi
6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6608	CFLAGS="$xorg_testset_save_CFLAGS"
6609fi
6610
6611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614	fi
6615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h.  */
6623int i;
6624_ACEOF
6625if ac_fn_c_try_compile "$LINENO"; then :
6626  xorg_cv_cc_flag_unused_command_line_argument=yes
6627else
6628  xorg_cv_cc_flag_unused_command_line_argument=no
6629fi
6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6635	CFLAGS="$xorg_testset_save_CFLAGS"
6636fi
6637
6638found="no"
6639
6640	if test $found = "no" ; then
6641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6643		fi
6644
6645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6647		fi
6648
6649		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6650
6651		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6652$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6653		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6654		if eval \${$cacheid+:} false; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659int i;
6660int
6661main ()
6662{
6663
6664  ;
6665  return 0;
6666}
6667_ACEOF
6668if ac_fn_c_try_link "$LINENO"; then :
6669  eval $cacheid=yes
6670else
6671  eval $cacheid=no
6672fi
6673rm -f core conftest.err conftest.$ac_objext \
6674    conftest$ac_exeext conftest.$ac_ext
6675fi
6676
6677
6678		CFLAGS="$xorg_testset_save_CFLAGS"
6679
6680		eval supported=\$$cacheid
6681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6682$as_echo "$supported" >&6; }
6683		if test "$supported" = "yes" ; then
6684			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6685			found="yes"
6686		fi
6687	fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703xorg_testset_save_CFLAGS="$CFLAGS"
6704
6705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6710  $as_echo_n "(cached) " >&6
6711else
6712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713/* end confdefs.h.  */
6714int i;
6715_ACEOF
6716if ac_fn_c_try_compile "$LINENO"; then :
6717  xorg_cv_cc_flag_unknown_warning_option=yes
6718else
6719  xorg_cv_cc_flag_unknown_warning_option=no
6720fi
6721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6726	CFLAGS="$xorg_testset_save_CFLAGS"
6727fi
6728
6729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6732	fi
6733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741int i;
6742_ACEOF
6743if ac_fn_c_try_compile "$LINENO"; then :
6744  xorg_cv_cc_flag_unused_command_line_argument=yes
6745else
6746  xorg_cv_cc_flag_unused_command_line_argument=no
6747fi
6748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749fi
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6753	CFLAGS="$xorg_testset_save_CFLAGS"
6754fi
6755
6756found="no"
6757
6758	if test $found = "no" ; then
6759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6761		fi
6762
6763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6765		fi
6766
6767		CFLAGS="$CFLAGS -Wredundant-decls"
6768
6769		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6770$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6771		cacheid=xorg_cv_cc_flag__Wredundant_decls
6772		if eval \${$cacheid+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777int i;
6778int
6779main ()
6780{
6781
6782  ;
6783  return 0;
6784}
6785_ACEOF
6786if ac_fn_c_try_link "$LINENO"; then :
6787  eval $cacheid=yes
6788else
6789  eval $cacheid=no
6790fi
6791rm -f core conftest.err conftest.$ac_objext \
6792    conftest$ac_exeext conftest.$ac_ext
6793fi
6794
6795
6796		CFLAGS="$xorg_testset_save_CFLAGS"
6797
6798		eval supported=\$$cacheid
6799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6800$as_echo "$supported" >&6; }
6801		if test "$supported" = "yes" ; then
6802			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6803			found="yes"
6804		fi
6805	fi
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821xorg_testset_save_CFLAGS="$CFLAGS"
6822
6823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6828  $as_echo_n "(cached) " >&6
6829else
6830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h.  */
6832int i;
6833_ACEOF
6834if ac_fn_c_try_compile "$LINENO"; then :
6835  xorg_cv_cc_flag_unknown_warning_option=yes
6836else
6837  xorg_cv_cc_flag_unknown_warning_option=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6844	CFLAGS="$xorg_testset_save_CFLAGS"
6845fi
6846
6847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850	fi
6851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859int i;
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"; then :
6862  xorg_cv_cc_flag_unused_command_line_argument=yes
6863else
6864  xorg_cv_cc_flag_unused_command_line_argument=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6871	CFLAGS="$xorg_testset_save_CFLAGS"
6872fi
6873
6874found="no"
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 -Wlogical-op"
6886
6887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6888$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6889		cacheid=xorg_cv_cc_flag__Wlogical_op
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 -Wlogical-op"
6921			found="yes"
6922		fi
6923	fi
6924
6925
6926
6927# These are currently disabled because they are noisy.  They will be enabled
6928# in the future once the codebase is sufficiently modernized to silence
6929# them.  For now, I don't want them to drown out the other warnings.
6930# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6931# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6932# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6933
6934# Turn some warnings into errors, so we don't accidently get successful builds
6935# when there are problems that should be fixed.
6936
6937if test "x$SELECTIVE_WERROR" = "xyes" ; then
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951xorg_testset_save_CFLAGS="$CFLAGS"
6952
6953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h.  */
6962int i;
6963_ACEOF
6964if ac_fn_c_try_compile "$LINENO"; then :
6965  xorg_cv_cc_flag_unknown_warning_option=yes
6966else
6967  xorg_cv_cc_flag_unknown_warning_option=no
6968fi
6969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6974	CFLAGS="$xorg_testset_save_CFLAGS"
6975fi
6976
6977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980	fi
6981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989int i;
6990_ACEOF
6991if ac_fn_c_try_compile "$LINENO"; then :
6992  xorg_cv_cc_flag_unused_command_line_argument=yes
6993else
6994  xorg_cv_cc_flag_unused_command_line_argument=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7001	CFLAGS="$xorg_testset_save_CFLAGS"
7002fi
7003
7004found="no"
7005
7006	if test $found = "no" ; then
7007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009		fi
7010
7011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013		fi
7014
7015		CFLAGS="$CFLAGS -Werror=implicit"
7016
7017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7018$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7019		cacheid=xorg_cv_cc_flag__Werror_implicit
7020		if eval \${$cacheid+:} false; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025int i;
7026int
7027main ()
7028{
7029
7030  ;
7031  return 0;
7032}
7033_ACEOF
7034if ac_fn_c_try_link "$LINENO"; then :
7035  eval $cacheid=yes
7036else
7037  eval $cacheid=no
7038fi
7039rm -f core conftest.err conftest.$ac_objext \
7040    conftest$ac_exeext conftest.$ac_ext
7041fi
7042
7043
7044		CFLAGS="$xorg_testset_save_CFLAGS"
7045
7046		eval supported=\$$cacheid
7047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7048$as_echo "$supported" >&6; }
7049		if test "$supported" = "yes" ; then
7050			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7051			found="yes"
7052		fi
7053	fi
7054
7055	if test $found = "no" ; then
7056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058		fi
7059
7060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7062		fi
7063
7064		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7065
7066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7067$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7068		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7069		if eval \${$cacheid+:} false; then :
7070  $as_echo_n "(cached) " >&6
7071else
7072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074int i;
7075int
7076main ()
7077{
7078
7079  ;
7080  return 0;
7081}
7082_ACEOF
7083if ac_fn_c_try_link "$LINENO"; then :
7084  eval $cacheid=yes
7085else
7086  eval $cacheid=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext \
7089    conftest$ac_exeext conftest.$ac_ext
7090fi
7091
7092
7093		CFLAGS="$xorg_testset_save_CFLAGS"
7094
7095		eval supported=\$$cacheid
7096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7097$as_echo "$supported" >&6; }
7098		if test "$supported" = "yes" ; then
7099			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7100			found="yes"
7101		fi
7102	fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118xorg_testset_save_CFLAGS="$CFLAGS"
7119
7120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h.  */
7129int i;
7130_ACEOF
7131if ac_fn_c_try_compile "$LINENO"; then :
7132  xorg_cv_cc_flag_unknown_warning_option=yes
7133else
7134  xorg_cv_cc_flag_unknown_warning_option=no
7135fi
7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7141	CFLAGS="$xorg_testset_save_CFLAGS"
7142fi
7143
7144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7147	fi
7148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h.  */
7156int i;
7157_ACEOF
7158if ac_fn_c_try_compile "$LINENO"; then :
7159  xorg_cv_cc_flag_unused_command_line_argument=yes
7160else
7161  xorg_cv_cc_flag_unused_command_line_argument=no
7162fi
7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164fi
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7168	CFLAGS="$xorg_testset_save_CFLAGS"
7169fi
7170
7171found="no"
7172
7173	if test $found = "no" ; then
7174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176		fi
7177
7178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7180		fi
7181
7182		CFLAGS="$CFLAGS -Werror=nonnull"
7183
7184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7185$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7186		cacheid=xorg_cv_cc_flag__Werror_nonnull
7187		if eval \${$cacheid+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192int i;
7193int
7194main ()
7195{
7196
7197  ;
7198  return 0;
7199}
7200_ACEOF
7201if ac_fn_c_try_link "$LINENO"; then :
7202  eval $cacheid=yes
7203else
7204  eval $cacheid=no
7205fi
7206rm -f core conftest.err conftest.$ac_objext \
7207    conftest$ac_exeext conftest.$ac_ext
7208fi
7209
7210
7211		CFLAGS="$xorg_testset_save_CFLAGS"
7212
7213		eval supported=\$$cacheid
7214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7215$as_echo "$supported" >&6; }
7216		if test "$supported" = "yes" ; then
7217			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7218			found="yes"
7219		fi
7220	fi
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236xorg_testset_save_CFLAGS="$CFLAGS"
7237
7238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247int i;
7248_ACEOF
7249if ac_fn_c_try_compile "$LINENO"; then :
7250  xorg_cv_cc_flag_unknown_warning_option=yes
7251else
7252  xorg_cv_cc_flag_unknown_warning_option=no
7253fi
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7259	CFLAGS="$xorg_testset_save_CFLAGS"
7260fi
7261
7262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7265	fi
7266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7270  $as_echo_n "(cached) " >&6
7271else
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274int i;
7275_ACEOF
7276if ac_fn_c_try_compile "$LINENO"; then :
7277  xorg_cv_cc_flag_unused_command_line_argument=yes
7278else
7279  xorg_cv_cc_flag_unused_command_line_argument=no
7280fi
7281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282fi
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7286	CFLAGS="$xorg_testset_save_CFLAGS"
7287fi
7288
7289found="no"
7290
7291	if test $found = "no" ; then
7292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294		fi
7295
7296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7298		fi
7299
7300		CFLAGS="$CFLAGS -Werror=init-self"
7301
7302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7303$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7304		cacheid=xorg_cv_cc_flag__Werror_init_self
7305		if eval \${$cacheid+:} false; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310int i;
7311int
7312main ()
7313{
7314
7315  ;
7316  return 0;
7317}
7318_ACEOF
7319if ac_fn_c_try_link "$LINENO"; then :
7320  eval $cacheid=yes
7321else
7322  eval $cacheid=no
7323fi
7324rm -f core conftest.err conftest.$ac_objext \
7325    conftest$ac_exeext conftest.$ac_ext
7326fi
7327
7328
7329		CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331		eval supported=\$$cacheid
7332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333$as_echo "$supported" >&6; }
7334		if test "$supported" = "yes" ; then
7335			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7336			found="yes"
7337		fi
7338	fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354xorg_testset_save_CFLAGS="$CFLAGS"
7355
7356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7361  $as_echo_n "(cached) " >&6
7362else
7363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h.  */
7365int i;
7366_ACEOF
7367if ac_fn_c_try_compile "$LINENO"; then :
7368  xorg_cv_cc_flag_unknown_warning_option=yes
7369else
7370  xorg_cv_cc_flag_unknown_warning_option=no
7371fi
7372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373fi
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7377	CFLAGS="$xorg_testset_save_CFLAGS"
7378fi
7379
7380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7383	fi
7384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391/* end confdefs.h.  */
7392int i;
7393_ACEOF
7394if ac_fn_c_try_compile "$LINENO"; then :
7395  xorg_cv_cc_flag_unused_command_line_argument=yes
7396else
7397  xorg_cv_cc_flag_unused_command_line_argument=no
7398fi
7399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400fi
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7404	CFLAGS="$xorg_testset_save_CFLAGS"
7405fi
7406
7407found="no"
7408
7409	if test $found = "no" ; then
7410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412		fi
7413
7414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7416		fi
7417
7418		CFLAGS="$CFLAGS -Werror=main"
7419
7420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7421$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7422		cacheid=xorg_cv_cc_flag__Werror_main
7423		if eval \${$cacheid+:} false; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428int i;
7429int
7430main ()
7431{
7432
7433  ;
7434  return 0;
7435}
7436_ACEOF
7437if ac_fn_c_try_link "$LINENO"; then :
7438  eval $cacheid=yes
7439else
7440  eval $cacheid=no
7441fi
7442rm -f core conftest.err conftest.$ac_objext \
7443    conftest$ac_exeext conftest.$ac_ext
7444fi
7445
7446
7447		CFLAGS="$xorg_testset_save_CFLAGS"
7448
7449		eval supported=\$$cacheid
7450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7451$as_echo "$supported" >&6; }
7452		if test "$supported" = "yes" ; then
7453			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7454			found="yes"
7455		fi
7456	fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472xorg_testset_save_CFLAGS="$CFLAGS"
7473
7474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h.  */
7483int i;
7484_ACEOF
7485if ac_fn_c_try_compile "$LINENO"; then :
7486  xorg_cv_cc_flag_unknown_warning_option=yes
7487else
7488  xorg_cv_cc_flag_unknown_warning_option=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7495	CFLAGS="$xorg_testset_save_CFLAGS"
7496fi
7497
7498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501	fi
7502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510int i;
7511_ACEOF
7512if ac_fn_c_try_compile "$LINENO"; then :
7513  xorg_cv_cc_flag_unused_command_line_argument=yes
7514else
7515  xorg_cv_cc_flag_unused_command_line_argument=no
7516fi
7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518fi
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7522	CFLAGS="$xorg_testset_save_CFLAGS"
7523fi
7524
7525found="no"
7526
7527	if test $found = "no" ; then
7528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7530		fi
7531
7532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7534		fi
7535
7536		CFLAGS="$CFLAGS -Werror=missing-braces"
7537
7538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7539$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7540		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7541		if eval \${$cacheid+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546int i;
7547int
7548main ()
7549{
7550
7551  ;
7552  return 0;
7553}
7554_ACEOF
7555if ac_fn_c_try_link "$LINENO"; then :
7556  eval $cacheid=yes
7557else
7558  eval $cacheid=no
7559fi
7560rm -f core conftest.err conftest.$ac_objext \
7561    conftest$ac_exeext conftest.$ac_ext
7562fi
7563
7564
7565		CFLAGS="$xorg_testset_save_CFLAGS"
7566
7567		eval supported=\$$cacheid
7568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7569$as_echo "$supported" >&6; }
7570		if test "$supported" = "yes" ; then
7571			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7572			found="yes"
7573		fi
7574	fi
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590xorg_testset_save_CFLAGS="$CFLAGS"
7591
7592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7597  $as_echo_n "(cached) " >&6
7598else
7599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601int i;
7602_ACEOF
7603if ac_fn_c_try_compile "$LINENO"; then :
7604  xorg_cv_cc_flag_unknown_warning_option=yes
7605else
7606  xorg_cv_cc_flag_unknown_warning_option=no
7607fi
7608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609fi
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7613	CFLAGS="$xorg_testset_save_CFLAGS"
7614fi
7615
7616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619	fi
7620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7624  $as_echo_n "(cached) " >&6
7625else
7626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628int i;
7629_ACEOF
7630if ac_fn_c_try_compile "$LINENO"; then :
7631  xorg_cv_cc_flag_unused_command_line_argument=yes
7632else
7633  xorg_cv_cc_flag_unused_command_line_argument=no
7634fi
7635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636fi
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7640	CFLAGS="$xorg_testset_save_CFLAGS"
7641fi
7642
7643found="no"
7644
7645	if test $found = "no" ; then
7646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648		fi
7649
7650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652		fi
7653
7654		CFLAGS="$CFLAGS -Werror=sequence-point"
7655
7656		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7657$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7658		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7659		if eval \${$cacheid+:} false; then :
7660  $as_echo_n "(cached) " >&6
7661else
7662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h.  */
7664int i;
7665int
7666main ()
7667{
7668
7669  ;
7670  return 0;
7671}
7672_ACEOF
7673if ac_fn_c_try_link "$LINENO"; then :
7674  eval $cacheid=yes
7675else
7676  eval $cacheid=no
7677fi
7678rm -f core conftest.err conftest.$ac_objext \
7679    conftest$ac_exeext conftest.$ac_ext
7680fi
7681
7682
7683		CFLAGS="$xorg_testset_save_CFLAGS"
7684
7685		eval supported=\$$cacheid
7686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7687$as_echo "$supported" >&6; }
7688		if test "$supported" = "yes" ; then
7689			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7690			found="yes"
7691		fi
7692	fi
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708xorg_testset_save_CFLAGS="$CFLAGS"
7709
7710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7713$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7714if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719int i;
7720_ACEOF
7721if ac_fn_c_try_compile "$LINENO"; then :
7722  xorg_cv_cc_flag_unknown_warning_option=yes
7723else
7724  xorg_cv_cc_flag_unknown_warning_option=no
7725fi
7726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727fi
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7729$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7731	CFLAGS="$xorg_testset_save_CFLAGS"
7732fi
7733
7734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737	fi
7738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7740$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7741if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746int i;
7747_ACEOF
7748if ac_fn_c_try_compile "$LINENO"; then :
7749  xorg_cv_cc_flag_unused_command_line_argument=yes
7750else
7751  xorg_cv_cc_flag_unused_command_line_argument=no
7752fi
7753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754fi
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7756$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7758	CFLAGS="$xorg_testset_save_CFLAGS"
7759fi
7760
7761found="no"
7762
7763	if test $found = "no" ; then
7764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766		fi
7767
7768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770		fi
7771
7772		CFLAGS="$CFLAGS -Werror=return-type"
7773
7774		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7775$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7776		cacheid=xorg_cv_cc_flag__Werror_return_type
7777		if eval \${$cacheid+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783int
7784main ()
7785{
7786
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791if ac_fn_c_try_link "$LINENO"; then :
7792  eval $cacheid=yes
7793else
7794  eval $cacheid=no
7795fi
7796rm -f core conftest.err conftest.$ac_objext \
7797    conftest$ac_exeext conftest.$ac_ext
7798fi
7799
7800
7801		CFLAGS="$xorg_testset_save_CFLAGS"
7802
7803		eval supported=\$$cacheid
7804		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7805$as_echo "$supported" >&6; }
7806		if test "$supported" = "yes" ; then
7807			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7808			found="yes"
7809		fi
7810	fi
7811
7812	if test $found = "no" ; then
7813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815		fi
7816
7817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7819		fi
7820
7821		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7822
7823		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7824$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7825		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7826		if eval \${$cacheid+:} false; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830/* end confdefs.h.  */
7831int i;
7832int
7833main ()
7834{
7835
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840if ac_fn_c_try_link "$LINENO"; then :
7841  eval $cacheid=yes
7842else
7843  eval $cacheid=no
7844fi
7845rm -f core conftest.err conftest.$ac_objext \
7846    conftest$ac_exeext conftest.$ac_ext
7847fi
7848
7849
7850		CFLAGS="$xorg_testset_save_CFLAGS"
7851
7852		eval supported=\$$cacheid
7853		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7854$as_echo "$supported" >&6; }
7855		if test "$supported" = "yes" ; then
7856			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7857			found="yes"
7858		fi
7859	fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875xorg_testset_save_CFLAGS="$CFLAGS"
7876
7877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7882  $as_echo_n "(cached) " >&6
7883else
7884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h.  */
7886int i;
7887_ACEOF
7888if ac_fn_c_try_compile "$LINENO"; then :
7889  xorg_cv_cc_flag_unknown_warning_option=yes
7890else
7891  xorg_cv_cc_flag_unknown_warning_option=no
7892fi
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894fi
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7898	CFLAGS="$xorg_testset_save_CFLAGS"
7899fi
7900
7901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904	fi
7905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913int i;
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
7916  xorg_cv_cc_flag_unused_command_line_argument=yes
7917else
7918  xorg_cv_cc_flag_unused_command_line_argument=no
7919fi
7920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7925	CFLAGS="$xorg_testset_save_CFLAGS"
7926fi
7927
7928found="no"
7929
7930	if test $found = "no" ; then
7931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933		fi
7934
7935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7937		fi
7938
7939		CFLAGS="$CFLAGS -Werror=trigraphs"
7940
7941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7942$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7943		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7944		if eval \${$cacheid+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949int i;
7950int
7951main ()
7952{
7953
7954  ;
7955  return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_link "$LINENO"; then :
7959  eval $cacheid=yes
7960else
7961  eval $cacheid=no
7962fi
7963rm -f core conftest.err conftest.$ac_objext \
7964    conftest$ac_exeext conftest.$ac_ext
7965fi
7966
7967
7968		CFLAGS="$xorg_testset_save_CFLAGS"
7969
7970		eval supported=\$$cacheid
7971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7972$as_echo "$supported" >&6; }
7973		if test "$supported" = "yes" ; then
7974			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7975			found="yes"
7976		fi
7977	fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993xorg_testset_save_CFLAGS="$CFLAGS"
7994
7995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8000  $as_echo_n "(cached) " >&6
8001else
8002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003/* end confdefs.h.  */
8004int i;
8005_ACEOF
8006if ac_fn_c_try_compile "$LINENO"; then :
8007  xorg_cv_cc_flag_unknown_warning_option=yes
8008else
8009  xorg_cv_cc_flag_unknown_warning_option=no
8010fi
8011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012fi
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8016	CFLAGS="$xorg_testset_save_CFLAGS"
8017fi
8018
8019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8022	fi
8023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h.  */
8031int i;
8032_ACEOF
8033if ac_fn_c_try_compile "$LINENO"; then :
8034  xorg_cv_cc_flag_unused_command_line_argument=yes
8035else
8036  xorg_cv_cc_flag_unused_command_line_argument=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8043	CFLAGS="$xorg_testset_save_CFLAGS"
8044fi
8045
8046found="no"
8047
8048	if test $found = "no" ; then
8049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051		fi
8052
8053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8055		fi
8056
8057		CFLAGS="$CFLAGS -Werror=array-bounds"
8058
8059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8060$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8061		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8062		if eval \${$cacheid+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h.  */
8067int i;
8068int
8069main ()
8070{
8071
8072  ;
8073  return 0;
8074}
8075_ACEOF
8076if ac_fn_c_try_link "$LINENO"; then :
8077  eval $cacheid=yes
8078else
8079  eval $cacheid=no
8080fi
8081rm -f core conftest.err conftest.$ac_objext \
8082    conftest$ac_exeext conftest.$ac_ext
8083fi
8084
8085
8086		CFLAGS="$xorg_testset_save_CFLAGS"
8087
8088		eval supported=\$$cacheid
8089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8090$as_echo "$supported" >&6; }
8091		if test "$supported" = "yes" ; then
8092			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8093			found="yes"
8094		fi
8095	fi
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111xorg_testset_save_CFLAGS="$CFLAGS"
8112
8113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8118  $as_echo_n "(cached) " >&6
8119else
8120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h.  */
8122int i;
8123_ACEOF
8124if ac_fn_c_try_compile "$LINENO"; then :
8125  xorg_cv_cc_flag_unknown_warning_option=yes
8126else
8127  xorg_cv_cc_flag_unknown_warning_option=no
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8134	CFLAGS="$xorg_testset_save_CFLAGS"
8135fi
8136
8137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8140	fi
8141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148/* end confdefs.h.  */
8149int i;
8150_ACEOF
8151if ac_fn_c_try_compile "$LINENO"; then :
8152  xorg_cv_cc_flag_unused_command_line_argument=yes
8153else
8154  xorg_cv_cc_flag_unused_command_line_argument=no
8155fi
8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157fi
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8161	CFLAGS="$xorg_testset_save_CFLAGS"
8162fi
8163
8164found="no"
8165
8166	if test $found = "no" ; then
8167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169		fi
8170
8171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173		fi
8174
8175		CFLAGS="$CFLAGS -Werror=write-strings"
8176
8177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8178$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8179		cacheid=xorg_cv_cc_flag__Werror_write_strings
8180		if eval \${$cacheid+:} false; then :
8181  $as_echo_n "(cached) " >&6
8182else
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185int i;
8186int
8187main ()
8188{
8189
8190  ;
8191  return 0;
8192}
8193_ACEOF
8194if ac_fn_c_try_link "$LINENO"; then :
8195  eval $cacheid=yes
8196else
8197  eval $cacheid=no
8198fi
8199rm -f core conftest.err conftest.$ac_objext \
8200    conftest$ac_exeext conftest.$ac_ext
8201fi
8202
8203
8204		CFLAGS="$xorg_testset_save_CFLAGS"
8205
8206		eval supported=\$$cacheid
8207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8208$as_echo "$supported" >&6; }
8209		if test "$supported" = "yes" ; then
8210			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8211			found="yes"
8212		fi
8213	fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229xorg_testset_save_CFLAGS="$CFLAGS"
8230
8231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8234$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8235if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8236  $as_echo_n "(cached) " >&6
8237else
8238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239/* end confdefs.h.  */
8240int i;
8241_ACEOF
8242if ac_fn_c_try_compile "$LINENO"; then :
8243  xorg_cv_cc_flag_unknown_warning_option=yes
8244else
8245  xorg_cv_cc_flag_unknown_warning_option=no
8246fi
8247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248fi
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8250$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8252	CFLAGS="$xorg_testset_save_CFLAGS"
8253fi
8254
8255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258	fi
8259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8261$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8262if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267int i;
8268_ACEOF
8269if ac_fn_c_try_compile "$LINENO"; then :
8270  xorg_cv_cc_flag_unused_command_line_argument=yes
8271else
8272  xorg_cv_cc_flag_unused_command_line_argument=no
8273fi
8274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8277$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8279	CFLAGS="$xorg_testset_save_CFLAGS"
8280fi
8281
8282found="no"
8283
8284	if test $found = "no" ; then
8285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287		fi
8288
8289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291		fi
8292
8293		CFLAGS="$CFLAGS -Werror=address"
8294
8295		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8296$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8297		cacheid=xorg_cv_cc_flag__Werror_address
8298		if eval \${$cacheid+:} false; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303int i;
8304int
8305main ()
8306{
8307
8308  ;
8309  return 0;
8310}
8311_ACEOF
8312if ac_fn_c_try_link "$LINENO"; then :
8313  eval $cacheid=yes
8314else
8315  eval $cacheid=no
8316fi
8317rm -f core conftest.err conftest.$ac_objext \
8318    conftest$ac_exeext conftest.$ac_ext
8319fi
8320
8321
8322		CFLAGS="$xorg_testset_save_CFLAGS"
8323
8324		eval supported=\$$cacheid
8325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8326$as_echo "$supported" >&6; }
8327		if test "$supported" = "yes" ; then
8328			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8329			found="yes"
8330		fi
8331	fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347xorg_testset_save_CFLAGS="$CFLAGS"
8348
8349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8354  $as_echo_n "(cached) " >&6
8355else
8356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357/* end confdefs.h.  */
8358int i;
8359_ACEOF
8360if ac_fn_c_try_compile "$LINENO"; then :
8361  xorg_cv_cc_flag_unknown_warning_option=yes
8362else
8363  xorg_cv_cc_flag_unknown_warning_option=no
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8370	CFLAGS="$xorg_testset_save_CFLAGS"
8371fi
8372
8373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376	fi
8377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h.  */
8385int i;
8386_ACEOF
8387if ac_fn_c_try_compile "$LINENO"; then :
8388  xorg_cv_cc_flag_unused_command_line_argument=yes
8389else
8390  xorg_cv_cc_flag_unused_command_line_argument=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393fi
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400found="no"
8401
8402	if test $found = "no" ; then
8403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405		fi
8406
8407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409		fi
8410
8411		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8412
8413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8414$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8415		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8416		if eval \${$cacheid+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h.  */
8421int i;
8422int
8423main ()
8424{
8425
8426  ;
8427  return 0;
8428}
8429_ACEOF
8430if ac_fn_c_try_link "$LINENO"; then :
8431  eval $cacheid=yes
8432else
8433  eval $cacheid=no
8434fi
8435rm -f core conftest.err conftest.$ac_objext \
8436    conftest$ac_exeext conftest.$ac_ext
8437fi
8438
8439
8440		CFLAGS="$xorg_testset_save_CFLAGS"
8441
8442		eval supported=\$$cacheid
8443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8444$as_echo "$supported" >&6; }
8445		if test "$supported" = "yes" ; then
8446			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8447			found="yes"
8448		fi
8449	fi
8450
8451	if test $found = "no" ; then
8452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454		fi
8455
8456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8458		fi
8459
8460		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8461
8462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8463$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8464		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8465		if eval \${$cacheid+:} false; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h.  */
8470int i;
8471int
8472main ()
8473{
8474
8475  ;
8476  return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_link "$LINENO"; then :
8480  eval $cacheid=yes
8481else
8482  eval $cacheid=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext \
8485    conftest$ac_exeext conftest.$ac_ext
8486fi
8487
8488
8489		CFLAGS="$xorg_testset_save_CFLAGS"
8490
8491		eval supported=\$$cacheid
8492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493$as_echo "$supported" >&6; }
8494		if test "$supported" = "yes" ; then
8495			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8496			found="yes"
8497		fi
8498	fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514xorg_testset_save_CFLAGS="$CFLAGS"
8515
8516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8521  $as_echo_n "(cached) " >&6
8522else
8523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524/* end confdefs.h.  */
8525int i;
8526_ACEOF
8527if ac_fn_c_try_compile "$LINENO"; then :
8528  xorg_cv_cc_flag_unknown_warning_option=yes
8529else
8530  xorg_cv_cc_flag_unknown_warning_option=no
8531fi
8532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533fi
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8537	CFLAGS="$xorg_testset_save_CFLAGS"
8538fi
8539
8540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543	fi
8544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553_ACEOF
8554if ac_fn_c_try_compile "$LINENO"; then :
8555  xorg_cv_cc_flag_unused_command_line_argument=yes
8556else
8557  xorg_cv_cc_flag_unused_command_line_argument=no
8558fi
8559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8564	CFLAGS="$xorg_testset_save_CFLAGS"
8565fi
8566
8567found="no"
8568
8569	if test $found = "no" ; then
8570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572		fi
8573
8574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8576		fi
8577
8578		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8579
8580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8581$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8582		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8583		if eval \${$cacheid+:} false; then :
8584  $as_echo_n "(cached) " >&6
8585else
8586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h.  */
8588int i;
8589int
8590main ()
8591{
8592
8593  ;
8594  return 0;
8595}
8596_ACEOF
8597if ac_fn_c_try_link "$LINENO"; then :
8598  eval $cacheid=yes
8599else
8600  eval $cacheid=no
8601fi
8602rm -f core conftest.err conftest.$ac_objext \
8603    conftest$ac_exeext conftest.$ac_ext
8604fi
8605
8606
8607		CFLAGS="$xorg_testset_save_CFLAGS"
8608
8609		eval supported=\$$cacheid
8610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8611$as_echo "$supported" >&6; }
8612		if test "$supported" = "yes" ; then
8613			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8614			found="yes"
8615		fi
8616	fi
8617
8618 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8619else
8620{ $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
8621$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;}
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635xorg_testset_save_CFLAGS="$CFLAGS"
8636
8637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h.  */
8646int i;
8647_ACEOF
8648if ac_fn_c_try_compile "$LINENO"; then :
8649  xorg_cv_cc_flag_unknown_warning_option=yes
8650else
8651  xorg_cv_cc_flag_unknown_warning_option=no
8652fi
8653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654fi
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8658	CFLAGS="$xorg_testset_save_CFLAGS"
8659fi
8660
8661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664	fi
8665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"; then :
8676  xorg_cv_cc_flag_unused_command_line_argument=yes
8677else
8678  xorg_cv_cc_flag_unused_command_line_argument=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681fi
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8684	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8685	CFLAGS="$xorg_testset_save_CFLAGS"
8686fi
8687
8688found="no"
8689
8690	if test $found = "no" ; then
8691		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693		fi
8694
8695		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8697		fi
8698
8699		CFLAGS="$CFLAGS -Wimplicit"
8700
8701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8702$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8703		cacheid=xorg_cv_cc_flag__Wimplicit
8704		if eval \${$cacheid+:} false; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709int i;
8710int
8711main ()
8712{
8713
8714  ;
8715  return 0;
8716}
8717_ACEOF
8718if ac_fn_c_try_link "$LINENO"; then :
8719  eval $cacheid=yes
8720else
8721  eval $cacheid=no
8722fi
8723rm -f core conftest.err conftest.$ac_objext \
8724    conftest$ac_exeext conftest.$ac_ext
8725fi
8726
8727
8728		CFLAGS="$xorg_testset_save_CFLAGS"
8729
8730		eval supported=\$$cacheid
8731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8732$as_echo "$supported" >&6; }
8733		if test "$supported" = "yes" ; then
8734			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8735			found="yes"
8736		fi
8737	fi
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753xorg_testset_save_CFLAGS="$CFLAGS"
8754
8755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8760  $as_echo_n "(cached) " >&6
8761else
8762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763/* end confdefs.h.  */
8764int i;
8765_ACEOF
8766if ac_fn_c_try_compile "$LINENO"; then :
8767  xorg_cv_cc_flag_unknown_warning_option=yes
8768else
8769  xorg_cv_cc_flag_unknown_warning_option=no
8770fi
8771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8776	CFLAGS="$xorg_testset_save_CFLAGS"
8777fi
8778
8779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8782	fi
8783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8787  $as_echo_n "(cached) " >&6
8788else
8789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792_ACEOF
8793if ac_fn_c_try_compile "$LINENO"; then :
8794  xorg_cv_cc_flag_unused_command_line_argument=yes
8795else
8796  xorg_cv_cc_flag_unused_command_line_argument=no
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8803	CFLAGS="$xorg_testset_save_CFLAGS"
8804fi
8805
8806found="no"
8807
8808	if test $found = "no" ; then
8809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8811		fi
8812
8813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8815		fi
8816
8817		CFLAGS="$CFLAGS -Wnonnull"
8818
8819		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8820$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8821		cacheid=xorg_cv_cc_flag__Wnonnull
8822		if eval \${$cacheid+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826/* end confdefs.h.  */
8827int i;
8828int
8829main ()
8830{
8831
8832  ;
8833  return 0;
8834}
8835_ACEOF
8836if ac_fn_c_try_link "$LINENO"; then :
8837  eval $cacheid=yes
8838else
8839  eval $cacheid=no
8840fi
8841rm -f core conftest.err conftest.$ac_objext \
8842    conftest$ac_exeext conftest.$ac_ext
8843fi
8844
8845
8846		CFLAGS="$xorg_testset_save_CFLAGS"
8847
8848		eval supported=\$$cacheid
8849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8850$as_echo "$supported" >&6; }
8851		if test "$supported" = "yes" ; then
8852			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8853			found="yes"
8854		fi
8855	fi
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871xorg_testset_save_CFLAGS="$CFLAGS"
8872
8873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8878  $as_echo_n "(cached) " >&6
8879else
8880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h.  */
8882int i;
8883_ACEOF
8884if ac_fn_c_try_compile "$LINENO"; then :
8885  xorg_cv_cc_flag_unknown_warning_option=yes
8886else
8887  xorg_cv_cc_flag_unknown_warning_option=no
8888fi
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8894	CFLAGS="$xorg_testset_save_CFLAGS"
8895fi
8896
8897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8900	fi
8901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909int i;
8910_ACEOF
8911if ac_fn_c_try_compile "$LINENO"; then :
8912  xorg_cv_cc_flag_unused_command_line_argument=yes
8913else
8914  xorg_cv_cc_flag_unused_command_line_argument=no
8915fi
8916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8921	CFLAGS="$xorg_testset_save_CFLAGS"
8922fi
8923
8924found="no"
8925
8926	if test $found = "no" ; then
8927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929		fi
8930
8931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8933		fi
8934
8935		CFLAGS="$CFLAGS -Winit-self"
8936
8937		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8938$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8939		cacheid=xorg_cv_cc_flag__Winit_self
8940		if eval \${$cacheid+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h.  */
8945int i;
8946int
8947main ()
8948{
8949
8950  ;
8951  return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_link "$LINENO"; then :
8955  eval $cacheid=yes
8956else
8957  eval $cacheid=no
8958fi
8959rm -f core conftest.err conftest.$ac_objext \
8960    conftest$ac_exeext conftest.$ac_ext
8961fi
8962
8963
8964		CFLAGS="$xorg_testset_save_CFLAGS"
8965
8966		eval supported=\$$cacheid
8967		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8968$as_echo "$supported" >&6; }
8969		if test "$supported" = "yes" ; then
8970			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8971			found="yes"
8972		fi
8973	fi
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989xorg_testset_save_CFLAGS="$CFLAGS"
8990
8991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000int i;
9001_ACEOF
9002if ac_fn_c_try_compile "$LINENO"; then :
9003  xorg_cv_cc_flag_unknown_warning_option=yes
9004else
9005  xorg_cv_cc_flag_unknown_warning_option=no
9006fi
9007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008fi
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9012	CFLAGS="$xorg_testset_save_CFLAGS"
9013fi
9014
9015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018	fi
9019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9023  $as_echo_n "(cached) " >&6
9024else
9025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h.  */
9027int i;
9028_ACEOF
9029if ac_fn_c_try_compile "$LINENO"; then :
9030  xorg_cv_cc_flag_unused_command_line_argument=yes
9031else
9032  xorg_cv_cc_flag_unused_command_line_argument=no
9033fi
9034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9039	CFLAGS="$xorg_testset_save_CFLAGS"
9040fi
9041
9042found="no"
9043
9044	if test $found = "no" ; then
9045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9047		fi
9048
9049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9051		fi
9052
9053		CFLAGS="$CFLAGS -Wmain"
9054
9055		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9056$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9057		cacheid=xorg_cv_cc_flag__Wmain
9058		if eval \${$cacheid+:} false; then :
9059  $as_echo_n "(cached) " >&6
9060else
9061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063int i;
9064int
9065main ()
9066{
9067
9068  ;
9069  return 0;
9070}
9071_ACEOF
9072if ac_fn_c_try_link "$LINENO"; then :
9073  eval $cacheid=yes
9074else
9075  eval $cacheid=no
9076fi
9077rm -f core conftest.err conftest.$ac_objext \
9078    conftest$ac_exeext conftest.$ac_ext
9079fi
9080
9081
9082		CFLAGS="$xorg_testset_save_CFLAGS"
9083
9084		eval supported=\$$cacheid
9085		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9086$as_echo "$supported" >&6; }
9087		if test "$supported" = "yes" ; then
9088			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9089			found="yes"
9090		fi
9091	fi
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107xorg_testset_save_CFLAGS="$CFLAGS"
9108
9109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118int i;
9119_ACEOF
9120if ac_fn_c_try_compile "$LINENO"; then :
9121  xorg_cv_cc_flag_unknown_warning_option=yes
9122else
9123  xorg_cv_cc_flag_unknown_warning_option=no
9124fi
9125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126fi
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9130	CFLAGS="$xorg_testset_save_CFLAGS"
9131fi
9132
9133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9136	fi
9137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9141  $as_echo_n "(cached) " >&6
9142else
9143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146_ACEOF
9147if ac_fn_c_try_compile "$LINENO"; then :
9148  xorg_cv_cc_flag_unused_command_line_argument=yes
9149else
9150  xorg_cv_cc_flag_unused_command_line_argument=no
9151fi
9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153fi
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9157	CFLAGS="$xorg_testset_save_CFLAGS"
9158fi
9159
9160found="no"
9161
9162	if test $found = "no" ; then
9163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165		fi
9166
9167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9169		fi
9170
9171		CFLAGS="$CFLAGS -Wmissing-braces"
9172
9173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9174$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9175		cacheid=xorg_cv_cc_flag__Wmissing_braces
9176		if eval \${$cacheid+:} false; then :
9177  $as_echo_n "(cached) " >&6
9178else
9179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180/* end confdefs.h.  */
9181int i;
9182int
9183main ()
9184{
9185
9186  ;
9187  return 0;
9188}
9189_ACEOF
9190if ac_fn_c_try_link "$LINENO"; then :
9191  eval $cacheid=yes
9192else
9193  eval $cacheid=no
9194fi
9195rm -f core conftest.err conftest.$ac_objext \
9196    conftest$ac_exeext conftest.$ac_ext
9197fi
9198
9199
9200		CFLAGS="$xorg_testset_save_CFLAGS"
9201
9202		eval supported=\$$cacheid
9203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9204$as_echo "$supported" >&6; }
9205		if test "$supported" = "yes" ; then
9206			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9207			found="yes"
9208		fi
9209	fi
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225xorg_testset_save_CFLAGS="$CFLAGS"
9226
9227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9232  $as_echo_n "(cached) " >&6
9233else
9234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h.  */
9236int i;
9237_ACEOF
9238if ac_fn_c_try_compile "$LINENO"; then :
9239  xorg_cv_cc_flag_unknown_warning_option=yes
9240else
9241  xorg_cv_cc_flag_unknown_warning_option=no
9242fi
9243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244fi
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9248	CFLAGS="$xorg_testset_save_CFLAGS"
9249fi
9250
9251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9254	fi
9255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h.  */
9263int i;
9264_ACEOF
9265if ac_fn_c_try_compile "$LINENO"; then :
9266  xorg_cv_cc_flag_unused_command_line_argument=yes
9267else
9268  xorg_cv_cc_flag_unused_command_line_argument=no
9269fi
9270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271fi
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9275	CFLAGS="$xorg_testset_save_CFLAGS"
9276fi
9277
9278found="no"
9279
9280	if test $found = "no" ; then
9281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283		fi
9284
9285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9287		fi
9288
9289		CFLAGS="$CFLAGS -Wsequence-point"
9290
9291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9292$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9293		cacheid=xorg_cv_cc_flag__Wsequence_point
9294		if eval \${$cacheid+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298/* end confdefs.h.  */
9299int i;
9300int
9301main ()
9302{
9303
9304  ;
9305  return 0;
9306}
9307_ACEOF
9308if ac_fn_c_try_link "$LINENO"; then :
9309  eval $cacheid=yes
9310else
9311  eval $cacheid=no
9312fi
9313rm -f core conftest.err conftest.$ac_objext \
9314    conftest$ac_exeext conftest.$ac_ext
9315fi
9316
9317
9318		CFLAGS="$xorg_testset_save_CFLAGS"
9319
9320		eval supported=\$$cacheid
9321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9322$as_echo "$supported" >&6; }
9323		if test "$supported" = "yes" ; then
9324			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9325			found="yes"
9326		fi
9327	fi
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343xorg_testset_save_CFLAGS="$CFLAGS"
9344
9345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9350  $as_echo_n "(cached) " >&6
9351else
9352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354int i;
9355_ACEOF
9356if ac_fn_c_try_compile "$LINENO"; then :
9357  xorg_cv_cc_flag_unknown_warning_option=yes
9358else
9359  xorg_cv_cc_flag_unknown_warning_option=no
9360fi
9361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9366	CFLAGS="$xorg_testset_save_CFLAGS"
9367fi
9368
9369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372	fi
9373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9377  $as_echo_n "(cached) " >&6
9378else
9379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380/* end confdefs.h.  */
9381int i;
9382_ACEOF
9383if ac_fn_c_try_compile "$LINENO"; then :
9384  xorg_cv_cc_flag_unused_command_line_argument=yes
9385else
9386  xorg_cv_cc_flag_unused_command_line_argument=no
9387fi
9388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389fi
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9393	CFLAGS="$xorg_testset_save_CFLAGS"
9394fi
9395
9396found="no"
9397
9398	if test $found = "no" ; then
9399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401		fi
9402
9403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9405		fi
9406
9407		CFLAGS="$CFLAGS -Wreturn-type"
9408
9409		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9410$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9411		cacheid=xorg_cv_cc_flag__Wreturn_type
9412		if eval \${$cacheid+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417int i;
9418int
9419main ()
9420{
9421
9422  ;
9423  return 0;
9424}
9425_ACEOF
9426if ac_fn_c_try_link "$LINENO"; then :
9427  eval $cacheid=yes
9428else
9429  eval $cacheid=no
9430fi
9431rm -f core conftest.err conftest.$ac_objext \
9432    conftest$ac_exeext conftest.$ac_ext
9433fi
9434
9435
9436		CFLAGS="$xorg_testset_save_CFLAGS"
9437
9438		eval supported=\$$cacheid
9439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9440$as_echo "$supported" >&6; }
9441		if test "$supported" = "yes" ; then
9442			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9443			found="yes"
9444		fi
9445	fi
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461xorg_testset_save_CFLAGS="$CFLAGS"
9462
9463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9468  $as_echo_n "(cached) " >&6
9469else
9470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h.  */
9472int i;
9473_ACEOF
9474if ac_fn_c_try_compile "$LINENO"; then :
9475  xorg_cv_cc_flag_unknown_warning_option=yes
9476else
9477  xorg_cv_cc_flag_unknown_warning_option=no
9478fi
9479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480fi
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9484	CFLAGS="$xorg_testset_save_CFLAGS"
9485fi
9486
9487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	fi
9491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9495  $as_echo_n "(cached) " >&6
9496else
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int i;
9500_ACEOF
9501if ac_fn_c_try_compile "$LINENO"; then :
9502  xorg_cv_cc_flag_unused_command_line_argument=yes
9503else
9504  xorg_cv_cc_flag_unused_command_line_argument=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507fi
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514found="no"
9515
9516	if test $found = "no" ; then
9517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519		fi
9520
9521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9523		fi
9524
9525		CFLAGS="$CFLAGS -Wtrigraphs"
9526
9527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9528$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9529		cacheid=xorg_cv_cc_flag__Wtrigraphs
9530		if eval \${$cacheid+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h.  */
9535int i;
9536int
9537main ()
9538{
9539
9540  ;
9541  return 0;
9542}
9543_ACEOF
9544if ac_fn_c_try_link "$LINENO"; then :
9545  eval $cacheid=yes
9546else
9547  eval $cacheid=no
9548fi
9549rm -f core conftest.err conftest.$ac_objext \
9550    conftest$ac_exeext conftest.$ac_ext
9551fi
9552
9553
9554		CFLAGS="$xorg_testset_save_CFLAGS"
9555
9556		eval supported=\$$cacheid
9557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9558$as_echo "$supported" >&6; }
9559		if test "$supported" = "yes" ; then
9560			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9561			found="yes"
9562		fi
9563	fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579xorg_testset_save_CFLAGS="$CFLAGS"
9580
9581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9586  $as_echo_n "(cached) " >&6
9587else
9588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h.  */
9590int i;
9591_ACEOF
9592if ac_fn_c_try_compile "$LINENO"; then :
9593  xorg_cv_cc_flag_unknown_warning_option=yes
9594else
9595  xorg_cv_cc_flag_unknown_warning_option=no
9596fi
9597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598fi
9599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9602	CFLAGS="$xorg_testset_save_CFLAGS"
9603fi
9604
9605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9608	fi
9609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9613  $as_echo_n "(cached) " >&6
9614else
9615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h.  */
9617int i;
9618_ACEOF
9619if ac_fn_c_try_compile "$LINENO"; then :
9620  xorg_cv_cc_flag_unused_command_line_argument=yes
9621else
9622  xorg_cv_cc_flag_unused_command_line_argument=no
9623fi
9624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625fi
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9629	CFLAGS="$xorg_testset_save_CFLAGS"
9630fi
9631
9632found="no"
9633
9634	if test $found = "no" ; then
9635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637		fi
9638
9639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9641		fi
9642
9643		CFLAGS="$CFLAGS -Warray-bounds"
9644
9645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9646$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9647		cacheid=xorg_cv_cc_flag__Warray_bounds
9648		if eval \${$cacheid+:} false; then :
9649  $as_echo_n "(cached) " >&6
9650else
9651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653int i;
9654int
9655main ()
9656{
9657
9658  ;
9659  return 0;
9660}
9661_ACEOF
9662if ac_fn_c_try_link "$LINENO"; then :
9663  eval $cacheid=yes
9664else
9665  eval $cacheid=no
9666fi
9667rm -f core conftest.err conftest.$ac_objext \
9668    conftest$ac_exeext conftest.$ac_ext
9669fi
9670
9671
9672		CFLAGS="$xorg_testset_save_CFLAGS"
9673
9674		eval supported=\$$cacheid
9675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9676$as_echo "$supported" >&6; }
9677		if test "$supported" = "yes" ; then
9678			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9679			found="yes"
9680		fi
9681	fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697xorg_testset_save_CFLAGS="$CFLAGS"
9698
9699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9704  $as_echo_n "(cached) " >&6
9705else
9706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h.  */
9708int i;
9709_ACEOF
9710if ac_fn_c_try_compile "$LINENO"; then :
9711  xorg_cv_cc_flag_unknown_warning_option=yes
9712else
9713  xorg_cv_cc_flag_unknown_warning_option=no
9714fi
9715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9720	CFLAGS="$xorg_testset_save_CFLAGS"
9721fi
9722
9723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726	fi
9727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9731  $as_echo_n "(cached) " >&6
9732else
9733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734/* end confdefs.h.  */
9735int i;
9736_ACEOF
9737if ac_fn_c_try_compile "$LINENO"; then :
9738  xorg_cv_cc_flag_unused_command_line_argument=yes
9739else
9740  xorg_cv_cc_flag_unused_command_line_argument=no
9741fi
9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743fi
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9747	CFLAGS="$xorg_testset_save_CFLAGS"
9748fi
9749
9750found="no"
9751
9752	if test $found = "no" ; then
9753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755		fi
9756
9757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9759		fi
9760
9761		CFLAGS="$CFLAGS -Wwrite-strings"
9762
9763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9764$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9765		cacheid=xorg_cv_cc_flag__Wwrite_strings
9766		if eval \${$cacheid+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771int i;
9772int
9773main ()
9774{
9775
9776  ;
9777  return 0;
9778}
9779_ACEOF
9780if ac_fn_c_try_link "$LINENO"; then :
9781  eval $cacheid=yes
9782else
9783  eval $cacheid=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext \
9786    conftest$ac_exeext conftest.$ac_ext
9787fi
9788
9789
9790		CFLAGS="$xorg_testset_save_CFLAGS"
9791
9792		eval supported=\$$cacheid
9793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794$as_echo "$supported" >&6; }
9795		if test "$supported" = "yes" ; then
9796			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9797			found="yes"
9798		fi
9799	fi
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815xorg_testset_save_CFLAGS="$CFLAGS"
9816
9817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9822  $as_echo_n "(cached) " >&6
9823else
9824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h.  */
9826int i;
9827_ACEOF
9828if ac_fn_c_try_compile "$LINENO"; then :
9829  xorg_cv_cc_flag_unknown_warning_option=yes
9830else
9831  xorg_cv_cc_flag_unknown_warning_option=no
9832fi
9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834fi
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9838	CFLAGS="$xorg_testset_save_CFLAGS"
9839fi
9840
9841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9844	fi
9845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852/* end confdefs.h.  */
9853int i;
9854_ACEOF
9855if ac_fn_c_try_compile "$LINENO"; then :
9856  xorg_cv_cc_flag_unused_command_line_argument=yes
9857else
9858  xorg_cv_cc_flag_unused_command_line_argument=no
9859fi
9860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861fi
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9865	CFLAGS="$xorg_testset_save_CFLAGS"
9866fi
9867
9868found="no"
9869
9870	if test $found = "no" ; then
9871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873		fi
9874
9875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877		fi
9878
9879		CFLAGS="$CFLAGS -Waddress"
9880
9881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9882$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9883		cacheid=xorg_cv_cc_flag__Waddress
9884		if eval \${$cacheid+:} false; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889int i;
9890int
9891main ()
9892{
9893
9894  ;
9895  return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899  eval $cacheid=yes
9900else
9901  eval $cacheid=no
9902fi
9903rm -f core conftest.err conftest.$ac_objext \
9904    conftest$ac_exeext conftest.$ac_ext
9905fi
9906
9907
9908		CFLAGS="$xorg_testset_save_CFLAGS"
9909
9910		eval supported=\$$cacheid
9911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9912$as_echo "$supported" >&6; }
9913		if test "$supported" = "yes" ; then
9914			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9915			found="yes"
9916		fi
9917	fi
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933xorg_testset_save_CFLAGS="$CFLAGS"
9934
9935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9940  $as_echo_n "(cached) " >&6
9941else
9942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h.  */
9944int i;
9945_ACEOF
9946if ac_fn_c_try_compile "$LINENO"; then :
9947  xorg_cv_cc_flag_unknown_warning_option=yes
9948else
9949  xorg_cv_cc_flag_unknown_warning_option=no
9950fi
9951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952fi
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9956	CFLAGS="$xorg_testset_save_CFLAGS"
9957fi
9958
9959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9962	fi
9963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970/* end confdefs.h.  */
9971int i;
9972_ACEOF
9973if ac_fn_c_try_compile "$LINENO"; then :
9974  xorg_cv_cc_flag_unused_command_line_argument=yes
9975else
9976  xorg_cv_cc_flag_unused_command_line_argument=no
9977fi
9978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979fi
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9982	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9983	CFLAGS="$xorg_testset_save_CFLAGS"
9984fi
9985
9986found="no"
9987
9988	if test $found = "no" ; then
9989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9991		fi
9992
9993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9995		fi
9996
9997		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9998
9999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10000$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10001		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10002		if eval \${$cacheid+:} false; then :
10003  $as_echo_n "(cached) " >&6
10004else
10005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006/* end confdefs.h.  */
10007int i;
10008int
10009main ()
10010{
10011
10012  ;
10013  return 0;
10014}
10015_ACEOF
10016if ac_fn_c_try_link "$LINENO"; then :
10017  eval $cacheid=yes
10018else
10019  eval $cacheid=no
10020fi
10021rm -f core conftest.err conftest.$ac_objext \
10022    conftest$ac_exeext conftest.$ac_ext
10023fi
10024
10025
10026		CFLAGS="$xorg_testset_save_CFLAGS"
10027
10028		eval supported=\$$cacheid
10029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10030$as_echo "$supported" >&6; }
10031		if test "$supported" = "yes" ; then
10032			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10033			found="yes"
10034		fi
10035	fi
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051xorg_testset_save_CFLAGS="$CFLAGS"
10052
10053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10058  $as_echo_n "(cached) " >&6
10059else
10060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062int i;
10063_ACEOF
10064if ac_fn_c_try_compile "$LINENO"; then :
10065  xorg_cv_cc_flag_unknown_warning_option=yes
10066else
10067  xorg_cv_cc_flag_unknown_warning_option=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070fi
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10074	CFLAGS="$xorg_testset_save_CFLAGS"
10075fi
10076
10077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080	fi
10081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10085  $as_echo_n "(cached) " >&6
10086else
10087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088/* end confdefs.h.  */
10089int i;
10090_ACEOF
10091if ac_fn_c_try_compile "$LINENO"; then :
10092  xorg_cv_cc_flag_unused_command_line_argument=yes
10093else
10094  xorg_cv_cc_flag_unused_command_line_argument=no
10095fi
10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097fi
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10101	CFLAGS="$xorg_testset_save_CFLAGS"
10102fi
10103
10104found="no"
10105
10106	if test $found = "no" ; then
10107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109		fi
10110
10111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113		fi
10114
10115		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10116
10117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10118$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10119		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10120		if eval \${$cacheid+:} false; then :
10121  $as_echo_n "(cached) " >&6
10122else
10123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125int i;
10126int
10127main ()
10128{
10129
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134if ac_fn_c_try_link "$LINENO"; then :
10135  eval $cacheid=yes
10136else
10137  eval $cacheid=no
10138fi
10139rm -f core conftest.err conftest.$ac_objext \
10140    conftest$ac_exeext conftest.$ac_ext
10141fi
10142
10143
10144		CFLAGS="$xorg_testset_save_CFLAGS"
10145
10146		eval supported=\$$cacheid
10147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10148$as_echo "$supported" >&6; }
10149		if test "$supported" = "yes" ; then
10150			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10151			found="yes"
10152		fi
10153	fi
10154
10155
10156fi
10157
10158
10159
10160
10161
10162
10163
10164		CWARNFLAGS="$BASE_CFLAGS"
10165		if  test "x$GCC" = xyes ; then
10166		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10167		fi
10168
10169
10170
10171
10172
10173
10174
10175
10176# Check whether --enable-strict-compilation was given.
10177if test "${enable_strict_compilation+set}" = set; then :
10178  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10179else
10180  STRICT_COMPILE=no
10181fi
10182
10183
10184
10185
10186
10187
10188STRICT_CFLAGS=""
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202xorg_testset_save_CFLAGS="$CFLAGS"
10203
10204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10209  $as_echo_n "(cached) " >&6
10210else
10211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h.  */
10213int i;
10214_ACEOF
10215if ac_fn_c_try_compile "$LINENO"; then :
10216  xorg_cv_cc_flag_unknown_warning_option=yes
10217else
10218  xorg_cv_cc_flag_unknown_warning_option=no
10219fi
10220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10221fi
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10225	CFLAGS="$xorg_testset_save_CFLAGS"
10226fi
10227
10228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10231	fi
10232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240int i;
10241_ACEOF
10242if ac_fn_c_try_compile "$LINENO"; then :
10243  xorg_cv_cc_flag_unused_command_line_argument=yes
10244else
10245  xorg_cv_cc_flag_unused_command_line_argument=no
10246fi
10247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248fi
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10252	CFLAGS="$xorg_testset_save_CFLAGS"
10253fi
10254
10255found="no"
10256
10257	if test $found = "no" ; then
10258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260		fi
10261
10262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10264		fi
10265
10266		CFLAGS="$CFLAGS -pedantic"
10267
10268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10269$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10270		cacheid=xorg_cv_cc_flag__pedantic
10271		if eval \${$cacheid+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276int i;
10277int
10278main ()
10279{
10280
10281  ;
10282  return 0;
10283}
10284_ACEOF
10285if ac_fn_c_try_link "$LINENO"; then :
10286  eval $cacheid=yes
10287else
10288  eval $cacheid=no
10289fi
10290rm -f core conftest.err conftest.$ac_objext \
10291    conftest$ac_exeext conftest.$ac_ext
10292fi
10293
10294
10295		CFLAGS="$xorg_testset_save_CFLAGS"
10296
10297		eval supported=\$$cacheid
10298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10299$as_echo "$supported" >&6; }
10300		if test "$supported" = "yes" ; then
10301			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10302			found="yes"
10303		fi
10304	fi
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320xorg_testset_save_CFLAGS="$CFLAGS"
10321
10322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10327  $as_echo_n "(cached) " >&6
10328else
10329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330/* end confdefs.h.  */
10331int i;
10332_ACEOF
10333if ac_fn_c_try_compile "$LINENO"; then :
10334  xorg_cv_cc_flag_unknown_warning_option=yes
10335else
10336  xorg_cv_cc_flag_unknown_warning_option=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339fi
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10343	CFLAGS="$xorg_testset_save_CFLAGS"
10344fi
10345
10346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349	fi
10350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10354  $as_echo_n "(cached) " >&6
10355else
10356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358int i;
10359_ACEOF
10360if ac_fn_c_try_compile "$LINENO"; then :
10361  xorg_cv_cc_flag_unused_command_line_argument=yes
10362else
10363  xorg_cv_cc_flag_unused_command_line_argument=no
10364fi
10365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366fi
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10370	CFLAGS="$xorg_testset_save_CFLAGS"
10371fi
10372
10373found="no"
10374
10375	if test $found = "no" ; then
10376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378		fi
10379
10380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382		fi
10383
10384		CFLAGS="$CFLAGS -Werror"
10385
10386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10387$as_echo_n "checking if $CC supports -Werror... " >&6; }
10388		cacheid=xorg_cv_cc_flag__Werror
10389		if eval \${$cacheid+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394int i;
10395int
10396main ()
10397{
10398
10399  ;
10400  return 0;
10401}
10402_ACEOF
10403if ac_fn_c_try_link "$LINENO"; then :
10404  eval $cacheid=yes
10405else
10406  eval $cacheid=no
10407fi
10408rm -f core conftest.err conftest.$ac_objext \
10409    conftest$ac_exeext conftest.$ac_ext
10410fi
10411
10412
10413		CFLAGS="$xorg_testset_save_CFLAGS"
10414
10415		eval supported=\$$cacheid
10416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10417$as_echo "$supported" >&6; }
10418		if test "$supported" = "yes" ; then
10419			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10420			found="yes"
10421		fi
10422	fi
10423
10424	if test $found = "no" ; then
10425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427		fi
10428
10429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431		fi
10432
10433		CFLAGS="$CFLAGS -errwarn"
10434
10435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10436$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10437		cacheid=xorg_cv_cc_flag__errwarn
10438		if eval \${$cacheid+:} false; then :
10439  $as_echo_n "(cached) " >&6
10440else
10441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442/* end confdefs.h.  */
10443int i;
10444int
10445main ()
10446{
10447
10448  ;
10449  return 0;
10450}
10451_ACEOF
10452if ac_fn_c_try_link "$LINENO"; then :
10453  eval $cacheid=yes
10454else
10455  eval $cacheid=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext \
10458    conftest$ac_exeext conftest.$ac_ext
10459fi
10460
10461
10462		CFLAGS="$xorg_testset_save_CFLAGS"
10463
10464		eval supported=\$$cacheid
10465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10466$as_echo "$supported" >&6; }
10467		if test "$supported" = "yes" ; then
10468			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10469			found="yes"
10470		fi
10471	fi
10472
10473
10474
10475# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10476# activate it with -Werror, so we add it here explicitly.
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490xorg_testset_save_CFLAGS="$CFLAGS"
10491
10492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10497  $as_echo_n "(cached) " >&6
10498else
10499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500/* end confdefs.h.  */
10501int i;
10502_ACEOF
10503if ac_fn_c_try_compile "$LINENO"; then :
10504  xorg_cv_cc_flag_unknown_warning_option=yes
10505else
10506  xorg_cv_cc_flag_unknown_warning_option=no
10507fi
10508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509fi
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10513	CFLAGS="$xorg_testset_save_CFLAGS"
10514fi
10515
10516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10519	fi
10520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10524  $as_echo_n "(cached) " >&6
10525else
10526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527/* end confdefs.h.  */
10528int i;
10529_ACEOF
10530if ac_fn_c_try_compile "$LINENO"; then :
10531  xorg_cv_cc_flag_unused_command_line_argument=yes
10532else
10533  xorg_cv_cc_flag_unused_command_line_argument=no
10534fi
10535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10536fi
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10540	CFLAGS="$xorg_testset_save_CFLAGS"
10541fi
10542
10543found="no"
10544
10545	if test $found = "no" ; then
10546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10548		fi
10549
10550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10552		fi
10553
10554		CFLAGS="$CFLAGS -Werror=attributes"
10555
10556		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10557$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10558		cacheid=xorg_cv_cc_flag__Werror_attributes
10559		if eval \${$cacheid+:} false; then :
10560  $as_echo_n "(cached) " >&6
10561else
10562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563/* end confdefs.h.  */
10564int i;
10565int
10566main ()
10567{
10568
10569  ;
10570  return 0;
10571}
10572_ACEOF
10573if ac_fn_c_try_link "$LINENO"; then :
10574  eval $cacheid=yes
10575else
10576  eval $cacheid=no
10577fi
10578rm -f core conftest.err conftest.$ac_objext \
10579    conftest$ac_exeext conftest.$ac_ext
10580fi
10581
10582
10583		CFLAGS="$xorg_testset_save_CFLAGS"
10584
10585		eval supported=\$$cacheid
10586		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10587$as_echo "$supported" >&6; }
10588		if test "$supported" = "yes" ; then
10589			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10590			found="yes"
10591		fi
10592	fi
10593
10594
10595
10596if test "x$STRICT_COMPILE" = "xyes"; then
10597    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10598    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10599fi
10600
10601
10602
10603
10604
10605
10606cat >>confdefs.h <<_ACEOF
10607#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10608_ACEOF
10609
10610	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10611	if test "x$PVM" = "x"; then
10612		PVM="0"
10613	fi
10614
10615cat >>confdefs.h <<_ACEOF
10616#define PACKAGE_VERSION_MINOR $PVM
10617_ACEOF
10618
10619	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10620	if test "x$PVP" = "x"; then
10621		PVP="0"
10622	fi
10623
10624cat >>confdefs.h <<_ACEOF
10625#define PACKAGE_VERSION_PATCHLEVEL $PVP
10626_ACEOF
10627
10628
10629
10630CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10631mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10632|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10633touch \$(top_srcdir)/ChangeLog; \
10634echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10635
10636
10637
10638
10639macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10640INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10641mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10642|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10643touch \$(top_srcdir)/INSTALL; \
10644echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10645
10646
10647
10648
10649
10650
10651case $host_os in
10652    solaris*)
10653        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10654        # check for a man page file found in later versions that use
10655        # traditional section numbers instead
10656        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10657$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10658if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10659  $as_echo_n "(cached) " >&6
10660else
10661  test "$cross_compiling" = yes &&
10662  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10663if test -r "/usr/share/man/man7/attributes.7"; then
10664  ac_cv_file__usr_share_man_man7_attributes_7=yes
10665else
10666  ac_cv_file__usr_share_man_man7_attributes_7=no
10667fi
10668fi
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10670$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10671if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10672  SYSV_MAN_SECTIONS=false
10673else
10674  SYSV_MAN_SECTIONS=true
10675fi
10676
10677        ;;
10678    *) SYSV_MAN_SECTIONS=false ;;
10679esac
10680
10681if test x$APP_MAN_SUFFIX = x    ; then
10682    APP_MAN_SUFFIX=1
10683fi
10684if test x$APP_MAN_DIR = x    ; then
10685    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10686fi
10687
10688if test x$LIB_MAN_SUFFIX = x    ; then
10689    LIB_MAN_SUFFIX=3
10690fi
10691if test x$LIB_MAN_DIR = x    ; then
10692    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10693fi
10694
10695if test x$FILE_MAN_SUFFIX = x    ; then
10696    case $SYSV_MAN_SECTIONS in
10697	true)				FILE_MAN_SUFFIX=4  ;;
10698	*)				FILE_MAN_SUFFIX=5  ;;
10699    esac
10700fi
10701if test x$FILE_MAN_DIR = x    ; then
10702    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10703fi
10704
10705if test x$MISC_MAN_SUFFIX = x    ; then
10706    case $SYSV_MAN_SECTIONS in
10707	true)				MISC_MAN_SUFFIX=5  ;;
10708	*)				MISC_MAN_SUFFIX=7  ;;
10709    esac
10710fi
10711if test x$MISC_MAN_DIR = x    ; then
10712    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10713fi
10714
10715if test x$DRIVER_MAN_SUFFIX = x    ; then
10716    case $SYSV_MAN_SECTIONS in
10717	true)				DRIVER_MAN_SUFFIX=7  ;;
10718	*)				DRIVER_MAN_SUFFIX=4  ;;
10719    esac
10720fi
10721if test x$DRIVER_MAN_DIR = x    ; then
10722    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10723fi
10724
10725if test x$ADMIN_MAN_SUFFIX = x    ; then
10726    case $SYSV_MAN_SECTIONS in
10727	true)				ADMIN_MAN_SUFFIX=1m ;;
10728	*)				ADMIN_MAN_SUFFIX=8  ;;
10729    esac
10730fi
10731if test x$ADMIN_MAN_DIR = x    ; then
10732    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10733fi
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749XORG_MAN_PAGE="X Version 11"
10750
10751MAN_SUBSTS="\
10752	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10753	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10754	-e 's|__xservername__|Xorg|g' \
10755	-e 's|__xconfigfile__|xorg.conf|g' \
10756	-e 's|__projectroot__|\$(prefix)|g' \
10757	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10758	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10759	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10760	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10761	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10762	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10763	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10764
10765
10766
10767# Check whether --enable-silent-rules was given.
10768if test "${enable_silent_rules+set}" = set; then :
10769  enableval=$enable_silent_rules;
10770fi
10771
10772case $enable_silent_rules in # (((
10773  yes) AM_DEFAULT_VERBOSITY=0;;
10774   no) AM_DEFAULT_VERBOSITY=1;;
10775    *) AM_DEFAULT_VERBOSITY=0;;
10776esac
10777am_make=${MAKE-make}
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10779$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10780if ${am_cv_make_support_nested_variables+:} false; then :
10781  $as_echo_n "(cached) " >&6
10782else
10783  if $as_echo 'TRUE=$(BAR$(V))
10784BAR0=false
10785BAR1=true
10786V=1
10787am__doit:
10788	@$(TRUE)
10789.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10790  am_cv_make_support_nested_variables=yes
10791else
10792  am_cv_make_support_nested_variables=no
10793fi
10794fi
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10796$as_echo "$am_cv_make_support_nested_variables" >&6; }
10797if test $am_cv_make_support_nested_variables = yes; then
10798    AM_V='$(V)'
10799  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10800else
10801  AM_V=$AM_DEFAULT_VERBOSITY
10802  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10803fi
10804AM_BACKSLASH='\'
10805
10806
10807
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
10809$as_echo_n "checking for gzopen in -lz... " >&6; }
10810if ${ac_cv_lib_z_gzopen+:} false; then :
10811  $as_echo_n "(cached) " >&6
10812else
10813  ac_check_lib_save_LIBS=$LIBS
10814LIBS="-lz  $LIBS"
10815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816/* end confdefs.h.  */
10817
10818/* Override any GCC internal prototype to avoid an error.
10819   Use char because int might match the return type of a GCC
10820   builtin and then its argument prototype would still apply.  */
10821#ifdef __cplusplus
10822extern "C"
10823#endif
10824char gzopen ();
10825int
10826main ()
10827{
10828return gzopen ();
10829  ;
10830  return 0;
10831}
10832_ACEOF
10833if ac_fn_c_try_link "$LINENO"; then :
10834  ac_cv_lib_z_gzopen=yes
10835else
10836  ac_cv_lib_z_gzopen=no
10837fi
10838rm -f core conftest.err conftest.$ac_objext \
10839    conftest$ac_exeext conftest.$ac_ext
10840LIBS=$ac_check_lib_save_LIBS
10841fi
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
10843$as_echo "$ac_cv_lib_z_gzopen" >&6; }
10844if test "x$ac_cv_lib_z_gzopen" = xyes; then :
10845  cat >>confdefs.h <<_ACEOF
10846#define HAVE_LIBZ 1
10847_ACEOF
10848
10849  LIBS="-lz $LIBS"
10850
10851else
10852  as_fn_error $? "zlib is required, but was not found." "$LINENO" 5
10853fi
10854
10855
10856
10857# Check whether --with-bzip2 was given.
10858if test "${with_bzip2+set}" = set; then :
10859  withval=$with_bzip2;
10860else
10861  with_bzip2=no
10862fi
10863
10864if test "x$with_bzip2" = xyes; then
10865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
10866$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
10867if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
10868  $as_echo_n "(cached) " >&6
10869else
10870  ac_check_lib_save_LIBS=$LIBS
10871LIBS="-lbz2  $LIBS"
10872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873/* end confdefs.h.  */
10874
10875/* Override any GCC internal prototype to avoid an error.
10876   Use char because int might match the return type of a GCC
10877   builtin and then its argument prototype would still apply.  */
10878#ifdef __cplusplus
10879extern "C"
10880#endif
10881char BZ2_bzopen ();
10882int
10883main ()
10884{
10885return BZ2_bzopen ();
10886  ;
10887  return 0;
10888}
10889_ACEOF
10890if ac_fn_c_try_link "$LINENO"; then :
10891  ac_cv_lib_bz2_BZ2_bzopen=yes
10892else
10893  ac_cv_lib_bz2_BZ2_bzopen=no
10894fi
10895rm -f core conftest.err conftest.$ac_objext \
10896    conftest$ac_exeext conftest.$ac_ext
10897LIBS=$ac_check_lib_save_LIBS
10898fi
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
10900$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
10901if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
10902  cat >>confdefs.h <<_ACEOF
10903#define HAVE_LIBBZ2 1
10904_ACEOF
10905
10906  LIBS="-lbz2 $LIBS"
10907
10908else
10909  as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
10910fi
10911
10912
10913$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
10914
10915fi
10916
10917# Checks for pkg-config packages
10918
10919pkg_failed=no
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
10921$as_echo_n "checking for MKFONTSCALE... " >&6; }
10922
10923if test -n "$MKFONTSCALE_CFLAGS"; then
10924    pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
10925 elif test -n "$PKG_CONFIG"; then
10926    if test -n "$PKG_CONFIG" && \
10927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10928  ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10929  ac_status=$?
10930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10931  test $ac_status = 0; }; then
10932  pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
10933		      test "x$?" != "x0" && pkg_failed=yes
10934else
10935  pkg_failed=yes
10936fi
10937 else
10938    pkg_failed=untried
10939fi
10940if test -n "$MKFONTSCALE_LIBS"; then
10941    pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
10942 elif test -n "$PKG_CONFIG"; then
10943    if test -n "$PKG_CONFIG" && \
10944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10945  ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10946  ac_status=$?
10947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948  test $ac_status = 0; }; then
10949  pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
10950		      test "x$?" != "x0" && pkg_failed=yes
10951else
10952  pkg_failed=yes
10953fi
10954 else
10955    pkg_failed=untried
10956fi
10957
10958
10959
10960if test $pkg_failed = yes; then
10961   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962$as_echo "no" >&6; }
10963
10964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10965        _pkg_short_errors_supported=yes
10966else
10967        _pkg_short_errors_supported=no
10968fi
10969        if test $_pkg_short_errors_supported = yes; then
10970	        MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontenc freetype2" 2>&1`
10971        else
10972	        MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontenc freetype2" 2>&1`
10973        fi
10974	# Put the nasty error message in config.log where it belongs
10975	echo "$MKFONTSCALE_PKG_ERRORS" >&5
10976
10977	as_fn_error $? "Package requirements (fontenc freetype2) were not met:
10978
10979$MKFONTSCALE_PKG_ERRORS
10980
10981Consider adjusting the PKG_CONFIG_PATH environment variable if you
10982installed software in a non-standard prefix.
10983
10984Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10985and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10986See the pkg-config man page for more details." "$LINENO" 5
10987elif test $pkg_failed = untried; then
10988     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989$as_echo "no" >&6; }
10990	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10992as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10993is in your PATH or set the PKG_CONFIG environment variable to the full
10994path to pkg-config.
10995
10996Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10997and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10998See the pkg-config man page for more details.
10999
11000To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11001See \`config.log' for more details" "$LINENO" 5; }
11002else
11003	MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
11004	MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
11005        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11006$as_echo "yes" >&6; }
11007
11008fi
11009
11010pkg_failed=no
11011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
11012$as_echo_n "checking for X11... " >&6; }
11013
11014if test -n "$X11_CFLAGS"; then
11015    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
11016 elif test -n "$PKG_CONFIG"; then
11017    if test -n "$PKG_CONFIG" && \
11018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
11019  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
11020  ac_status=$?
11021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11022  test $ac_status = 0; }; then
11023  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
11024		      test "x$?" != "x0" && pkg_failed=yes
11025else
11026  pkg_failed=yes
11027fi
11028 else
11029    pkg_failed=untried
11030fi
11031if test -n "$X11_LIBS"; then
11032    pkg_cv_X11_LIBS="$X11_LIBS"
11033 elif test -n "$PKG_CONFIG"; then
11034    if test -n "$PKG_CONFIG" && \
11035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
11036  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
11037  ac_status=$?
11038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039  test $ac_status = 0; }; then
11040  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
11041		      test "x$?" != "x0" && pkg_failed=yes
11042else
11043  pkg_failed=yes
11044fi
11045 else
11046    pkg_failed=untried
11047fi
11048
11049
11050
11051if test $pkg_failed = yes; then
11052   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053$as_echo "no" >&6; }
11054
11055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11056        _pkg_short_errors_supported=yes
11057else
11058        _pkg_short_errors_supported=no
11059fi
11060        if test $_pkg_short_errors_supported = yes; then
11061	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
11062        else
11063	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
11064        fi
11065	# Put the nasty error message in config.log where it belongs
11066	echo "$X11_PKG_ERRORS" >&5
11067
11068	as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
11069
11070$X11_PKG_ERRORS
11071
11072Consider adjusting the PKG_CONFIG_PATH environment variable if you
11073installed software in a non-standard prefix.
11074
11075Alternatively, you may set the environment variables X11_CFLAGS
11076and X11_LIBS to avoid the need to call pkg-config.
11077See the pkg-config man page for more details." "$LINENO" 5
11078elif test $pkg_failed = untried; then
11079     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
11081	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11083as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11084is in your PATH or set the PKG_CONFIG environment variable to the full
11085path to pkg-config.
11086
11087Alternatively, you may set the environment variables X11_CFLAGS
11088and X11_LIBS to avoid the need to call pkg-config.
11089See the pkg-config man page for more details.
11090
11091To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11092See \`config.log' for more details" "$LINENO" 5; }
11093else
11094	X11_CFLAGS=$pkg_cv_X11_CFLAGS
11095	X11_LIBS=$pkg_cv_X11_LIBS
11096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11097$as_echo "yes" >&6; }
11098
11099fi
11100
11101
11102
11103
11104
11105
11106# Check whether --with-lint was given.
11107if test "${with_lint+set}" = set; then :
11108  withval=$with_lint; use_lint=$withval
11109else
11110  use_lint=no
11111fi
11112
11113
11114# Obtain platform specific info like program name and options
11115# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11116case $host_os in
11117  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11118	lint_name=splint
11119	lint_options="-badflag"
11120	;;
11121  *freebsd* | *netbsd*)
11122	lint_name=lint
11123	lint_options="-u -b"
11124	;;
11125  *solaris*)
11126	lint_name=lint
11127	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11128	;;
11129esac
11130
11131# Test for the presence of the program (either guessed by the code or spelled out by the user)
11132if test "x$use_lint" = x"yes" ; then
11133   # Extract the first word of "$lint_name", so it can be a program name with args.
11134set dummy $lint_name; ac_word=$2
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136$as_echo_n "checking for $ac_word... " >&6; }
11137if ${ac_cv_path_LINT+:} false; then :
11138  $as_echo_n "(cached) " >&6
11139else
11140  case $LINT in
11141  [\\/]* | ?:[\\/]*)
11142  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11143  ;;
11144  *)
11145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148  IFS=$as_save_IFS
11149  test -z "$as_dir" && as_dir=.
11150    for ac_exec_ext in '' $ac_executable_extensions; do
11151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154    break 2
11155  fi
11156done
11157  done
11158IFS=$as_save_IFS
11159
11160  ;;
11161esac
11162fi
11163LINT=$ac_cv_path_LINT
11164if test -n "$LINT"; then
11165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11166$as_echo "$LINT" >&6; }
11167else
11168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169$as_echo "no" >&6; }
11170fi
11171
11172
11173   if test "x$LINT" = "x"; then
11174        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11175   fi
11176elif test "x$use_lint" = x"no" ; then
11177   if test "x$LINT" != "x"; then
11178      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11179$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11180   fi
11181else
11182   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11183fi
11184
11185# User supplied flags override default flags
11186if test "x$LINT_FLAGS" != "x"; then
11187   lint_options=$LINT_FLAGS
11188fi
11189
11190LINT_FLAGS=$lint_options
11191
11192 if test "x$LINT" != x; then
11193  LINT_TRUE=
11194  LINT_FALSE='#'
11195else
11196  LINT_TRUE='#'
11197  LINT_FALSE=
11198fi
11199
11200
11201
11202
11203ac_config_files="$ac_config_files Makefile man/Makefile"
11204
11205cat >confcache <<\_ACEOF
11206# This file is a shell script that caches the results of configure
11207# tests run on this system so they can be shared between configure
11208# scripts and configure runs, see configure's option --config-cache.
11209# It is not useful on other systems.  If it contains results you don't
11210# want to keep, you may remove or edit it.
11211#
11212# config.status only pays attention to the cache file if you give it
11213# the --recheck option to rerun configure.
11214#
11215# `ac_cv_env_foo' variables (set or unset) will be overridden when
11216# loading this file, other *unset* `ac_cv_foo' will be assigned the
11217# following values.
11218
11219_ACEOF
11220
11221# The following way of writing the cache mishandles newlines in values,
11222# but we know of no workaround that is simple, portable, and efficient.
11223# So, we kill variables containing newlines.
11224# Ultrix sh set writes to stderr and can't be redirected directly,
11225# and sets the high bit in the cache file unless we assign to the vars.
11226(
11227  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11228    eval ac_val=\$$ac_var
11229    case $ac_val in #(
11230    *${as_nl}*)
11231      case $ac_var in #(
11232      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11234      esac
11235      case $ac_var in #(
11236      _ | IFS | as_nl) ;; #(
11237      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11238      *) { eval $ac_var=; unset $ac_var;} ;;
11239      esac ;;
11240    esac
11241  done
11242
11243  (set) 2>&1 |
11244    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11245    *${as_nl}ac_space=\ *)
11246      # `set' does not quote correctly, so add quotes: double-quote
11247      # substitution turns \\\\ into \\, and sed turns \\ into \.
11248      sed -n \
11249	"s/'/'\\\\''/g;
11250	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11251      ;; #(
11252    *)
11253      # `set' quotes correctly as required by POSIX, so do not add quotes.
11254      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11255      ;;
11256    esac |
11257    sort
11258) |
11259  sed '
11260     /^ac_cv_env_/b end
11261     t clear
11262     :clear
11263     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11264     t end
11265     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11266     :end' >>confcache
11267if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11268  if test -w "$cache_file"; then
11269    if test "x$cache_file" != "x/dev/null"; then
11270      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11271$as_echo "$as_me: updating cache $cache_file" >&6;}
11272      if test ! -f "$cache_file" || test -h "$cache_file"; then
11273	cat confcache >"$cache_file"
11274      else
11275        case $cache_file in #(
11276        */* | ?:*)
11277	  mv -f confcache "$cache_file"$$ &&
11278	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11279        *)
11280	  mv -f confcache "$cache_file" ;;
11281	esac
11282      fi
11283    fi
11284  else
11285    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11286$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11287  fi
11288fi
11289rm -f confcache
11290
11291test "x$prefix" = xNONE && prefix=$ac_default_prefix
11292# Let make expand exec_prefix.
11293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11294
11295DEFS=-DHAVE_CONFIG_H
11296
11297ac_libobjs=
11298ac_ltlibobjs=
11299U=
11300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11301  # 1. Remove the extension, and $U if already installed.
11302  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11303  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11304  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11305  #    will be set to the directory where LIBOBJS objects are built.
11306  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11307  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11308done
11309LIBOBJS=$ac_libobjs
11310
11311LTLIBOBJS=$ac_ltlibobjs
11312
11313
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11315$as_echo_n "checking that generated files are newer than configure... " >&6; }
11316   if test -n "$am_sleep_pid"; then
11317     # Hide warnings about reused PIDs.
11318     wait $am_sleep_pid 2>/dev/null
11319   fi
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11321$as_echo "done" >&6; }
11322if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11323  as_fn_error $? "conditional \"AMDEP\" was never defined.
11324Usually this means the macro was only invoked conditionally." "$LINENO" 5
11325fi
11326if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11327  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11328Usually this means the macro was only invoked conditionally." "$LINENO" 5
11329fi
11330 if test -n "$EXEEXT"; then
11331  am__EXEEXT_TRUE=
11332  am__EXEEXT_FALSE='#'
11333else
11334  am__EXEEXT_TRUE='#'
11335  am__EXEEXT_FALSE=
11336fi
11337
11338if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11339  as_fn_error $? "conditional \"LINT\" was never defined.
11340Usually this means the macro was only invoked conditionally." "$LINENO" 5
11341fi
11342
11343: "${CONFIG_STATUS=./config.status}"
11344ac_write_fail=0
11345ac_clean_files_save=$ac_clean_files
11346ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11348$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11349as_write_fail=0
11350cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11351#! $SHELL
11352# Generated by $as_me.
11353# Run this file to recreate the current configuration.
11354# Compiler output produced by configure, useful for debugging
11355# configure, is in config.log if it exists.
11356
11357debug=false
11358ac_cs_recheck=false
11359ac_cs_silent=false
11360
11361SHELL=\${CONFIG_SHELL-$SHELL}
11362export SHELL
11363_ASEOF
11364cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11365## -------------------- ##
11366## M4sh Initialization. ##
11367## -------------------- ##
11368
11369# Be more Bourne compatible
11370DUALCASE=1; export DUALCASE # for MKS sh
11371if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11372  emulate sh
11373  NULLCMD=:
11374  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11375  # is contrary to our usage.  Disable this feature.
11376  alias -g '${1+"$@"}'='"$@"'
11377  setopt NO_GLOB_SUBST
11378else
11379  case `(set -o) 2>/dev/null` in #(
11380  *posix*) :
11381    set -o posix ;; #(
11382  *) :
11383     ;;
11384esac
11385fi
11386
11387
11388as_nl='
11389'
11390export as_nl
11391# Printing a long string crashes Solaris 7 /usr/bin/printf.
11392as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11393as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11394as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11395# Prefer a ksh shell builtin over an external printf program on Solaris,
11396# but without wasting forks for bash or zsh.
11397if test -z "$BASH_VERSION$ZSH_VERSION" \
11398    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11399  as_echo='print -r --'
11400  as_echo_n='print -rn --'
11401elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11402  as_echo='printf %s\n'
11403  as_echo_n='printf %s'
11404else
11405  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11406    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11407    as_echo_n='/usr/ucb/echo -n'
11408  else
11409    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11410    as_echo_n_body='eval
11411      arg=$1;
11412      case $arg in #(
11413      *"$as_nl"*)
11414	expr "X$arg" : "X\\(.*\\)$as_nl";
11415	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11416      esac;
11417      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11418    '
11419    export as_echo_n_body
11420    as_echo_n='sh -c $as_echo_n_body as_echo'
11421  fi
11422  export as_echo_body
11423  as_echo='sh -c $as_echo_body as_echo'
11424fi
11425
11426# The user is always right.
11427if test "${PATH_SEPARATOR+set}" != set; then
11428  PATH_SEPARATOR=:
11429  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11430    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11431      PATH_SEPARATOR=';'
11432  }
11433fi
11434
11435
11436# IFS
11437# We need space, tab and new line, in precisely that order.  Quoting is
11438# there to prevent editors from complaining about space-tab.
11439# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11440# splitting by setting IFS to empty value.)
11441IFS=" ""	$as_nl"
11442
11443# Find who we are.  Look in the path if we contain no directory separator.
11444as_myself=
11445case $0 in #((
11446  *[\\/]* ) as_myself=$0 ;;
11447  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448for as_dir in $PATH
11449do
11450  IFS=$as_save_IFS
11451  test -z "$as_dir" && as_dir=.
11452    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11453  done
11454IFS=$as_save_IFS
11455
11456     ;;
11457esac
11458# We did not find ourselves, most probably we were run as `sh COMMAND'
11459# in which case we are not to be found in the path.
11460if test "x$as_myself" = x; then
11461  as_myself=$0
11462fi
11463if test ! -f "$as_myself"; then
11464  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11465  exit 1
11466fi
11467
11468# Unset variables that we do not need and which cause bugs (e.g. in
11469# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11470# suppresses any "Segmentation fault" message there.  '((' could
11471# trigger a bug in pdksh 5.2.14.
11472for as_var in BASH_ENV ENV MAIL MAILPATH
11473do eval test x\${$as_var+set} = xset \
11474  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11475done
11476PS1='$ '
11477PS2='> '
11478PS4='+ '
11479
11480# NLS nuisances.
11481LC_ALL=C
11482export LC_ALL
11483LANGUAGE=C
11484export LANGUAGE
11485
11486# CDPATH.
11487(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11488
11489
11490# as_fn_error STATUS ERROR [LINENO LOG_FD]
11491# ----------------------------------------
11492# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11493# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11494# script with STATUS, using 1 if that was 0.
11495as_fn_error ()
11496{
11497  as_status=$1; test $as_status -eq 0 && as_status=1
11498  if test "$4"; then
11499    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11500    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11501  fi
11502  $as_echo "$as_me: error: $2" >&2
11503  as_fn_exit $as_status
11504} # as_fn_error
11505
11506
11507# as_fn_set_status STATUS
11508# -----------------------
11509# Set $? to STATUS, without forking.
11510as_fn_set_status ()
11511{
11512  return $1
11513} # as_fn_set_status
11514
11515# as_fn_exit STATUS
11516# -----------------
11517# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11518as_fn_exit ()
11519{
11520  set +e
11521  as_fn_set_status $1
11522  exit $1
11523} # as_fn_exit
11524
11525# as_fn_unset VAR
11526# ---------------
11527# Portably unset VAR.
11528as_fn_unset ()
11529{
11530  { eval $1=; unset $1;}
11531}
11532as_unset=as_fn_unset
11533# as_fn_append VAR VALUE
11534# ----------------------
11535# Append the text in VALUE to the end of the definition contained in VAR. Take
11536# advantage of any shell optimizations that allow amortized linear growth over
11537# repeated appends, instead of the typical quadratic growth present in naive
11538# implementations.
11539if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11540  eval 'as_fn_append ()
11541  {
11542    eval $1+=\$2
11543  }'
11544else
11545  as_fn_append ()
11546  {
11547    eval $1=\$$1\$2
11548  }
11549fi # as_fn_append
11550
11551# as_fn_arith ARG...
11552# ------------------
11553# Perform arithmetic evaluation on the ARGs, and store the result in the
11554# global $as_val. Take advantage of shells that can avoid forks. The arguments
11555# must be portable across $(()) and expr.
11556if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11557  eval 'as_fn_arith ()
11558  {
11559    as_val=$(( $* ))
11560  }'
11561else
11562  as_fn_arith ()
11563  {
11564    as_val=`expr "$@" || test $? -eq 1`
11565  }
11566fi # as_fn_arith
11567
11568
11569if expr a : '\(a\)' >/dev/null 2>&1 &&
11570   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11571  as_expr=expr
11572else
11573  as_expr=false
11574fi
11575
11576if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11577  as_basename=basename
11578else
11579  as_basename=false
11580fi
11581
11582if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11583  as_dirname=dirname
11584else
11585  as_dirname=false
11586fi
11587
11588as_me=`$as_basename -- "$0" ||
11589$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11590	 X"$0" : 'X\(//\)$' \| \
11591	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11592$as_echo X/"$0" |
11593    sed '/^.*\/\([^/][^/]*\)\/*$/{
11594	    s//\1/
11595	    q
11596	  }
11597	  /^X\/\(\/\/\)$/{
11598	    s//\1/
11599	    q
11600	  }
11601	  /^X\/\(\/\).*/{
11602	    s//\1/
11603	    q
11604	  }
11605	  s/.*/./; q'`
11606
11607# Avoid depending upon Character Ranges.
11608as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11609as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11610as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11611as_cr_digits='0123456789'
11612as_cr_alnum=$as_cr_Letters$as_cr_digits
11613
11614ECHO_C= ECHO_N= ECHO_T=
11615case `echo -n x` in #(((((
11616-n*)
11617  case `echo 'xy\c'` in
11618  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11619  xy)  ECHO_C='\c';;
11620  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11621       ECHO_T='	';;
11622  esac;;
11623*)
11624  ECHO_N='-n';;
11625esac
11626
11627rm -f conf$$ conf$$.exe conf$$.file
11628if test -d conf$$.dir; then
11629  rm -f conf$$.dir/conf$$.file
11630else
11631  rm -f conf$$.dir
11632  mkdir conf$$.dir 2>/dev/null
11633fi
11634if (echo >conf$$.file) 2>/dev/null; then
11635  if ln -s conf$$.file conf$$ 2>/dev/null; then
11636    as_ln_s='ln -s'
11637    # ... but there are two gotchas:
11638    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11639    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11640    # In both cases, we have to default to `cp -pR'.
11641    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11642      as_ln_s='cp -pR'
11643  elif ln conf$$.file conf$$ 2>/dev/null; then
11644    as_ln_s=ln
11645  else
11646    as_ln_s='cp -pR'
11647  fi
11648else
11649  as_ln_s='cp -pR'
11650fi
11651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11652rmdir conf$$.dir 2>/dev/null
11653
11654
11655# as_fn_mkdir_p
11656# -------------
11657# Create "$as_dir" as a directory, including parents if necessary.
11658as_fn_mkdir_p ()
11659{
11660
11661  case $as_dir in #(
11662  -*) as_dir=./$as_dir;;
11663  esac
11664  test -d "$as_dir" || eval $as_mkdir_p || {
11665    as_dirs=
11666    while :; do
11667      case $as_dir in #(
11668      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11669      *) as_qdir=$as_dir;;
11670      esac
11671      as_dirs="'$as_qdir' $as_dirs"
11672      as_dir=`$as_dirname -- "$as_dir" ||
11673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11674	 X"$as_dir" : 'X\(//\)[^/]' \| \
11675	 X"$as_dir" : 'X\(//\)$' \| \
11676	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11677$as_echo X"$as_dir" |
11678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11679	    s//\1/
11680	    q
11681	  }
11682	  /^X\(\/\/\)[^/].*/{
11683	    s//\1/
11684	    q
11685	  }
11686	  /^X\(\/\/\)$/{
11687	    s//\1/
11688	    q
11689	  }
11690	  /^X\(\/\).*/{
11691	    s//\1/
11692	    q
11693	  }
11694	  s/.*/./; q'`
11695      test -d "$as_dir" && break
11696    done
11697    test -z "$as_dirs" || eval "mkdir $as_dirs"
11698  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11699
11700
11701} # as_fn_mkdir_p
11702if mkdir -p . 2>/dev/null; then
11703  as_mkdir_p='mkdir -p "$as_dir"'
11704else
11705  test -d ./-p && rmdir ./-p
11706  as_mkdir_p=false
11707fi
11708
11709
11710# as_fn_executable_p FILE
11711# -----------------------
11712# Test if FILE is an executable regular file.
11713as_fn_executable_p ()
11714{
11715  test -f "$1" && test -x "$1"
11716} # as_fn_executable_p
11717as_test_x='test -x'
11718as_executable_p=as_fn_executable_p
11719
11720# Sed expression to map a string onto a valid CPP name.
11721as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11722
11723# Sed expression to map a string onto a valid variable name.
11724as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11725
11726
11727exec 6>&1
11728## ----------------------------------- ##
11729## Main body of $CONFIG_STATUS script. ##
11730## ----------------------------------- ##
11731_ASEOF
11732test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11733
11734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11735# Save the log message, to keep $0 and so on meaningful, and to
11736# report actual input values of CONFIG_FILES etc. instead of their
11737# values after options handling.
11738ac_log="
11739This file was extended by mkfontscale $as_me 1.1.3, which was
11740generated by GNU Autoconf 2.69.  Invocation command line was
11741
11742  CONFIG_FILES    = $CONFIG_FILES
11743  CONFIG_HEADERS  = $CONFIG_HEADERS
11744  CONFIG_LINKS    = $CONFIG_LINKS
11745  CONFIG_COMMANDS = $CONFIG_COMMANDS
11746  $ $0 $@
11747
11748on `(hostname || uname -n) 2>/dev/null | sed 1q`
11749"
11750
11751_ACEOF
11752
11753case $ac_config_files in *"
11754"*) set x $ac_config_files; shift; ac_config_files=$*;;
11755esac
11756
11757case $ac_config_headers in *"
11758"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11759esac
11760
11761
11762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11763# Files that config.status was made for.
11764config_files="$ac_config_files"
11765config_headers="$ac_config_headers"
11766config_commands="$ac_config_commands"
11767
11768_ACEOF
11769
11770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11771ac_cs_usage="\
11772\`$as_me' instantiates files and other configuration actions
11773from templates according to the current configuration.  Unless the files
11774and actions are specified as TAGs, all are instantiated by default.
11775
11776Usage: $0 [OPTION]... [TAG]...
11777
11778  -h, --help       print this help, then exit
11779  -V, --version    print version number and configuration settings, then exit
11780      --config     print configuration, then exit
11781  -q, --quiet, --silent
11782                   do not print progress messages
11783  -d, --debug      don't remove temporary files
11784      --recheck    update $as_me by reconfiguring in the same conditions
11785      --file=FILE[:TEMPLATE]
11786                   instantiate the configuration file FILE
11787      --header=FILE[:TEMPLATE]
11788                   instantiate the configuration header FILE
11789
11790Configuration files:
11791$config_files
11792
11793Configuration headers:
11794$config_headers
11795
11796Configuration commands:
11797$config_commands
11798
11799Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11800
11801_ACEOF
11802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11803ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11804ac_cs_version="\\
11805mkfontscale config.status 1.1.3
11806configured by $0, generated by GNU Autoconf 2.69,
11807  with options \\"\$ac_cs_config\\"
11808
11809Copyright (C) 2012 Free Software Foundation, Inc.
11810This config.status script is free software; the Free Software Foundation
11811gives unlimited permission to copy, distribute and modify it."
11812
11813ac_pwd='$ac_pwd'
11814srcdir='$srcdir'
11815INSTALL='$INSTALL'
11816MKDIR_P='$MKDIR_P'
11817AWK='$AWK'
11818test -n "\$AWK" || AWK=awk
11819_ACEOF
11820
11821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11822# The default lists apply if the user does not specify any file.
11823ac_need_defaults=:
11824while test $# != 0
11825do
11826  case $1 in
11827  --*=?*)
11828    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11829    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11830    ac_shift=:
11831    ;;
11832  --*=)
11833    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11834    ac_optarg=
11835    ac_shift=:
11836    ;;
11837  *)
11838    ac_option=$1
11839    ac_optarg=$2
11840    ac_shift=shift
11841    ;;
11842  esac
11843
11844  case $ac_option in
11845  # Handling of the options.
11846  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11847    ac_cs_recheck=: ;;
11848  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11849    $as_echo "$ac_cs_version"; exit ;;
11850  --config | --confi | --conf | --con | --co | --c )
11851    $as_echo "$ac_cs_config"; exit ;;
11852  --debug | --debu | --deb | --de | --d | -d )
11853    debug=: ;;
11854  --file | --fil | --fi | --f )
11855    $ac_shift
11856    case $ac_optarg in
11857    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11858    '') as_fn_error $? "missing file argument" ;;
11859    esac
11860    as_fn_append CONFIG_FILES " '$ac_optarg'"
11861    ac_need_defaults=false;;
11862  --header | --heade | --head | --hea )
11863    $ac_shift
11864    case $ac_optarg in
11865    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11866    esac
11867    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11868    ac_need_defaults=false;;
11869  --he | --h)
11870    # Conflict between --help and --header
11871    as_fn_error $? "ambiguous option: \`$1'
11872Try \`$0 --help' for more information.";;
11873  --help | --hel | -h )
11874    $as_echo "$ac_cs_usage"; exit ;;
11875  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11876  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11877    ac_cs_silent=: ;;
11878
11879  # This is an error.
11880  -*) as_fn_error $? "unrecognized option: \`$1'
11881Try \`$0 --help' for more information." ;;
11882
11883  *) as_fn_append ac_config_targets " $1"
11884     ac_need_defaults=false ;;
11885
11886  esac
11887  shift
11888done
11889
11890ac_configure_extra_args=
11891
11892if $ac_cs_silent; then
11893  exec 6>/dev/null
11894  ac_configure_extra_args="$ac_configure_extra_args --silent"
11895fi
11896
11897_ACEOF
11898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11899if \$ac_cs_recheck; then
11900  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11901  shift
11902  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11903  CONFIG_SHELL='$SHELL'
11904  export CONFIG_SHELL
11905  exec "\$@"
11906fi
11907
11908_ACEOF
11909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11910exec 5>>config.log
11911{
11912  echo
11913  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11914## Running $as_me. ##
11915_ASBOX
11916  $as_echo "$ac_log"
11917} >&5
11918
11919_ACEOF
11920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11921#
11922# INIT-COMMANDS
11923#
11924AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11925
11926_ACEOF
11927
11928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11929
11930# Handling of arguments.
11931for ac_config_target in $ac_config_targets
11932do
11933  case $ac_config_target in
11934    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11935    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11936    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11937    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11938
11939  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11940  esac
11941done
11942
11943
11944# If the user did not use the arguments to specify the items to instantiate,
11945# then the envvar interface is used.  Set only those that are not.
11946# We use the long form for the default assignment because of an extremely
11947# bizarre bug on SunOS 4.1.3.
11948if $ac_need_defaults; then
11949  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11950  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11951  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11952fi
11953
11954# Have a temporary directory for convenience.  Make it in the build tree
11955# simply because there is no reason against having it here, and in addition,
11956# creating and moving files from /tmp can sometimes cause problems.
11957# Hook for its removal unless debugging.
11958# Note that there is a small window in which the directory will not be cleaned:
11959# after its creation but before its name has been assigned to `$tmp'.
11960$debug ||
11961{
11962  tmp= ac_tmp=
11963  trap 'exit_status=$?
11964  : "${ac_tmp:=$tmp}"
11965  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11966' 0
11967  trap 'as_fn_exit 1' 1 2 13 15
11968}
11969# Create a (secure) tmp directory for tmp files.
11970
11971{
11972  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11973  test -d "$tmp"
11974}  ||
11975{
11976  tmp=./conf$$-$RANDOM
11977  (umask 077 && mkdir "$tmp")
11978} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11979ac_tmp=$tmp
11980
11981# Set up the scripts for CONFIG_FILES section.
11982# No need to generate them if there are no CONFIG_FILES.
11983# This happens for instance with `./config.status config.h'.
11984if test -n "$CONFIG_FILES"; then
11985
11986
11987ac_cr=`echo X | tr X '\015'`
11988# On cygwin, bash can eat \r inside `` if the user requested igncr.
11989# But we know of no other shell where ac_cr would be empty at this
11990# point, so we can use a bashism as a fallback.
11991if test "x$ac_cr" = x; then
11992  eval ac_cr=\$\'\\r\'
11993fi
11994ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11995if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11996  ac_cs_awk_cr='\\r'
11997else
11998  ac_cs_awk_cr=$ac_cr
11999fi
12000
12001echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12002_ACEOF
12003
12004
12005{
12006  echo "cat >conf$$subs.awk <<_ACEOF" &&
12007  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12008  echo "_ACEOF"
12009} >conf$$subs.sh ||
12010  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12011ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12012ac_delim='%!_!# '
12013for ac_last_try in false false false false false :; do
12014  . ./conf$$subs.sh ||
12015    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12016
12017  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12018  if test $ac_delim_n = $ac_delim_num; then
12019    break
12020  elif $ac_last_try; then
12021    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12022  else
12023    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12024  fi
12025done
12026rm -f conf$$subs.sh
12027
12028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12029cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12030_ACEOF
12031sed -n '
12032h
12033s/^/S["/; s/!.*/"]=/
12034p
12035g
12036s/^[^!]*!//
12037:repl
12038t repl
12039s/'"$ac_delim"'$//
12040t delim
12041:nl
12042h
12043s/\(.\{148\}\)..*/\1/
12044t more1
12045s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12046p
12047n
12048b repl
12049:more1
12050s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12051p
12052g
12053s/.\{148\}//
12054t nl
12055:delim
12056h
12057s/\(.\{148\}\)..*/\1/
12058t more2
12059s/["\\]/\\&/g; s/^/"/; s/$/"/
12060p
12061b
12062:more2
12063s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12064p
12065g
12066s/.\{148\}//
12067t delim
12068' <conf$$subs.awk | sed '
12069/^[^""]/{
12070  N
12071  s/\n//
12072}
12073' >>$CONFIG_STATUS || ac_write_fail=1
12074rm -f conf$$subs.awk
12075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12076_ACAWK
12077cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12078  for (key in S) S_is_set[key] = 1
12079  FS = ""
12080
12081}
12082{
12083  line = $ 0
12084  nfields = split(line, field, "@")
12085  substed = 0
12086  len = length(field[1])
12087  for (i = 2; i < nfields; i++) {
12088    key = field[i]
12089    keylen = length(key)
12090    if (S_is_set[key]) {
12091      value = S[key]
12092      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12093      len += length(value) + length(field[++i])
12094      substed = 1
12095    } else
12096      len += 1 + keylen
12097  }
12098
12099  print line
12100}
12101
12102_ACAWK
12103_ACEOF
12104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12105if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12106  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12107else
12108  cat
12109fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12110  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12111_ACEOF
12112
12113# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12114# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12115# trailing colons and then remove the whole line if VPATH becomes empty
12116# (actually we leave an empty line to preserve line numbers).
12117if test "x$srcdir" = x.; then
12118  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12119h
12120s///
12121s/^/:/
12122s/[	 ]*$/:/
12123s/:\$(srcdir):/:/g
12124s/:\${srcdir}:/:/g
12125s/:@srcdir@:/:/g
12126s/^:*//
12127s/:*$//
12128x
12129s/\(=[	 ]*\).*/\1/
12130G
12131s/\n//
12132s/^[^=]*=[	 ]*$//
12133}'
12134fi
12135
12136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12137fi # test -n "$CONFIG_FILES"
12138
12139# Set up the scripts for CONFIG_HEADERS section.
12140# No need to generate them if there are no CONFIG_HEADERS.
12141# This happens for instance with `./config.status Makefile'.
12142if test -n "$CONFIG_HEADERS"; then
12143cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12144BEGIN {
12145_ACEOF
12146
12147# Transform confdefs.h into an awk script `defines.awk', embedded as
12148# here-document in config.status, that substitutes the proper values into
12149# config.h.in to produce config.h.
12150
12151# Create a delimiter string that does not exist in confdefs.h, to ease
12152# handling of long lines.
12153ac_delim='%!_!# '
12154for ac_last_try in false false :; do
12155  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12156  if test -z "$ac_tt"; then
12157    break
12158  elif $ac_last_try; then
12159    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12160  else
12161    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12162  fi
12163done
12164
12165# For the awk script, D is an array of macro values keyed by name,
12166# likewise P contains macro parameters if any.  Preserve backslash
12167# newline sequences.
12168
12169ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12170sed -n '
12171s/.\{148\}/&'"$ac_delim"'/g
12172t rset
12173:rset
12174s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12175t def
12176d
12177:def
12178s/\\$//
12179t bsnl
12180s/["\\]/\\&/g
12181s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12182D["\1"]=" \3"/p
12183s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12184d
12185:bsnl
12186s/["\\]/\\&/g
12187s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12188D["\1"]=" \3\\\\\\n"\\/p
12189t cont
12190s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12191t cont
12192d
12193:cont
12194n
12195s/.\{148\}/&'"$ac_delim"'/g
12196t clear
12197:clear
12198s/\\$//
12199t bsnlc
12200s/["\\]/\\&/g; s/^/"/; s/$/"/p
12201d
12202:bsnlc
12203s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12204b cont
12205' <confdefs.h | sed '
12206s/'"$ac_delim"'/"\\\
12207"/g' >>$CONFIG_STATUS || ac_write_fail=1
12208
12209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12210  for (key in D) D_is_set[key] = 1
12211  FS = ""
12212}
12213/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12214  line = \$ 0
12215  split(line, arg, " ")
12216  if (arg[1] == "#") {
12217    defundef = arg[2]
12218    mac1 = arg[3]
12219  } else {
12220    defundef = substr(arg[1], 2)
12221    mac1 = arg[2]
12222  }
12223  split(mac1, mac2, "(") #)
12224  macro = mac2[1]
12225  prefix = substr(line, 1, index(line, defundef) - 1)
12226  if (D_is_set[macro]) {
12227    # Preserve the white space surrounding the "#".
12228    print prefix "define", macro P[macro] D[macro]
12229    next
12230  } else {
12231    # Replace #undef with comments.  This is necessary, for example,
12232    # in the case of _POSIX_SOURCE, which is predefined and required
12233    # on some systems where configure will not decide to define it.
12234    if (defundef == "undef") {
12235      print "/*", prefix defundef, macro, "*/"
12236      next
12237    }
12238  }
12239}
12240{ print }
12241_ACAWK
12242_ACEOF
12243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12245fi # test -n "$CONFIG_HEADERS"
12246
12247
12248eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12249shift
12250for ac_tag
12251do
12252  case $ac_tag in
12253  :[FHLC]) ac_mode=$ac_tag; continue;;
12254  esac
12255  case $ac_mode$ac_tag in
12256  :[FHL]*:*);;
12257  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12258  :[FH]-) ac_tag=-:-;;
12259  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12260  esac
12261  ac_save_IFS=$IFS
12262  IFS=:
12263  set x $ac_tag
12264  IFS=$ac_save_IFS
12265  shift
12266  ac_file=$1
12267  shift
12268
12269  case $ac_mode in
12270  :L) ac_source=$1;;
12271  :[FH])
12272    ac_file_inputs=
12273    for ac_f
12274    do
12275      case $ac_f in
12276      -) ac_f="$ac_tmp/stdin";;
12277      *) # Look for the file first in the build tree, then in the source tree
12278	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12279	 # because $ac_f cannot contain `:'.
12280	 test -f "$ac_f" ||
12281	   case $ac_f in
12282	   [\\/$]*) false;;
12283	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12284	   esac ||
12285	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12286      esac
12287      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12288      as_fn_append ac_file_inputs " '$ac_f'"
12289    done
12290
12291    # Let's still pretend it is `configure' which instantiates (i.e., don't
12292    # use $as_me), people would be surprised to read:
12293    #    /* config.h.  Generated by config.status.  */
12294    configure_input='Generated from '`
12295	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12296	`' by configure.'
12297    if test x"$ac_file" != x-; then
12298      configure_input="$ac_file.  $configure_input"
12299      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12300$as_echo "$as_me: creating $ac_file" >&6;}
12301    fi
12302    # Neutralize special characters interpreted by sed in replacement strings.
12303    case $configure_input in #(
12304    *\&* | *\|* | *\\* )
12305       ac_sed_conf_input=`$as_echo "$configure_input" |
12306       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12307    *) ac_sed_conf_input=$configure_input;;
12308    esac
12309
12310    case $ac_tag in
12311    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12312      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12313    esac
12314    ;;
12315  esac
12316
12317  ac_dir=`$as_dirname -- "$ac_file" ||
12318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12319	 X"$ac_file" : 'X\(//\)[^/]' \| \
12320	 X"$ac_file" : 'X\(//\)$' \| \
12321	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12322$as_echo X"$ac_file" |
12323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12324	    s//\1/
12325	    q
12326	  }
12327	  /^X\(\/\/\)[^/].*/{
12328	    s//\1/
12329	    q
12330	  }
12331	  /^X\(\/\/\)$/{
12332	    s//\1/
12333	    q
12334	  }
12335	  /^X\(\/\).*/{
12336	    s//\1/
12337	    q
12338	  }
12339	  s/.*/./; q'`
12340  as_dir="$ac_dir"; as_fn_mkdir_p
12341  ac_builddir=.
12342
12343case "$ac_dir" in
12344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12345*)
12346  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12347  # A ".." for each directory in $ac_dir_suffix.
12348  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12349  case $ac_top_builddir_sub in
12350  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12351  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12352  esac ;;
12353esac
12354ac_abs_top_builddir=$ac_pwd
12355ac_abs_builddir=$ac_pwd$ac_dir_suffix
12356# for backward compatibility:
12357ac_top_builddir=$ac_top_build_prefix
12358
12359case $srcdir in
12360  .)  # We are building in place.
12361    ac_srcdir=.
12362    ac_top_srcdir=$ac_top_builddir_sub
12363    ac_abs_top_srcdir=$ac_pwd ;;
12364  [\\/]* | ?:[\\/]* )  # Absolute name.
12365    ac_srcdir=$srcdir$ac_dir_suffix;
12366    ac_top_srcdir=$srcdir
12367    ac_abs_top_srcdir=$srcdir ;;
12368  *) # Relative name.
12369    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12370    ac_top_srcdir=$ac_top_build_prefix$srcdir
12371    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12372esac
12373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12374
12375
12376  case $ac_mode in
12377  :F)
12378  #
12379  # CONFIG_FILE
12380  #
12381
12382  case $INSTALL in
12383  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12384  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12385  esac
12386  ac_MKDIR_P=$MKDIR_P
12387  case $MKDIR_P in
12388  [\\/$]* | ?:[\\/]* ) ;;
12389  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12390  esac
12391_ACEOF
12392
12393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394# If the template does not know about datarootdir, expand it.
12395# FIXME: This hack should be removed a few years after 2.60.
12396ac_datarootdir_hack=; ac_datarootdir_seen=
12397ac_sed_dataroot='
12398/datarootdir/ {
12399  p
12400  q
12401}
12402/@datadir@/p
12403/@docdir@/p
12404/@infodir@/p
12405/@localedir@/p
12406/@mandir@/p'
12407case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12408*datarootdir*) ac_datarootdir_seen=yes;;
12409*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12410  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12411$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12412_ACEOF
12413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12414  ac_datarootdir_hack='
12415  s&@datadir@&$datadir&g
12416  s&@docdir@&$docdir&g
12417  s&@infodir@&$infodir&g
12418  s&@localedir@&$localedir&g
12419  s&@mandir@&$mandir&g
12420  s&\\\${datarootdir}&$datarootdir&g' ;;
12421esac
12422_ACEOF
12423
12424# Neutralize VPATH when `$srcdir' = `.'.
12425# Shell code in configure.ac might set extrasub.
12426# FIXME: do we really want to maintain this feature?
12427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12428ac_sed_extra="$ac_vpsub
12429$extrasub
12430_ACEOF
12431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12432:t
12433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12434s|@configure_input@|$ac_sed_conf_input|;t t
12435s&@top_builddir@&$ac_top_builddir_sub&;t t
12436s&@top_build_prefix@&$ac_top_build_prefix&;t t
12437s&@srcdir@&$ac_srcdir&;t t
12438s&@abs_srcdir@&$ac_abs_srcdir&;t t
12439s&@top_srcdir@&$ac_top_srcdir&;t t
12440s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12441s&@builddir@&$ac_builddir&;t t
12442s&@abs_builddir@&$ac_abs_builddir&;t t
12443s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12444s&@INSTALL@&$ac_INSTALL&;t t
12445s&@MKDIR_P@&$ac_MKDIR_P&;t t
12446$ac_datarootdir_hack
12447"
12448eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12449  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12450
12451test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12452  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12453  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12454      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12456which seems to be undefined.  Please make sure it is defined" >&5
12457$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12458which seems to be undefined.  Please make sure it is defined" >&2;}
12459
12460  rm -f "$ac_tmp/stdin"
12461  case $ac_file in
12462  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12463  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12464  esac \
12465  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12466 ;;
12467  :H)
12468  #
12469  # CONFIG_HEADER
12470  #
12471  if test x"$ac_file" != x-; then
12472    {
12473      $as_echo "/* $configure_input  */" \
12474      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12475    } >"$ac_tmp/config.h" \
12476      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12477    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12478      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12479$as_echo "$as_me: $ac_file is unchanged" >&6;}
12480    else
12481      rm -f "$ac_file"
12482      mv "$ac_tmp/config.h" "$ac_file" \
12483	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12484    fi
12485  else
12486    $as_echo "/* $configure_input  */" \
12487      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12488      || as_fn_error $? "could not create -" "$LINENO" 5
12489  fi
12490# Compute "$ac_file"'s index in $config_headers.
12491_am_arg="$ac_file"
12492_am_stamp_count=1
12493for _am_header in $config_headers :; do
12494  case $_am_header in
12495    $_am_arg | $_am_arg:* )
12496      break ;;
12497    * )
12498      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12499  esac
12500done
12501echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12502$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12503	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12504	 X"$_am_arg" : 'X\(//\)$' \| \
12505	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12506$as_echo X"$_am_arg" |
12507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12508	    s//\1/
12509	    q
12510	  }
12511	  /^X\(\/\/\)[^/].*/{
12512	    s//\1/
12513	    q
12514	  }
12515	  /^X\(\/\/\)$/{
12516	    s//\1/
12517	    q
12518	  }
12519	  /^X\(\/\).*/{
12520	    s//\1/
12521	    q
12522	  }
12523	  s/.*/./; q'`/stamp-h$_am_stamp_count
12524 ;;
12525
12526  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12527$as_echo "$as_me: executing $ac_file commands" >&6;}
12528 ;;
12529  esac
12530
12531
12532  case $ac_file$ac_mode in
12533    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12534  # Older Autoconf quotes --file arguments for eval, but not when files
12535  # are listed without --file.  Let's play safe and only enable the eval
12536  # if we detect the quoting.
12537  case $CONFIG_FILES in
12538  *\'*) eval set x "$CONFIG_FILES" ;;
12539  *)   set x $CONFIG_FILES ;;
12540  esac
12541  shift
12542  for mf
12543  do
12544    # Strip MF so we end up with the name of the file.
12545    mf=`echo "$mf" | sed -e 's/:.*$//'`
12546    # Check whether this is an Automake generated Makefile or not.
12547    # We used to match only the files named 'Makefile.in', but
12548    # some people rename them; so instead we look at the file content.
12549    # Grep'ing the first line is not enough: some people post-process
12550    # each Makefile.in and add a new line on top of each file to say so.
12551    # Grep'ing the whole file is not good either: AIX grep has a line
12552    # limit of 2048, but all sed's we know have understand at least 4000.
12553    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12554      dirpart=`$as_dirname -- "$mf" ||
12555$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12556	 X"$mf" : 'X\(//\)[^/]' \| \
12557	 X"$mf" : 'X\(//\)$' \| \
12558	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12559$as_echo X"$mf" |
12560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12561	    s//\1/
12562	    q
12563	  }
12564	  /^X\(\/\/\)[^/].*/{
12565	    s//\1/
12566	    q
12567	  }
12568	  /^X\(\/\/\)$/{
12569	    s//\1/
12570	    q
12571	  }
12572	  /^X\(\/\).*/{
12573	    s//\1/
12574	    q
12575	  }
12576	  s/.*/./; q'`
12577    else
12578      continue
12579    fi
12580    # Extract the definition of DEPDIR, am__include, and am__quote
12581    # from the Makefile without running 'make'.
12582    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12583    test -z "$DEPDIR" && continue
12584    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12585    test -z "$am__include" && continue
12586    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12587    # Find all dependency output files, they are included files with
12588    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12589    # simplest approach to changing $(DEPDIR) to its actual value in the
12590    # expansion.
12591    for file in `sed -n "
12592      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12593	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12594      # Make sure the directory exists.
12595      test -f "$dirpart/$file" && continue
12596      fdir=`$as_dirname -- "$file" ||
12597$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12598	 X"$file" : 'X\(//\)[^/]' \| \
12599	 X"$file" : 'X\(//\)$' \| \
12600	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12601$as_echo X"$file" |
12602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12603	    s//\1/
12604	    q
12605	  }
12606	  /^X\(\/\/\)[^/].*/{
12607	    s//\1/
12608	    q
12609	  }
12610	  /^X\(\/\/\)$/{
12611	    s//\1/
12612	    q
12613	  }
12614	  /^X\(\/\).*/{
12615	    s//\1/
12616	    q
12617	  }
12618	  s/.*/./; q'`
12619      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12620      # echo "creating $dirpart/$file"
12621      echo '# dummy' > "$dirpart/$file"
12622    done
12623  done
12624}
12625 ;;
12626
12627  esac
12628done # for ac_tag
12629
12630
12631as_fn_exit 0
12632_ACEOF
12633ac_clean_files=$ac_clean_files_save
12634
12635test $ac_write_fail = 0 ||
12636  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12637
12638
12639# configure is writing to config.log, and then calls config.status.
12640# config.status does its own redirection, appending to config.log.
12641# Unfortunately, on DOS this fails, as config.log is still kept open
12642# by configure, so config.status won't be able to write to it; its
12643# output is simply discarded.  So we exec the FD to /dev/null,
12644# effectively closing config.log, so it can be properly (re)opened and
12645# appended to by config.status.  When coming back to configure, we
12646# need to make the FD available again.
12647if test "$no_create" != yes; then
12648  ac_cs_success=:
12649  ac_config_status_args=
12650  test "$silent" = yes &&
12651    ac_config_status_args="$ac_config_status_args --quiet"
12652  exec 5>/dev/null
12653  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12654  exec 5>>config.log
12655  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12656  # would make configure fail if this is the last instruction.
12657  $ac_cs_success || as_fn_exit 1
12658fi
12659if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12660  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12661$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12662fi
12663
12664