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