]> git.ipfire.org Git - thirdparty/gcc.git/blob - fixincludes/configure
Backport from upstream Libtool:
[thirdparty/gcc.git] / fixincludes / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME='fixincludes'
269 PACKAGE_TARNAME='fixincludes'
270 PACKAGE_VERSION=' '
271 PACKAGE_STRING='fixincludes '
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="inclhack.def"
275 # Factoring default headers for most tests.
276 ac_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
312 ac_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 SED WARN_CFLAGS WARN_PEDANTIC WERROR target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314 ac_pwd=`pwd`
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures fixincludes to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839 _ACEOF
840 fi
841
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of fixincludes :";;
845 esac
846 cat <<\_ACEOF
847
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-werror-always enable -Werror despite compiler version
852 --enable-twoprocess Use a separate process to apply the fixes
853 --enable-maintainer-mode enable make rules and dependencies not useful
854 (and sometimes confusing) to the casual installer
855
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-local-prefix=DIR specifies directory to put local include
860
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
882
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
945
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 fi
961 cd $ac_popdir
962 done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
968 fixincludes configure
969 generated by GNU Autoconf 2.59
970
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by fixincludes $as_me , which was
983 generated by GNU Autoconf 2.59. Invocation command line was
984
985 $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045 for ac_arg
1046 do
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 2)
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1070 ;;
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1073 fi
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1077 ;;
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1091 {
1092 echo
1093
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1101 {
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 ;;
1109 *)
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ;;
1113 esac;
1114 }
1115 echo
1116
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143 fi
1144
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1154 fi
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1162 ' 0
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1215 fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1228 fi
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1254 *)
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 # differences in whitespace do not lead to failure.
1257 ac_old_val_w=`echo x $ac_old_val`
1258 ac_new_val_w=`echo x $ac_new_val`
1259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 ac_cache_corrupted=:
1263 else
1264 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1266 eval $ac_var=\$ac_old_val
1267 fi
1268 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1269 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1270 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1271 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1272 fi;;
1273 esac
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1276 case $ac_new_val in
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1280 esac
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 esac
1285 fi
1286 done
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 ac_aux_dir=
1334 for ac_dir in .. $srcdir/..; do
1335 if test -f $ac_dir/install-sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 break
1339 elif test -f $ac_dir/install.sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 break
1343 elif test -f $ac_dir/shtool; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1346 break
1347 fi
1348 done
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1352 { (exit 1); exit 1; }; }
1353 fi
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1357
1358 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1359 #
1360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1361 # 2006, 2007, 2008 Free Software Foundation, Inc.
1362 # Written by Gordon Matzigkeit, 1996
1363 #
1364 # This file is free software; the Free Software Foundation gives
1365 # unlimited permission to copy and/or distribute it, with or without
1366 # modifications, as long as this notice is preserved.
1367
1368
1369
1370 # serial 56 LT_INIT
1371
1372
1373 # LT_PREREQ(VERSION)
1374 # ------------------
1375 # Complain and exit if this libtool version is less that VERSION.
1376
1377
1378
1379 # _LT_CHECK_BUILDDIR
1380 # ------------------
1381 # Complain if the absolute build directory name contains unusual characters
1382
1383
1384
1385 # LT_INIT([OPTIONS])
1386 # ------------------
1387 # LT_INIT
1388
1389 # Old names:
1390
1391
1392
1393
1394 # _LT_CC_BASENAME(CC)
1395 # -------------------
1396 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1397
1398
1399
1400 # _LT_FILEUTILS_DEFAULTS
1401 # ----------------------
1402 # It is okay to use these file commands and assume they have been set
1403 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1404 # _LT_FILEUTILS_DEFAULTS
1405
1406
1407 # _LT_SETUP
1408 # ---------
1409 # _LT_SETUP
1410
1411
1412 # _LT_PROG_LTMAIN
1413 # ---------------
1414 # Note that this code is called both from `configure', and `config.status'
1415 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1416 # `config.status' has no value for ac_aux_dir unless we are using Automake,
1417 # so we pass a copy along to make sure it has a sensible value anyway.
1418 # _LT_PROG_LTMAIN
1419
1420
1421 ## ------------------------------------- ##
1422 ## Accumulate code for creating libtool. ##
1423 ## ------------------------------------- ##
1424
1425 # So that we can recreate a full libtool script including additional
1426 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1427 # in macros and then make a single call at the end using the `libtool'
1428 # label.
1429
1430
1431 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1432 # ----------------------------------------
1433 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1434
1435
1436 # Initialize.
1437
1438
1439
1440 # _LT_CONFIG_LIBTOOL([COMMANDS])
1441 # ------------------------------
1442 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1443
1444
1445 # Initialize.
1446
1447
1448
1449 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1450 # -----------------------------------------------------
1451
1452
1453
1454 # _LT_FORMAT_COMMENT([COMMENT])
1455 # -----------------------------
1456 # Add leading comment marks to the start of each line, and a trailing
1457 # full-stop to the whole comment if one is not present already.
1458
1459
1460
1461
1462 ## ------------------------ ##
1463 ## FIXME: Eliminate VARNAME ##
1464 ## ------------------------ ##
1465
1466
1467 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1468 # -------------------------------------------------------------------
1469 # CONFIGNAME is the name given to the value in the libtool script.
1470 # VARNAME is the (base) name used in the configure script.
1471 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1472 # VARNAME. Any other value will be used directly.
1473
1474
1475
1476 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1477 # --------------------------------------------------------
1478
1479
1480
1481 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1482 # ------------------------------------------------
1483
1484
1485
1486 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1487 # ---------------------------------------------------------
1488
1489
1490
1491 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1492 # --------------------------------------------------
1493
1494
1495
1496 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1497 # ---------------------------------------------------
1498
1499
1500
1501 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1502 # ---------------------------------------------------
1503
1504
1505
1506
1507 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1508 # ------------------------------------------------
1509
1510
1511
1512
1513 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1514 # ------------------------------------
1515 # Quote a variable value, and forward it to `config.status' so that its
1516 # declaration there will have the same value as in `configure'. VARNAME
1517 # must have a single quote delimited value for this to work.
1518
1519
1520
1521 # _LT_CONFIG_STATUS_DECLARATIONS
1522 # ------------------------------
1523 # We delimit libtool config variables with single quotes, so when
1524 # we write them to config.status, we have to be sure to quote all
1525 # embedded single quotes properly. In configure, this macro expands
1526 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1527 #
1528 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1529
1530
1531
1532 # _LT_LIBTOOL_TAGS
1533 # ----------------
1534 # Output comment and list of tags supported by the script
1535
1536
1537
1538 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1539 # -----------------------------------
1540 # Extract the dictionary values for VARNAME (optionally with TAG) and
1541 # expand to a commented shell variable setting:
1542 #
1543 # # Some comment about what VAR is for.
1544 # visible_name=$lt_internal_name
1545
1546
1547
1548 # _LT_LIBTOOL_CONFIG_VARS
1549 # -----------------------
1550 # Produce commented declarations of non-tagged libtool config variables
1551 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1552 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1553 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1554
1555
1556
1557 # _LT_LIBTOOL_TAG_VARS(TAG)
1558 # -------------------------
1559
1560
1561
1562 # _LT_TAGVAR(VARNAME, [TAGNAME])
1563 # ------------------------------
1564
1565
1566
1567 # _LT_CONFIG_COMMANDS
1568 # -------------------
1569 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1570 # variables for single and double quote escaping we saved from calls
1571 # to _LT_DECL, we can put quote escaped variables declarations
1572 # into `config.status', and then the shell code to quote escape them in
1573 # for loops in `config.status'. Finally, any additional code accumulated
1574 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1575 #_LT_CONFIG_COMMANDS
1576
1577
1578 # Initialize.
1579
1580
1581
1582 # LT_OUTPUT
1583 # ---------
1584 # This macro allows early generation of the libtool script (before
1585 # AC_OUTPUT is called), incase it is used in configure for compilation
1586 # tests.
1587 # LT_OUTPUT
1588
1589
1590 # _LT_CONFIG(TAG)
1591 # ---------------
1592 # If TAG is the built-in tag, create an initial libtool script with a
1593 # default configuration from the untagged config vars. Otherwise add code
1594 # to config.status for appending the configuration named by TAG from the
1595 # matching tagged config vars.
1596 # _LT_CONFIG
1597
1598
1599 # LT_SUPPORTED_TAG(TAG)
1600 # ---------------------
1601 # Trace this macro to discover what tags are supported by the libtool
1602 # --tag option, using:
1603 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1604
1605
1606
1607 # C support is built-in for now
1608
1609
1610
1611
1612 # LT_LANG(LANG)
1613 # -------------
1614 # Enable libtool support for the given language if not already enabled.
1615 # LT_LANG
1616
1617
1618 # _LT_LANG(LANGNAME)
1619 # ------------------
1620 # _LT_LANG
1621
1622
1623 # _LT_LANG_DEFAULT_CONFIG
1624 # -----------------------
1625 # _LT_LANG_DEFAULT_CONFIG
1626
1627 # Obsolete macros:
1628
1629
1630
1631
1632
1633
1634 # _LT_TAG_COMPILER
1635 # ----------------
1636 # _LT_TAG_COMPILER
1637
1638
1639 # _LT_COMPILER_BOILERPLATE
1640 # ------------------------
1641 # Check for compiler boilerplate output or warnings with
1642 # the simple compiler test code.
1643 # _LT_COMPILER_BOILERPLATE
1644
1645
1646 # _LT_LINKER_BOILERPLATE
1647 # ----------------------
1648 # Check for linker boilerplate output or warnings with
1649 # the simple link test code.
1650 # _LT_LINKER_BOILERPLATE
1651
1652 # _LT_REQUIRED_DARWIN_CHECKS
1653 # -------------------------
1654
1655
1656
1657 # _LT_DARWIN_LINKER_FEATURES
1658 # --------------------------
1659 # Checks for linker and compiler features on darwin
1660
1661
1662 # _LT_SYS_MODULE_PATH_AIX
1663 # -----------------------
1664 # Links a minimal program and checks the executable
1665 # for the system default hardcoded library path. In most cases,
1666 # this is /usr/lib:/lib, but when the MPI compilers are used
1667 # the location of the communication and MPI libs are included too.
1668 # If we don't find anything, use the default library path according
1669 # to the aix ld manual.
1670 # _LT_SYS_MODULE_PATH_AIX
1671
1672
1673 # _LT_SHELL_INIT(ARG)
1674 # -------------------
1675 # _LT_SHELL_INIT
1676
1677
1678 # _LT_PROG_ECHO_BACKSLASH
1679 # -----------------------
1680 # Add some code to the start of the generated configure script which
1681 # will find an echo command which doesn't interpret backslashes.
1682 # _LT_PROG_ECHO_BACKSLASH
1683
1684
1685 # _LT_ENABLE_LOCK
1686 # ---------------
1687 # _LT_ENABLE_LOCK
1688
1689
1690 # _LT_CMD_OLD_ARCHIVE
1691 # -------------------
1692 # _LT_CMD_OLD_ARCHIVE
1693
1694
1695 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1696 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1697 # ----------------------------------------------------------------
1698 # Check whether the given compiler option works
1699 # _LT_COMPILER_OPTION
1700
1701 # Old name:
1702
1703
1704
1705 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1706 # [ACTION-SUCCESS], [ACTION-FAILURE])
1707 # ----------------------------------------------------
1708 # Check whether the given linker option works
1709 # _LT_LINKER_OPTION
1710
1711 # Old name:
1712
1713
1714
1715 # LT_CMD_MAX_LEN
1716 #---------------
1717 # LT_CMD_MAX_LEN
1718
1719 # Old name:
1720
1721
1722
1723 # _LT_HEADER_DLFCN
1724 # ----------------
1725 # _LT_HEADER_DLFCN
1726
1727
1728 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1729 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1730 # ----------------------------------------------------------------
1731 # _LT_TRY_DLOPEN_SELF
1732
1733
1734 # LT_SYS_DLOPEN_SELF
1735 # ------------------
1736 # LT_SYS_DLOPEN_SELF
1737
1738 # Old name:
1739
1740
1741
1742 # _LT_COMPILER_C_O([TAGNAME])
1743 # ---------------------------
1744 # Check to see if options -c and -o are simultaneously supported by compiler.
1745 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1746 # _LT_COMPILER_C_O
1747
1748
1749 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1750 # ----------------------------------
1751 # Check to see if we can do hard links to lock some files if needed
1752 # _LT_COMPILER_FILE_LOCKS
1753
1754
1755 # _LT_CHECK_OBJDIR
1756 # ----------------
1757 # _LT_CHECK_OBJDIR
1758
1759
1760 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1761 # --------------------------------------
1762 # Check hardcoding attributes.
1763 # _LT_LINKER_HARDCODE_LIBPATH
1764
1765
1766 # _LT_CMD_STRIPLIB
1767 # ----------------
1768 # _LT_CMD_STRIPLIB
1769
1770
1771 # _LT_SYS_DYNAMIC_LINKER([TAG])
1772 # -----------------------------
1773 # PORTME Fill in your ld.so characteristics
1774 # _LT_SYS_DYNAMIC_LINKER
1775
1776
1777 # _LT_PATH_TOOL_PREFIX(TOOL)
1778 # --------------------------
1779 # find a file program which can recognize shared library
1780 # _LT_PATH_TOOL_PREFIX
1781
1782 # Old name:
1783
1784
1785
1786 # _LT_PATH_MAGIC
1787 # --------------
1788 # find a file program which can recognize a shared library
1789 # _LT_PATH_MAGIC
1790
1791
1792 # LT_PATH_LD
1793 # ----------
1794 # find the pathname to the GNU or non-GNU linker
1795 # LT_PATH_LD
1796
1797 # Old names:
1798
1799
1800
1801
1802 # _LT_PATH_LD_GNU
1803 #- --------------
1804 # _LT_PATH_LD_GNU
1805
1806
1807 # _LT_CMD_RELOAD
1808 # --------------
1809 # find reload flag for linker
1810 # -- PORTME Some linkers may need a different reload flag.
1811 # _LT_CMD_RELOAD
1812
1813
1814 # _LT_CHECK_MAGIC_METHOD
1815 # ----------------------
1816 # how to check for library dependencies
1817 # -- PORTME fill in with the dynamic library characteristics
1818 # _LT_CHECK_MAGIC_METHOD
1819
1820
1821 # LT_PATH_NM
1822 # ----------
1823 # find the pathname to a BSD- or MS-compatible name lister
1824 # LT_PATH_NM
1825
1826 # Old names:
1827
1828
1829
1830
1831 # LT_LIB_M
1832 # --------
1833 # check for math library
1834 # LT_LIB_M
1835
1836 # Old name:
1837
1838
1839
1840 # _LT_COMPILER_NO_RTTI([TAGNAME])
1841 # -------------------------------
1842 # _LT_COMPILER_NO_RTTI
1843
1844
1845 # _LT_CMD_GLOBAL_SYMBOLS
1846 # ----------------------
1847 # _LT_CMD_GLOBAL_SYMBOLS
1848
1849
1850 # _LT_COMPILER_PIC([TAGNAME])
1851 # ---------------------------
1852 # _LT_COMPILER_PIC
1853
1854
1855 # _LT_LINKER_SHLIBS([TAGNAME])
1856 # ----------------------------
1857 # See if the linker supports building shared libraries.
1858 # _LT_LINKER_SHLIBS
1859
1860
1861 # _LT_LANG_C_CONFIG([TAG])
1862 # ------------------------
1863 # Ensure that the configuration variables for a C compiler are suitably
1864 # defined. These variables are subsequently used by _LT_CONFIG to write
1865 # the compiler configuration to `libtool'.
1866 # _LT_LANG_C_CONFIG
1867
1868
1869 # _LT_PROG_CXX
1870 # ------------
1871 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
1872 # compiler, we have our own version here.
1873 # _LT_PROG_CXX
1874
1875
1876
1877 # _LT_LANG_CXX_CONFIG([TAG])
1878 # --------------------------
1879 # Ensure that the configuration variables for a C++ compiler are suitably
1880 # defined. These variables are subsequently used by _LT_CONFIG to write
1881 # the compiler configuration to `libtool'.
1882 # _LT_LANG_CXX_CONFIG
1883
1884
1885 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
1886 # ---------------------------------
1887 # Figure out "hidden" library dependencies from verbose
1888 # compiler output when linking a shared library.
1889 # Parse the compiler output and extract the necessary
1890 # objects, libraries and library flags.
1891 # _LT_SYS_HIDDEN_LIBDEPS
1892
1893
1894 # _LT_PROG_F77
1895 # ------------
1896 # Since AC_PROG_F77 is broken, in that it returns the empty string
1897 # if there is no fortran compiler, we have our own version here.
1898 # _LT_PROG_F77
1899
1900
1901
1902 # _LT_LANG_F77_CONFIG([TAG])
1903 # --------------------------
1904 # Ensure that the configuration variables for a Fortran 77 compiler are
1905 # suitably defined. These variables are subsequently used by _LT_CONFIG
1906 # to write the compiler configuration to `libtool'.
1907 # _LT_LANG_F77_CONFIG
1908
1909
1910 # _LT_PROG_FC
1911 # -----------
1912 # Since AC_PROG_FC is broken, in that it returns the empty string
1913 # if there is no fortran compiler, we have our own version here.
1914 # _LT_PROG_FC
1915
1916
1917
1918 # _LT_LANG_FC_CONFIG([TAG])
1919 # -------------------------
1920 # Ensure that the configuration variables for a Fortran compiler are
1921 # suitably defined. These variables are subsequently used by _LT_CONFIG
1922 # to write the compiler configuration to `libtool'.
1923 # _LT_LANG_FC_CONFIG
1924
1925
1926 # _LT_LANG_GCJ_CONFIG([TAG])
1927 # --------------------------
1928 # Ensure that the configuration variables for the GNU Java Compiler compiler
1929 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1930 # to write the compiler configuration to `libtool'.
1931 # _LT_LANG_GCJ_CONFIG
1932
1933
1934 # _LT_LANG_RC_CONFIG([TAG])
1935 # -------------------------
1936 # Ensure that the configuration variables for the Windows resource compiler
1937 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1938 # to write the compiler configuration to `libtool'.
1939 # _LT_LANG_RC_CONFIG
1940
1941
1942 # LT_PROG_GCJ
1943 # -----------
1944
1945
1946 # Old name:
1947
1948
1949
1950 # LT_PROG_RC
1951 # ----------
1952
1953
1954 # Old name:
1955
1956
1957
1958 # _LT_DECL_EGREP
1959 # --------------
1960 # If we don't have a new enough Autoconf to choose the best grep
1961 # available, choose the one first in the user's PATH.
1962
1963
1964
1965 # _LT_DECL_OBJDUMP
1966 # --------------
1967 # If we don't have a new enough Autoconf to choose the best objdump
1968 # available, choose the one first in the user's PATH.
1969
1970
1971
1972 # _LT_DECL_SED
1973 # ------------
1974 # Check for a fully-functional sed program, that truncates
1975 # as few characters as possible. Prefer GNU sed if found.
1976 # _LT_DECL_SED
1977
1978
1979 ############################################################
1980 # NOTE: This macro has been submitted for inclusion into #
1981 # GNU Autoconf as AC_PROG_SED. When it is available in #
1982 # a released version of Autoconf we should remove this #
1983 # macro and use it instead. #
1984 ############################################################
1985
1986 #AC_PROG_SED
1987 #m4_ifndef
1988
1989 # Old name:
1990
1991
1992
1993 # _LT_CHECK_SHELL_FEATURES
1994 # ------------------------
1995 # Find out whether the shell is Bourne or XSI compatible,
1996 # or has some other useful features.
1997 # _LT_CHECK_SHELL_FEATURES
1998
1999
2000 # _LT_PROG_XSI_SHELLFNS
2001 # ---------------------
2002 # Bourne and XSI compatible variants of some useful shell functions.
2003
2004
2005 # Make sure we can run config.sub.
2006 $ac_config_sub sun4 >/dev/null 2>&1 ||
2007 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2008 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2009 { (exit 1); exit 1; }; }
2010
2011 echo "$as_me:$LINENO: checking build system type" >&5
2012 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2013 if test "${ac_cv_build+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 ac_cv_build_alias=$build_alias
2017 test -z "$ac_cv_build_alias" &&
2018 ac_cv_build_alias=`$ac_config_guess`
2019 test -z "$ac_cv_build_alias" &&
2020 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022 { (exit 1); exit 1; }; }
2023 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2024 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2025 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2026 { (exit 1); exit 1; }; }
2027
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030 echo "${ECHO_T}$ac_cv_build" >&6
2031 build=$ac_cv_build
2032 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2033 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2034 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2035
2036
2037 echo "$as_me:$LINENO: checking host system type" >&5
2038 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2039 if test "${ac_cv_host+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 ac_cv_host_alias=$host_alias
2043 test -z "$ac_cv_host_alias" &&
2044 ac_cv_host_alias=$ac_cv_build_alias
2045 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2046 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2047 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2048 { (exit 1); exit 1; }; }
2049
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2052 echo "${ECHO_T}$ac_cv_host" >&6
2053 host=$ac_cv_host
2054 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2057
2058
2059 echo "$as_me:$LINENO: checking target system type" >&5
2060 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2061 if test "${ac_cv_target+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 ac_cv_target_alias=$target_alias
2065 test "x$ac_cv_target_alias" = "x" &&
2066 ac_cv_target_alias=$ac_cv_host_alias
2067 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2068 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2069 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2070 { (exit 1); exit 1; }; }
2071
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2074 echo "${ECHO_T}$ac_cv_target" >&6
2075 target=$ac_cv_target
2076 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2079
2080
2081 # The aliases save the names the user supplied, while $host etc.
2082 # will get canonicalized.
2083 test -n "$target_alias" &&
2084 test "$program_prefix$program_suffix$program_transform_name" = \
2085 NONENONEs,x,x, &&
2086 program_prefix=${target_alias}-
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2113 fi
2114 done
2115 done
2116
2117 fi
2118 fi
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2123 else
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2126 fi
2127
2128 fi
2129 if test -z "$ac_cv_prog_CC"; then
2130 ac_ct_CC=$CC
2131 # Extract the first word of "gcc", so it can be a program name with args.
2132 set dummy gcc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="gcc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 CC=$ac_ct_CC
2167 else
2168 CC="$ac_cv_prog_CC"
2169 fi
2170
2171 if test -z "$CC"; then
2172 if test -n "$ac_tool_prefix"; then
2173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2174 set dummy ${ac_tool_prefix}cc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 ac_cv_prog_CC="${ac_tool_prefix}cc"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194 done
2195 done
2196
2197 fi
2198 fi
2199 CC=$ac_cv_prog_CC
2200 if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2203 else
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2206 fi
2207
2208 fi
2209 if test -z "$ac_cv_prog_CC"; then
2210 ac_ct_CC=$CC
2211 # Extract the first word of "cc", so it can be a program name with args.
2212 set dummy cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 if test -n "$ac_ct_CC"; then
2219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_ac_ct_CC="cc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2231 fi
2232 done
2233 done
2234
2235 fi
2236 fi
2237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_CC" >&6
2241 else
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246 CC=$ac_ct_CC
2247 else
2248 CC="$ac_cv_prog_CC"
2249 fi
2250
2251 fi
2252 if test -z "$CC"; then
2253 # Extract the first word of "cc", so it can be a program name with args.
2254 set dummy cc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CC+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 if test -n "$CC"; then
2261 ac_cv_prog_CC="$CC" # Let the user override the test.
2262 else
2263 ac_prog_rejected=no
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2272 ac_prog_rejected=yes
2273 continue
2274 fi
2275 ac_cv_prog_CC="cc"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279 done
2280 done
2281
2282 if test $ac_prog_rejected = yes; then
2283 # We found a bogon in the path, so make sure we never use it.
2284 set dummy $ac_cv_prog_CC
2285 shift
2286 if test $# != 0; then
2287 # We chose a different compiler from the bogus one.
2288 # However, it has the same basename, so the bogon will be chosen
2289 # first if we set CC to just the basename; use the full file name.
2290 shift
2291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2292 fi
2293 fi
2294 fi
2295 fi
2296 CC=$ac_cv_prog_CC
2297 if test -n "$CC"; then
2298 echo "$as_me:$LINENO: result: $CC" >&5
2299 echo "${ECHO_T}$CC" >&6
2300 else
2301 echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2303 fi
2304
2305 fi
2306 if test -z "$CC"; then
2307 if test -n "$ac_tool_prefix"; then
2308 for ac_prog in cl
2309 do
2310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 if test -n "$CC"; then
2318 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331 done
2332 done
2333
2334 fi
2335 fi
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 echo "$as_me:$LINENO: result: $CC" >&5
2339 echo "${ECHO_T}$CC" >&6
2340 else
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2344
2345 test -n "$CC" && break
2346 done
2347 fi
2348 if test -z "$CC"; then
2349 ac_ct_CC=$CC
2350 for ac_prog in cl
2351 do
2352 # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 if test -n "$ac_ct_CC"; then
2360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 ac_cv_prog_ac_ct_CC="$ac_prog"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373 done
2374 done
2375
2376 fi
2377 fi
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381 echo "${ECHO_T}$ac_ct_CC" >&6
2382 else
2383 echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6
2385 fi
2386
2387 test -n "$ac_ct_CC" && break
2388 done
2389
2390 CC=$ac_ct_CC
2391 fi
2392
2393 fi
2394
2395
2396 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2397 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: no acceptable C compiler found in \$PATH
2401 See \`config.log' for more details." >&2;}
2402 { (exit 1); exit 1; }; }; }
2403
2404 # Provide some information about the compiler.
2405 echo "$as_me:$LINENO:" \
2406 "checking for C compiler version" >&5
2407 ac_compiler=`set X $ac_compile; echo $2`
2408 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2409 (eval $ac_compiler --version </dev/null >&5) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }
2413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2414 (eval $ac_compiler -v </dev/null >&5) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }
2418 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2419 (eval $ac_compiler -V </dev/null >&5) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }
2423
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2430
2431 int
2432 main ()
2433 {
2434
2435 ;
2436 return 0;
2437 }
2438 _ACEOF
2439 ac_clean_files_save=$ac_clean_files
2440 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2441 # Try to create an executable without -o first, disregard a.out.
2442 # It will help us diagnose broken compilers, and finding out an intuition
2443 # of exeext.
2444 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2445 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2446 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2447 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2448 (eval $ac_link_default) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; then
2452 # Find the output, starting from the most likely. This scheme is
2453 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2454 # resort.
2455
2456 # Be careful to initialize this variable, since it used to be cached.
2457 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2458 ac_cv_exeext=
2459 # b.out is created by i960 compilers.
2460 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2461 do
2462 test -f "$ac_file" || continue
2463 case $ac_file in
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2465 ;;
2466 conftest.$ac_ext )
2467 # This is the source file.
2468 ;;
2469 [ab].out )
2470 # We found the default executable, but exeext='' is most
2471 # certainly right.
2472 break;;
2473 *.* )
2474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2475 # FIXME: I believe we export ac_cv_exeext for Libtool,
2476 # but it would be cool to find out if it's true. Does anybody
2477 # maintain Libtool? --akim.
2478 export ac_cv_exeext
2479 break;;
2480 * )
2481 break;;
2482 esac
2483 done
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2489 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&2;}
2494 { (exit 77); exit 77; }; }; }
2495 fi
2496
2497 ac_exeext=$ac_cv_exeext
2498 echo "$as_me:$LINENO: result: $ac_file" >&5
2499 echo "${ECHO_T}$ac_file" >&6
2500
2501 # Check the compiler produces executables we can run. If not, either
2502 # the compiler is broken, or we cross compile.
2503 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2504 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2505 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2506 # If not cross compiling, check that we can run a simple program.
2507 if test "$cross_compiling" != yes; then
2508 if { ac_try='./$ac_file'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 cross_compiling=no
2515 else
2516 if test "$cross_compiling" = maybe; then
2517 cross_compiling=yes
2518 else
2519 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2520 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }; }
2528 fi
2529 fi
2530 fi
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2533
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run. If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2542
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555 test -f "$ac_file" || continue
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559 export ac_cv_exeext
2560 break;;
2561 * ) break;;
2562 esac
2563 done
2564 else
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2572 fi
2573
2574 rm -f conftest$ac_cv_exeext
2575 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2576 echo "${ECHO_T}$ac_cv_exeext" >&6
2577
2578 rm -f conftest.$ac_ext
2579 EXEEXT=$ac_cv_exeext
2580 ac_exeext=$EXEEXT
2581 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2582 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2583 if test "${ac_cv_objext+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592
2593 int
2594 main ()
2595 {
2596
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.o conftest.obj
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; then
2607 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2608 case $ac_file in
2609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2611 break;;
2612 esac
2613 done
2614 else
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }; }
2625 fi
2626
2627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2630 echo "${ECHO_T}$ac_cv_objext" >&6
2631 OBJEXT=$ac_cv_objext
2632 ac_objext=$OBJEXT
2633 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2634 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644
2645 int
2646 main ()
2647 {
2648 #ifndef __GNUC__
2649 choke me
2650 #endif
2651
2652 ;
2653 return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 ac_compiler_gnu=yes
2679 else
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 ac_compiler_gnu=no
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2687
2688 fi
2689 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2690 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2691 GCC=`test $ac_compiler_gnu = yes && echo yes`
2692 ac_test_CFLAGS=${CFLAGS+set}
2693 ac_save_CFLAGS=$CFLAGS
2694 CFLAGS="-g"
2695 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2696 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2697 if test "${ac_cv_prog_cc_g+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h. */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706
2707 int
2708 main ()
2709 {
2710
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>conftest.er1
2718 ac_status=$?
2719 grep -v '^ *+' conftest.er1 >conftest.err
2720 rm -f conftest.er1
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag"
2725 || test ! -s conftest.err'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 (eval $ac_try) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cc_g=yes
2738 else
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 ac_cv_prog_cc_g=no
2743 fi
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 fi
2746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2748 if test "$ac_test_CFLAGS" = set; then
2749 CFLAGS=$ac_save_CFLAGS
2750 elif test $ac_cv_prog_cc_g = yes; then
2751 if test "$GCC" = yes; then
2752 CFLAGS="-g -O2"
2753 else
2754 CFLAGS="-g"
2755 fi
2756 else
2757 if test "$GCC" = yes; then
2758 CFLAGS="-O2"
2759 else
2760 CFLAGS=
2761 fi
2762 fi
2763 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2764 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2765 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 ac_cv_prog_cc_stdc=no
2769 ac_save_CC=$CC
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #include <stdarg.h>
2777 #include <stdio.h>
2778 #include <sys/types.h>
2779 #include <sys/stat.h>
2780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2781 struct buf { int x; };
2782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783 static char *e (p, i)
2784 char **p;
2785 int i;
2786 {
2787 return p[i];
2788 }
2789 static char *f (char * (*g) (char **, int), char **p, ...)
2790 {
2791 char *s;
2792 va_list v;
2793 va_start (v,p);
2794 s = g (p, va_arg (v,int));
2795 va_end (v);
2796 return s;
2797 }
2798
2799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2800 function prototypes and stuff, but not '\xHH' hex character constants.
2801 These don't provoke an error unfortunately, instead are silently treated
2802 as 'x'. The following induces an error, until -std1 is added to get
2803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2804 array size at least. It's necessary to write '\x00'==0 to get something
2805 that's true only with -std1. */
2806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807
2808 int test (int i, double x);
2809 struct s1 {int (*f) (int a);};
2810 struct s2 {int (*f) (double a);};
2811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2812 int argc;
2813 char **argv;
2814 int
2815 main ()
2816 {
2817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2818 ;
2819 return 0;
2820 }
2821 _ACEOF
2822 # Don't try gcc -ansi; that turns off useful extensions and
2823 # breaks some systems' header files.
2824 # AIX -qlanglvl=ansi
2825 # Ultrix and OSF/1 -std1
2826 # HP-UX 10.20 and later -Ae
2827 # HP-UX older versions -Aa -D_HPUX_SOURCE
2828 # SVR4 -Xc -D__EXTENSIONS__
2829 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 do
2831 CC="$ac_save_CC $ac_arg"
2832 rm -f conftest.$ac_objext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2834 (eval $ac_compile) 2>conftest.er1
2835 ac_status=$?
2836 grep -v '^ *+' conftest.er1 >conftest.err
2837 rm -f conftest.er1
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -z "$ac_c_werror_flag"
2842 || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_prog_cc_stdc=$ac_arg
2855 break
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 fi
2861 rm -f conftest.err conftest.$ac_objext
2862 done
2863 rm -f conftest.$ac_ext conftest.$ac_objext
2864 CC=$ac_save_CC
2865
2866 fi
2867
2868 case "x$ac_cv_prog_cc_stdc" in
2869 x|xno)
2870 echo "$as_me:$LINENO: result: none needed" >&5
2871 echo "${ECHO_T}none needed" >&6 ;;
2872 *)
2873 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2875 CC="$CC $ac_cv_prog_cc_stdc" ;;
2876 esac
2877
2878 # Some people use a C++ compiler to compile C. Since we use `exit',
2879 # in C++ we need to declare it. In case someone uses the same compiler
2880 # for both compiling C and C++ we need to have the C++ compiler decide
2881 # the declaration of exit, since it's the most demanding environment.
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #ifndef __cplusplus
2884 choke me
2885 #endif
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -z "$ac_c_werror_flag"
2897 || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 for ac_declaration in \
2910 '' \
2911 'extern "C" void std::exit (int) throw (); using std::exit;' \
2912 'extern "C" void std::exit (int); using std::exit;' \
2913 'extern "C" void exit (int) throw ();' \
2914 'extern "C" void exit (int);' \
2915 'void exit (int);'
2916 do
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 $ac_declaration
2924 #include <stdlib.h>
2925 int
2926 main ()
2927 {
2928 exit (42);
2929 ;
2930 return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 :
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 $ac_declaration
2970 int
2971 main ()
2972 {
2973 exit (42);
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>conftest.er1
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -z "$ac_c_werror_flag"
2988 || test ! -s conftest.err'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 (eval $ac_try) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 break
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 fi
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 done
3008 rm -f conftest*
3009 if test -n "$ac_declaration"; then
3010 echo '#ifdef __cplusplus' >>confdefs.h
3011 echo $ac_declaration >>confdefs.h
3012 echo '#endif' >>confdefs.h
3013 fi
3014
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 fi
3020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026
3027 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3028 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3029 if test "${lt_cv_path_SED+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 # Loop through the user's path and test for sed and gsed.
3033 # Then use that list of sed's as ones to test for truncation.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for lt_ac_prog in sed gsed; do
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3042 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3043 fi
3044 done
3045 done
3046 done
3047 IFS=$as_save_IFS
3048 lt_ac_max=0
3049 lt_ac_count=0
3050 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3051 # along with /bin/sed that truncates output.
3052 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3053 test ! -f $lt_ac_sed && continue
3054 cat /dev/null > conftest.in
3055 lt_ac_count=0
3056 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3057 # Check for GNU sed and select it if it is found.
3058 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3059 lt_cv_path_SED=$lt_ac_sed
3060 break
3061 fi
3062 while true; do
3063 cat conftest.in conftest.in >conftest.tmp
3064 mv conftest.tmp conftest.in
3065 cp conftest.in conftest.nl
3066 echo >>conftest.nl
3067 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3068 cmp -s conftest.out conftest.nl || break
3069 # 10000 chars as input seems more than enough
3070 test $lt_ac_count -gt 10 && break
3071 lt_ac_count=`expr $lt_ac_count + 1`
3072 if test $lt_ac_count -gt $lt_ac_max; then
3073 lt_ac_max=$lt_ac_count
3074 lt_cv_path_SED=$lt_ac_sed
3075 fi
3076 done
3077 done
3078
3079 fi
3080
3081 SED=$lt_cv_path_SED
3082
3083 echo "$as_me:$LINENO: result: $SED" >&5
3084 echo "${ECHO_T}$SED" >&6
3085
3086
3087 # Figure out what compiler warnings we can enable.
3088 # See config/warnings.m4 for details.
3089
3090
3091 WARN_CFLAGS=
3092 save_CFLAGS="$CFLAGS"
3093 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
3094 -Wmissing-prototypes -Wold-style-definition \
3095 -Wmissing-format-attribute -Wno-overlength-strings; do
3096 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3097
3098 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
3099 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
3100 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 CFLAGS="$option"
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121 (eval $ac_compile) 2>conftest.er1
3122 ac_status=$?
3123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -z "$ac_c_werror_flag"
3129 || test ! -s conftest.err'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 eval "$as_acx_Woption=yes"
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 eval "$as_acx_Woption=no"
3147 fi
3148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3149
3150 fi
3151 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3152 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3153 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3154 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
3155 fi
3156
3157 done
3158 CFLAGS="$save_CFLAGS"
3159
3160 WARN_PEDANTIC=
3161 if test "$GCC" = yes; then
3162 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
3163 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
3164 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 save_CFLAGS="$CFLAGS"
3168 CFLAGS="-pedantic -Wno-long-long"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175
3176 int
3177 main ()
3178 {
3179
3180 ;
3181 return 0;
3182 }
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3186 (eval $ac_compile) 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag"
3194 || test ! -s conftest.err'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 acx_cv_prog_cc_pedantic__Wno_long_long=yes
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 acx_cv_prog_cc_pedantic__Wno_long_long=no
3212 fi
3213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3214 CFLAGS="$save_CFLAGS"
3215 fi
3216 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
3217 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
3218 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
3219 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3220 fi
3221
3222
3223 fi
3224
3225
3226
3227 # Only enable with --enable-werror-always until existing warnings are
3228 # corrected.
3229 WERROR=
3230 # Check whether --enable-werror-always or --disable-werror-always was given.
3231 if test "${enable_werror_always+set}" = set; then
3232 enableval="$enable_werror_always"
3233
3234 else
3235 enable_werror_always=no
3236 fi;
3237 if test $enable_werror_always = yes; then
3238 WERROR="$WERROR${WERROR:+ }-Werror"
3239 fi
3240
3241
3242
3243
3244 # Determine the noncanonical target name, for directory use.
3245 case ${build_alias} in
3246 "") build_noncanonical=${build} ;;
3247 *) build_noncanonical=${build_alias} ;;
3248 esac
3249
3250 case ${host_alias} in
3251 "") host_noncanonical=${build_noncanonical} ;;
3252 *) host_noncanonical=${host_alias} ;;
3253 esac
3254
3255 case ${target_alias} in
3256 "") target_noncanonical=${host_noncanonical} ;;
3257 *) target_noncanonical=${target_alias} ;;
3258 esac
3259
3260
3261
3262
3263 # Specify the local prefix
3264 local_prefix=
3265
3266 # Check whether --with-local-prefix or --without-local-prefix was given.
3267 if test "${with_local_prefix+set}" = set; then
3268 withval="$with_local_prefix"
3269 case "${withval}" in
3270 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
3271 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
3272 { (exit 1); exit 1; }; } ;;
3273 no) ;;
3274 *) local_prefix=$with_local_prefix ;;
3275 esac
3276 fi;
3277
3278 # Default local prefix if it is empty
3279 if test x$local_prefix = x; then
3280 local_prefix=/usr/local
3281 fi
3282
3283 # Choose one or two-process fix methodology. Systems that cannot handle
3284 # bi-directional pipes must use the two process method.
3285 #
3286 # Check whether --enable-twoprocess or --disable-twoprocess was given.
3287 if test "${enable_twoprocess+set}" = set; then
3288 enableval="$enable_twoprocess"
3289 if test "x$enable_twoprocess" = xyes; then
3290 TARGET=twoprocess
3291 else
3292 TARGET=oneprocess
3293 fi
3294 else
3295 case $host in
3296 i?86-*-msdosdjgpp* | \
3297 i?86-*-mingw32* | \
3298 x86_64-*-mingw32* | \
3299 *-*-beos* )
3300 TARGET=twoprocess
3301 ;;
3302
3303 * )
3304 TARGET=oneprocess
3305 ;;
3306 esac
3307 fi;
3308
3309
3310 if test $TARGET = twoprocess; then
3311
3312 cat >>confdefs.h <<\_ACEOF
3313 #define SEPARATE_FIX_PROC 1
3314 _ACEOF
3315
3316 fi
3317
3318 case $host in
3319 vax-dec-bsd* )
3320
3321 cat >>confdefs.h <<\_ACEOF
3322 #define exit xexit
3323 _ACEOF
3324
3325
3326 cat >>confdefs.h <<\_ACEOF
3327 #define atexit xatexit
3328 _ACEOF
3329
3330 ;;
3331 esac
3332
3333
3334 cat >>confdefs.h <<_ACEOF
3335 #define EXE_EXT "$ac_exeext"
3336 _ACEOF
3337
3338
3339 # Checks for header files.
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3349 CPP=
3350 fi
3351 if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 # Double quotes because CPP needs to be expanded
3356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3357 do
3358 ac_preproc_ok=false
3359 for ac_c_preproc_warn_flag in '' yes
3360 do
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364 # <limits.h> exists even on freestanding compilers.
3365 # On the NeXT, cc -E runs the code through the compiler's parser,
3366 # not just through cpp. "Syntax error" is here to catch this case.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #ifdef __STDC__
3374 # include <limits.h>
3375 #else
3376 # include <assert.h>
3377 #endif
3378 Syntax error
3379 _ACEOF
3380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null; then
3388 if test -s conftest.err; then
3389 ac_cpp_err=$ac_c_preproc_warn_flag
3390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3391 else
3392 ac_cpp_err=
3393 fi
3394 else
3395 ac_cpp_err=yes
3396 fi
3397 if test -z "$ac_cpp_err"; then
3398 :
3399 else
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 # Broken: fails on valid input.
3404 continue
3405 fi
3406 rm -f conftest.err conftest.$ac_ext
3407
3408 # OK, works on sane cases. Now check whether non-existent headers
3409 # can be detected and how.
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 #include <ac_nonexistent.h>
3417 _ACEOF
3418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 else
3430 ac_cpp_err=
3431 fi
3432 else
3433 ac_cpp_err=yes
3434 fi
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3437 continue
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 # Passes both tests.
3443 ac_preproc_ok=:
3444 break
3445 fi
3446 rm -f conftest.err conftest.$ac_ext
3447
3448 done
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then
3452 break
3453 fi
3454
3455 done
3456 ac_cv_prog_CPP=$CPP
3457
3458 fi
3459 CPP=$ac_cv_prog_CPP
3460 else
3461 ac_cv_prog_CPP=$CPP
3462 fi
3463 echo "$as_me:$LINENO: result: $CPP" >&5
3464 echo "${ECHO_T}$CPP" >&6
3465 ac_preproc_ok=false
3466 for ac_c_preproc_warn_flag in '' yes
3467 do
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #ifdef __STDC__
3481 # include <limits.h>
3482 #else
3483 # include <assert.h>
3484 #endif
3485 Syntax error
3486 _ACEOF
3487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498 else
3499 ac_cpp_err=
3500 fi
3501 else
3502 ac_cpp_err=yes
3503 fi
3504 if test -z "$ac_cpp_err"; then
3505 :
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 # Broken: fails on valid input.
3511 continue
3512 fi
3513 rm -f conftest.err conftest.$ac_ext
3514
3515 # OK, works on sane cases. Now check whether non-existent headers
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <ac_nonexistent.h>
3524 _ACEOF
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536 else
3537 ac_cpp_err=
3538 fi
3539 else
3540 ac_cpp_err=yes
3541 fi
3542 if test -z "$ac_cpp_err"; then
3543 # Broken: success on invalid input.
3544 continue
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 # Passes both tests.
3550 ac_preproc_ok=:
3551 break
3552 fi
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559 :
3560 else
3561 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3562 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&5
3565 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&2;}
3567 { (exit 1); exit 1; }; }; }
3568 fi
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
3576
3577 echo "$as_me:$LINENO: checking for egrep" >&5
3578 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3579 if test "${ac_cv_prog_egrep+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3583 then ac_cv_prog_egrep='grep -E'
3584 else ac_cv_prog_egrep='egrep'
3585 fi
3586 fi
3587 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3588 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3589 EGREP=$ac_cv_prog_egrep
3590
3591
3592 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3593 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3594 if test "${ac_cv_header_stdc+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <stdlib.h>
3604 #include <stdarg.h>
3605 #include <string.h>
3606 #include <float.h>
3607
3608 int
3609 main ()
3610 {
3611
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_c_werror_flag"
3626 || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest.$ac_objext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3638 ac_cv_header_stdc=yes
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 ac_cv_header_stdc=no
3644 fi
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646
3647 if test $ac_cv_header_stdc = yes; then
3648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 #include <string.h>
3656
3657 _ACEOF
3658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3659 $EGREP "memchr" >/dev/null 2>&1; then
3660 :
3661 else
3662 ac_cv_header_stdc=no
3663 fi
3664 rm -f conftest*
3665
3666 fi
3667
3668 if test $ac_cv_header_stdc = yes; then
3669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <stdlib.h>
3677
3678 _ACEOF
3679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680 $EGREP "free" >/dev/null 2>&1; then
3681 :
3682 else
3683 ac_cv_header_stdc=no
3684 fi
3685 rm -f conftest*
3686
3687 fi
3688
3689 if test $ac_cv_header_stdc = yes; then
3690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3691 if test "$cross_compiling" = yes; then
3692 :
3693 else
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <ctype.h>
3701 #if ((' ' & 0x0FF) == 0x020)
3702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3704 #else
3705 # define ISLOWER(c) \
3706 (('a' <= (c) && (c) <= 'i') \
3707 || ('j' <= (c) && (c) <= 'r') \
3708 || ('s' <= (c) && (c) <= 'z'))
3709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #endif
3711
3712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3713 int
3714 main ()
3715 {
3716 int i;
3717 for (i = 0; i < 256; i++)
3718 if (XOR (islower (i), ISLOWER (i))
3719 || toupper (i) != TOUPPER (i))
3720 exit(2);
3721 exit (0);
3722 }
3723 _ACEOF
3724 rm -f conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 :
3736 else
3737 echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ( exit $ac_status )
3742 ac_cv_header_stdc=no
3743 fi
3744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 fi
3747 fi
3748 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3749 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3750 if test $ac_cv_header_stdc = yes; then
3751
3752 cat >>confdefs.h <<\_ACEOF
3753 #define STDC_HEADERS 1
3754 _ACEOF
3755
3756 fi
3757
3758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3769 inttypes.h stdint.h unistd.h
3770 do
3771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3772 echo "$as_me:$LINENO: checking for $ac_header" >&5
3773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3784
3785 #include <$ac_header>
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag"
3797 || test ! -s conftest.err'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 (eval $ac_try) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; } &&
3803 { ac_try='test -s conftest.$ac_objext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 eval "$as_ac_Header=yes"
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 eval "$as_ac_Header=no"
3815 fi
3816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823 _ACEOF
3824
3825 fi
3826
3827 done
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3838 sys/stat.h
3839 do
3840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3842 echo "$as_me:$LINENO: checking for $ac_header" >&5
3843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 fi
3847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3849 else
3850 # Is the header compilable?
3851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3853 cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h. */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 $ac_includes_default
3860 #include <$ac_header>
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_header_compiler=yes
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889 ac_header_compiler=no
3890 fi
3891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3893 echo "${ECHO_T}$ac_header_compiler" >&6
3894
3895 # Is the header present?
3896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <$ac_header>
3905 _ACEOF
3906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } >/dev/null; then
3914 if test -s conftest.err; then
3915 ac_cpp_err=$ac_c_preproc_warn_flag
3916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3917 else
3918 ac_cpp_err=
3919 fi
3920 else
3921 ac_cpp_err=yes
3922 fi
3923 if test -z "$ac_cpp_err"; then
3924 ac_header_preproc=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 ac_header_preproc=no
3930 fi
3931 rm -f conftest.err conftest.$ac_ext
3932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3933 echo "${ECHO_T}$ac_header_preproc" >&6
3934
3935 # So? What about this header?
3936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3937 yes:no: )
3938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3942 ac_header_preproc=yes
3943 ;;
3944 no:yes:* )
3945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3957 (
3958 cat <<\_ASBOX
3959 ## -------------------------------------- ##
3960 ## Report this to the fixincludes lists. ##
3961 ## -------------------------------------- ##
3962 _ASBOX
3963 ) |
3964 sed "s/^/$as_me: WARNING: /" >&2
3965 ;;
3966 esac
3967 echo "$as_me:$LINENO: checking for $ac_header" >&5
3968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 eval "$as_ac_Header=\$ac_header_preproc"
3973 fi
3974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3976
3977 fi
3978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3979 cat >>confdefs.h <<_ACEOF
3980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3981 _ACEOF
3982
3983 fi
3984
3985 done
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
4005 do
4006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4007 echo "$as_me:$LINENO: checking for $ac_func" >&5
4008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4009 if eval "test \"\${$as_ac_var+set}\" = set"; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4020 #define $ac_func innocuous_$ac_func
4021
4022 /* System header to define __stub macros and hopefully few prototypes,
4023 which can conflict with char $ac_func (); below.
4024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025 <limits.h> exists even on freestanding compilers. */
4026
4027 #ifdef __STDC__
4028 # include <limits.h>
4029 #else
4030 # include <assert.h>
4031 #endif
4032
4033 #undef $ac_func
4034
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 #ifdef __cplusplus
4037 extern "C"
4038 {
4039 #endif
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4042 char $ac_func ();
4043 /* The GNU C library defines this for functions which it implements
4044 to always fail with ENOSYS. Some functions are actually named
4045 something starting with __ and the normal name is an alias. */
4046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4047 choke me
4048 #else
4049 char (*f) () = $ac_func;
4050 #endif
4051 #ifdef __cplusplus
4052 }
4053 #endif
4054
4055 int
4056 main ()
4057 {
4058 return f != $ac_func;
4059 ;
4060 return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.$ac_objext conftest$ac_exeext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4065 (eval $ac_link) 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag"
4073 || test ! -s conftest.err'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try='test -s conftest$ac_exeext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 eval "$as_ac_var=yes"
4086 else
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 eval "$as_ac_var=no"
4091 fi
4092 rm -f conftest.err conftest.$ac_objext \
4093 conftest$ac_exeext conftest.$ac_ext
4094 fi
4095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4097 if test `eval echo '${'$as_ac_var'}'` = yes; then
4098 cat >>confdefs.h <<_ACEOF
4099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4100 _ACEOF
4101
4102 fi
4103 done
4104
4105 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4106 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4107 if test "${ac_cv_have_decl_abort+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 $ac_includes_default
4117 int
4118 main ()
4119 {
4120 #ifndef abort
4121 char *p = (char *) abort;
4122 #endif
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag"
4138 || test ! -s conftest.err'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; } &&
4144 { ac_try='test -s conftest.$ac_objext'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 ac_cv_have_decl_abort=yes
4151 else
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155 ac_cv_have_decl_abort=no
4156 fi
4157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
4160 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
4161 if test $ac_cv_have_decl_abort = yes; then
4162
4163 cat >>confdefs.h <<_ACEOF
4164 #define HAVE_DECL_ABORT 1
4165 _ACEOF
4166
4167
4168 else
4169 cat >>confdefs.h <<_ACEOF
4170 #define HAVE_DECL_ABORT 0
4171 _ACEOF
4172
4173
4174 fi
4175 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
4176 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
4177 if test "${ac_cv_have_decl_asprintf+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 $ac_includes_default
4187 int
4188 main ()
4189 {
4190 #ifndef asprintf
4191 char *p = (char *) asprintf;
4192 #endif
4193
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -z "$ac_c_werror_flag"
4208 || test ! -s conftest.err'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 ac_cv_have_decl_asprintf=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 ac_cv_have_decl_asprintf=no
4226 fi
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 fi
4229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
4230 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
4231 if test $ac_cv_have_decl_asprintf = yes; then
4232
4233 cat >>confdefs.h <<_ACEOF
4234 #define HAVE_DECL_ASPRINTF 1
4235 _ACEOF
4236
4237
4238 else
4239 cat >>confdefs.h <<_ACEOF
4240 #define HAVE_DECL_ASPRINTF 0
4241 _ACEOF
4242
4243
4244 fi
4245 echo "$as_me:$LINENO: checking whether basename is declared" >&5
4246 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
4247 if test "${ac_cv_have_decl_basename+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4257 int
4258 main ()
4259 {
4260 #ifndef basename
4261 char *p = (char *) basename;
4262 #endif
4263
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_have_decl_basename=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ac_cv_have_decl_basename=no
4296 fi
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
4300 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
4301 if test $ac_cv_have_decl_basename = yes; then
4302
4303 cat >>confdefs.h <<_ACEOF
4304 #define HAVE_DECL_BASENAME 1
4305 _ACEOF
4306
4307
4308 else
4309 cat >>confdefs.h <<_ACEOF
4310 #define HAVE_DECL_BASENAME 0
4311 _ACEOF
4312
4313
4314 fi
4315 echo "$as_me:$LINENO: checking whether errno is declared" >&5
4316 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
4317 if test "${ac_cv_have_decl_errno+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4327 int
4328 main ()
4329 {
4330 #ifndef errno
4331 char *p = (char *) errno;
4332 #endif
4333
4334 ;
4335 return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest.$ac_objext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>conftest.er1
4341 ac_status=$?
4342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_have_decl_errno=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 ac_cv_have_decl_errno=no
4366 fi
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4368 fi
4369 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4370 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
4371 if test $ac_cv_have_decl_errno = yes; then
4372
4373 cat >>confdefs.h <<_ACEOF
4374 #define HAVE_DECL_ERRNO 1
4375 _ACEOF
4376
4377
4378 else
4379 cat >>confdefs.h <<_ACEOF
4380 #define HAVE_DECL_ERRNO 0
4381 _ACEOF
4382
4383
4384 fi
4385 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
4386 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
4387 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 $ac_includes_default
4397 int
4398 main ()
4399 {
4400 #ifndef vasprintf
4401 char *p = (char *) vasprintf;
4402 #endif
4403
4404 ;
4405 return 0;
4406 }
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_cv_have_decl_vasprintf=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 ac_cv_have_decl_vasprintf=no
4436 fi
4437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438 fi
4439 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
4440 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
4441 if test $ac_cv_have_decl_vasprintf = yes; then
4442
4443 cat >>confdefs.h <<_ACEOF
4444 #define HAVE_DECL_VASPRINTF 1
4445 _ACEOF
4446
4447
4448 else
4449 cat >>confdefs.h <<_ACEOF
4450 #define HAVE_DECL_VASPRINTF 0
4451 _ACEOF
4452
4453
4454 fi
4455 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
4456 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
4457 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 $ac_includes_default
4467 int
4468 main ()
4469 {
4470 #ifndef clearerr_unlocked
4471 char *p = (char *) clearerr_unlocked;
4472 #endif
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.$ac_objext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_have_decl_clearerr_unlocked=yes
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 ac_cv_have_decl_clearerr_unlocked=no
4506 fi
4507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4508 fi
4509 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
4510 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
4511 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
4512
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_DECL_CLEARERR_UNLOCKED 1
4515 _ACEOF
4516
4517
4518 else
4519 cat >>confdefs.h <<_ACEOF
4520 #define HAVE_DECL_CLEARERR_UNLOCKED 0
4521 _ACEOF
4522
4523
4524 fi
4525 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
4526 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
4527 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 $ac_includes_default
4537 int
4538 main ()
4539 {
4540 #ifndef feof_unlocked
4541 char *p = (char *) feof_unlocked;
4542 #endif
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_cv_have_decl_feof_unlocked=yes
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_cv_have_decl_feof_unlocked=no
4576 fi
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
4580 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
4581 if test $ac_cv_have_decl_feof_unlocked = yes; then
4582
4583 cat >>confdefs.h <<_ACEOF
4584 #define HAVE_DECL_FEOF_UNLOCKED 1
4585 _ACEOF
4586
4587
4588 else
4589 cat >>confdefs.h <<_ACEOF
4590 #define HAVE_DECL_FEOF_UNLOCKED 0
4591 _ACEOF
4592
4593
4594 fi
4595 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
4596 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
4597 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4607 int
4608 main ()
4609 {
4610 #ifndef ferror_unlocked
4611 char *p = (char *) ferror_unlocked;
4612 #endif
4613
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_c_werror_flag"
4628 || test ! -s conftest.err'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; } &&
4634 { ac_try='test -s conftest.$ac_objext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_have_decl_ferror_unlocked=yes
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 ac_cv_have_decl_ferror_unlocked=no
4646 fi
4647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
4650 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
4651 if test $ac_cv_have_decl_ferror_unlocked = yes; then
4652
4653 cat >>confdefs.h <<_ACEOF
4654 #define HAVE_DECL_FERROR_UNLOCKED 1
4655 _ACEOF
4656
4657
4658 else
4659 cat >>confdefs.h <<_ACEOF
4660 #define HAVE_DECL_FERROR_UNLOCKED 0
4661 _ACEOF
4662
4663
4664 fi
4665 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
4666 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
4667 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4677 int
4678 main ()
4679 {
4680 #ifndef fflush_unlocked
4681 char *p = (char *) fflush_unlocked;
4682 #endif
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 ac_cv_have_decl_fflush_unlocked=yes
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 ac_cv_have_decl_fflush_unlocked=no
4716 fi
4717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4718 fi
4719 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
4720 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
4721 if test $ac_cv_have_decl_fflush_unlocked = yes; then
4722
4723 cat >>confdefs.h <<_ACEOF
4724 #define HAVE_DECL_FFLUSH_UNLOCKED 1
4725 _ACEOF
4726
4727
4728 else
4729 cat >>confdefs.h <<_ACEOF
4730 #define HAVE_DECL_FFLUSH_UNLOCKED 0
4731 _ACEOF
4732
4733
4734 fi
4735 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
4736 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
4737 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 $ac_includes_default
4747 int
4748 main ()
4749 {
4750 #ifndef fgetc_unlocked
4751 char *p = (char *) fgetc_unlocked;
4752 #endif
4753
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_have_decl_fgetc_unlocked=yes
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 ac_cv_have_decl_fgetc_unlocked=no
4786 fi
4787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
4790 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
4791 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
4792
4793 cat >>confdefs.h <<_ACEOF
4794 #define HAVE_DECL_FGETC_UNLOCKED 1
4795 _ACEOF
4796
4797
4798 else
4799 cat >>confdefs.h <<_ACEOF
4800 #define HAVE_DECL_FGETC_UNLOCKED 0
4801 _ACEOF
4802
4803
4804 fi
4805 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
4806 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
4807 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 $ac_includes_default
4817 int
4818 main ()
4819 {
4820 #ifndef fgets_unlocked
4821 char *p = (char *) fgets_unlocked;
4822 #endif
4823
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_have_decl_fgets_unlocked=yes
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 ac_cv_have_decl_fgets_unlocked=no
4856 fi
4857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 fi
4859 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
4860 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
4861 if test $ac_cv_have_decl_fgets_unlocked = yes; then
4862
4863 cat >>confdefs.h <<_ACEOF
4864 #define HAVE_DECL_FGETS_UNLOCKED 1
4865 _ACEOF
4866
4867
4868 else
4869 cat >>confdefs.h <<_ACEOF
4870 #define HAVE_DECL_FGETS_UNLOCKED 0
4871 _ACEOF
4872
4873
4874 fi
4875 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
4876 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
4877 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4887 int
4888 main ()
4889 {
4890 #ifndef fileno_unlocked
4891 char *p = (char *) fileno_unlocked;
4892 #endif
4893
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_have_decl_fileno_unlocked=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_cv_have_decl_fileno_unlocked=no
4926 fi
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928 fi
4929 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
4930 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
4931 if test $ac_cv_have_decl_fileno_unlocked = yes; then
4932
4933 cat >>confdefs.h <<_ACEOF
4934 #define HAVE_DECL_FILENO_UNLOCKED 1
4935 _ACEOF
4936
4937
4938 else
4939 cat >>confdefs.h <<_ACEOF
4940 #define HAVE_DECL_FILENO_UNLOCKED 0
4941 _ACEOF
4942
4943
4944 fi
4945 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
4946 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
4947 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4957 int
4958 main ()
4959 {
4960 #ifndef fprintf_unlocked
4961 char *p = (char *) fprintf_unlocked;
4962 #endif
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_have_decl_fprintf_unlocked=yes
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4994
4995 ac_cv_have_decl_fprintf_unlocked=no
4996 fi
4997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4998 fi
4999 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5000 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5001 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5002
5003 cat >>confdefs.h <<_ACEOF
5004 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5005 _ACEOF
5006
5007
5008 else
5009 cat >>confdefs.h <<_ACEOF
5010 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5011 _ACEOF
5012
5013
5014 fi
5015 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5016 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5017 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 $ac_includes_default
5027 int
5028 main ()
5029 {
5030 #ifndef fputc_unlocked
5031 char *p = (char *) fputc_unlocked;
5032 #endif
5033
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_have_decl_fputc_unlocked=yes
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_cv_have_decl_fputc_unlocked=no
5066 fi
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5070 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5071 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5072
5073 cat >>confdefs.h <<_ACEOF
5074 #define HAVE_DECL_FPUTC_UNLOCKED 1
5075 _ACEOF
5076
5077
5078 else
5079 cat >>confdefs.h <<_ACEOF
5080 #define HAVE_DECL_FPUTC_UNLOCKED 0
5081 _ACEOF
5082
5083
5084 fi
5085 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5086 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5087 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h. */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 $ac_includes_default
5097 int
5098 main ()
5099 {
5100 #ifndef fputs_unlocked
5101 char *p = (char *) fputs_unlocked;
5102 #endif
5103
5104 ;
5105 return 0;
5106 }
5107 _ACEOF
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_have_decl_fputs_unlocked=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_cv_have_decl_fputs_unlocked=no
5136 fi
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 fi
5139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5140 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5141 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define HAVE_DECL_FPUTS_UNLOCKED 1
5145 _ACEOF
5146
5147
5148 else
5149 cat >>confdefs.h <<_ACEOF
5150 #define HAVE_DECL_FPUTS_UNLOCKED 0
5151 _ACEOF
5152
5153
5154 fi
5155 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
5156 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
5157 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 $ac_includes_default
5167 int
5168 main ()
5169 {
5170 #ifndef fread_unlocked
5171 char *p = (char *) fread_unlocked;
5172 #endif
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 rm -f conftest.$ac_objext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180 (eval $ac_compile) 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } &&
5187 { ac_try='test -z "$ac_c_werror_flag"
5188 || test ! -s conftest.err'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; } &&
5194 { ac_try='test -s conftest.$ac_objext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_cv_have_decl_fread_unlocked=yes
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_cv_have_decl_fread_unlocked=no
5206 fi
5207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208 fi
5209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
5210 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
5211 if test $ac_cv_have_decl_fread_unlocked = yes; then
5212
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_DECL_FREAD_UNLOCKED 1
5215 _ACEOF
5216
5217
5218 else
5219 cat >>confdefs.h <<_ACEOF
5220 #define HAVE_DECL_FREAD_UNLOCKED 0
5221 _ACEOF
5222
5223
5224 fi
5225 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5226 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5227 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 $ac_includes_default
5237 int
5238 main ()
5239 {
5240 #ifndef fwrite_unlocked
5241 char *p = (char *) fwrite_unlocked;
5242 #endif
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250 (eval $ac_compile) 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -z "$ac_c_werror_flag"
5258 || test ! -s conftest.err'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_have_decl_fwrite_unlocked=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275 ac_cv_have_decl_fwrite_unlocked=no
5276 fi
5277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5278 fi
5279 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5280 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5281 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5282
5283 cat >>confdefs.h <<_ACEOF
5284 #define HAVE_DECL_FWRITE_UNLOCKED 1
5285 _ACEOF
5286
5287
5288 else
5289 cat >>confdefs.h <<_ACEOF
5290 #define HAVE_DECL_FWRITE_UNLOCKED 0
5291 _ACEOF
5292
5293
5294 fi
5295 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
5296 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
5297 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5307 int
5308 main ()
5309 {
5310 #ifndef getchar_unlocked
5311 char *p = (char *) getchar_unlocked;
5312 #endif
5313
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320 (eval $ac_compile) 2>conftest.er1
5321 ac_status=$?
5322 grep -v '^ *+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_c_werror_flag"
5328 || test ! -s conftest.err'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_cv_have_decl_getchar_unlocked=yes
5341 else
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345 ac_cv_have_decl_getchar_unlocked=no
5346 fi
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 fi
5349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
5350 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
5351 if test $ac_cv_have_decl_getchar_unlocked = yes; then
5352
5353 cat >>confdefs.h <<_ACEOF
5354 #define HAVE_DECL_GETCHAR_UNLOCKED 1
5355 _ACEOF
5356
5357
5358 else
5359 cat >>confdefs.h <<_ACEOF
5360 #define HAVE_DECL_GETCHAR_UNLOCKED 0
5361 _ACEOF
5362
5363
5364 fi
5365 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
5366 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
5367 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5377 int
5378 main ()
5379 {
5380 #ifndef getc_unlocked
5381 char *p = (char *) getc_unlocked;
5382 #endif
5383
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_have_decl_getc_unlocked=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_cv_have_decl_getc_unlocked=no
5416 fi
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 fi
5419 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
5420 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
5421 if test $ac_cv_have_decl_getc_unlocked = yes; then
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define HAVE_DECL_GETC_UNLOCKED 1
5425 _ACEOF
5426
5427
5428 else
5429 cat >>confdefs.h <<_ACEOF
5430 #define HAVE_DECL_GETC_UNLOCKED 0
5431 _ACEOF
5432
5433
5434 fi
5435 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
5436 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
5437 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 $ac_includes_default
5447 int
5448 main ()
5449 {
5450 #ifndef putchar_unlocked
5451 char *p = (char *) putchar_unlocked;
5452 #endif
5453
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 rm -f conftest.$ac_objext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460 (eval $ac_compile) 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -z "$ac_c_werror_flag"
5468 || test ! -s conftest.err'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; } &&
5474 { ac_try='test -s conftest.$ac_objext'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_cv_have_decl_putchar_unlocked=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485 ac_cv_have_decl_putchar_unlocked=no
5486 fi
5487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
5490 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
5491 if test $ac_cv_have_decl_putchar_unlocked = yes; then
5492
5493 cat >>confdefs.h <<_ACEOF
5494 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
5495 _ACEOF
5496
5497
5498 else
5499 cat >>confdefs.h <<_ACEOF
5500 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
5501 _ACEOF
5502
5503
5504 fi
5505 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
5506 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
5507 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 $ac_includes_default
5517 int
5518 main ()
5519 {
5520 #ifndef putc_unlocked
5521 char *p = (char *) putc_unlocked;
5522 #endif
5523
5524 ;
5525 return 0;
5526 }
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530 (eval $ac_compile) 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -z "$ac_c_werror_flag"
5538 || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_have_decl_putc_unlocked=yes
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ac_cv_have_decl_putc_unlocked=no
5556 fi
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5560 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5561 if test $ac_cv_have_decl_putc_unlocked = yes; then
5562
5563 cat >>confdefs.h <<_ACEOF
5564 #define HAVE_DECL_PUTC_UNLOCKED 1
5565 _ACEOF
5566
5567
5568 else
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_DECL_PUTC_UNLOCKED 0
5571 _ACEOF
5572
5573
5574 fi
5575
5576
5577
5578 # Checks for typedefs, structures, and compiler characteristics.
5579 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5580 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5581 if test "${ac_cv_c_const+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590
5591 int
5592 main ()
5593 {
5594 /* FIXME: Include the comments suggested by Paul. */
5595 #ifndef __cplusplus
5596 /* Ultrix mips cc rejects this. */
5597 typedef int charset[2];
5598 const charset x;
5599 /* SunOS 4.1.1 cc rejects this. */
5600 char const *const *ccp;
5601 char **p;
5602 /* NEC SVR4.0.2 mips cc rejects this. */
5603 struct point {int x, y;};
5604 static struct point const zero = {0,0};
5605 /* AIX XL C 1.02.0.0 rejects this.
5606 It does not let you subtract one const X* pointer from another in
5607 an arm of an if-expression whose if-part is not a constant
5608 expression */
5609 const char *g = "string";
5610 ccp = &g + (g ? g-g : 0);
5611 /* HPUX 7.0 cc rejects these. */
5612 ++ccp;
5613 p = (char**) ccp;
5614 ccp = (char const *const *) p;
5615 { /* SCO 3.2v4 cc rejects this. */
5616 char *t;
5617 char const *s = 0 ? (char *) 0 : (char const *) 0;
5618
5619 *t++ = 0;
5620 }
5621 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5622 int x[] = {25, 17};
5623 const int *foo = &x[0];
5624 ++foo;
5625 }
5626 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5627 typedef const int *iptr;
5628 iptr p = 0;
5629 ++p;
5630 }
5631 { /* AIX XL C 1.02.0.0 rejects this saying
5632 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5633 struct s { int j; const int *ap[3]; };
5634 struct s *b; b->j = 5;
5635 }
5636 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5637 const int foo = 10;
5638 }
5639 #endif
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_c_const=yes
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_cv_c_const=no
5673 fi
5674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5677 echo "${ECHO_T}$ac_cv_c_const" >&6
5678 if test $ac_cv_c_const = no; then
5679
5680 cat >>confdefs.h <<\_ACEOF
5681 #define const
5682 _ACEOF
5683
5684 fi
5685
5686
5687 # Checks for library functions.
5688
5689 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5690 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5691 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5692 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 fi
5695 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5696 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5697 else
5698 # Is the header compilable?
5699 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
5700 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5708 #include <sys/mman.h>
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_header_compiler=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 ac_header_compiler=no
5738 fi
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5741 echo "${ECHO_T}$ac_header_compiler" >&6
5742
5743 # Is the header present?
5744 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5745 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <sys/mman.h>
5753 _ACEOF
5754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev/null; then
5762 if test -s conftest.err; then
5763 ac_cpp_err=$ac_c_preproc_warn_flag
5764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5765 else
5766 ac_cpp_err=
5767 fi
5768 else
5769 ac_cpp_err=yes
5770 fi
5771 if test -z "$ac_cpp_err"; then
5772 ac_header_preproc=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_header_preproc=no
5778 fi
5779 rm -f conftest.err conftest.$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5781 echo "${ECHO_T}$ac_header_preproc" >&6
5782
5783 # So? What about this header?
5784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5785 yes:no: )
5786 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5787 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5789 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5790 ac_header_preproc=yes
5791 ;;
5792 no:yes:* )
5793 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5794 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5796 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5798 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5800 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5802 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5804 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5805 (
5806 cat <<\_ASBOX
5807 ## -------------------------------------- ##
5808 ## Report this to the fixincludes lists. ##
5809 ## -------------------------------------- ##
5810 _ASBOX
5811 ) |
5812 sed "s/^/$as_me: WARNING: /" >&2
5813 ;;
5814 esac
5815 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5816 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5817 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 ac_cv_header_sys_mman_h=$ac_header_preproc
5821 fi
5822 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5823 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5824
5825 fi
5826 if test $ac_cv_header_sys_mman_h = yes; then
5827 gcc_header_sys_mman_h=yes
5828 else
5829 gcc_header_sys_mman_h=no
5830 fi
5831
5832
5833 echo "$as_me:$LINENO: checking for mmap" >&5
5834 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5835 if test "${ac_cv_func_mmap+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5846 #define mmap innocuous_mmap
5847
5848 /* System header to define __stub macros and hopefully few prototypes,
5849 which can conflict with char mmap (); below.
5850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5851 <limits.h> exists even on freestanding compilers. */
5852
5853 #ifdef __STDC__
5854 # include <limits.h>
5855 #else
5856 # include <assert.h>
5857 #endif
5858
5859 #undef mmap
5860
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 #ifdef __cplusplus
5863 extern "C"
5864 {
5865 #endif
5866 /* We use char because int might match the return type of a gcc2
5867 builtin and then its argument prototype would still apply. */
5868 char mmap ();
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined (__stub_mmap) || defined (__stub___mmap)
5873 choke me
5874 #else
5875 char (*f) () = mmap;
5876 #endif
5877 #ifdef __cplusplus
5878 }
5879 #endif
5880
5881 int
5882 main ()
5883 {
5884 return f != mmap;
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5891 (eval $ac_link) 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -z "$ac_c_werror_flag"
5899 || test ! -s conftest.err'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 (eval $ac_try) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; } &&
5905 { ac_try='test -s conftest$ac_exeext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_func_mmap=yes
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_cv_func_mmap=no
5917 fi
5918 rm -f conftest.err conftest.$ac_objext \
5919 conftest$ac_exeext conftest.$ac_ext
5920 fi
5921 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5922 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5923 if test $ac_cv_func_mmap = yes; then
5924 gcc_func_mmap=yes
5925 else
5926 gcc_func_mmap=no
5927 fi
5928
5929 if test "$gcc_header_sys_mman_h" != yes \
5930 || test "$gcc_func_mmap" != yes; then
5931 gcc_cv_func_mmap_file=no
5932 gcc_cv_func_mmap_dev_zero=no
5933 gcc_cv_func_mmap_anon=no
5934 else
5935 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5936 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5937 if test "${gcc_cv_func_mmap_file+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 # Add a system to this blacklist if
5941 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5942 # memory area containing the same data that you'd get if you applied
5943 # read() to the same fd. The only system known to have a problem here
5944 # is VMS, where text files have record structure.
5945 case "$host_os" in
5946 vms* | ultrix*)
5947 gcc_cv_func_mmap_file=no ;;
5948 *)
5949 gcc_cv_func_mmap_file=yes;;
5950 esac
5951 fi
5952 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
5953 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
5954 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5955 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5956 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 # Add a system to this blacklist if it has mmap() but /dev/zero
5960 # does not exist, or if mmapping /dev/zero does not give anonymous
5961 # zeroed pages with both the following properties:
5962 # 1. If you map N consecutive pages in with one call, and then
5963 # unmap any subset of those pages, the pages that were not
5964 # explicitly unmapped remain accessible.
5965 # 2. If you map two adjacent blocks of memory and then unmap them
5966 # both at once, they must both go away.
5967 # Systems known to be in this category are Windows (all variants),
5968 # VMS, and Darwin.
5969 case "$host_os" in
5970 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5971 gcc_cv_func_mmap_dev_zero=no ;;
5972 *)
5973 gcc_cv_func_mmap_dev_zero=yes;;
5974 esac
5975 fi
5976 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
5977 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
5978
5979 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5980 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5981 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5982 if test "${gcc_cv_decl_map_anon+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #include <sys/types.h>
5992 #include <sys/mman.h>
5993 #include <unistd.h>
5994
5995 #ifndef MAP_ANONYMOUS
5996 #define MAP_ANONYMOUS MAP_ANON
5997 #endif
5998
5999 int
6000 main ()
6001 {
6002 int n = MAP_ANONYMOUS;
6003 ;
6004 return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 gcc_cv_decl_map_anon=yes
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 gcc_cv_decl_map_anon=no
6035 fi
6036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6039 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6040
6041 if test $gcc_cv_decl_map_anon = no; then
6042 gcc_cv_func_mmap_anon=no
6043 else
6044 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6045 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6046 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6050 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6051 # doesn't give anonymous zeroed pages with the same properties listed
6052 # above for use of /dev/zero.
6053 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6054 case "$host_os" in
6055 vms* | cygwin* | pe | mingw* | sco* | udk* )
6056 gcc_cv_func_mmap_anon=no ;;
6057 *)
6058 gcc_cv_func_mmap_anon=yes;;
6059 esac
6060 fi
6061 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6062 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6063 fi
6064 fi
6065
6066 if test $gcc_cv_func_mmap_file = yes; then
6067
6068 cat >>confdefs.h <<\_ACEOF
6069 #define HAVE_MMAP_FILE 1
6070 _ACEOF
6071
6072 fi
6073 if test $gcc_cv_func_mmap_dev_zero = yes; then
6074
6075 cat >>confdefs.h <<\_ACEOF
6076 #define HAVE_MMAP_DEV_ZERO 1
6077 _ACEOF
6078
6079 fi
6080 if test $gcc_cv_func_mmap_anon = yes; then
6081
6082 cat >>confdefs.h <<\_ACEOF
6083 #define HAVE_MMAP_ANON 1
6084 _ACEOF
6085
6086 fi
6087
6088
6089 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6090 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6091 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6092 if test "${enable_maintainer_mode+set}" = set; then
6093 enableval="$enable_maintainer_mode"
6094 USE_MAINTAINER_MODE=$enableval
6095 else
6096 USE_MAINTAINER_MODE=no
6097 fi;
6098 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6099 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6100 if test "$USE_MAINTAINER_MODE" = yes; then
6101 MAINT=
6102 else
6103 MAINT='#'
6104 fi
6105
6106
6107 cat >>confdefs.h <<_ACEOF
6108 #define SED_PROGRAM "${SED}"
6109 _ACEOF
6110
6111
6112 ac_config_headers="$ac_config_headers config.h"
6113
6114 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
6115
6116 cat >confcache <<\_ACEOF
6117 # This file is a shell script that caches the results of configure
6118 # tests run on this system so they can be shared between configure
6119 # scripts and configure runs, see configure's option --config-cache.
6120 # It is not useful on other systems. If it contains results you don't
6121 # want to keep, you may remove or edit it.
6122 #
6123 # config.status only pays attention to the cache file if you give it
6124 # the --recheck option to rerun configure.
6125 #
6126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6128 # following values.
6129
6130 _ACEOF
6131
6132 # The following way of writing the cache mishandles newlines in values,
6133 # but we know of no workaround that is simple, portable, and efficient.
6134 # So, don't put newlines in cache variables' values.
6135 # Ultrix sh set writes to stderr and can't be redirected directly,
6136 # and sets the high bit in the cache file unless we assign to the vars.
6137 {
6138 (set) 2>&1 |
6139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6140 *ac_space=\ *)
6141 # `set' does not quote correctly, so add quotes (double-quote
6142 # substitution turns \\\\ into \\, and sed turns \\ into \).
6143 sed -n \
6144 "s/'/'\\\\''/g;
6145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6146 ;;
6147 *)
6148 # `set' quotes correctly as required by POSIX, so do not add quotes.
6149 sed -n \
6150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6151 ;;
6152 esac;
6153 } |
6154 sed '
6155 t clear
6156 : clear
6157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6158 t end
6159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6160 : end' >>confcache
6161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6162 if test -w $cache_file; then
6163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6164 cat confcache >$cache_file
6165 else
6166 echo "not updating unwritable cache $cache_file"
6167 fi
6168 fi
6169 rm -f confcache
6170
6171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6172 # Let make expand exec_prefix.
6173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6174
6175 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6176 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6177 # trailing colons and then remove the whole line if VPATH becomes empty
6178 # (actually we leave an empty line to preserve line numbers).
6179 if test "x$srcdir" = x.; then
6180 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6181 s/:*\$(srcdir):*/:/;
6182 s/:*\${srcdir}:*/:/;
6183 s/:*@srcdir@:*/:/;
6184 s/^\([^=]*=[ ]*\):*/\1/;
6185 s/:*$//;
6186 s/^[^=]*=[ ]*$//;
6187 }'
6188 fi
6189
6190 DEFS=-DHAVE_CONFIG_H
6191
6192 ac_libobjs=
6193 ac_ltlibobjs=
6194 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6195 # 1. Remove the extension, and $U if already installed.
6196 ac_i=`echo "$ac_i" |
6197 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6198 # 2. Add them.
6199 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6200 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6201 done
6202 LIBOBJS=$ac_libobjs
6203
6204 LTLIBOBJS=$ac_ltlibobjs
6205
6206
6207
6208 : ${CONFIG_STATUS=./config.status}
6209 ac_clean_files_save=$ac_clean_files
6210 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6211 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6212 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6213 cat >$CONFIG_STATUS <<_ACEOF
6214 #! $SHELL
6215 # Generated by $as_me.
6216 # Run this file to recreate the current configuration.
6217 # Compiler output produced by configure, useful for debugging
6218 # configure, is in config.log if it exists.
6219
6220 debug=false
6221 ac_cs_recheck=false
6222 ac_cs_silent=false
6223 SHELL=\${CONFIG_SHELL-$SHELL}
6224 _ACEOF
6225
6226 cat >>$CONFIG_STATUS <<\_ACEOF
6227 ## --------------------- ##
6228 ## M4sh Initialization. ##
6229 ## --------------------- ##
6230
6231 # Be Bourne compatible
6232 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6233 emulate sh
6234 NULLCMD=:
6235 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6236 # is contrary to our usage. Disable this feature.
6237 alias -g '${1+"$@"}'='"$@"'
6238 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6239 set -o posix
6240 fi
6241 DUALCASE=1; export DUALCASE # for MKS sh
6242
6243 # Support unset when possible.
6244 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6245 as_unset=unset
6246 else
6247 as_unset=false
6248 fi
6249
6250
6251 # Work around bugs in pre-3.0 UWIN ksh.
6252 $as_unset ENV MAIL MAILPATH
6253 PS1='$ '
6254 PS2='> '
6255 PS4='+ '
6256
6257 # NLS nuisances.
6258 for as_var in \
6259 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6260 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6261 LC_TELEPHONE LC_TIME
6262 do
6263 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6264 eval $as_var=C; export $as_var
6265 else
6266 $as_unset $as_var
6267 fi
6268 done
6269
6270 # Required to use basename.
6271 if expr a : '\(a\)' >/dev/null 2>&1; then
6272 as_expr=expr
6273 else
6274 as_expr=false
6275 fi
6276
6277 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6278 as_basename=basename
6279 else
6280 as_basename=false
6281 fi
6282
6283
6284 # Name of the executable.
6285 as_me=`$as_basename "$0" ||
6286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6287 X"$0" : 'X\(//\)$' \| \
6288 X"$0" : 'X\(/\)$' \| \
6289 . : '\(.\)' 2>/dev/null ||
6290 echo X/"$0" |
6291 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6292 /^X\/\(\/\/\)$/{ s//\1/; q; }
6293 /^X\/\(\/\).*/{ s//\1/; q; }
6294 s/.*/./; q'`
6295
6296
6297 # PATH needs CR, and LINENO needs CR and PATH.
6298 # Avoid depending upon Character Ranges.
6299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6302 as_cr_digits='0123456789'
6303 as_cr_alnum=$as_cr_Letters$as_cr_digits
6304
6305 # The user is always right.
6306 if test "${PATH_SEPARATOR+set}" != set; then
6307 echo "#! /bin/sh" >conf$$.sh
6308 echo "exit 0" >>conf$$.sh
6309 chmod +x conf$$.sh
6310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6311 PATH_SEPARATOR=';'
6312 else
6313 PATH_SEPARATOR=:
6314 fi
6315 rm -f conf$$.sh
6316 fi
6317
6318
6319 as_lineno_1=$LINENO
6320 as_lineno_2=$LINENO
6321 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6322 test "x$as_lineno_1" != "x$as_lineno_2" &&
6323 test "x$as_lineno_3" = "x$as_lineno_2" || {
6324 # Find who we are. Look in the path if we contain no path at all
6325 # relative or not.
6326 case $0 in
6327 *[\\/]* ) as_myself=$0 ;;
6328 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6334 done
6335
6336 ;;
6337 esac
6338 # We did not find ourselves, most probably we were run as `sh COMMAND'
6339 # in which case we are not to be found in the path.
6340 if test "x$as_myself" = x; then
6341 as_myself=$0
6342 fi
6343 if test ! -f "$as_myself"; then
6344 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6345 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6346 { (exit 1); exit 1; }; }
6347 fi
6348 case $CONFIG_SHELL in
6349 '')
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for as_base in sh bash ksh sh5; do
6356 case $as_dir in
6357 /*)
6358 if ("$as_dir/$as_base" -c '
6359 as_lineno_1=$LINENO
6360 as_lineno_2=$LINENO
6361 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6362 test "x$as_lineno_1" != "x$as_lineno_2" &&
6363 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6364 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6365 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6366 CONFIG_SHELL=$as_dir/$as_base
6367 export CONFIG_SHELL
6368 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6369 fi;;
6370 esac
6371 done
6372 done
6373 ;;
6374 esac
6375
6376 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6377 # uniformly replaced by the line number. The first 'sed' inserts a
6378 # line-number line before each line; the second 'sed' does the real
6379 # work. The second script uses 'N' to pair each line-number line
6380 # with the numbered line, and appends trailing '-' during
6381 # substitution so that $LINENO is not a special case at line end.
6382 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6383 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6384 sed '=' <$as_myself |
6385 sed '
6386 N
6387 s,$,-,
6388 : loop
6389 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6390 t loop
6391 s,-$,,
6392 s,^['$as_cr_digits']*\n,,
6393 ' >$as_me.lineno &&
6394 chmod +x $as_me.lineno ||
6395 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6396 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6397 { (exit 1); exit 1; }; }
6398
6399 # Don't try to exec as it changes $[0], causing all sort of problems
6400 # (the dirname of $[0] is not the place where we might find the
6401 # original and so on. Autoconf is especially sensible to this).
6402 . ./$as_me.lineno
6403 # Exit status is that of the last command.
6404 exit
6405 }
6406
6407
6408 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6409 *c*,-n*) ECHO_N= ECHO_C='
6410 ' ECHO_T=' ' ;;
6411 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6412 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6413 esac
6414
6415 if expr a : '\(a\)' >/dev/null 2>&1; then
6416 as_expr=expr
6417 else
6418 as_expr=false
6419 fi
6420
6421 rm -f conf$$ conf$$.exe conf$$.file
6422 echo >conf$$.file
6423 if ln -s conf$$.file conf$$ 2>/dev/null; then
6424 # We could just check for DJGPP; but this test a) works b) is more generic
6425 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6426 if test -f conf$$.exe; then
6427 # Don't use ln at all; we don't have any links
6428 as_ln_s='cp -p'
6429 else
6430 as_ln_s='ln -s'
6431 fi
6432 elif ln conf$$.file conf$$ 2>/dev/null; then
6433 as_ln_s=ln
6434 else
6435 as_ln_s='cp -p'
6436 fi
6437 rm -f conf$$ conf$$.exe conf$$.file
6438
6439 if mkdir -p . 2>/dev/null; then
6440 as_mkdir_p=:
6441 else
6442 test -d ./-p && rmdir ./-p
6443 as_mkdir_p=false
6444 fi
6445
6446 as_executable_p="test -f"
6447
6448 # Sed expression to map a string onto a valid CPP name.
6449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6450
6451 # Sed expression to map a string onto a valid variable name.
6452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6453
6454
6455 # IFS
6456 # We need space, tab and new line, in precisely that order.
6457 as_nl='
6458 '
6459 IFS=" $as_nl"
6460
6461 # CDPATH.
6462 $as_unset CDPATH
6463
6464 exec 6>&1
6465
6466 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6467 # report actual input values of CONFIG_FILES etc. instead of their
6468 # values after options handling. Logging --version etc. is OK.
6469 exec 5>>config.log
6470 {
6471 echo
6472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6473 ## Running $as_me. ##
6474 _ASBOX
6475 } >&5
6476 cat >&5 <<_CSEOF
6477
6478 This file was extended by fixincludes $as_me , which was
6479 generated by GNU Autoconf 2.59. Invocation command line was
6480
6481 CONFIG_FILES = $CONFIG_FILES
6482 CONFIG_HEADERS = $CONFIG_HEADERS
6483 CONFIG_LINKS = $CONFIG_LINKS
6484 CONFIG_COMMANDS = $CONFIG_COMMANDS
6485 $ $0 $@
6486
6487 _CSEOF
6488 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6489 echo >&5
6490 _ACEOF
6491
6492 # Files that config.status was made for.
6493 if test -n "$ac_config_files"; then
6494 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6495 fi
6496
6497 if test -n "$ac_config_headers"; then
6498 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6499 fi
6500
6501 if test -n "$ac_config_links"; then
6502 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6503 fi
6504
6505 if test -n "$ac_config_commands"; then
6506 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6507 fi
6508
6509 cat >>$CONFIG_STATUS <<\_ACEOF
6510
6511 ac_cs_usage="\
6512 \`$as_me' instantiates files from templates according to the
6513 current configuration.
6514
6515 Usage: $0 [OPTIONS] [FILE]...
6516
6517 -h, --help print this help, then exit
6518 -V, --version print version number, then exit
6519 -q, --quiet do not print progress messages
6520 -d, --debug don't remove temporary files
6521 --recheck update $as_me by reconfiguring in the same conditions
6522 --file=FILE[:TEMPLATE]
6523 instantiate the configuration file FILE
6524 --header=FILE[:TEMPLATE]
6525 instantiate the configuration header FILE
6526
6527 Configuration files:
6528 $config_files
6529
6530 Configuration headers:
6531 $config_headers
6532
6533 Report bugs to <bug-autoconf@gnu.org>."
6534 _ACEOF
6535
6536 cat >>$CONFIG_STATUS <<_ACEOF
6537 ac_cs_version="\\
6538 fixincludes config.status
6539 configured by $0, generated by GNU Autoconf 2.59,
6540 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6541
6542 Copyright (C) 2003 Free Software Foundation, Inc.
6543 This config.status script is free software; the Free Software Foundation
6544 gives unlimited permission to copy, distribute and modify it."
6545 srcdir=$srcdir
6546 _ACEOF
6547
6548 cat >>$CONFIG_STATUS <<\_ACEOF
6549 # If no file are specified by the user, then we need to provide default
6550 # value. By we need to know if files were specified by the user.
6551 ac_need_defaults=:
6552 while test $# != 0
6553 do
6554 case $1 in
6555 --*=*)
6556 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6557 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6558 ac_shift=:
6559 ;;
6560 -*)
6561 ac_option=$1
6562 ac_optarg=$2
6563 ac_shift=shift
6564 ;;
6565 *) # This is not an option, so the user has probably given explicit
6566 # arguments.
6567 ac_option=$1
6568 ac_need_defaults=false;;
6569 esac
6570
6571 case $ac_option in
6572 # Handling of the options.
6573 _ACEOF
6574 cat >>$CONFIG_STATUS <<\_ACEOF
6575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6576 ac_cs_recheck=: ;;
6577 --version | --vers* | -V )
6578 echo "$ac_cs_version"; exit 0 ;;
6579 --he | --h)
6580 # Conflict between --help and --header
6581 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6582 Try \`$0 --help' for more information." >&5
6583 echo "$as_me: error: ambiguous option: $1
6584 Try \`$0 --help' for more information." >&2;}
6585 { (exit 1); exit 1; }; };;
6586 --help | --hel | -h )
6587 echo "$ac_cs_usage"; exit 0 ;;
6588 --debug | --d* | -d )
6589 debug=: ;;
6590 --file | --fil | --fi | --f )
6591 $ac_shift
6592 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6593 ac_need_defaults=false;;
6594 --header | --heade | --head | --hea )
6595 $ac_shift
6596 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6597 ac_need_defaults=false;;
6598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6600 ac_cs_silent=: ;;
6601
6602 # This is an error.
6603 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6604 Try \`$0 --help' for more information." >&5
6605 echo "$as_me: error: unrecognized option: $1
6606 Try \`$0 --help' for more information." >&2;}
6607 { (exit 1); exit 1; }; } ;;
6608
6609 *) ac_config_targets="$ac_config_targets $1" ;;
6610
6611 esac
6612 shift
6613 done
6614
6615 ac_configure_extra_args=
6616
6617 if $ac_cs_silent; then
6618 exec 6>/dev/null
6619 ac_configure_extra_args="$ac_configure_extra_args --silent"
6620 fi
6621
6622 _ACEOF
6623 cat >>$CONFIG_STATUS <<_ACEOF
6624 if \$ac_cs_recheck; then
6625 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6626 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6627 fi
6628
6629 _ACEOF
6630
6631
6632
6633
6634
6635 cat >>$CONFIG_STATUS <<\_ACEOF
6636 for ac_config_target in $ac_config_targets
6637 do
6638 case "$ac_config_target" in
6639 # Handling of arguments.
6640 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6641 "mkheaders.almost" ) CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
6642 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6643 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6644 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6645 { (exit 1); exit 1; }; };;
6646 esac
6647 done
6648
6649 # If the user did not use the arguments to specify the items to instantiate,
6650 # then the envvar interface is used. Set only those that are not.
6651 # We use the long form for the default assignment because of an extremely
6652 # bizarre bug on SunOS 4.1.3.
6653 if $ac_need_defaults; then
6654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6656 fi
6657
6658 # Have a temporary directory for convenience. Make it in the build tree
6659 # simply because there is no reason to put it here, and in addition,
6660 # creating and moving files from /tmp can sometimes cause problems.
6661 # Create a temporary directory, and hook for its removal unless debugging.
6662 $debug ||
6663 {
6664 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6665 trap '{ (exit 1); exit 1; }' 1 2 13 15
6666 }
6667
6668 # Create a (secure) tmp directory for tmp files.
6669
6670 {
6671 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6672 test -n "$tmp" && test -d "$tmp"
6673 } ||
6674 {
6675 tmp=./confstat$$-$RANDOM
6676 (umask 077 && mkdir $tmp)
6677 } ||
6678 {
6679 echo "$me: cannot create a temporary directory in ." >&2
6680 { (exit 1); exit 1; }
6681 }
6682
6683 _ACEOF
6684
6685 cat >>$CONFIG_STATUS <<_ACEOF
6686
6687 #
6688 # CONFIG_FILES section.
6689 #
6690
6691 # No need to generate the scripts if there are no CONFIG_FILES.
6692 # This happens for instance when ./config.status config.h
6693 if test -n "\$CONFIG_FILES"; then
6694 # Protect against being on the right side of a sed subst in config.status.
6695 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6696 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6697 s,@SHELL@,$SHELL,;t t
6698 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6699 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6700 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6701 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6702 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6703 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6704 s,@exec_prefix@,$exec_prefix,;t t
6705 s,@prefix@,$prefix,;t t
6706 s,@program_transform_name@,$program_transform_name,;t t
6707 s,@bindir@,$bindir,;t t
6708 s,@sbindir@,$sbindir,;t t
6709 s,@libexecdir@,$libexecdir,;t t
6710 s,@datadir@,$datadir,;t t
6711 s,@sysconfdir@,$sysconfdir,;t t
6712 s,@sharedstatedir@,$sharedstatedir,;t t
6713 s,@localstatedir@,$localstatedir,;t t
6714 s,@libdir@,$libdir,;t t
6715 s,@includedir@,$includedir,;t t
6716 s,@oldincludedir@,$oldincludedir,;t t
6717 s,@infodir@,$infodir,;t t
6718 s,@mandir@,$mandir,;t t
6719 s,@build_alias@,$build_alias,;t t
6720 s,@host_alias@,$host_alias,;t t
6721 s,@target_alias@,$target_alias,;t t
6722 s,@DEFS@,$DEFS,;t t
6723 s,@ECHO_C@,$ECHO_C,;t t
6724 s,@ECHO_N@,$ECHO_N,;t t
6725 s,@ECHO_T@,$ECHO_T,;t t
6726 s,@LIBS@,$LIBS,;t t
6727 s,@build@,$build,;t t
6728 s,@build_cpu@,$build_cpu,;t t
6729 s,@build_vendor@,$build_vendor,;t t
6730 s,@build_os@,$build_os,;t t
6731 s,@host@,$host,;t t
6732 s,@host_cpu@,$host_cpu,;t t
6733 s,@host_vendor@,$host_vendor,;t t
6734 s,@host_os@,$host_os,;t t
6735 s,@target@,$target,;t t
6736 s,@target_cpu@,$target_cpu,;t t
6737 s,@target_vendor@,$target_vendor,;t t
6738 s,@target_os@,$target_os,;t t
6739 s,@CC@,$CC,;t t
6740 s,@CFLAGS@,$CFLAGS,;t t
6741 s,@LDFLAGS@,$LDFLAGS,;t t
6742 s,@CPPFLAGS@,$CPPFLAGS,;t t
6743 s,@ac_ct_CC@,$ac_ct_CC,;t t
6744 s,@EXEEXT@,$EXEEXT,;t t
6745 s,@OBJEXT@,$OBJEXT,;t t
6746 s,@SED@,$SED,;t t
6747 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6748 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
6749 s,@WERROR@,$WERROR,;t t
6750 s,@target_noncanonical@,$target_noncanonical,;t t
6751 s,@TARGET@,$TARGET,;t t
6752 s,@CPP@,$CPP,;t t
6753 s,@EGREP@,$EGREP,;t t
6754 s,@MAINT@,$MAINT,;t t
6755 s,@LIBOBJS@,$LIBOBJS,;t t
6756 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6757 CEOF
6758
6759 _ACEOF
6760
6761 cat >>$CONFIG_STATUS <<\_ACEOF
6762 # Split the substitutions into bite-sized pieces for seds with
6763 # small command number limits, like on Digital OSF/1 and HP-UX.
6764 ac_max_sed_lines=48
6765 ac_sed_frag=1 # Number of current file.
6766 ac_beg=1 # First line for current file.
6767 ac_end=$ac_max_sed_lines # Line after last line for current file.
6768 ac_more_lines=:
6769 ac_sed_cmds=
6770 while $ac_more_lines; do
6771 if test $ac_beg -gt 1; then
6772 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6773 else
6774 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6775 fi
6776 if test ! -s $tmp/subs.frag; then
6777 ac_more_lines=false
6778 else
6779 # The purpose of the label and of the branching condition is to
6780 # speed up the sed processing (if there are no `@' at all, there
6781 # is no need to browse any of the substitutions).
6782 # These are the two extra sed commands mentioned above.
6783 (echo ':t
6784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6785 if test -z "$ac_sed_cmds"; then
6786 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6787 else
6788 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6789 fi
6790 ac_sed_frag=`expr $ac_sed_frag + 1`
6791 ac_beg=$ac_end
6792 ac_end=`expr $ac_end + $ac_max_sed_lines`
6793 fi
6794 done
6795 if test -z "$ac_sed_cmds"; then
6796 ac_sed_cmds=cat
6797 fi
6798 fi # test -n "$CONFIG_FILES"
6799
6800 _ACEOF
6801 cat >>$CONFIG_STATUS <<\_ACEOF
6802 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6803 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6804 case $ac_file in
6805 - | *:- | *:-:* ) # input from stdin
6806 cat >$tmp/stdin
6807 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6809 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6811 * ) ac_file_in=$ac_file.in ;;
6812 esac
6813
6814 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6817 X"$ac_file" : 'X\(//\)[^/]' \| \
6818 X"$ac_file" : 'X\(//\)$' \| \
6819 X"$ac_file" : 'X\(/\)' \| \
6820 . : '\(.\)' 2>/dev/null ||
6821 echo X"$ac_file" |
6822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6824 /^X\(\/\/\)$/{ s//\1/; q; }
6825 /^X\(\/\).*/{ s//\1/; q; }
6826 s/.*/./; q'`
6827 { if $as_mkdir_p; then
6828 mkdir -p "$ac_dir"
6829 else
6830 as_dir="$ac_dir"
6831 as_dirs=
6832 while test ! -d "$as_dir"; do
6833 as_dirs="$as_dir $as_dirs"
6834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6836 X"$as_dir" : 'X\(//\)[^/]' \| \
6837 X"$as_dir" : 'X\(//\)$' \| \
6838 X"$as_dir" : 'X\(/\)' \| \
6839 . : '\(.\)' 2>/dev/null ||
6840 echo X"$as_dir" |
6841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6843 /^X\(\/\/\)$/{ s//\1/; q; }
6844 /^X\(\/\).*/{ s//\1/; q; }
6845 s/.*/./; q'`
6846 done
6847 test ! -n "$as_dirs" || mkdir $as_dirs
6848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6850 { (exit 1); exit 1; }; }; }
6851
6852 ac_builddir=.
6853
6854 if test "$ac_dir" != .; then
6855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6856 # A "../" for each directory in $ac_dir_suffix.
6857 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6858 else
6859 ac_dir_suffix= ac_top_builddir=
6860 fi
6861
6862 case $srcdir in
6863 .) # No --srcdir option. We are building in place.
6864 ac_srcdir=.
6865 if test -z "$ac_top_builddir"; then
6866 ac_top_srcdir=.
6867 else
6868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6869 fi ;;
6870 [\\/]* | ?:[\\/]* ) # Absolute path.
6871 ac_srcdir=$srcdir$ac_dir_suffix;
6872 ac_top_srcdir=$srcdir ;;
6873 *) # Relative path.
6874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6876 esac
6877
6878 # Do not use `cd foo && pwd` to compute absolute paths, because
6879 # the directories may not exist.
6880 case `pwd` in
6881 .) ac_abs_builddir="$ac_dir";;
6882 *)
6883 case "$ac_dir" in
6884 .) ac_abs_builddir=`pwd`;;
6885 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6886 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6887 esac;;
6888 esac
6889 case $ac_abs_builddir in
6890 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6891 *)
6892 case ${ac_top_builddir}. in
6893 .) ac_abs_top_builddir=$ac_abs_builddir;;
6894 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6895 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6896 esac;;
6897 esac
6898 case $ac_abs_builddir in
6899 .) ac_abs_srcdir=$ac_srcdir;;
6900 *)
6901 case $ac_srcdir in
6902 .) ac_abs_srcdir=$ac_abs_builddir;;
6903 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6904 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6905 esac;;
6906 esac
6907 case $ac_abs_builddir in
6908 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6909 *)
6910 case $ac_top_srcdir in
6911 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6912 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6913 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6914 esac;;
6915 esac
6916
6917
6918
6919 if test x"$ac_file" != x-; then
6920 { echo "$as_me:$LINENO: creating $ac_file" >&5
6921 echo "$as_me: creating $ac_file" >&6;}
6922 rm -f "$ac_file"
6923 fi
6924 # Let's still pretend it is `configure' which instantiates (i.e., don't
6925 # use $as_me), people would be surprised to read:
6926 # /* config.h. Generated by config.status. */
6927 if test x"$ac_file" = x-; then
6928 configure_input=
6929 else
6930 configure_input="$ac_file. "
6931 fi
6932 configure_input=$configure_input"Generated from `echo $ac_file_in |
6933 sed 's,.*/,,'` by configure."
6934
6935 # First look for the input files in the build tree, otherwise in the
6936 # src tree.
6937 ac_file_inputs=`IFS=:
6938 for f in $ac_file_in; do
6939 case $f in
6940 -) echo $tmp/stdin ;;
6941 [\\/$]*)
6942 # Absolute (can't be DOS-style, as IFS=:)
6943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6944 echo "$as_me: error: cannot find input file: $f" >&2;}
6945 { (exit 1); exit 1; }; }
6946 echo "$f";;
6947 *) # Relative
6948 if test -f "$f"; then
6949 # Build tree
6950 echo "$f"
6951 elif test -f "$srcdir/$f"; then
6952 # Source tree
6953 echo "$srcdir/$f"
6954 else
6955 # /dev/null tree
6956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6957 echo "$as_me: error: cannot find input file: $f" >&2;}
6958 { (exit 1); exit 1; }; }
6959 fi;;
6960 esac
6961 done` || { (exit 1); exit 1; }
6962 _ACEOF
6963 cat >>$CONFIG_STATUS <<_ACEOF
6964 sed "$ac_vpsub
6965 $extrasub
6966 _ACEOF
6967 cat >>$CONFIG_STATUS <<\_ACEOF
6968 :t
6969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6970 s,@configure_input@,$configure_input,;t t
6971 s,@srcdir@,$ac_srcdir,;t t
6972 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6973 s,@top_srcdir@,$ac_top_srcdir,;t t
6974 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6975 s,@builddir@,$ac_builddir,;t t
6976 s,@abs_builddir@,$ac_abs_builddir,;t t
6977 s,@top_builddir@,$ac_top_builddir,;t t
6978 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6979 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6980 rm -f $tmp/stdin
6981 if test x"$ac_file" != x-; then
6982 mv $tmp/out $ac_file
6983 else
6984 cat $tmp/out
6985 rm -f $tmp/out
6986 fi
6987
6988 done
6989 _ACEOF
6990 cat >>$CONFIG_STATUS <<\_ACEOF
6991
6992 #
6993 # CONFIG_HEADER section.
6994 #
6995
6996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6998 #
6999 # ac_d sets the value in "#define NAME VALUE" lines.
7000 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7001 ac_dB='[ ].*$,\1#\2'
7002 ac_dC=' '
7003 ac_dD=',;t'
7004 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7005 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7006 ac_uB='$,\1#\2define\3'
7007 ac_uC=' '
7008 ac_uD=',;t'
7009
7010 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7012 case $ac_file in
7013 - | *:- | *:-:* ) # input from stdin
7014 cat >$tmp/stdin
7015 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7017 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7019 * ) ac_file_in=$ac_file.in ;;
7020 esac
7021
7022 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7023 echo "$as_me: creating $ac_file" >&6;}
7024
7025 # First look for the input files in the build tree, otherwise in the
7026 # src tree.
7027 ac_file_inputs=`IFS=:
7028 for f in $ac_file_in; do
7029 case $f in
7030 -) echo $tmp/stdin ;;
7031 [\\/$]*)
7032 # Absolute (can't be DOS-style, as IFS=:)
7033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7034 echo "$as_me: error: cannot find input file: $f" >&2;}
7035 { (exit 1); exit 1; }; }
7036 # Do quote $f, to prevent DOS paths from being IFS'd.
7037 echo "$f";;
7038 *) # Relative
7039 if test -f "$f"; then
7040 # Build tree
7041 echo "$f"
7042 elif test -f "$srcdir/$f"; then
7043 # Source tree
7044 echo "$srcdir/$f"
7045 else
7046 # /dev/null tree
7047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7048 echo "$as_me: error: cannot find input file: $f" >&2;}
7049 { (exit 1); exit 1; }; }
7050 fi;;
7051 esac
7052 done` || { (exit 1); exit 1; }
7053 # Remove the trailing spaces.
7054 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7055
7056 _ACEOF
7057
7058 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7059 # `conftest.undefs', that substitutes the proper values into
7060 # config.h.in to produce config.h. The first handles `#define'
7061 # templates, and the second `#undef' templates.
7062 # And first: Protect against being on the right side of a sed subst in
7063 # config.status. Protect against being in an unquoted here document
7064 # in config.status.
7065 rm -f conftest.defines conftest.undefs
7066 # Using a here document instead of a string reduces the quoting nightmare.
7067 # Putting comments in sed scripts is not portable.
7068 #
7069 # `end' is used to avoid that the second main sed command (meant for
7070 # 0-ary CPP macros) applies to n-ary macro definitions.
7071 # See the Autoconf documentation for `clear'.
7072 cat >confdef2sed.sed <<\_ACEOF
7073 s/[\\&,]/\\&/g
7074 s,[\\$`],\\&,g
7075 t clear
7076 : clear
7077 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7078 t end
7079 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7080 : end
7081 _ACEOF
7082 # If some macros were called several times there might be several times
7083 # the same #defines, which is useless. Nevertheless, we may not want to
7084 # sort them, since we want the *last* AC-DEFINE to be honored.
7085 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7086 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7087 rm -f confdef2sed.sed
7088
7089 # This sed command replaces #undef with comments. This is necessary, for
7090 # example, in the case of _POSIX_SOURCE, which is predefined and required
7091 # on some systems where configure will not decide to define it.
7092 cat >>conftest.undefs <<\_ACEOF
7093 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7094 _ACEOF
7095
7096 # Break up conftest.defines because some shells have a limit on the size
7097 # of here documents, and old seds have small limits too (100 cmds).
7098 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7099 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7100 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7101 echo ' :' >>$CONFIG_STATUS
7102 rm -f conftest.tail
7103 while grep . conftest.defines >/dev/null
7104 do
7105 # Write a limited-size here document to $tmp/defines.sed.
7106 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7107 # Speed up: don't consider the non `#define' lines.
7108 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7109 # Work around the forget-to-reset-the-flag bug.
7110 echo 't clr' >>$CONFIG_STATUS
7111 echo ': clr' >>$CONFIG_STATUS
7112 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7113 echo 'CEOF
7114 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7115 rm -f $tmp/in
7116 mv $tmp/out $tmp/in
7117 ' >>$CONFIG_STATUS
7118 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7119 rm -f conftest.defines
7120 mv conftest.tail conftest.defines
7121 done
7122 rm -f conftest.defines
7123 echo ' fi # grep' >>$CONFIG_STATUS
7124 echo >>$CONFIG_STATUS
7125
7126 # Break up conftest.undefs because some shells have a limit on the size
7127 # of here documents, and old seds have small limits too (100 cmds).
7128 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7129 rm -f conftest.tail
7130 while grep . conftest.undefs >/dev/null
7131 do
7132 # Write a limited-size here document to $tmp/undefs.sed.
7133 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7134 # Speed up: don't consider the non `#undef'
7135 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7136 # Work around the forget-to-reset-the-flag bug.
7137 echo 't clr' >>$CONFIG_STATUS
7138 echo ': clr' >>$CONFIG_STATUS
7139 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7140 echo 'CEOF
7141 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7142 rm -f $tmp/in
7143 mv $tmp/out $tmp/in
7144 ' >>$CONFIG_STATUS
7145 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7146 rm -f conftest.undefs
7147 mv conftest.tail conftest.undefs
7148 done
7149 rm -f conftest.undefs
7150
7151 cat >>$CONFIG_STATUS <<\_ACEOF
7152 # Let's still pretend it is `configure' which instantiates (i.e., don't
7153 # use $as_me), people would be surprised to read:
7154 # /* config.h. Generated by config.status. */
7155 if test x"$ac_file" = x-; then
7156 echo "/* Generated by configure. */" >$tmp/config.h
7157 else
7158 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7159 fi
7160 cat $tmp/in >>$tmp/config.h
7161 rm -f $tmp/in
7162 if test x"$ac_file" != x-; then
7163 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7165 echo "$as_me: $ac_file is unchanged" >&6;}
7166 else
7167 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7169 X"$ac_file" : 'X\(//\)[^/]' \| \
7170 X"$ac_file" : 'X\(//\)$' \| \
7171 X"$ac_file" : 'X\(/\)' \| \
7172 . : '\(.\)' 2>/dev/null ||
7173 echo X"$ac_file" |
7174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7176 /^X\(\/\/\)$/{ s//\1/; q; }
7177 /^X\(\/\).*/{ s//\1/; q; }
7178 s/.*/./; q'`
7179 { if $as_mkdir_p; then
7180 mkdir -p "$ac_dir"
7181 else
7182 as_dir="$ac_dir"
7183 as_dirs=
7184 while test ! -d "$as_dir"; do
7185 as_dirs="$as_dir $as_dirs"
7186 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7188 X"$as_dir" : 'X\(//\)[^/]' \| \
7189 X"$as_dir" : 'X\(//\)$' \| \
7190 X"$as_dir" : 'X\(/\)' \| \
7191 . : '\(.\)' 2>/dev/null ||
7192 echo X"$as_dir" |
7193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7195 /^X\(\/\/\)$/{ s//\1/; q; }
7196 /^X\(\/\).*/{ s//\1/; q; }
7197 s/.*/./; q'`
7198 done
7199 test ! -n "$as_dirs" || mkdir $as_dirs
7200 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7201 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7202 { (exit 1); exit 1; }; }; }
7203
7204 rm -f $ac_file
7205 mv $tmp/config.h $ac_file
7206 fi
7207 else
7208 cat $tmp/config.h
7209 rm -f $tmp/config.h
7210 fi
7211 # Run the commands associated with the file.
7212 case $ac_file in
7213 config.h ) echo timestamp > stamp-h ;;
7214 esac
7215 done
7216 _ACEOF
7217
7218 cat >>$CONFIG_STATUS <<\_ACEOF
7219
7220 { (exit 0); exit 0; }
7221 _ACEOF
7222 chmod +x $CONFIG_STATUS
7223 ac_clean_files=$ac_clean_files_save
7224
7225
7226 # configure is writing to config.log, and then calls config.status.
7227 # config.status does its own redirection, appending to config.log.
7228 # Unfortunately, on DOS this fails, as config.log is still kept open
7229 # by configure, so config.status won't be able to write to it; its
7230 # output is simply discarded. So we exec the FD to /dev/null,
7231 # effectively closing config.log, so it can be properly (re)opened and
7232 # appended to by config.status. When coming back to configure, we
7233 # need to make the FD available again.
7234 if test "$no_create" != yes; then
7235 ac_cs_success=:
7236 ac_config_status_args=
7237 test "$silent" = yes &&
7238 ac_config_status_args="$ac_config_status_args --quiet"
7239 exec 5>/dev/null
7240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7241 exec 5>>config.log
7242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7243 # would make configure fail if this is the last instruction.
7244 $ac_cs_success || { (exit 1); exit 1; }
7245 fi
7246