]> git.ipfire.org Git - thirdparty/gcc.git/blame - fixincludes/configure
Made fixincludes a toplevel build module.
[thirdparty/gcc.git] / fixincludes / configure
CommitLineData
71b5d516
PB
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for fixincludes .
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='fixincludes'
269PACKAGE_TARNAME='fixincludes'
270PACKAGE_VERSION=' '
271PACKAGE_STRING='fixincludes '
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="inclhack.def"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures fixincludes to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842 case $ac_init_help in
843 short | recursive ) echo "Configuration of fixincludes :";;
844 esac
845 cat <<\_ACEOF
846
847Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-maintainer-mode enable make rules and dependencies not useful
851 (and sometimes confusing) to the casual installer
852
853Some influential environment variables:
854 CC C compiler command
855 CFLAGS C compiler flags
856 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
857 nonstandard directory <lib dir>
858 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
859 headers in a nonstandard directory <include dir>
860 CPP C preprocessor
861
862Use these variables to override the choices made by `configure' or to help
863it to find libraries and programs with nonstandard names/locations.
864
865_ACEOF
866fi
867
868if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
874
875if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879else
880 ac_dir_suffix= ac_top_builddir=
881fi
882
883case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897esac
898
899# Do not use `cd foo && pwd` to compute absolute paths, because
900# the directories may not exist.
901case `pwd` in
902.) ac_abs_builddir="$ac_dir";;
903*)
904 case "$ac_dir" in
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 esac;;
909esac
910case $ac_abs_builddir in
911.) ac_abs_top_builddir=${ac_top_builddir}.;;
912*)
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_srcdir=$ac_srcdir;;
921*)
922 case $ac_srcdir in
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_top_srcdir=$ac_top_srcdir;;
930*)
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935 esac;;
936esac
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd "$ac_popdir"
954 done
955fi
956
957test -n "$ac_init_help" && exit 0
958if $ac_init_version; then
959 cat <<\_ACEOF
960fixincludes configure
961generated by GNU Autoconf 2.59
962
963Copyright (C) 2003 Free Software Foundation, Inc.
964This configure script is free software; the Free Software Foundation
965gives unlimited permission to copy, distribute and modify it.
966_ACEOF
967 exit 0
968fi
969exec 5>config.log
970cat >&5 <<_ACEOF
971This file contains any messages produced by compilers while
972running configure, to aid debugging if configure makes a mistake.
973
974It was created by fixincludes $as_me , which was
975generated by GNU Autoconf 2.59. Invocation command line was
976
977 $ $0 $@
978
979_ACEOF
980{
981cat <<_ASUNAME
982## --------- ##
983## Platform. ##
984## --------- ##
985
986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987uname -m = `(uname -m) 2>/dev/null || echo unknown`
988uname -r = `(uname -r) 2>/dev/null || echo unknown`
989uname -s = `(uname -s) 2>/dev/null || echo unknown`
990uname -v = `(uname -v) 2>/dev/null || echo unknown`
991
992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
994
995/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
996/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
999/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1000/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1001/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002
1003_ASUNAME
1004
1005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006for as_dir in $PATH
1007do
1008 IFS=$as_save_IFS
1009 test -z "$as_dir" && as_dir=.
1010 echo "PATH: $as_dir"
1011done
1012
1013} >&5
1014
1015cat >&5 <<_ACEOF
1016
1017
1018## ----------- ##
1019## Core tests. ##
1020## ----------- ##
1021
1022_ACEOF
1023
1024
1025# Keep a trace of the command line.
1026# Strip out --no-create and --no-recursion so they do not pile up.
1027# Strip out --silent because we don't want to record it for future runs.
1028# Also quote any args containing shell meta-characters.
1029# Make two passes to allow for proper duplicate-argument suppression.
1030ac_configure_args=
1031ac_configure_args0=
1032ac_configure_args1=
1033ac_sep=
1034ac_must_keep_next=false
1035for ac_pass in 1 2
1036do
1037 for ac_arg
1038 do
1039 case $ac_arg in
1040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 continue ;;
1044 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1045 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 esac
1047 case $ac_pass in
1048 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 2)
1050 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1051 if test $ac_must_keep_next = true; then
1052 ac_must_keep_next=false # Got value, back to normal.
1053 else
1054 case $ac_arg in
1055 *=* | --config-cache | -C | -disable-* | --disable-* \
1056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1058 | -with-* | --with-* | -without-* | --without-* | --x)
1059 case "$ac_configure_args0 " in
1060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 esac
1062 ;;
1063 -* ) ac_must_keep_next=true ;;
1064 esac
1065 fi
1066 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1067 # Get rid of the leading space.
1068 ac_sep=" "
1069 ;;
1070 esac
1071 done
1072done
1073$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1074$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075
1076# When interrupted or exit'd, cleanup temporary files, and complete
1077# config.log. We remove comments because anyway the quotes in there
1078# would cause problems or look ugly.
1079# WARNING: Be sure not to use single quotes in there, as some shells,
1080# such as our DU 5.0 friend, will then `close' the trap.
1081trap 'exit_status=$?
1082 # Save into config.log some information that might help in debugging.
1083 {
1084 echo
1085
1086 cat <<\_ASBOX
1087## ---------------- ##
1088## Cache variables. ##
1089## ---------------- ##
1090_ASBOX
1091 echo
1092 # The following way of writing the cache mishandles newlines in values,
1093{
1094 (set) 2>&1 |
1095 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 *ac_space=\ *)
1097 sed -n \
1098 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 ;;
1101 *)
1102 sed -n \
1103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104 ;;
1105 esac;
1106}
1107 echo
1108
1109 cat <<\_ASBOX
1110## ----------------- ##
1111## Output variables. ##
1112## ----------------- ##
1113_ASBOX
1114 echo
1115 for ac_var in $ac_subst_vars
1116 do
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1121
1122 if test -n "$ac_subst_files"; then
1123 cat <<\_ASBOX
1124## ------------- ##
1125## Output files. ##
1126## ------------- ##
1127_ASBOX
1128 echo
1129 for ac_var in $ac_subst_files
1130 do
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1135 fi
1136
1137 if test -s confdefs.h; then
1138 cat <<\_ASBOX
1139## ----------- ##
1140## confdefs.h. ##
1141## ----------- ##
1142_ASBOX
1143 echo
1144 sed "/^$/d" confdefs.h | sort
1145 echo
1146 fi
1147 test "$ac_signal" != 0 &&
1148 echo "$as_me: caught signal $ac_signal"
1149 echo "$as_me: exit $exit_status"
1150 } >&5
1151 rm -f core *.core &&
1152 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 exit $exit_status
1154 ' 0
1155for ac_signal in 1 2 13 15; do
1156 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157done
1158ac_signal=0
1159
1160# confdefs.h avoids OS command line length limits that DEFS can exceed.
1161rm -rf conftest* confdefs.h
1162# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163echo >confdefs.h
1164
1165# Predefined preprocessor variables.
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_NAME "$PACKAGE_NAME"
1169_ACEOF
1170
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_VERSION "$PACKAGE_VERSION"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_STRING "$PACKAGE_STRING"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189_ACEOF
1190
1191
1192# Let the site file select an alternate cache file if it wants to.
1193# Prefer explicitly selected file to automatically selected ones.
1194if test -z "$CONFIG_SITE"; then
1195 if test "x$prefix" != xNONE; then
1196 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 else
1198 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 fi
1200fi
1201for ac_site_file in $CONFIG_SITE; do
1202 if test -r "$ac_site_file"; then
1203 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1204echo "$as_me: loading site script $ac_site_file" >&6;}
1205 sed 's/^/| /' "$ac_site_file" >&5
1206 . "$ac_site_file"
1207 fi
1208done
1209
1210if test -r "$cache_file"; then
1211 # Some versions of bash will fail to source /dev/null (special
1212 # files actually), so we avoid doing that.
1213 if test -f "$cache_file"; then
1214 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1215echo "$as_me: loading cache $cache_file" >&6;}
1216 case $cache_file in
1217 [\\/]* | ?:[\\/]* ) . $cache_file;;
1218 *) . ./$cache_file;;
1219 esac
1220 fi
1221else
1222 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1223echo "$as_me: creating cache $cache_file" >&6;}
1224 >$cache_file
1225fi
1226
1227# Check that the precious variables saved in the cache have kept the same
1228# value.
1229ac_cache_corrupted=false
1230for ac_var in `(set) 2>&1 |
1231 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1233 eval ac_new_set=\$ac_env_${ac_var}_set
1234 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1235 eval ac_new_val="\$ac_env_${ac_var}_value"
1236 case $ac_old_set,$ac_new_set in
1237 set,)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1239echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,set)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1243echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,);;
1246 *)
1247 if test "x$ac_old_val" != "x$ac_new_val"; then
1248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1249echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1251echo "$as_me: former value: $ac_old_val" >&2;}
1252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1253echo "$as_me: current value: $ac_new_val" >&2;}
1254 ac_cache_corrupted=:
1255 fi;;
1256 esac
1257 # Pass precious variables to config.status.
1258 if test "$ac_new_set" = set; then
1259 case $ac_new_val in
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 *) ac_arg=$ac_var=$ac_new_val ;;
1263 esac
1264 case " $ac_configure_args " in
1265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1266 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 esac
1268 fi
1269done
1270if $ac_cache_corrupted; then
1271 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1272echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1273 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1274echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1275 { (exit 1); exit 1; }; }
1276fi
1277
1278ac_ext=c
1279ac_cpp='$CPP $CPPFLAGS'
1280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311ac_aux_dir=
1312for ac_dir in .. $srcdir/..; do
1313 if test -f $ac_dir/install-sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install-sh -c"
1316 break
1317 elif test -f $ac_dir/install.sh; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/install.sh -c"
1320 break
1321 elif test -f $ac_dir/shtool; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/shtool install -c"
1324 break
1325 fi
1326done
1327if test -z "$ac_aux_dir"; then
1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1329echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1330 { (exit 1); exit 1; }; }
1331fi
1332ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1333ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1334ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335
1336# Make sure we can run config.sub.
1337$ac_config_sub sun4 >/dev/null 2>&1 ||
1338 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1339echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1340 { (exit 1); exit 1; }; }
1341
1342echo "$as_me:$LINENO: checking build system type" >&5
1343echo $ECHO_N "checking build system type... $ECHO_C" >&6
1344if test "${ac_cv_build+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1346else
1347 ac_cv_build_alias=$build_alias
1348test -z "$ac_cv_build_alias" &&
1349 ac_cv_build_alias=`$ac_config_guess`
1350test -z "$ac_cv_build_alias" &&
1351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1352echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1353 { (exit 1); exit 1; }; }
1354ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1356echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1358
1359fi
1360echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1361echo "${ECHO_T}$ac_cv_build" >&6
1362build=$ac_cv_build
1363build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366
1367
1368echo "$as_me:$LINENO: checking host system type" >&5
1369echo $ECHO_N "checking host system type... $ECHO_C" >&6
1370if test "${ac_cv_host+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
1373 ac_cv_host_alias=$host_alias
1374test -z "$ac_cv_host_alias" &&
1375 ac_cv_host_alias=$ac_cv_build_alias
1376ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1378echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1380
1381fi
1382echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1383echo "${ECHO_T}$ac_cv_host" >&6
1384host=$ac_cv_host
1385host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
1389
1390echo "$as_me:$LINENO: checking target system type" >&5
1391echo $ECHO_N "checking target system type... $ECHO_C" >&6
1392if test "${ac_cv_target+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1394else
1395 ac_cv_target_alias=$target_alias
1396test "x$ac_cv_target_alias" = "x" &&
1397 ac_cv_target_alias=$ac_cv_host_alias
1398ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1399 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1400echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1401 { (exit 1); exit 1; }; }
1402
1403fi
1404echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1405echo "${ECHO_T}$ac_cv_target" >&6
1406target=$ac_cv_target
1407target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410
1411
1412# The aliases save the names the user supplied, while $host etc.
1413# will get canonicalized.
1414test -n "$target_alias" &&
1415 test "$program_prefix$program_suffix$program_transform_name" = \
1416 NONENONEs,x,x, &&
1417 program_prefix=${target_alias}-
1418ac_ext=c
1419ac_cpp='$CPP $CPPFLAGS'
1420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422ac_compiler_gnu=$ac_cv_c_compiler_gnu
1423if test -n "$ac_tool_prefix"; then
1424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1425set dummy ${ac_tool_prefix}gcc; ac_word=$2
1426echo "$as_me:$LINENO: checking for $ac_word" >&5
1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428if test "${ac_cv_prog_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431 if test -n "$CC"; then
1432 ac_cv_prog_CC="$CC" # Let the user override the test.
1433else
1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 break 2
1444 fi
1445done
1446done
1447
1448fi
1449fi
1450CC=$ac_cv_prog_CC
1451if test -n "$CC"; then
1452 echo "$as_me:$LINENO: result: $CC" >&5
1453echo "${ECHO_T}$CC" >&6
1454else
1455 echo "$as_me:$LINENO: result: no" >&5
1456echo "${ECHO_T}no" >&6
1457fi
1458
1459fi
1460if test -z "$ac_cv_prog_CC"; then
1461 ac_ct_CC=$CC
1462 # Extract the first word of "gcc", so it can be a program name with args.
1463set dummy gcc; ac_word=$2
1464echo "$as_me:$LINENO: checking for $ac_word" >&5
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469 if test -n "$ac_ct_CC"; then
1470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1471else
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_ac_ct_CC="gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
1484done
1485
1486fi
1487fi
1488ac_ct_CC=$ac_cv_prog_ac_ct_CC
1489if test -n "$ac_ct_CC"; then
1490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1491echo "${ECHO_T}$ac_ct_CC" >&6
1492else
1493 echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497 CC=$ac_ct_CC
1498else
1499 CC="$ac_cv_prog_CC"
1500fi
1501
1502if test -z "$CC"; then
1503 if test -n "$ac_tool_prefix"; then
1504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1505set dummy ${ac_tool_prefix}cc; ac_word=$2
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508if test "${ac_cv_prog_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_CC="${ac_tool_prefix}cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525done
1526done
1527
1528fi
1529fi
1530CC=$ac_cv_prog_CC
1531if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533echo "${ECHO_T}$CC" >&6
1534else
1535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
1537fi
1538
1539fi
1540if test -z "$ac_cv_prog_CC"; then
1541 ac_ct_CC=$CC
1542 # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
1544echo "$as_me:$LINENO: checking for $ac_word" >&5
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551else
1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC="cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563done
1564done
1565
1566fi
1567fi
1568ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571echo "${ECHO_T}$ac_ct_CC" >&6
1572else
1573 echo "$as_me:$LINENO: result: no" >&5
1574echo "${ECHO_T}no" >&6
1575fi
1576
1577 CC=$ac_ct_CC
1578else
1579 CC="$ac_cv_prog_CC"
1580fi
1581
1582fi
1583if test -z "$CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585set dummy cc; ac_word=$2
1586echo "$as_me:$LINENO: checking for $ac_word" >&5
1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593else
1594 ac_prog_rejected=no
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1603 ac_prog_rejected=yes
1604 continue
1605 fi
1606 ac_cv_prog_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
1613if test $ac_prog_rejected = yes; then
1614 # We found a bogon in the path, so make sure we never use it.
1615 set dummy $ac_cv_prog_CC
1616 shift
1617 if test $# != 0; then
1618 # We chose a different compiler from the bogus one.
1619 # However, it has the same basename, so the bogon will be chosen
1620 # first if we set CC to just the basename; use the full file name.
1621 shift
1622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1623 fi
1624fi
1625fi
1626fi
1627CC=$ac_cv_prog_CC
1628if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
1631else
1632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
1636fi
1637if test -z "$CC"; then
1638 if test -n "$ac_tool_prefix"; then
1639 for ac_prog in cl
1640 do
1641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662done
1663done
1664
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676 test -n "$CC" && break
1677 done
1678fi
1679if test -z "$CC"; then
1680 ac_ct_CC=$CC
1681 for ac_prog in cl
1682do
1683 # Extract the first word of "$ac_prog", so it can be a program name with args.
1684set dummy $ac_prog; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690 if test -n "$ac_ct_CC"; then
1691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_ac_ct_CC="$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704done
1705done
1706
1707fi
1708fi
1709ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710if test -n "$ac_ct_CC"; then
1711 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1712echo "${ECHO_T}$ac_ct_CC" >&6
1713else
1714 echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
1716fi
1717
1718 test -n "$ac_ct_CC" && break
1719done
1720
1721 CC=$ac_ct_CC
1722fi
1723
1724fi
1725
1726
1727test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1728See \`config.log' for more details." >&5
1729echo "$as_me: error: no acceptable C compiler found in \$PATH
1730See \`config.log' for more details." >&2;}
1731 { (exit 1); exit 1; }; }
1732
1733# Provide some information about the compiler.
1734echo "$as_me:$LINENO:" \
1735 "checking for C compiler version" >&5
1736ac_compiler=`set X $ac_compile; echo $2`
1737{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1738 (eval $ac_compiler --version </dev/null >&5) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }
1742{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1743 (eval $ac_compiler -v </dev/null >&5) 2>&5
1744 ac_status=$?
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1748 (eval $ac_compiler -V </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752
1753cat >conftest.$ac_ext <<_ACEOF
1754/* confdefs.h. */
1755_ACEOF
1756cat confdefs.h >>conftest.$ac_ext
1757cat >>conftest.$ac_ext <<_ACEOF
1758/* end confdefs.h. */
1759
1760int
1761main ()
1762{
1763
1764 ;
1765 return 0;
1766}
1767_ACEOF
1768ac_clean_files_save=$ac_clean_files
1769ac_clean_files="$ac_clean_files a.out a.exe b.out"
1770# Try to create an executable without -o first, disregard a.out.
1771# It will help us diagnose broken compilers, and finding out an intuition
1772# of exeext.
1773echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1774echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1775ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1776if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1777 (eval $ac_link_default) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }; then
1781 # Find the output, starting from the most likely. This scheme is
1782# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783# resort.
1784
1785# Be careful to initialize this variable, since it used to be cached.
1786# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1787ac_cv_exeext=
1788# b.out is created by i960 compilers.
1789for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1790do
1791 test -f "$ac_file" || continue
1792 case $ac_file in
1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794 ;;
1795 conftest.$ac_ext )
1796 # This is the source file.
1797 ;;
1798 [ab].out )
1799 # We found the default executable, but exeext='' is most
1800 # certainly right.
1801 break;;
1802 *.* )
1803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804 # FIXME: I believe we export ac_cv_exeext for Libtool,
1805 # but it would be cool to find out if it's true. Does anybody
1806 # maintain Libtool? --akim.
1807 export ac_cv_exeext
1808 break;;
1809 * )
1810 break;;
1811 esac
1812done
1813else
1814 echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818See \`config.log' for more details." >&5
1819echo "$as_me: error: C compiler cannot create executables
1820See \`config.log' for more details." >&2;}
1821 { (exit 77); exit 77; }; }
1822fi
1823
1824ac_exeext=$ac_cv_exeext
1825echo "$as_me:$LINENO: result: $ac_file" >&5
1826echo "${ECHO_T}$ac_file" >&6
1827
1828# Check the compiler produces executables we can run. If not, either
1829# the compiler is broken, or we cross compile.
1830echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833# If not cross compiling, check that we can run a simple program.
1834if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 cross_compiling=no
1842 else
1843 if test "$cross_compiling" = maybe; then
1844 cross_compiling=yes
1845 else
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847If you meant to cross compile, use \`--host'.
1848See \`config.log' for more details." >&5
1849echo "$as_me: error: cannot run C compiled programs.
1850If you meant to cross compile, use \`--host'.
1851See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1853 fi
1854 fi
1855fi
1856echo "$as_me:$LINENO: result: yes" >&5
1857echo "${ECHO_T}yes" >&6
1858
1859rm -f a.out a.exe conftest$ac_cv_exeext b.out
1860ac_clean_files=$ac_clean_files_save
1861# Check the compiler produces executables we can run. If not, either
1862# the compiler is broken, or we cross compile.
1863echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866echo "${ECHO_T}$cross_compiling" >&6
1867
1868echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1871 (eval $ac_link) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1877# work properly (i.e., refer to `conftest.exe'), while it won't with
1878# `rm'.
1879for ac_file in conftest.exe conftest conftest.*; do
1880 test -f "$ac_file" || continue
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1884 export ac_cv_exeext
1885 break;;
1886 * ) break;;
1887 esac
1888done
1889else
1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1891See \`config.log' for more details." >&5
1892echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1893See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1895fi
1896
1897rm -f conftest$ac_cv_exeext
1898echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1899echo "${ECHO_T}$ac_cv_exeext" >&6
1900
1901rm -f conftest.$ac_ext
1902EXEEXT=$ac_cv_exeext
1903ac_exeext=$EXEEXT
1904echo "$as_me:$LINENO: checking for suffix of object files" >&5
1905echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1906if test "${ac_cv_objext+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909 cat >conftest.$ac_ext <<_ACEOF
1910/* confdefs.h. */
1911_ACEOF
1912cat confdefs.h >>conftest.$ac_ext
1913cat >>conftest.$ac_ext <<_ACEOF
1914/* end confdefs.h. */
1915
1916int
1917main ()
1918{
1919
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924rm -f conftest.o conftest.obj
1925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1931 case $ac_file in
1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1934 break;;
1935 esac
1936done
1937else
1938 echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1942See \`config.log' for more details." >&5
1943echo "$as_me: error: cannot compute suffix of object files: cannot compile
1944See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1946fi
1947
1948rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949fi
1950echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1951echo "${ECHO_T}$ac_cv_objext" >&6
1952OBJEXT=$ac_cv_objext
1953ac_objext=$OBJEXT
1954echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1955echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1956if test "${ac_cv_c_compiler_gnu+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 cat >conftest.$ac_ext <<_ACEOF
1960/* confdefs.h. */
1961_ACEOF
1962cat confdefs.h >>conftest.$ac_ext
1963cat >>conftest.$ac_ext <<_ACEOF
1964/* end confdefs.h. */
1965
1966int
1967main ()
1968{
1969#ifndef __GNUC__
1970 choke me
1971#endif
1972
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977rm -f conftest.$ac_objext
1978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>conftest.er1
1980 ac_status=$?
1981 grep -v '^ *+' conftest.er1 >conftest.err
1982 rm -f conftest.er1
1983 cat conftest.err >&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 (eval $ac_try) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 ac_compiler_gnu=yes
1999else
2000 echo "$as_me: failed program was:" >&5
2001sed 's/^/| /' conftest.$ac_ext >&5
2002
2003ac_compiler_gnu=no
2004fi
2005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2006ac_cv_c_compiler_gnu=$ac_compiler_gnu
2007
2008fi
2009echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2010echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2011GCC=`test $ac_compiler_gnu = yes && echo yes`
2012ac_test_CFLAGS=${CFLAGS+set}
2013ac_save_CFLAGS=$CFLAGS
2014CFLAGS="-g"
2015echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2016echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2017if test "${ac_cv_prog_cc_g+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020 cat >conftest.$ac_ext <<_ACEOF
2021/* confdefs.h. */
2022_ACEOF
2023cat confdefs.h >>conftest.$ac_ext
2024cat >>conftest.$ac_ext <<_ACEOF
2025/* end confdefs.h. */
2026
2027int
2028main ()
2029{
2030
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035rm -f conftest.$ac_objext
2036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>conftest.er1
2038 ac_status=$?
2039 grep -v '^ *+' conftest.er1 >conftest.err
2040 rm -f conftest.er1
2041 cat conftest.err >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 (eval $ac_try) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 (eval $ac_try) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2056 ac_cv_prog_cc_g=yes
2057else
2058 echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061ac_cv_prog_cc_g=no
2062fi
2063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2066echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2067if test "$ac_test_CFLAGS" = set; then
2068 CFLAGS=$ac_save_CFLAGS
2069elif test $ac_cv_prog_cc_g = yes; then
2070 if test "$GCC" = yes; then
2071 CFLAGS="-g -O2"
2072 else
2073 CFLAGS="-g"
2074 fi
2075else
2076 if test "$GCC" = yes; then
2077 CFLAGS="-O2"
2078 else
2079 CFLAGS=
2080 fi
2081fi
2082echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2083echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2084if test "${ac_cv_prog_cc_stdc+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087 ac_cv_prog_cc_stdc=no
2088ac_save_CC=$CC
2089cat >conftest.$ac_ext <<_ACEOF
2090/* confdefs.h. */
2091_ACEOF
2092cat confdefs.h >>conftest.$ac_ext
2093cat >>conftest.$ac_ext <<_ACEOF
2094/* end confdefs.h. */
2095#include <stdarg.h>
2096#include <stdio.h>
2097#include <sys/types.h>
2098#include <sys/stat.h>
2099/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2100struct buf { int x; };
2101FILE * (*rcsopen) (struct buf *, struct stat *, int);
2102static char *e (p, i)
2103 char **p;
2104 int i;
2105{
2106 return p[i];
2107}
2108static char *f (char * (*g) (char **, int), char **p, ...)
2109{
2110 char *s;
2111 va_list v;
2112 va_start (v,p);
2113 s = g (p, va_arg (v,int));
2114 va_end (v);
2115 return s;
2116}
2117
2118/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2119 function prototypes and stuff, but not '\xHH' hex character constants.
2120 These don't provoke an error unfortunately, instead are silently treated
2121 as 'x'. The following induces an error, until -std1 is added to get
2122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2123 array size at least. It's necessary to write '\x00'==0 to get something
2124 that's true only with -std1. */
2125int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2126
2127int test (int i, double x);
2128struct s1 {int (*f) (int a);};
2129struct s2 {int (*f) (double a);};
2130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2131int argc;
2132char **argv;
2133int
2134main ()
2135{
2136return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141# Don't try gcc -ansi; that turns off useful extensions and
2142# breaks some systems' header files.
2143# AIX -qlanglvl=ansi
2144# Ultrix and OSF/1 -std1
2145# HP-UX 10.20 and later -Ae
2146# HP-UX older versions -Aa -D_HPUX_SOURCE
2147# SVR4 -Xc -D__EXTENSIONS__
2148for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2149do
2150 CC="$ac_save_CC $ac_arg"
2151 rm -f conftest.$ac_objext
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2154 ac_status=$?
2155 grep -v '^ *+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 ac_cv_prog_cc_stdc=$ac_arg
2173break
2174else
2175 echo "$as_me: failed program was:" >&5
2176sed 's/^/| /' conftest.$ac_ext >&5
2177
2178fi
2179rm -f conftest.err conftest.$ac_objext
2180done
2181rm -f conftest.$ac_ext conftest.$ac_objext
2182CC=$ac_save_CC
2183
2184fi
2185
2186case "x$ac_cv_prog_cc_stdc" in
2187 x|xno)
2188 echo "$as_me:$LINENO: result: none needed" >&5
2189echo "${ECHO_T}none needed" >&6 ;;
2190 *)
2191 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2192echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2193 CC="$CC $ac_cv_prog_cc_stdc" ;;
2194esac
2195
2196# Some people use a C++ compiler to compile C. Since we use `exit',
2197# in C++ we need to declare it. In case someone uses the same compiler
2198# for both compiling C and C++ we need to have the C++ compiler decide
2199# the declaration of exit, since it's the most demanding environment.
2200cat >conftest.$ac_ext <<_ACEOF
2201#ifndef __cplusplus
2202 choke me
2203#endif
2204_ACEOF
2205rm -f conftest.$ac_objext
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 for ac_declaration in \
2227 '' \
2228 'extern "C" void std::exit (int) throw (); using std::exit;' \
2229 'extern "C" void std::exit (int); using std::exit;' \
2230 'extern "C" void exit (int) throw ();' \
2231 'extern "C" void exit (int);' \
2232 'void exit (int);'
2233do
2234 cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h. */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h. */
2240$ac_declaration
2241#include <stdlib.h>
2242int
2243main ()
2244{
2245exit (42);
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 :
2272else
2273 echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276continue
2277fi
2278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 cat >conftest.$ac_ext <<_ACEOF
2280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
2285$ac_declaration
2286int
2287main ()
2288{
2289exit (42);
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2297 ac_status=$?
2298 grep -v '^ *+' conftest.er1 >conftest.err
2299 rm -f conftest.er1
2300 cat conftest.err >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; } &&
2309 { ac_try='test -s conftest.$ac_objext'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 (eval $ac_try) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; }; then
2315 break
2316else
2317 echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320fi
2321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322done
2323rm -f conftest*
2324if test -n "$ac_declaration"; then
2325 echo '#ifdef __cplusplus' >>confdefs.h
2326 echo $ac_declaration >>confdefs.h
2327 echo '#endif' >>confdefs.h
2328fi
2329
2330else
2331 echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334fi
2335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336ac_ext=c
2337ac_cpp='$CPP $CPPFLAGS'
2338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2342
2343# Choose one or two-process fix methodology. Systems that cannot handle
2344# bi-directional pipes must use the two process method.
2345#
2346case $host in
2347 i?86-*-msdosdjgpp* | \
2348 *-*-beos* )
2349 TARGET=twoprocess
2350
2351cat >>confdefs.h <<\_ACEOF
2352#define SEPARATE_FIX_PROC 1
2353_ACEOF
2354
2355 ;;
2356
2357 vax-dec-bsd* )
2358 TARGET=oneprocess
2359
2360cat >>confdefs.h <<\_ACEOF
2361#define exit xexit
2362_ACEOF
2363
2364
2365cat >>confdefs.h <<\_ACEOF
2366#define atexit xatexit
2367_ACEOF
2368
2369 ;;
2370
2371 * )
2372 TARGET=oneprocess
2373 ;;
2374esac
2375
2376
2377# Checks for header files.
2378
2379ac_ext=c
2380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2385echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2386# On Suns, sometimes $CPP names a directory.
2387if test -n "$CPP" && test -d "$CPP"; then
2388 CPP=
2389fi
2390if test -z "$CPP"; then
2391 if test "${ac_cv_prog_CPP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394 # Double quotes because CPP needs to be expanded
2395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2396 do
2397 ac_preproc_ok=false
2398for ac_c_preproc_warn_flag in '' yes
2399do
2400 # Use a header file that comes with gcc, so configuring glibc
2401 # with a fresh cross-compiler works.
2402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2403 # <limits.h> exists even on freestanding compilers.
2404 # On the NeXT, cc -E runs the code through the compiler's parser,
2405 # not just through cpp. "Syntax error" is here to catch this case.
2406 cat >conftest.$ac_ext <<_ACEOF
2407/* confdefs.h. */
2408_ACEOF
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>conftest.$ac_ext <<_ACEOF
2411/* end confdefs.h. */
2412#ifdef __STDC__
2413# include <limits.h>
2414#else
2415# include <assert.h>
2416#endif
2417 Syntax error
2418_ACEOF
2419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2432 fi
2433else
2434 ac_cpp_err=yes
2435fi
2436if test -z "$ac_cpp_err"; then
2437 :
2438else
2439 echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 # Broken: fails on valid input.
2443continue
2444fi
2445rm -f conftest.err conftest.$ac_ext
2446
2447 # OK, works on sane cases. Now check whether non-existent headers
2448 # can be detected and how.
2449 cat >conftest.$ac_ext <<_ACEOF
2450/* confdefs.h. */
2451_ACEOF
2452cat confdefs.h >>conftest.$ac_ext
2453cat >>conftest.$ac_ext <<_ACEOF
2454/* end confdefs.h. */
2455#include <ac_nonexistent.h>
2456_ACEOF
2457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev/null; then
2465 if test -s conftest.err; then
2466 ac_cpp_err=$ac_c_preproc_warn_flag
2467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2468 else
2469 ac_cpp_err=
2470 fi
2471else
2472 ac_cpp_err=yes
2473fi
2474if test -z "$ac_cpp_err"; then
2475 # Broken: success on invalid input.
2476continue
2477else
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 # Passes both tests.
2482ac_preproc_ok=:
2483break
2484fi
2485rm -f conftest.err conftest.$ac_ext
2486
2487done
2488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2489rm -f conftest.err conftest.$ac_ext
2490if $ac_preproc_ok; then
2491 break
2492fi
2493
2494 done
2495 ac_cv_prog_CPP=$CPP
2496
2497fi
2498 CPP=$ac_cv_prog_CPP
2499else
2500 ac_cv_prog_CPP=$CPP
2501fi
2502echo "$as_me:$LINENO: result: $CPP" >&5
2503echo "${ECHO_T}$CPP" >&6
2504ac_preproc_ok=false
2505for ac_c_preproc_warn_flag in '' yes
2506do
2507 # Use a header file that comes with gcc, so configuring glibc
2508 # with a fresh cross-compiler works.
2509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2510 # <limits.h> exists even on freestanding compilers.
2511 # On the NeXT, cc -E runs the code through the compiler's parser,
2512 # not just through cpp. "Syntax error" is here to catch this case.
2513 cat >conftest.$ac_ext <<_ACEOF
2514/* confdefs.h. */
2515_ACEOF
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>conftest.$ac_ext <<_ACEOF
2518/* end confdefs.h. */
2519#ifdef __STDC__
2520# include <limits.h>
2521#else
2522# include <assert.h>
2523#endif
2524 Syntax error
2525_ACEOF
2526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 else
2538 ac_cpp_err=
2539 fi
2540else
2541 ac_cpp_err=yes
2542fi
2543if test -z "$ac_cpp_err"; then
2544 :
2545else
2546 echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 # Broken: fails on valid input.
2550continue
2551fi
2552rm -f conftest.err conftest.$ac_ext
2553
2554 # OK, works on sane cases. Now check whether non-existent headers
2555 # can be detected and how.
2556 cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562#include <ac_nonexistent.h>
2563_ACEOF
2564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } >/dev/null; then
2572 if test -s conftest.err; then
2573 ac_cpp_err=$ac_c_preproc_warn_flag
2574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2575 else
2576 ac_cpp_err=
2577 fi
2578else
2579 ac_cpp_err=yes
2580fi
2581if test -z "$ac_cpp_err"; then
2582 # Broken: success on invalid input.
2583continue
2584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 # Passes both tests.
2589ac_preproc_ok=:
2590break
2591fi
2592rm -f conftest.err conftest.$ac_ext
2593
2594done
2595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2596rm -f conftest.err conftest.$ac_ext
2597if $ac_preproc_ok; then
2598 :
2599else
2600 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2601See \`config.log' for more details." >&5
2602echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2603See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }
2605fi
2606
2607ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612
2613
2614echo "$as_me:$LINENO: checking for egrep" >&5
2615echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2616if test "${ac_cv_prog_egrep+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2620 then ac_cv_prog_egrep='grep -E'
2621 else ac_cv_prog_egrep='egrep'
2622 fi
2623fi
2624echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2625echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2626 EGREP=$ac_cv_prog_egrep
2627
2628
2629echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2630echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2631if test "${ac_cv_header_stdc+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
2634 cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h. */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h. */
2640#include <stdlib.h>
2641#include <stdarg.h>
2642#include <string.h>
2643#include <float.h>
2644
2645int
2646main ()
2647{
2648
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653rm -f conftest.$ac_objext
2654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
2656 ac_status=$?
2657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_cv_header_stdc=yes
2675else
2676 echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679ac_cv_header_stdc=no
2680fi
2681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682
2683if test $ac_cv_header_stdc = yes; then
2684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2685 cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
2691#include <string.h>
2692
2693_ACEOF
2694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2695 $EGREP "memchr" >/dev/null 2>&1; then
2696 :
2697else
2698 ac_cv_header_stdc=no
2699fi
2700rm -f conftest*
2701
2702fi
2703
2704if test $ac_cv_header_stdc = yes; then
2705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2706 cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h. */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h. */
2712#include <stdlib.h>
2713
2714_ACEOF
2715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2716 $EGREP "free" >/dev/null 2>&1; then
2717 :
2718else
2719 ac_cv_header_stdc=no
2720fi
2721rm -f conftest*
2722
2723fi
2724
2725if test $ac_cv_header_stdc = yes; then
2726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2727 if test "$cross_compiling" = yes; then
2728 :
2729else
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736#include <ctype.h>
2737#if ((' ' & 0x0FF) == 0x020)
2738# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2739# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2740#else
2741# define ISLOWER(c) \
2742 (('a' <= (c) && (c) <= 'i') \
2743 || ('j' <= (c) && (c) <= 'r') \
2744 || ('s' <= (c) && (c) <= 'z'))
2745# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2746#endif
2747
2748#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2749int
2750main ()
2751{
2752 int i;
2753 for (i = 0; i < 256; i++)
2754 if (XOR (islower (i), ISLOWER (i))
2755 || toupper (i) != TOUPPER (i))
2756 exit(2);
2757 exit (0);
2758}
2759_ACEOF
2760rm -f conftest$ac_exeext
2761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762 (eval $ac_link) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 :
2772else
2773 echo "$as_me: program exited with status $ac_status" >&5
2774echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777( exit $ac_status )
2778ac_cv_header_stdc=no
2779fi
2780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2781fi
2782fi
2783fi
2784echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2785echo "${ECHO_T}$ac_cv_header_stdc" >&6
2786if test $ac_cv_header_stdc = yes; then
2787
2788cat >>confdefs.h <<\_ACEOF
2789#define STDC_HEADERS 1
2790_ACEOF
2791
2792fi
2793
2794# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2805 inttypes.h stdint.h unistd.h
2806do
2807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2808echo "$as_me:$LINENO: checking for $ac_header" >&5
2809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2810if eval "test \"\${$as_ac_Header+set}\" = set"; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812else
2813 cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
2819$ac_includes_default
2820
2821#include <$ac_header>
2822_ACEOF
2823rm -f conftest.$ac_objext
2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 eval "$as_ac_Header=yes"
2845else
2846 echo "$as_me: failed program was:" >&5
2847sed 's/^/| /' conftest.$ac_ext >&5
2848
2849eval "$as_ac_Header=no"
2850fi
2851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852fi
2853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2855if test `eval echo '${'$as_ac_Header'}'` = yes; then
2856 cat >>confdefs.h <<_ACEOF
2857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2858_ACEOF
2859
2860fi
2861
2862done
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
2873 sys/stat.h
2874do
2875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2876if eval "test \"\${$as_ac_Header+set}\" = set"; then
2877 echo "$as_me:$LINENO: checking for $ac_header" >&5
2878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2879if eval "test \"\${$as_ac_Header+set}\" = set"; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881fi
2882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2884else
2885 # Is the header compilable?
2886echo "$as_me:$LINENO: checking $ac_header usability" >&5
2887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2888cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894$ac_includes_default
2895#include <$ac_header>
2896_ACEOF
2897rm -f conftest.$ac_objext
2898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 ac_header_compiler=yes
2919else
2920 echo "$as_me: failed program was:" >&5
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
2923ac_header_compiler=no
2924fi
2925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2927echo "${ECHO_T}$ac_header_compiler" >&6
2928
2929# Is the header present?
2930echo "$as_me:$LINENO: checking $ac_header presence" >&5
2931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2932cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938#include <$ac_header>
2939_ACEOF
2940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev/null; then
2948 if test -s conftest.err; then
2949 ac_cpp_err=$ac_c_preproc_warn_flag
2950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2951 else
2952 ac_cpp_err=
2953 fi
2954else
2955 ac_cpp_err=yes
2956fi
2957if test -z "$ac_cpp_err"; then
2958 ac_header_preproc=yes
2959else
2960 echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 ac_header_preproc=no
2964fi
2965rm -f conftest.err conftest.$ac_ext
2966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2967echo "${ECHO_T}$ac_header_preproc" >&6
2968
2969# So? What about this header?
2970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2971 yes:no: )
2972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2976 ac_header_preproc=yes
2977 ;;
2978 no:yes:* )
2979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2991 (
2992 cat <<\_ASBOX
2993## -------------------------------------- ##
2994## Report this to the fixincludes lists. ##
2995## -------------------------------------- ##
2996_ASBOX
2997 ) |
2998 sed "s/^/$as_me: WARNING: /" >&2
2999 ;;
3000esac
3001echo "$as_me:$LINENO: checking for $ac_header" >&5
3002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3003if eval "test \"\${$as_ac_Header+set}\" = set"; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 eval "$as_ac_Header=\$ac_header_preproc"
3007fi
3008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3010
3011fi
3012if test `eval echo '${'$as_ac_Header'}'` = yes; then
3013 cat >>confdefs.h <<_ACEOF
3014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3015_ACEOF
3016
3017fi
3018
3019done
3020
3021
3022
3023
3024
3025
3026for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
3027 fwrite_unlocked fprintf_unlocked
3028do
3029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3030echo "$as_me:$LINENO: checking for $ac_func" >&5
3031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3032if eval "test \"\${$as_ac_var+set}\" = set"; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035 cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h. */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h. */
3041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3043#define $ac_func innocuous_$ac_func
3044
3045/* System header to define __stub macros and hopefully few prototypes,
3046 which can conflict with char $ac_func (); below.
3047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3048 <limits.h> exists even on freestanding compilers. */
3049
3050#ifdef __STDC__
3051# include <limits.h>
3052#else
3053# include <assert.h>
3054#endif
3055
3056#undef $ac_func
3057
3058/* Override any gcc2 internal prototype to avoid an error. */
3059#ifdef __cplusplus
3060extern "C"
3061{
3062#endif
3063/* We use char because int might match the return type of a gcc2
3064 builtin and then its argument prototype would still apply. */
3065char $ac_func ();
3066/* The GNU C library defines this for functions which it implements
3067 to always fail with ENOSYS. Some functions are actually named
3068 something starting with __ and the normal name is an alias. */
3069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3070choke me
3071#else
3072char (*f) () = $ac_func;
3073#endif
3074#ifdef __cplusplus
3075}
3076#endif
3077
3078int
3079main ()
3080{
3081return f != $ac_func;
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext conftest$ac_exeext
3087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3088 (eval $ac_link) 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest$ac_exeext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 eval "$as_ac_var=yes"
3108else
3109 echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112eval "$as_ac_var=no"
3113fi
3114rm -f conftest.err conftest.$ac_objext \
3115 conftest$ac_exeext conftest.$ac_ext
3116fi
3117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3119if test `eval echo '${'$as_ac_var'}'` = yes; then
3120 cat >>confdefs.h <<_ACEOF
3121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3122_ACEOF
3123
3124fi
3125done
3126
3127echo "$as_me:$LINENO: checking whether abort is declared" >&5
3128echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
3129if test "${ac_cv_have_decl_abort+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132 cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
3138$ac_includes_default
3139int
3140main ()
3141{
3142#ifndef abort
3143 char *p = (char *) abort;
3144#endif
3145
3146 ;
3147 return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_cv_have_decl_abort=yes
3172else
3173 echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176ac_cv_have_decl_abort=no
3177fi
3178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
3181echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
3182if test $ac_cv_have_decl_abort = yes; then
3183
3184cat >>confdefs.h <<_ACEOF
3185#define HAVE_DECL_ABORT 1
3186_ACEOF
3187
3188
3189else
3190 cat >>confdefs.h <<_ACEOF
3191#define HAVE_DECL_ABORT 0
3192_ACEOF
3193
3194
3195fi
3196echo "$as_me:$LINENO: checking whether errno is declared" >&5
3197echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
3198if test "${ac_cv_have_decl_errno+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
3201 cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207$ac_includes_default
3208int
3209main ()
3210{
3211#ifndef errno
3212 char *p = (char *) errno;
3213#endif
3214
3215 ;
3216 return 0;
3217}
3218_ACEOF
3219rm -f conftest.$ac_objext
3220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_have_decl_errno=yes
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245ac_cv_have_decl_errno=no
3246fi
3247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248fi
3249echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
3250echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
3251if test $ac_cv_have_decl_errno = yes; then
3252
3253cat >>confdefs.h <<_ACEOF
3254#define HAVE_DECL_ERRNO 1
3255_ACEOF
3256
3257
3258else
3259 cat >>confdefs.h <<_ACEOF
3260#define HAVE_DECL_ERRNO 0
3261_ACEOF
3262
3263
3264fi
3265echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
3266echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
3267if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270 cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
3276$ac_includes_default
3277int
3278main ()
3279{
3280#ifndef putc_unlocked
3281 char *p = (char *) putc_unlocked;
3282#endif
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
3288rm -f conftest.$ac_objext
3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; } &&
3303 { ac_try='test -s conftest.$ac_objext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_have_decl_putc_unlocked=yes
3310else
3311 echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314ac_cv_have_decl_putc_unlocked=no
3315fi
3316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317fi
3318echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
3319echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
3320if test $ac_cv_have_decl_putc_unlocked = yes; then
3321
3322cat >>confdefs.h <<_ACEOF
3323#define HAVE_DECL_PUTC_UNLOCKED 1
3324_ACEOF
3325
3326
3327else
3328 cat >>confdefs.h <<_ACEOF
3329#define HAVE_DECL_PUTC_UNLOCKED 0
3330_ACEOF
3331
3332
3333fi
3334echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
3335echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
3336if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339 cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h. */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h. */
3345$ac_includes_default
3346int
3347main ()
3348{
3349#ifndef fputc_unlocked
3350 char *p = (char *) fputc_unlocked;
3351#endif
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; } &&
3372 { ac_try='test -s conftest.$ac_objext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_have_decl_fputc_unlocked=yes
3379else
3380 echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383ac_cv_have_decl_fputc_unlocked=no
3384fi
3385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3386fi
3387echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
3388echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
3389if test $ac_cv_have_decl_fputc_unlocked = yes; then
3390
3391cat >>confdefs.h <<_ACEOF
3392#define HAVE_DECL_FPUTC_UNLOCKED 1
3393_ACEOF
3394
3395
3396else
3397 cat >>confdefs.h <<_ACEOF
3398#define HAVE_DECL_FPUTC_UNLOCKED 0
3399_ACEOF
3400
3401
3402fi
3403echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
3404echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
3405if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 cat >conftest.$ac_ext <<_ACEOF
3409/* confdefs.h. */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h. */
3414$ac_includes_default
3415int
3416main ()
3417{
3418#ifndef fputs_unlocked
3419 char *p = (char *) fputs_unlocked;
3420#endif
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_have_decl_fputs_unlocked=yes
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452ac_cv_have_decl_fputs_unlocked=no
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
3457echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
3458if test $ac_cv_have_decl_fputs_unlocked = yes; then
3459
3460cat >>confdefs.h <<_ACEOF
3461#define HAVE_DECL_FPUTS_UNLOCKED 1
3462_ACEOF
3463
3464
3465else
3466 cat >>confdefs.h <<_ACEOF
3467#define HAVE_DECL_FPUTS_UNLOCKED 0
3468_ACEOF
3469
3470
3471fi
3472echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
3473echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
3474if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477 cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h. */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */
3483$ac_includes_default
3484int
3485main ()
3486{
3487#ifndef fwrite_unlocked
3488 char *p = (char *) fwrite_unlocked;
3489#endif
3490
3491 ;
3492 return 0;
3493}
3494_ACEOF
3495rm -f conftest.$ac_objext
3496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497 (eval $ac_compile) 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_have_decl_fwrite_unlocked=yes
3517else
3518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521ac_cv_have_decl_fwrite_unlocked=no
3522fi
3523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3524fi
3525echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
3526echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
3527if test $ac_cv_have_decl_fwrite_unlocked = yes; then
3528
3529cat >>confdefs.h <<_ACEOF
3530#define HAVE_DECL_FWRITE_UNLOCKED 1
3531_ACEOF
3532
3533
3534else
3535 cat >>confdefs.h <<_ACEOF
3536#define HAVE_DECL_FWRITE_UNLOCKED 0
3537_ACEOF
3538
3539
3540fi
3541echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
3542echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
3543if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552$ac_includes_default
3553int
3554main ()
3555{
3556#ifndef fprintf_unlocked
3557 char *p = (char *) fprintf_unlocked;
3558#endif
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_have_decl_fprintf_unlocked=yes
3586else
3587 echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590ac_cv_have_decl_fprintf_unlocked=no
3591fi
3592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
3595echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
3596if test $ac_cv_have_decl_fprintf_unlocked = yes; then
3597
3598cat >>confdefs.h <<_ACEOF
3599#define HAVE_DECL_FPRINTF_UNLOCKED 1
3600_ACEOF
3601
3602
3603else
3604 cat >>confdefs.h <<_ACEOF
3605#define HAVE_DECL_FPRINTF_UNLOCKED 0
3606_ACEOF
3607
3608
3609fi
3610
3611
3612
3613# Checks for typedefs, structures, and compiler characteristics.
3614echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3615echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3616if test "${ac_cv_c_const+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h. */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h. */
3625
3626int
3627main ()
3628{
3629/* FIXME: Include the comments suggested by Paul. */
3630#ifndef __cplusplus
3631 /* Ultrix mips cc rejects this. */
3632 typedef int charset[2];
3633 const charset x;
3634 /* SunOS 4.1.1 cc rejects this. */
3635 char const *const *ccp;
3636 char **p;
3637 /* NEC SVR4.0.2 mips cc rejects this. */
3638 struct point {int x, y;};
3639 static struct point const zero = {0,0};
3640 /* AIX XL C 1.02.0.0 rejects this.
3641 It does not let you subtract one const X* pointer from another in
3642 an arm of an if-expression whose if-part is not a constant
3643 expression */
3644 const char *g = "string";
3645 ccp = &g + (g ? g-g : 0);
3646 /* HPUX 7.0 cc rejects these. */
3647 ++ccp;
3648 p = (char**) ccp;
3649 ccp = (char const *const *) p;
3650 { /* SCO 3.2v4 cc rejects this. */
3651 char *t;
3652 char const *s = 0 ? (char *) 0 : (char const *) 0;
3653
3654 *t++ = 0;
3655 }
3656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3657 int x[] = {25, 17};
3658 const int *foo = &x[0];
3659 ++foo;
3660 }
3661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3662 typedef const int *iptr;
3663 iptr p = 0;
3664 ++p;
3665 }
3666 { /* AIX XL C 1.02.0.0 rejects this saying
3667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3668 struct s { int j; const int *ap[3]; };
3669 struct s *b; b->j = 5;
3670 }
3671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3672 const int foo = 10;
3673 }
3674#endif
3675
3676 ;
3677 return 0;
3678}
3679_ACEOF
3680rm -f conftest.$ac_objext
3681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3682 (eval $ac_compile) 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_cv_c_const=yes
3702else
3703 echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706ac_cv_c_const=no
3707fi
3708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709fi
3710echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3711echo "${ECHO_T}$ac_cv_c_const" >&6
3712if test $ac_cv_c_const = no; then
3713
3714cat >>confdefs.h <<\_ACEOF
3715#define const
3716_ACEOF
3717
3718fi
3719
3720
3721# Checks for library functions.
3722
3723if test "${ac_cv_header_sys_mman_h+set}" = set; then
3724 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
3725echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
3726if test "${ac_cv_header_sys_mman_h+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728fi
3729echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
3730echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
3731else
3732 # Is the header compilable?
3733echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
3734echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
3735cat >conftest.$ac_ext <<_ACEOF
3736/* confdefs.h. */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h. */
3741$ac_includes_default
3742#include <sys/mman.h>
3743_ACEOF
3744rm -f conftest.$ac_objext
3745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_header_compiler=yes
3766else
3767 echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770ac_header_compiler=no
3771fi
3772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3774echo "${ECHO_T}$ac_header_compiler" >&6
3775
3776# Is the header present?
3777echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
3778echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
3779cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h. */
3785#include <sys/mman.h>
3786_ACEOF
3787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null; then
3795 if test -s conftest.err; then
3796 ac_cpp_err=$ac_c_preproc_warn_flag
3797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3798 else
3799 ac_cpp_err=
3800 fi
3801else
3802 ac_cpp_err=yes
3803fi
3804if test -z "$ac_cpp_err"; then
3805 ac_header_preproc=yes
3806else
3807 echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 ac_header_preproc=no
3811fi
3812rm -f conftest.err conftest.$ac_ext
3813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3814echo "${ECHO_T}$ac_header_preproc" >&6
3815
3816# So? What about this header?
3817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3818 yes:no: )
3819 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
3820echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3821 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
3822echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
3823 ac_header_preproc=yes
3824 ;;
3825 no:yes:* )
3826 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
3827echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
3829echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
3830 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
3831echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
3832 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
3833echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
3834 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
3835echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
3836 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
3837echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
3838 (
3839 cat <<\_ASBOX
3840## -------------------------------------- ##
3841## Report this to the fixincludes lists. ##
3842## -------------------------------------- ##
3843_ASBOX
3844 ) |
3845 sed "s/^/$as_me: WARNING: /" >&2
3846 ;;
3847esac
3848echo "$as_me:$LINENO: checking for sys/mman.h" >&5
3849echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
3850if test "${ac_cv_header_sys_mman_h+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 ac_cv_header_sys_mman_h=$ac_header_preproc
3854fi
3855echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
3856echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
3857
3858fi
3859if test $ac_cv_header_sys_mman_h = yes; then
3860 gcc_header_sys_mman_h=yes
3861else
3862 gcc_header_sys_mman_h=no
3863fi
3864
3865
3866echo "$as_me:$LINENO: checking for mmap" >&5
3867echo $ECHO_N "checking for mmap... $ECHO_C" >&6
3868if test "${ac_cv_func_mmap+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
3878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3879#define mmap innocuous_mmap
3880
3881/* System header to define __stub macros and hopefully few prototypes,
3882 which can conflict with char mmap (); below.
3883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3884 <limits.h> exists even on freestanding compilers. */
3885
3886#ifdef __STDC__
3887# include <limits.h>
3888#else
3889# include <assert.h>
3890#endif
3891
3892#undef mmap
3893
3894/* Override any gcc2 internal prototype to avoid an error. */
3895#ifdef __cplusplus
3896extern "C"
3897{
3898#endif
3899/* We use char because int might match the return type of a gcc2
3900 builtin and then its argument prototype would still apply. */
3901char mmap ();
3902/* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905#if defined (__stub_mmap) || defined (__stub___mmap)
3906choke me
3907#else
3908char (*f) () = mmap;
3909#endif
3910#ifdef __cplusplus
3911}
3912#endif
3913
3914int
3915main ()
3916{
3917return f != mmap;
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922rm -f conftest.$ac_objext conftest$ac_exeext
3923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924 (eval $ac_link) 2>conftest.er1
3925 ac_status=$?
3926 grep -v '^ *+' conftest.er1 >conftest.err
3927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_func_mmap=yes
3944else
3945 echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948ac_cv_func_mmap=no
3949fi
3950rm -f conftest.err conftest.$ac_objext \
3951 conftest$ac_exeext conftest.$ac_ext
3952fi
3953echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
3954echo "${ECHO_T}$ac_cv_func_mmap" >&6
3955if test $ac_cv_func_mmap = yes; then
3956 gcc_func_mmap=yes
3957else
3958 gcc_func_mmap=no
3959fi
3960
3961if test "$gcc_header_sys_mman_h" != yes \
3962 || test "$gcc_func_mmap" != yes; then
3963 gcc_cv_func_mmap_file=no
3964 gcc_cv_func_mmap_dev_zero=no
3965 gcc_cv_func_mmap_anon=no
3966else
3967 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
3968echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
3969if test "${gcc_cv_func_mmap_file+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972 # Add a system to this blacklist if
3973 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
3974 # memory area containing the same data that you'd get if you applied
3975 # read() to the same fd. The only system known to have a problem here
3976 # is VMS, where text files have record structure.
3977 case "$host_os" in
3978 vms* | ultrix*)
3979 gcc_cv_func_mmap_file=no ;;
3980 *)
3981 gcc_cv_func_mmap_file=yes;;
3982 esac
3983fi
3984echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
3985echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
3986 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
3987echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
3988if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991 # Add a system to this blacklist if it has mmap() but /dev/zero
3992 # does not exist, or if mmapping /dev/zero does not give anonymous
3993 # zeroed pages with both the following properties:
3994 # 1. If you map N consecutive pages in with one call, and then
3995 # unmap any subset of those pages, the pages that were not
3996 # explicitly unmapped remain accessible.
3997 # 2. If you map two adjacent blocks of memory and then unmap them
3998 # both at once, they must both go away.
3999 # Systems known to be in this category are Windows (all variants),
4000 # VMS, and Darwin.
4001 case "$host_os" in
4002 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
4003 gcc_cv_func_mmap_dev_zero=no ;;
4004 *)
4005 gcc_cv_func_mmap_dev_zero=yes;;
4006 esac
4007fi
4008echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
4009echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
4010
4011 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4012 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
4013echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
4014if test "${gcc_cv_decl_map_anon+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023#include <sys/types.h>
4024#include <sys/mman.h>
4025#include <unistd.h>
4026
4027#ifndef MAP_ANONYMOUS
4028#define MAP_ANONYMOUS MAP_ANON
4029#endif
4030
4031int
4032main ()
4033{
4034int n = MAP_ANONYMOUS;
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext
4040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 gcc_cv_decl_map_anon=yes
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065gcc_cv_decl_map_anon=no
4066fi
4067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4068fi
4069echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
4070echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
4071
4072 if test $gcc_cv_decl_map_anon = no; then
4073 gcc_cv_func_mmap_anon=no
4074 else
4075 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4076echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
4077if test "${gcc_cv_func_mmap_anon+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4081 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4082 # doesn't give anonymous zeroed pages with the same properties listed
4083 # above for use of /dev/zero.
4084 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4085 case "$host_os" in
4086 vms* | cygwin* | pe | mingw* | sco* | udk* )
4087 gcc_cv_func_mmap_anon=no ;;
4088 *)
4089 gcc_cv_func_mmap_anon=yes;;
4090 esac
4091fi
4092echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
4093echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
4094 fi
4095fi
4096
4097if test $gcc_cv_func_mmap_file = yes; then
4098
4099cat >>confdefs.h <<\_ACEOF
4100#define HAVE_MMAP_FILE 1
4101_ACEOF
4102
4103fi
4104if test $gcc_cv_func_mmap_dev_zero = yes; then
4105
4106cat >>confdefs.h <<\_ACEOF
4107#define HAVE_MMAP_DEV_ZERO 1
4108_ACEOF
4109
4110fi
4111if test $gcc_cv_func_mmap_anon = yes; then
4112
4113cat >>confdefs.h <<\_ACEOF
4114#define HAVE_MMAP_ANON 1
4115_ACEOF
4116
4117fi
4118
4119
4120echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4121echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4122# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4123if test "${enable_maintainer_mode+set}" = set; then
4124 enableval="$enable_maintainer_mode"
4125 USE_MAINTAINER_MODE=$enableval
4126else
4127 USE_MAINTAINER_MODE=no
4128fi;
4129echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4130echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4131if test "$USE_MAINTAINER_MODE" = yes; then
4132 MAINT=
4133else
4134 MAINT='#'
4135fi
4136
4137
4138 ac_config_headers="$ac_config_headers config.h"
4139
4140 ac_config_files="$ac_config_files Makefile"
4141
4142cat >confcache <<\_ACEOF
4143# This file is a shell script that caches the results of configure
4144# tests run on this system so they can be shared between configure
4145# scripts and configure runs, see configure's option --config-cache.
4146# It is not useful on other systems. If it contains results you don't
4147# want to keep, you may remove or edit it.
4148#
4149# config.status only pays attention to the cache file if you give it
4150# the --recheck option to rerun configure.
4151#
4152# `ac_cv_env_foo' variables (set or unset) will be overridden when
4153# loading this file, other *unset* `ac_cv_foo' will be assigned the
4154# following values.
4155
4156_ACEOF
4157
4158# The following way of writing the cache mishandles newlines in values,
4159# but we know of no workaround that is simple, portable, and efficient.
4160# So, don't put newlines in cache variables' values.
4161# Ultrix sh set writes to stderr and can't be redirected directly,
4162# and sets the high bit in the cache file unless we assign to the vars.
4163{
4164 (set) 2>&1 |
4165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4166 *ac_space=\ *)
4167 # `set' does not quote correctly, so add quotes (double-quote
4168 # substitution turns \\\\ into \\, and sed turns \\ into \).
4169 sed -n \
4170 "s/'/'\\\\''/g;
4171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4172 ;;
4173 *)
4174 # `set' quotes correctly as required by POSIX, so do not add quotes.
4175 sed -n \
4176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4177 ;;
4178 esac;
4179} |
4180 sed '
4181 t clear
4182 : clear
4183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4184 t end
4185 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4186 : end' >>confcache
4187if diff $cache_file confcache >/dev/null 2>&1; then :; else
4188 if test -w $cache_file; then
4189 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4190 cat confcache >$cache_file
4191 else
4192 echo "not updating unwritable cache $cache_file"
4193 fi
4194fi
4195rm -f confcache
4196
4197test "x$prefix" = xNONE && prefix=$ac_default_prefix
4198# Let make expand exec_prefix.
4199test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4200
4201# VPATH may cause trouble with some makes, so we remove $(srcdir),
4202# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4203# trailing colons and then remove the whole line if VPATH becomes empty
4204# (actually we leave an empty line to preserve line numbers).
4205if test "x$srcdir" = x.; then
4206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4207s/:*\$(srcdir):*/:/;
4208s/:*\${srcdir}:*/:/;
4209s/:*@srcdir@:*/:/;
4210s/^\([^=]*=[ ]*\):*/\1/;
4211s/:*$//;
4212s/^[^=]*=[ ]*$//;
4213}'
4214fi
4215
4216DEFS=-DHAVE_CONFIG_H
4217
4218ac_libobjs=
4219ac_ltlibobjs=
4220for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4221 # 1. Remove the extension, and $U if already installed.
4222 ac_i=`echo "$ac_i" |
4223 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4224 # 2. Add them.
4225 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4226 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4227done
4228LIBOBJS=$ac_libobjs
4229
4230LTLIBOBJS=$ac_ltlibobjs
4231
4232
4233
4234: ${CONFIG_STATUS=./config.status}
4235ac_clean_files_save=$ac_clean_files
4236ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4237{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4238echo "$as_me: creating $CONFIG_STATUS" >&6;}
4239cat >$CONFIG_STATUS <<_ACEOF
4240#! $SHELL
4241# Generated by $as_me.
4242# Run this file to recreate the current configuration.
4243# Compiler output produced by configure, useful for debugging
4244# configure, is in config.log if it exists.
4245
4246debug=false
4247ac_cs_recheck=false
4248ac_cs_silent=false
4249SHELL=\${CONFIG_SHELL-$SHELL}
4250_ACEOF
4251
4252cat >>$CONFIG_STATUS <<\_ACEOF
4253## --------------------- ##
4254## M4sh Initialization. ##
4255## --------------------- ##
4256
4257# Be Bourne compatible
4258if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4259 emulate sh
4260 NULLCMD=:
4261 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4262 # is contrary to our usage. Disable this feature.
4263 alias -g '${1+"$@"}'='"$@"'
4264elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4265 set -o posix
4266fi
4267DUALCASE=1; export DUALCASE # for MKS sh
4268
4269# Support unset when possible.
4270if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4271 as_unset=unset
4272else
4273 as_unset=false
4274fi
4275
4276
4277# Work around bugs in pre-3.0 UWIN ksh.
4278$as_unset ENV MAIL MAILPATH
4279PS1='$ '
4280PS2='> '
4281PS4='+ '
4282
4283# NLS nuisances.
4284for as_var in \
4285 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4286 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4287 LC_TELEPHONE LC_TIME
4288do
4289 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4290 eval $as_var=C; export $as_var
4291 else
4292 $as_unset $as_var
4293 fi
4294done
4295
4296# Required to use basename.
4297if expr a : '\(a\)' >/dev/null 2>&1; then
4298 as_expr=expr
4299else
4300 as_expr=false
4301fi
4302
4303if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4304 as_basename=basename
4305else
4306 as_basename=false
4307fi
4308
4309
4310# Name of the executable.
4311as_me=`$as_basename "$0" ||
4312$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4313 X"$0" : 'X\(//\)$' \| \
4314 X"$0" : 'X\(/\)$' \| \
4315 . : '\(.\)' 2>/dev/null ||
4316echo X/"$0" |
4317 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4318 /^X\/\(\/\/\)$/{ s//\1/; q; }
4319 /^X\/\(\/\).*/{ s//\1/; q; }
4320 s/.*/./; q'`
4321
4322
4323# PATH needs CR, and LINENO needs CR and PATH.
4324# Avoid depending upon Character Ranges.
4325as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4326as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4327as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4328as_cr_digits='0123456789'
4329as_cr_alnum=$as_cr_Letters$as_cr_digits
4330
4331# The user is always right.
4332if test "${PATH_SEPARATOR+set}" != set; then
4333 echo "#! /bin/sh" >conf$$.sh
4334 echo "exit 0" >>conf$$.sh
4335 chmod +x conf$$.sh
4336 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4337 PATH_SEPARATOR=';'
4338 else
4339 PATH_SEPARATOR=:
4340 fi
4341 rm -f conf$$.sh
4342fi
4343
4344
4345 as_lineno_1=$LINENO
4346 as_lineno_2=$LINENO
4347 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4348 test "x$as_lineno_1" != "x$as_lineno_2" &&
4349 test "x$as_lineno_3" = "x$as_lineno_2" || {
4350 # Find who we are. Look in the path if we contain no path at all
4351 # relative or not.
4352 case $0 in
4353 *[\\/]* ) as_myself=$0 ;;
4354 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4360done
4361
4362 ;;
4363 esac
4364 # We did not find ourselves, most probably we were run as `sh COMMAND'
4365 # in which case we are not to be found in the path.
4366 if test "x$as_myself" = x; then
4367 as_myself=$0
4368 fi
4369 if test ! -f "$as_myself"; then
4370 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4371echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4372 { (exit 1); exit 1; }; }
4373 fi
4374 case $CONFIG_SHELL in
4375 '')
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for as_base in sh bash ksh sh5; do
4382 case $as_dir in
4383 /*)
4384 if ("$as_dir/$as_base" -c '
4385 as_lineno_1=$LINENO
4386 as_lineno_2=$LINENO
4387 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4388 test "x$as_lineno_1" != "x$as_lineno_2" &&
4389 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4390 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4391 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4392 CONFIG_SHELL=$as_dir/$as_base
4393 export CONFIG_SHELL
4394 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4395 fi;;
4396 esac
4397 done
4398done
4399;;
4400 esac
4401
4402 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4403 # uniformly replaced by the line number. The first 'sed' inserts a
4404 # line-number line before each line; the second 'sed' does the real
4405 # work. The second script uses 'N' to pair each line-number line
4406 # with the numbered line, and appends trailing '-' during
4407 # substitution so that $LINENO is not a special case at line end.
4408 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4409 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4410 sed '=' <$as_myself |
4411 sed '
4412 N
4413 s,$,-,
4414 : loop
4415 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4416 t loop
4417 s,-$,,
4418 s,^['$as_cr_digits']*\n,,
4419 ' >$as_me.lineno &&
4420 chmod +x $as_me.lineno ||
4421 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4422echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4423 { (exit 1); exit 1; }; }
4424
4425 # Don't try to exec as it changes $[0], causing all sort of problems
4426 # (the dirname of $[0] is not the place where we might find the
4427 # original and so on. Autoconf is especially sensible to this).
4428 . ./$as_me.lineno
4429 # Exit status is that of the last command.
4430 exit
4431}
4432
4433
4434case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4435 *c*,-n*) ECHO_N= ECHO_C='
4436' ECHO_T=' ' ;;
4437 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4438 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4439esac
4440
4441if expr a : '\(a\)' >/dev/null 2>&1; then
4442 as_expr=expr
4443else
4444 as_expr=false
4445fi
4446
4447rm -f conf$$ conf$$.exe conf$$.file
4448echo >conf$$.file
4449if ln -s conf$$.file conf$$ 2>/dev/null; then
4450 # We could just check for DJGPP; but this test a) works b) is more generic
4451 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4452 if test -f conf$$.exe; then
4453 # Don't use ln at all; we don't have any links
4454 as_ln_s='cp -p'
4455 else
4456 as_ln_s='ln -s'
4457 fi
4458elif ln conf$$.file conf$$ 2>/dev/null; then
4459 as_ln_s=ln
4460else
4461 as_ln_s='cp -p'
4462fi
4463rm -f conf$$ conf$$.exe conf$$.file
4464
4465if mkdir -p . 2>/dev/null; then
4466 as_mkdir_p=:
4467else
4468 test -d ./-p && rmdir ./-p
4469 as_mkdir_p=false
4470fi
4471
4472as_executable_p="test -f"
4473
4474# Sed expression to map a string onto a valid CPP name.
4475as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4476
4477# Sed expression to map a string onto a valid variable name.
4478as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4479
4480
4481# IFS
4482# We need space, tab and new line, in precisely that order.
4483as_nl='
4484'
4485IFS=" $as_nl"
4486
4487# CDPATH.
4488$as_unset CDPATH
4489
4490exec 6>&1
4491
4492# Open the log real soon, to keep \$[0] and so on meaningful, and to
4493# report actual input values of CONFIG_FILES etc. instead of their
4494# values after options handling. Logging --version etc. is OK.
4495exec 5>>config.log
4496{
4497 echo
4498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4499## Running $as_me. ##
4500_ASBOX
4501} >&5
4502cat >&5 <<_CSEOF
4503
4504This file was extended by fixincludes $as_me , which was
4505generated by GNU Autoconf 2.59. Invocation command line was
4506
4507 CONFIG_FILES = $CONFIG_FILES
4508 CONFIG_HEADERS = $CONFIG_HEADERS
4509 CONFIG_LINKS = $CONFIG_LINKS
4510 CONFIG_COMMANDS = $CONFIG_COMMANDS
4511 $ $0 $@
4512
4513_CSEOF
4514echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4515echo >&5
4516_ACEOF
4517
4518# Files that config.status was made for.
4519if test -n "$ac_config_files"; then
4520 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4521fi
4522
4523if test -n "$ac_config_headers"; then
4524 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4525fi
4526
4527if test -n "$ac_config_links"; then
4528 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4529fi
4530
4531if test -n "$ac_config_commands"; then
4532 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4533fi
4534
4535cat >>$CONFIG_STATUS <<\_ACEOF
4536
4537ac_cs_usage="\
4538\`$as_me' instantiates files from templates according to the
4539current configuration.
4540
4541Usage: $0 [OPTIONS] [FILE]...
4542
4543 -h, --help print this help, then exit
4544 -V, --version print version number, then exit
4545 -q, --quiet do not print progress messages
4546 -d, --debug don't remove temporary files
4547 --recheck update $as_me by reconfiguring in the same conditions
4548 --file=FILE[:TEMPLATE]
4549 instantiate the configuration file FILE
4550 --header=FILE[:TEMPLATE]
4551 instantiate the configuration header FILE
4552
4553Configuration files:
4554$config_files
4555
4556Configuration headers:
4557$config_headers
4558
4559Report bugs to <bug-autoconf@gnu.org>."
4560_ACEOF
4561
4562cat >>$CONFIG_STATUS <<_ACEOF
4563ac_cs_version="\\
4564fixincludes config.status
4565configured by $0, generated by GNU Autoconf 2.59,
4566 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4567
4568Copyright (C) 2003 Free Software Foundation, Inc.
4569This config.status script is free software; the Free Software Foundation
4570gives unlimited permission to copy, distribute and modify it."
4571srcdir=$srcdir
4572_ACEOF
4573
4574cat >>$CONFIG_STATUS <<\_ACEOF
4575# If no file are specified by the user, then we need to provide default
4576# value. By we need to know if files were specified by the user.
4577ac_need_defaults=:
4578while test $# != 0
4579do
4580 case $1 in
4581 --*=*)
4582 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4583 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4584 ac_shift=:
4585 ;;
4586 -*)
4587 ac_option=$1
4588 ac_optarg=$2
4589 ac_shift=shift
4590 ;;
4591 *) # This is not an option, so the user has probably given explicit
4592 # arguments.
4593 ac_option=$1
4594 ac_need_defaults=false;;
4595 esac
4596
4597 case $ac_option in
4598 # Handling of the options.
4599_ACEOF
4600cat >>$CONFIG_STATUS <<\_ACEOF
4601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4602 ac_cs_recheck=: ;;
4603 --version | --vers* | -V )
4604 echo "$ac_cs_version"; exit 0 ;;
4605 --he | --h)
4606 # Conflict between --help and --header
4607 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4608Try \`$0 --help' for more information." >&5
4609echo "$as_me: error: ambiguous option: $1
4610Try \`$0 --help' for more information." >&2;}
4611 { (exit 1); exit 1; }; };;
4612 --help | --hel | -h )
4613 echo "$ac_cs_usage"; exit 0 ;;
4614 --debug | --d* | -d )
4615 debug=: ;;
4616 --file | --fil | --fi | --f )
4617 $ac_shift
4618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4619 ac_need_defaults=false;;
4620 --header | --heade | --head | --hea )
4621 $ac_shift
4622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4623 ac_need_defaults=false;;
4624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4626 ac_cs_silent=: ;;
4627
4628 # This is an error.
4629 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4630Try \`$0 --help' for more information." >&5
4631echo "$as_me: error: unrecognized option: $1
4632Try \`$0 --help' for more information." >&2;}
4633 { (exit 1); exit 1; }; } ;;
4634
4635 *) ac_config_targets="$ac_config_targets $1" ;;
4636
4637 esac
4638 shift
4639done
4640
4641ac_configure_extra_args=
4642
4643if $ac_cs_silent; then
4644 exec 6>/dev/null
4645 ac_configure_extra_args="$ac_configure_extra_args --silent"
4646fi
4647
4648_ACEOF
4649cat >>$CONFIG_STATUS <<_ACEOF
4650if \$ac_cs_recheck; then
4651 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4652 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4653fi
4654
4655_ACEOF
4656
4657
4658
4659
4660
4661cat >>$CONFIG_STATUS <<\_ACEOF
4662for ac_config_target in $ac_config_targets
4663do
4664 case "$ac_config_target" in
4665 # Handling of arguments.
4666 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4667 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4668 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4669echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4670 { (exit 1); exit 1; }; };;
4671 esac
4672done
4673
4674# If the user did not use the arguments to specify the items to instantiate,
4675# then the envvar interface is used. Set only those that are not.
4676# We use the long form for the default assignment because of an extremely
4677# bizarre bug on SunOS 4.1.3.
4678if $ac_need_defaults; then
4679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4681fi
4682
4683# Have a temporary directory for convenience. Make it in the build tree
4684# simply because there is no reason to put it here, and in addition,
4685# creating and moving files from /tmp can sometimes cause problems.
4686# Create a temporary directory, and hook for its removal unless debugging.
4687$debug ||
4688{
4689 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4690 trap '{ (exit 1); exit 1; }' 1 2 13 15
4691}
4692
4693# Create a (secure) tmp directory for tmp files.
4694
4695{
4696 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4697 test -n "$tmp" && test -d "$tmp"
4698} ||
4699{
4700 tmp=./confstat$$-$RANDOM
4701 (umask 077 && mkdir $tmp)
4702} ||
4703{
4704 echo "$me: cannot create a temporary directory in ." >&2
4705 { (exit 1); exit 1; }
4706}
4707
4708_ACEOF
4709
4710cat >>$CONFIG_STATUS <<_ACEOF
4711
4712#
4713# CONFIG_FILES section.
4714#
4715
4716# No need to generate the scripts if there are no CONFIG_FILES.
4717# This happens for instance when ./config.status config.h
4718if test -n "\$CONFIG_FILES"; then
4719 # Protect against being on the right side of a sed subst in config.status.
4720 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4721 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4722s,@SHELL@,$SHELL,;t t
4723s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4724s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4725s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4726s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4727s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4728s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4729s,@exec_prefix@,$exec_prefix,;t t
4730s,@prefix@,$prefix,;t t
4731s,@program_transform_name@,$program_transform_name,;t t
4732s,@bindir@,$bindir,;t t
4733s,@sbindir@,$sbindir,;t t
4734s,@libexecdir@,$libexecdir,;t t
4735s,@datadir@,$datadir,;t t
4736s,@sysconfdir@,$sysconfdir,;t t
4737s,@sharedstatedir@,$sharedstatedir,;t t
4738s,@localstatedir@,$localstatedir,;t t
4739s,@libdir@,$libdir,;t t
4740s,@includedir@,$includedir,;t t
4741s,@oldincludedir@,$oldincludedir,;t t
4742s,@infodir@,$infodir,;t t
4743s,@mandir@,$mandir,;t t
4744s,@build_alias@,$build_alias,;t t
4745s,@host_alias@,$host_alias,;t t
4746s,@target_alias@,$target_alias,;t t
4747s,@DEFS@,$DEFS,;t t
4748s,@ECHO_C@,$ECHO_C,;t t
4749s,@ECHO_N@,$ECHO_N,;t t
4750s,@ECHO_T@,$ECHO_T,;t t
4751s,@LIBS@,$LIBS,;t t
4752s,@build@,$build,;t t
4753s,@build_cpu@,$build_cpu,;t t
4754s,@build_vendor@,$build_vendor,;t t
4755s,@build_os@,$build_os,;t t
4756s,@host@,$host,;t t
4757s,@host_cpu@,$host_cpu,;t t
4758s,@host_vendor@,$host_vendor,;t t
4759s,@host_os@,$host_os,;t t
4760s,@target@,$target,;t t
4761s,@target_cpu@,$target_cpu,;t t
4762s,@target_vendor@,$target_vendor,;t t
4763s,@target_os@,$target_os,;t t
4764s,@CC@,$CC,;t t
4765s,@CFLAGS@,$CFLAGS,;t t
4766s,@LDFLAGS@,$LDFLAGS,;t t
4767s,@CPPFLAGS@,$CPPFLAGS,;t t
4768s,@ac_ct_CC@,$ac_ct_CC,;t t
4769s,@EXEEXT@,$EXEEXT,;t t
4770s,@OBJEXT@,$OBJEXT,;t t
4771s,@TARGET@,$TARGET,;t t
4772s,@CPP@,$CPP,;t t
4773s,@EGREP@,$EGREP,;t t
4774s,@MAINT@,$MAINT,;t t
4775s,@LIBOBJS@,$LIBOBJS,;t t
4776s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4777CEOF
4778
4779_ACEOF
4780
4781 cat >>$CONFIG_STATUS <<\_ACEOF
4782 # Split the substitutions into bite-sized pieces for seds with
4783 # small command number limits, like on Digital OSF/1 and HP-UX.
4784 ac_max_sed_lines=48
4785 ac_sed_frag=1 # Number of current file.
4786 ac_beg=1 # First line for current file.
4787 ac_end=$ac_max_sed_lines # Line after last line for current file.
4788 ac_more_lines=:
4789 ac_sed_cmds=
4790 while $ac_more_lines; do
4791 if test $ac_beg -gt 1; then
4792 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4793 else
4794 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4795 fi
4796 if test ! -s $tmp/subs.frag; then
4797 ac_more_lines=false
4798 else
4799 # The purpose of the label and of the branching condition is to
4800 # speed up the sed processing (if there are no `@' at all, there
4801 # is no need to browse any of the substitutions).
4802 # These are the two extra sed commands mentioned above.
4803 (echo ':t
4804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4805 if test -z "$ac_sed_cmds"; then
4806 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4807 else
4808 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4809 fi
4810 ac_sed_frag=`expr $ac_sed_frag + 1`
4811 ac_beg=$ac_end
4812 ac_end=`expr $ac_end + $ac_max_sed_lines`
4813 fi
4814 done
4815 if test -z "$ac_sed_cmds"; then
4816 ac_sed_cmds=cat
4817 fi
4818fi # test -n "$CONFIG_FILES"
4819
4820_ACEOF
4821cat >>$CONFIG_STATUS <<\_ACEOF
4822for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4824 case $ac_file in
4825 - | *:- | *:-:* ) # input from stdin
4826 cat >$tmp/stdin
4827 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4829 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4831 * ) ac_file_in=$ac_file.in ;;
4832 esac
4833
4834 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4835 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4836$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4837 X"$ac_file" : 'X\(//\)[^/]' \| \
4838 X"$ac_file" : 'X\(//\)$' \| \
4839 X"$ac_file" : 'X\(/\)' \| \
4840 . : '\(.\)' 2>/dev/null ||
4841echo X"$ac_file" |
4842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4844 /^X\(\/\/\)$/{ s//\1/; q; }
4845 /^X\(\/\).*/{ s//\1/; q; }
4846 s/.*/./; q'`
4847 { if $as_mkdir_p; then
4848 mkdir -p "$ac_dir"
4849 else
4850 as_dir="$ac_dir"
4851 as_dirs=
4852 while test ! -d "$as_dir"; do
4853 as_dirs="$as_dir $as_dirs"
4854 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4855$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4856 X"$as_dir" : 'X\(//\)[^/]' \| \
4857 X"$as_dir" : 'X\(//\)$' \| \
4858 X"$as_dir" : 'X\(/\)' \| \
4859 . : '\(.\)' 2>/dev/null ||
4860echo X"$as_dir" |
4861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4863 /^X\(\/\/\)$/{ s//\1/; q; }
4864 /^X\(\/\).*/{ s//\1/; q; }
4865 s/.*/./; q'`
4866 done
4867 test ! -n "$as_dirs" || mkdir $as_dirs
4868 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4869echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4870 { (exit 1); exit 1; }; }; }
4871
4872 ac_builddir=.
4873
4874if test "$ac_dir" != .; then
4875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4876 # A "../" for each directory in $ac_dir_suffix.
4877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4878else
4879 ac_dir_suffix= ac_top_builddir=
4880fi
4881
4882case $srcdir in
4883 .) # No --srcdir option. We are building in place.
4884 ac_srcdir=.
4885 if test -z "$ac_top_builddir"; then
4886 ac_top_srcdir=.
4887 else
4888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4889 fi ;;
4890 [\\/]* | ?:[\\/]* ) # Absolute path.
4891 ac_srcdir=$srcdir$ac_dir_suffix;
4892 ac_top_srcdir=$srcdir ;;
4893 *) # Relative path.
4894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4896esac
4897
4898# Do not use `cd foo && pwd` to compute absolute paths, because
4899# the directories may not exist.
4900case `pwd` in
4901.) ac_abs_builddir="$ac_dir";;
4902*)
4903 case "$ac_dir" in
4904 .) ac_abs_builddir=`pwd`;;
4905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4906 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4907 esac;;
4908esac
4909case $ac_abs_builddir in
4910.) ac_abs_top_builddir=${ac_top_builddir}.;;
4911*)
4912 case ${ac_top_builddir}. in
4913 .) ac_abs_top_builddir=$ac_abs_builddir;;
4914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4916 esac;;
4917esac
4918case $ac_abs_builddir in
4919.) ac_abs_srcdir=$ac_srcdir;;
4920*)
4921 case $ac_srcdir in
4922 .) ac_abs_srcdir=$ac_abs_builddir;;
4923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4925 esac;;
4926esac
4927case $ac_abs_builddir in
4928.) ac_abs_top_srcdir=$ac_top_srcdir;;
4929*)
4930 case $ac_top_srcdir in
4931 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4934 esac;;
4935esac
4936
4937
4938
4939 # Let's still pretend it is `configure' which instantiates (i.e., don't
4940 # use $as_me), people would be surprised to read:
4941 # /* config.h. Generated by config.status. */
4942 if test x"$ac_file" = x-; then
4943 configure_input=
4944 else
4945 configure_input="$ac_file. "
4946 fi
4947 configure_input=$configure_input"Generated from `echo $ac_file_in |
4948 sed 's,.*/,,'` by configure."
4949
4950 # First look for the input files in the build tree, otherwise in the
4951 # src tree.
4952 ac_file_inputs=`IFS=:
4953 for f in $ac_file_in; do
4954 case $f in
4955 -) echo $tmp/stdin ;;
4956 [\\/$]*)
4957 # Absolute (can't be DOS-style, as IFS=:)
4958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4959echo "$as_me: error: cannot find input file: $f" >&2;}
4960 { (exit 1); exit 1; }; }
4961 echo "$f";;
4962 *) # Relative
4963 if test -f "$f"; then
4964 # Build tree
4965 echo "$f"
4966 elif test -f "$srcdir/$f"; then
4967 # Source tree
4968 echo "$srcdir/$f"
4969 else
4970 # /dev/null tree
4971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4972echo "$as_me: error: cannot find input file: $f" >&2;}
4973 { (exit 1); exit 1; }; }
4974 fi;;
4975 esac
4976 done` || { (exit 1); exit 1; }
4977
4978 if test x"$ac_file" != x-; then
4979 { echo "$as_me:$LINENO: creating $ac_file" >&5
4980echo "$as_me: creating $ac_file" >&6;}
4981 rm -f "$ac_file"
4982 fi
4983_ACEOF
4984cat >>$CONFIG_STATUS <<_ACEOF
4985 sed "$ac_vpsub
4986$extrasub
4987_ACEOF
4988cat >>$CONFIG_STATUS <<\_ACEOF
4989:t
4990/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4991s,@configure_input@,$configure_input,;t t
4992s,@srcdir@,$ac_srcdir,;t t
4993s,@abs_srcdir@,$ac_abs_srcdir,;t t
4994s,@top_srcdir@,$ac_top_srcdir,;t t
4995s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4996s,@builddir@,$ac_builddir,;t t
4997s,@abs_builddir@,$ac_abs_builddir,;t t
4998s,@top_builddir@,$ac_top_builddir,;t t
4999s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5000" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5001 rm -f $tmp/stdin
5002 if test x"$ac_file" != x-; then
5003 mv $tmp/out $ac_file
5004 else
5005 cat $tmp/out
5006 rm -f $tmp/out
5007 fi
5008
5009done
5010_ACEOF
5011cat >>$CONFIG_STATUS <<\_ACEOF
5012
5013#
5014# CONFIG_HEADER section.
5015#
5016
5017# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5018# NAME is the cpp macro being defined and VALUE is the value it is being given.
5019#
5020# ac_d sets the value in "#define NAME VALUE" lines.
5021ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5022ac_dB='[ ].*$,\1#\2'
5023ac_dC=' '
5024ac_dD=',;t'
5025# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5026ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5027ac_uB='$,\1#\2define\3'
5028ac_uC=' '
5029ac_uD=',;t'
5030
5031for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5033 case $ac_file in
5034 - | *:- | *:-:* ) # input from stdin
5035 cat >$tmp/stdin
5036 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5038 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5040 * ) ac_file_in=$ac_file.in ;;
5041 esac
5042
5043 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5044echo "$as_me: creating $ac_file" >&6;}
5045
5046 # First look for the input files in the build tree, otherwise in the
5047 # src tree.
5048 ac_file_inputs=`IFS=:
5049 for f in $ac_file_in; do
5050 case $f in
5051 -) echo $tmp/stdin ;;
5052 [\\/$]*)
5053 # Absolute (can't be DOS-style, as IFS=:)
5054 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5055echo "$as_me: error: cannot find input file: $f" >&2;}
5056 { (exit 1); exit 1; }; }
5057 # Do quote $f, to prevent DOS paths from being IFS'd.
5058 echo "$f";;
5059 *) # Relative
5060 if test -f "$f"; then
5061 # Build tree
5062 echo "$f"
5063 elif test -f "$srcdir/$f"; then
5064 # Source tree
5065 echo "$srcdir/$f"
5066 else
5067 # /dev/null tree
5068 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5069echo "$as_me: error: cannot find input file: $f" >&2;}
5070 { (exit 1); exit 1; }; }
5071 fi;;
5072 esac
5073 done` || { (exit 1); exit 1; }
5074 # Remove the trailing spaces.
5075 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5076
5077_ACEOF
5078
5079# Transform confdefs.h into two sed scripts, `conftest.defines' and
5080# `conftest.undefs', that substitutes the proper values into
5081# config.h.in to produce config.h. The first handles `#define'
5082# templates, and the second `#undef' templates.
5083# And first: Protect against being on the right side of a sed subst in
5084# config.status. Protect against being in an unquoted here document
5085# in config.status.
5086rm -f conftest.defines conftest.undefs
5087# Using a here document instead of a string reduces the quoting nightmare.
5088# Putting comments in sed scripts is not portable.
5089#
5090# `end' is used to avoid that the second main sed command (meant for
5091# 0-ary CPP macros) applies to n-ary macro definitions.
5092# See the Autoconf documentation for `clear'.
5093cat >confdef2sed.sed <<\_ACEOF
5094s/[\\&,]/\\&/g
5095s,[\\$`],\\&,g
5096t clear
5097: clear
5098s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5099t end
5100s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5101: end
5102_ACEOF
5103# If some macros were called several times there might be several times
5104# the same #defines, which is useless. Nevertheless, we may not want to
5105# sort them, since we want the *last* AC-DEFINE to be honored.
5106uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5107sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5108rm -f confdef2sed.sed
5109
5110# This sed command replaces #undef with comments. This is necessary, for
5111# example, in the case of _POSIX_SOURCE, which is predefined and required
5112# on some systems where configure will not decide to define it.
5113cat >>conftest.undefs <<\_ACEOF
5114s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5115_ACEOF
5116
5117# Break up conftest.defines because some shells have a limit on the size
5118# of here documents, and old seds have small limits too (100 cmds).
5119echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5120echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5121echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5122echo ' :' >>$CONFIG_STATUS
5123rm -f conftest.tail
5124while grep . conftest.defines >/dev/null
5125do
5126 # Write a limited-size here document to $tmp/defines.sed.
5127 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5128 # Speed up: don't consider the non `#define' lines.
5129 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5130 # Work around the forget-to-reset-the-flag bug.
5131 echo 't clr' >>$CONFIG_STATUS
5132 echo ': clr' >>$CONFIG_STATUS
5133 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5134 echo 'CEOF
5135 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5136 rm -f $tmp/in
5137 mv $tmp/out $tmp/in
5138' >>$CONFIG_STATUS
5139 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5140 rm -f conftest.defines
5141 mv conftest.tail conftest.defines
5142done
5143rm -f conftest.defines
5144echo ' fi # grep' >>$CONFIG_STATUS
5145echo >>$CONFIG_STATUS
5146
5147# Break up conftest.undefs because some shells have a limit on the size
5148# of here documents, and old seds have small limits too (100 cmds).
5149echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5150rm -f conftest.tail
5151while grep . conftest.undefs >/dev/null
5152do
5153 # Write a limited-size here document to $tmp/undefs.sed.
5154 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5155 # Speed up: don't consider the non `#undef'
5156 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5157 # Work around the forget-to-reset-the-flag bug.
5158 echo 't clr' >>$CONFIG_STATUS
5159 echo ': clr' >>$CONFIG_STATUS
5160 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5161 echo 'CEOF
5162 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5163 rm -f $tmp/in
5164 mv $tmp/out $tmp/in
5165' >>$CONFIG_STATUS
5166 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5167 rm -f conftest.undefs
5168 mv conftest.tail conftest.undefs
5169done
5170rm -f conftest.undefs
5171
5172cat >>$CONFIG_STATUS <<\_ACEOF
5173 # Let's still pretend it is `configure' which instantiates (i.e., don't
5174 # use $as_me), people would be surprised to read:
5175 # /* config.h. Generated by config.status. */
5176 if test x"$ac_file" = x-; then
5177 echo "/* Generated by configure. */" >$tmp/config.h
5178 else
5179 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5180 fi
5181 cat $tmp/in >>$tmp/config.h
5182 rm -f $tmp/in
5183 if test x"$ac_file" != x-; then
5184 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5185 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5186echo "$as_me: $ac_file is unchanged" >&6;}
5187 else
5188 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5189$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5190 X"$ac_file" : 'X\(//\)[^/]' \| \
5191 X"$ac_file" : 'X\(//\)$' \| \
5192 X"$ac_file" : 'X\(/\)' \| \
5193 . : '\(.\)' 2>/dev/null ||
5194echo X"$ac_file" |
5195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5197 /^X\(\/\/\)$/{ s//\1/; q; }
5198 /^X\(\/\).*/{ s//\1/; q; }
5199 s/.*/./; q'`
5200 { if $as_mkdir_p; then
5201 mkdir -p "$ac_dir"
5202 else
5203 as_dir="$ac_dir"
5204 as_dirs=
5205 while test ! -d "$as_dir"; do
5206 as_dirs="$as_dir $as_dirs"
5207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5209 X"$as_dir" : 'X\(//\)[^/]' \| \
5210 X"$as_dir" : 'X\(//\)$' \| \
5211 X"$as_dir" : 'X\(/\)' \| \
5212 . : '\(.\)' 2>/dev/null ||
5213echo X"$as_dir" |
5214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5216 /^X\(\/\/\)$/{ s//\1/; q; }
5217 /^X\(\/\).*/{ s//\1/; q; }
5218 s/.*/./; q'`
5219 done
5220 test ! -n "$as_dirs" || mkdir $as_dirs
5221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5222echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5223 { (exit 1); exit 1; }; }; }
5224
5225 rm -f $ac_file
5226 mv $tmp/config.h $ac_file
5227 fi
5228 else
5229 cat $tmp/config.h
5230 rm -f $tmp/config.h
5231 fi
5232 # Run the commands associated with the file.
5233 case $ac_file in
5234 config.h ) echo timestamp > stamp-h ;;
5235 esac
5236done
5237_ACEOF
5238
5239cat >>$CONFIG_STATUS <<\_ACEOF
5240
5241{ (exit 0); exit 0; }
5242_ACEOF
5243chmod +x $CONFIG_STATUS
5244ac_clean_files=$ac_clean_files_save
5245
5246
5247# configure is writing to config.log, and then calls config.status.
5248# config.status does its own redirection, appending to config.log.
5249# Unfortunately, on DOS this fails, as config.log is still kept open
5250# by configure, so config.status won't be able to write to it; its
5251# output is simply discarded. So we exec the FD to /dev/null,
5252# effectively closing config.log, so it can be properly (re)opened and
5253# appended to by config.status. When coming back to configure, we
5254# need to make the FD available again.
5255if test "$no_create" != yes; then
5256 ac_cs_success=:
5257 ac_config_status_args=
5258 test "$silent" = yes &&
5259 ac_config_status_args="$ac_config_status_args --quiet"
5260 exec 5>/dev/null
5261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5262 exec 5>>config.log
5263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5264 # would make configure fail if this is the last instruction.
5265 $ac_cs_success || { (exit 1); exit 1; }
5266fi
5267