2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="log.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBICONV LTLIBICONV BINDIR MANDIR SYSCONFDIR HTMLDIR LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --disable-rpath do not hardcode runtime library paths
848 --enable-bindir=bindir
850 --enable-mandir=mandir
852 --enable-sysconfdir=sysconfdir
854 --enable-htmldir=htmldir
858 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
859 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
860 --without-gcc use CC to compile
861 --with-gnu-ld assume the C compiler uses GNU ld default
=no
862 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
863 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
874 Use these variables to override the choices made by `configure' or to
help
875 it to
find libraries and programs with nonstandard names
/locations.
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
883 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
884 test -d $ac_dir ||
continue
887 if test "$ac_dir" != .
; then
888 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 ac_dir_suffix
= ac_top_builddir
=
896 .
) # No --srcdir option. We are building in place.
898 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
903 [\\/]* | ?
:[\\/]* ) # Absolute path.
904 ac_srcdir
=$srcdir$ac_dir_suffix;
905 ac_top_srcdir
=$srcdir ;;
907 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
914 .
) ac_abs_builddir
="$ac_dir";;
917 .
) ac_abs_builddir
=`pwd`;;
918 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
919 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
922 case $ac_abs_builddir in
923 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
925 case ${ac_top_builddir}.
in
926 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
927 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
928 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
931 case $ac_abs_builddir in
932 .
) ac_abs_srcdir
=$ac_srcdir;;
935 .
) ac_abs_srcdir
=$ac_abs_builddir;;
936 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
937 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
940 case $ac_abs_builddir in
941 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
943 case $ac_top_srcdir in
944 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
945 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu
; then
954 $SHELL $ac_srcdir/configure.gnu
--help=recursive
955 elif test -f $ac_srcdir/configure
; then
957 $SHELL $ac_srcdir/configure
--help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.
in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
973 Copyright
(C
) 2003 Free Software Foundation
, Inc.
974 This configure
script is free software
; the Free Software Foundation
975 gives unlimited permission to copy
, distribute and modify it.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.59. Invocation command line was
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir
=.
1020 echo "PATH: $as_dir"
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_must_keep_next
=false
1050 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1051 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1052 |
-silent |
--silent |
--silen |
--sile |
--sil)
1054 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1060 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true
; then
1062 ac_must_keep_next
=false
# Got value, back to normal.
1065 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1066 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1067 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1068 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 -* ) ac_must_keep_next
=true
;;
1076 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1083 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1084 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close' the trap.
1091 trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1102 # The following way of writing the cache mishandles newlines in values,
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1125 for ac_var in $ac_subst_vars
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -n "$ac_subst_files"; then
1139 for ac_var in $ac_subst_files
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -s confdefs.h; then
1154 sed "/^$/d" confdefs.h | sort
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1161 rm -f core *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 for ac_signal
in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest
* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 # Predefined preprocessor variables.
1177 cat >>confdefs.h
<<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 cat >>confdefs.h
<<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 cat >>confdefs.h
<<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 cat >>confdefs.h
<<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 cat >>confdefs.h
<<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE
; then
1206 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1208 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 for ac_site_file
in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1227 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1228 *) . .
/$cache_file;;
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1237 # Check that the precious variables saved in the cache have kept the same
1239 ac_cache_corrupted
=false
1240 for ac_var
in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1243 eval ac_new_set
=\
$ac_env_${ac_var}_set
1244 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val
="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted
=: ;;
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted
=: ;;
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted
=:
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1270 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg
=$ac_var=$ac_new_val ;;
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1289 ac_cpp
='$CPP $CPPFLAGS'
1290 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1313 for ac_dir
in cfgaux
$srcdir/cfgaux
; do
1314 if test -f $ac_dir/install-sh
; then
1316 ac_install_sh
="$ac_aux_dir/install-sh -c"
1318 elif test -f $ac_dir/install.sh
; then
1320 ac_install_sh
="$ac_aux_dir/install.sh -c"
1322 elif test -f $ac_dir/shtool
; then
1324 ac_install_sh
="$ac_aux_dir/shtool install -c"
1328 if test -z "$ac_aux_dir"; then
1329 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1330 echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1331 { (exit 1); exit 1; }; }
1333 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1334 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1335 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1340 # Make sure we can run config.sub.
1341 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1342 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1343 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1344 { (exit 1); exit 1; }; }
1346 echo "$as_me:$LINENO: checking build system type" >&5
1347 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1348 if test "${ac_cv_build+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1351 ac_cv_build_alias
=$build_alias
1352 test -z "$ac_cv_build_alias" &&
1353 ac_cv_build_alias
=`$ac_config_guess`
1354 test -z "$ac_cv_build_alias" &&
1355 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1356 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1357 { (exit 1); exit 1; }; }
1358 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1359 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1360 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1361 { (exit 1); exit 1; }; }
1364 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1365 echo "${ECHO_T}$ac_cv_build" >&6
1367 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1368 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1369 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1372 echo "$as_me:$LINENO: checking host system type" >&5
1373 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1374 if test "${ac_cv_host+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 ac_cv_host_alias
=$host_alias
1378 test -z "$ac_cv_host_alias" &&
1379 ac_cv_host_alias
=$ac_cv_build_alias
1380 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1386 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1387 echo "${ECHO_T}$ac_cv_host" >&6
1389 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396 # Check whether --with-gcc or --without-gcc was given.
1397 if test "${with_gcc+set}" = set; then
1402 test -n "$CC" && cc_specified
=yes
1407 ac_cpp
='$CPP $CPPFLAGS'
1408 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1409 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1410 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1411 if test -n "$ac_tool_prefix"; then
1412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1413 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$CC"; then
1420 ac_cv_prog_CC
="$CC" # Let the user override the test.
1422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir
=.
1427 for ac_exec_ext
in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 if test -n "$CC"; then
1440 echo "$as_me:$LINENO: result: $CC" >&5
1441 echo "${ECHO_T}$CC" >&6
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1448 if test -z "$ac_cv_prog_CC"; then
1450 # Extract the first word of "gcc", so it can be a program name with args.
1451 set dummy gcc
; ac_word
=$2
1452 echo "$as_me:$LINENO: checking for $ac_word" >&5
1453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 if test -n "$ac_ct_CC"; then
1458 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1464 test -z "$as_dir" && as_dir
=.
1465 for ac_exec_ext
in '' $ac_executable_extensions; do
1466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467 ac_cv_prog_ac_ct_CC
="gcc"
1468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1477 if test -n "$ac_ct_CC"; then
1478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1479 echo "${ECHO_T}$ac_ct_CC" >&6
1481 echo "$as_me:$LINENO: result: no" >&5
1482 echo "${ECHO_T}no" >&6
1490 if test -z "$CC"; then
1491 if test -n "$ac_tool_prefix"; then
1492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1493 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$CC"; then
1500 ac_cv_prog_CC
="$CC" # Let the user override the test.
1502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir
=.
1507 for ac_exec_ext
in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 if test -n "$CC"; then
1520 echo "$as_me:$LINENO: result: $CC" >&5
1521 echo "${ECHO_T}$CC" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1528 if test -z "$ac_cv_prog_CC"; then
1530 # Extract the first word of "cc", so it can be a program name with args.
1531 set dummy cc
; ac_word
=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 if test -n "$ac_ct_CC"; then
1538 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1544 test -z "$as_dir" && as_dir
=.
1545 for ac_exec_ext
in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_ac_ct_CC
="cc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1557 if test -n "$ac_ct_CC"; then
1558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1559 echo "${ECHO_T}$ac_ct_CC" >&6
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1571 if test -z "$CC"; then
1572 # Extract the first word of "cc", so it can be a program name with args.
1573 set dummy cc
; ac_word
=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 if test -n "$CC"; then
1580 ac_cv_prog_CC
="$CC" # Let the user override the test.
1583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir
=.
1588 for ac_exec_ext
in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1591 ac_prog_rejected
=yes
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 if test $ac_prog_rejected = yes; then
1602 # We found a bogon in the path, so make sure we never use it.
1603 set dummy
$ac_cv_prog_CC
1605 if test $# != 0; then
1606 # We chose a different compiler from the bogus one.
1607 # However, it has the same basename, so the bogon will be chosen
1608 # first if we set CC to just the basename; use the full file name.
1610 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1616 if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618 echo "${ECHO_T}$CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1625 if test -z "$CC"; then
1626 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1630 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$CC"; then
1637 ac_cv_prog_CC
="$CC" # Let the user override the test.
1639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir
=.
1644 for ac_exec_ext
in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 if test -n "$CC"; then
1657 echo "$as_me:$LINENO: result: $CC" >&5
1658 echo "${ECHO_T}$CC" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$CC" && break
1667 if test -z "$CC"; then
1671 # Extract the first word of "$ac_prog", so it can be a program name with args.
1672 set dummy
$ac_prog; ac_word
=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 if test -n "$ac_ct_CC"; then
1679 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir
=.
1686 for ac_exec_ext
in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_CC
="$ac_prog"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1706 test -n "$ac_ct_CC" && break
1715 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1716 See \`config.log' for more details." >&5
1717 echo "$as_me: error: no acceptable C compiler found in \$PATH
1718 See \`config.log' for more details." >&2;}
1719 { (exit 1); exit 1; }; }
1721 # Provide some information about the compiler.
1722 echo "$as_me:$LINENO:" \
1723 "checking for C compiler version" >&5
1724 ac_compiler
=`set X $ac_compile; echo $2`
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1726 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1731 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }
1735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1736 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }
1741 cat >conftest.
$ac_ext <<_ACEOF
1744 cat confdefs.h
>>conftest.
$ac_ext
1745 cat >>conftest.
$ac_ext <<_ACEOF
1746 /* end confdefs.h. */
1756 ac_clean_files_save
=$ac_clean_files
1757 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1758 # Try to create an executable without -o first, disregard a.out.
1759 # It will help us diagnose broken compilers, and finding out an intuition
1761 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1762 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1763 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1764 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1765 (eval $ac_link_default) 2>&5
1767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768 (exit $ac_status); }; then
1769 # Find the output, starting from the most likely. This scheme is
1770 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1773 # Be careful to initialize this variable, since it used to be cached.
1774 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1776 # b.out is created by i960 compilers.
1777 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1779 test -f "$ac_file" ||
continue
1781 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1784 # This is the source file.
1787 # We found the default executable, but exeext='' is most
1791 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1792 # FIXME: I believe we export ac_cv_exeext for Libtool,
1793 # but it would be cool to find out if it's true. Does anybody
1794 # maintain Libtool? --akim.
1802 echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1805 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1806 See \`config.log' for more details." >&5
1807 echo "$as_me: error: C compiler cannot create executables
1808 See \`config.log' for more details." >&2;}
1809 { (exit 77); exit 77; }; }
1812 ac_exeext
=$ac_cv_exeext
1813 echo "$as_me:$LINENO: result: $ac_file" >&5
1814 echo "${ECHO_T}$ac_file" >&6
1816 # Check the compiler produces executables we can run. If not, either
1817 # the compiler is broken, or we cross compile.
1818 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1819 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1820 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1821 # If not cross compiling, check that we can run a simple program.
1822 if test "$cross_compiling" != yes; then
1823 if { ac_try
='./$ac_file'
1824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1831 if test "$cross_compiling" = maybe
; then
1834 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1835 If you meant to cross compile, use \`--host'.
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: cannot run C compiled programs.
1838 If you meant to cross compile, use \`--host'.
1839 See \`config.log' for more details." >&2;}
1840 { (exit 1); exit 1; }; }
1844 echo "$as_me:$LINENO: result: yes" >&5
1845 echo "${ECHO_T}yes" >&6
1847 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1848 ac_clean_files
=$ac_clean_files_save
1849 # Check the compiler produces executables we can run. If not, either
1850 # the compiler is broken, or we cross compile.
1851 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1852 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1853 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1854 echo "${ECHO_T}$cross_compiling" >&6
1856 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1857 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1859 (eval $ac_link) 2>&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; then
1863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1865 # work properly (i.e., refer to `conftest.exe'), while it won't with
1867 for ac_file
in conftest.exe conftest conftest.
*; do
1868 test -f "$ac_file" ||
continue
1870 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1871 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1878 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1879 See \`config.log' for more details." >&5
1880 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1881 See \`config.log' for more details." >&2;}
1882 { (exit 1); exit 1; }; }
1885 rm -f conftest
$ac_cv_exeext
1886 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1887 echo "${ECHO_T}$ac_cv_exeext" >&6
1889 rm -f conftest.
$ac_ext
1890 EXEEXT
=$ac_cv_exeext
1892 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1893 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1894 if test "${ac_cv_objext+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 cat >conftest.
$ac_ext <<_ACEOF
1900 cat confdefs.h
>>conftest.
$ac_ext
1901 cat >>conftest.
$ac_ext <<_ACEOF
1902 /* end confdefs.h. */
1912 rm -f conftest.o conftest.obj
1913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1914 (eval $ac_compile) 2>&5
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }; then
1918 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1920 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1921 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1926 echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.
$ac_ext >&5
1929 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1932 See \`config.log' for more details." >&2;}
1933 { (exit 1); exit 1; }; }
1936 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1938 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1939 echo "${ECHO_T}$ac_cv_objext" >&6
1940 OBJEXT
=$ac_cv_objext
1942 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1943 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1944 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 cat >conftest.
$ac_ext <<_ACEOF
1950 cat confdefs.h
>>conftest.
$ac_ext
1951 cat >>conftest.
$ac_ext <<_ACEOF
1952 /* end confdefs.h. */
1965 rm -f conftest.
$ac_objext
1966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967 (eval $ac_compile) 2>conftest.er1
1969 grep -v '^ *+' conftest.er1
>conftest.err
1971 cat conftest.err
>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); } &&
1974 { ac_try
='test -z "$ac_c_werror_flag"
1975 || test ! -s conftest.err'
1976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; } &&
1981 { ac_try
='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.
$ac_ext >&5
1994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1995 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1998 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2000 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2001 ac_test_CFLAGS
=${CFLAGS+set}
2002 ac_save_CFLAGS
=$CFLAGS
2004 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2005 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2006 if test "${ac_cv_prog_cc_g+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.
$ac_ext <<_ACEOF
2012 cat confdefs.h
>>conftest.
$ac_ext
2013 cat >>conftest.
$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 rm -f conftest.
$ac_objext
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>conftest.er1
2028 grep -v '^ *+' conftest.er1
>conftest.err
2030 cat conftest.err
>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try
='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; } &&
2040 { ac_try
='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.
$ac_ext >&5
2053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2057 if test "$ac_test_CFLAGS" = set; then
2058 CFLAGS
=$ac_save_CFLAGS
2059 elif test $ac_cv_prog_cc_g = yes; then
2060 if test "$GCC" = yes; then
2066 if test "$GCC" = yes; then
2072 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2073 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2074 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 ac_cv_prog_cc_stdc
=no
2079 cat >conftest.
$ac_ext <<_ACEOF
2082 cat confdefs.h
>>conftest.
$ac_ext
2083 cat >>conftest.
$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2087 #include <sys/types.h>
2088 #include <sys/stat.h>
2089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2090 struct buf { int x; };
2091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2092 static char *e (p, i)
2098 static char *f (char * (*g) (char **, int), char **p, ...)
2103 s = g (p, va_arg (v,int));
2108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2109 function prototypes and stuff, but not '\xHH' hex character constants.
2110 These don't provoke an error unfortunately, instead are silently treated
2111 as 'x'. The following induces an error, until -std1 is added to get
2112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2113 array size at least. It's necessary to write '\x00'==0 to get something
2114 that's true only with -std1. */
2115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2117 int test (int i, double x);
2118 struct s1 {int (*f) (int a);};
2119 struct s2 {int (*f) (double a);};
2120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2131 # Don't try gcc -ansi; that turns off useful extensions and
2132 # breaks some systems' header files.
2133 # AIX -qlanglvl=ansi
2134 # Ultrix and OSF/1 -std1
2135 # HP-UX 10.20 and later -Ae
2136 # HP-UX older versions -Aa -D_HPUX_SOURCE
2137 # SVR4 -Xc -D__EXTENSIONS__
2138 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2140 CC
="$ac_save_CC $ac_arg"
2141 rm -f conftest.
$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2145 grep -v '^ *+' conftest.er1
>conftest.err
2147 cat conftest.err
>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try
='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try
='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 ac_cv_prog_cc_stdc
=$ac_arg
2166 echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.
$ac_ext >&5
2170 rm -f conftest.err conftest.
$ac_objext
2172 rm -f conftest.
$ac_ext conftest.
$ac_objext
2177 case "x$ac_cv_prog_cc_stdc" in
2179 echo "$as_me:$LINENO: result: none needed" >&5
2180 echo "${ECHO_T}none needed" >&6 ;;
2182 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2183 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2184 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2187 # Some people use a C++ compiler to compile C. Since we use `exit',
2188 # in C++ we need to declare it. In case someone uses the same compiler
2189 # for both compiling C and C++ we need to have the C++ compiler decide
2190 # the declaration of exit, since it's the most demanding environment.
2191 cat >conftest.
$ac_ext <<_ACEOF
2196 rm -f conftest.
$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2200 grep -v '^ *+' conftest.er1
>conftest.err
2202 cat conftest.err
>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try
='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try
='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 for ac_declaration
in \
2220 'extern "C" void std::exit (int) throw (); using std::exit;' \
2221 'extern "C" void std::exit (int); using std::exit;' \
2222 'extern "C" void exit (int) throw ();' \
2223 'extern "C" void exit (int);' \
2226 cat >conftest.
$ac_ext <<_ACEOF
2229 cat confdefs.h
>>conftest.
$ac_ext
2230 cat >>conftest.
$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2242 rm -f conftest.
$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>conftest.er1
2246 grep -v '^ *+' conftest.er1
>conftest.err
2248 cat conftest.err
>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); } &&
2251 { ac_try
='test -z "$ac_c_werror_flag"
2252 || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try
='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.
$ac_ext >&5
2271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 cat >conftest.
$ac_ext <<_ACEOF
2275 cat confdefs.h
>>conftest.
$ac_ext
2276 cat >>conftest.
$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2287 rm -f conftest.
$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2291 grep -v '^ *+' conftest.er1
>conftest.err
2293 cat conftest.err
>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try
='test -z "$ac_c_werror_flag"
2297 || test ! -s conftest.err'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; } &&
2303 { ac_try
='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.
$ac_ext >&5
2315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2318 if test -n "$ac_declaration"; then
2319 echo '#ifdef __cplusplus' >>confdefs.h
2320 echo $ac_declaration >>confdefs.h
2321 echo '#endif' >>confdefs.h
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.
$ac_ext >&5
2329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2331 ac_cpp
='$CPP $CPPFLAGS'
2332 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2338 if test "${CC}" = "cc" ; then
2339 CFLAGS
="${CFLAGS} -w -g -O2 -Aa"
2341 CFLAGS
="${CFLAGS} -w"
2346 LDFLAGS
="${LDFLAGS} -lsocket -lnsl"
2347 CFLAGS
="-DSOLARIS ${CFLAGS}"
2351 #dnl Checks for programs.
2361 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
2362 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2363 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2364 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.
$ac_ext <<_ACEOF
2371 cat confdefs.h
>>conftest.
$ac_ext
2372 cat >>conftest.
$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2374 #include <sys/types.h>
2386 rm -f conftest.
$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2408 eval "$as_ac_Header=yes"
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.
$ac_ext >&5
2413 eval "$as_ac_Header=no"
2415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2420 cat >>confdefs.h
<<_ACEOF
2421 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2424 ac_header_dirent
=$ac_hdr; break
2428 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2429 if test $ac_header_dirent = dirent.h
; then
2430 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2431 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2432 if test "${ac_cv_search_opendir+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 ac_func_search_save_LIBS
=$LIBS
2436 ac_cv_search_opendir
=no
2437 cat >conftest.
$ac_ext <<_ACEOF
2440 cat confdefs.h
>>conftest.
$ac_ext
2441 cat >>conftest.
$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2444 /* Override any gcc2 internal prototype to avoid an error. */
2448 /* We use char because int might match the return type of a gcc2
2449 builtin and then its argument prototype would still apply. */
2459 rm -f conftest.
$ac_objext conftest
$ac_exeext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2461 (eval $ac_link) 2>conftest.er1
2463 grep -v '^ *+' conftest.er1
>conftest.err
2465 cat conftest.err
>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try
='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try
='test -s conftest$ac_exeext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 ac_cv_search_opendir
="none required"
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.
$ac_ext >&5
2487 rm -f conftest.err conftest.
$ac_objext \
2488 conftest
$ac_exeext conftest.
$ac_ext
2489 if test "$ac_cv_search_opendir" = no
; then
2490 for ac_lib
in dir
; do
2491 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2492 cat >conftest.
$ac_ext <<_ACEOF
2495 cat confdefs.h
>>conftest.
$ac_ext
2496 cat >>conftest.
$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2499 /* Override any gcc2 internal prototype to avoid an error. */
2503 /* We use char because int might match the return type of a gcc2
2504 builtin and then its argument prototype would still apply. */
2514 rm -f conftest.
$ac_objext conftest
$ac_exeext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2516 (eval $ac_link) 2>conftest.er1
2518 grep -v '^ *+' conftest.er1
>conftest.err
2520 cat conftest.err
>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try
='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try
='test -s conftest$ac_exeext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_search_opendir
="-l$ac_lib"
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.
$ac_ext >&5
2543 rm -f conftest.err conftest.
$ac_objext \
2544 conftest
$ac_exeext conftest.
$ac_ext
2547 LIBS
=$ac_func_search_save_LIBS
2549 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2550 echo "${ECHO_T}$ac_cv_search_opendir" >&6
2551 if test "$ac_cv_search_opendir" != no
; then
2552 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
2557 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2559 if test "${ac_cv_search_opendir+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 ac_func_search_save_LIBS
=$LIBS
2563 ac_cv_search_opendir
=no
2564 cat >conftest.
$ac_ext <<_ACEOF
2567 cat confdefs.h
>>conftest.
$ac_ext
2568 cat >>conftest.
$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2571 /* Override any gcc2 internal prototype to avoid an error. */
2575 /* We use char because int might match the return type of a gcc2
2576 builtin and then its argument prototype would still apply. */
2586 rm -f conftest.
$ac_objext conftest
$ac_exeext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588 (eval $ac_link) 2>conftest.er1
2590 grep -v '^ *+' conftest.er1
>conftest.err
2592 cat conftest.err
>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try
='test -z "$ac_c_werror_flag"
2596 || test ! -s conftest.err'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try
='test -s conftest$ac_exeext'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 ac_cv_search_opendir
="none required"
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.
$ac_ext >&5
2614 rm -f conftest.err conftest.
$ac_objext \
2615 conftest
$ac_exeext conftest.
$ac_ext
2616 if test "$ac_cv_search_opendir" = no
; then
2618 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2619 cat >conftest.
$ac_ext <<_ACEOF
2622 cat confdefs.h
>>conftest.
$ac_ext
2623 cat >>conftest.
$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2626 /* Override any gcc2 internal prototype to avoid an error. */
2630 /* We use char because int might match the return type of a gcc2
2631 builtin and then its argument prototype would still apply. */
2641 rm -f conftest.
$ac_objext conftest
$ac_exeext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2643 (eval $ac_link) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1
>conftest.err
2647 cat conftest.err
>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try
='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try
='test -s conftest$ac_exeext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv_search_opendir
="-l$ac_lib"
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.
$ac_ext >&5
2670 rm -f conftest.err conftest.
$ac_objext \
2671 conftest
$ac_exeext conftest.
$ac_ext
2674 LIBS
=$ac_func_search_save_LIBS
2676 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2677 echo "${ECHO_T}$ac_cv_search_opendir" >&6
2678 if test "$ac_cv_search_opendir" != no
; then
2679 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
2686 ac_cpp
='$CPP $CPPFLAGS'
2687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2690 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2691 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2692 # On Suns, sometimes $CPP names a directory.
2693 if test -n "$CPP" && test -d "$CPP"; then
2696 if test -z "$CPP"; then
2697 if test "${ac_cv_prog_CPP+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 # Double quotes because CPP needs to be expanded
2701 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2704 for ac_c_preproc_warn_flag
in '' yes
2706 # Use a header file that comes with gcc, so configuring glibc
2707 # with a fresh cross-compiler works.
2708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2709 # <limits.h> exists even on freestanding compilers.
2710 # On the NeXT, cc -E runs the code through the compiler's parser,
2711 # not just through cpp. "Syntax error" is here to catch this case.
2712 cat >conftest.
$ac_ext <<_ACEOF
2715 cat confdefs.h
>>conftest.
$ac_ext
2716 cat >>conftest.
$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2719 # include <limits.h>
2721 # include <assert.h>
2725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev
/null
; then
2733 if test -s conftest.err
; then
2734 ac_cpp_err
=$ac_c_preproc_warn_flag
2735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2742 if test -z "$ac_cpp_err"; then
2745 echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.
$ac_ext >&5
2748 # Broken: fails on valid input.
2751 rm -f conftest.err conftest.
$ac_ext
2753 # OK, works on sane cases. Now check whether non-existent headers
2754 # can be detected and how.
2755 cat >conftest.
$ac_ext <<_ACEOF
2758 cat confdefs.h
>>conftest.
$ac_ext
2759 cat >>conftest.
$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761 #include <ac_nonexistent.h>
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1
>conftest.err
2768 cat conftest.err
>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev
/null
; then
2771 if test -s conftest.err
; then
2772 ac_cpp_err
=$ac_c_preproc_warn_flag
2773 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2780 if test -z "$ac_cpp_err"; then
2781 # Broken: success on invalid input.
2784 echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.
$ac_ext >&5
2787 # Passes both tests.
2791 rm -f conftest.err conftest.
$ac_ext
2794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2795 rm -f conftest.err conftest.
$ac_ext
2796 if $ac_preproc_ok; then
2808 echo "$as_me:$LINENO: result: $CPP" >&5
2809 echo "${ECHO_T}$CPP" >&6
2811 for ac_c_preproc_warn_flag
in '' yes
2813 # Use a header file that comes with gcc, so configuring glibc
2814 # with a fresh cross-compiler works.
2815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2816 # <limits.h> exists even on freestanding compilers.
2817 # On the NeXT, cc -E runs the code through the compiler's parser,
2818 # not just through cpp. "Syntax error" is here to catch this case.
2819 cat >conftest.
$ac_ext <<_ACEOF
2822 cat confdefs.h
>>conftest.
$ac_ext
2823 cat >>conftest.
$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1
>conftest.err
2837 cat conftest.err
>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev
/null
; then
2840 if test -s conftest.err
; then
2841 ac_cpp_err
=$ac_c_preproc_warn_flag
2842 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2849 if test -z "$ac_cpp_err"; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.
$ac_ext >&5
2855 # Broken: fails on valid input.
2858 rm -f conftest.err conftest.
$ac_ext
2860 # OK, works on sane cases. Now check whether non-existent headers
2861 # can be detected and how.
2862 cat >conftest.
$ac_ext <<_ACEOF
2865 cat confdefs.h
>>conftest.
$ac_ext
2866 cat >>conftest.
$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1
>conftest.err
2875 cat conftest.err
>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev
/null
; then
2878 if test -s conftest.err
; then
2879 ac_cpp_err
=$ac_c_preproc_warn_flag
2880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2887 if test -z "$ac_cpp_err"; then
2888 # Broken: success on invalid input.
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.
$ac_ext >&5
2894 # Passes both tests.
2898 rm -f conftest.err conftest.
$ac_ext
2901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2902 rm -f conftest.err conftest.
$ac_ext
2903 if $ac_preproc_ok; then
2906 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2914 ac_cpp
='$CPP $CPPFLAGS'
2915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2920 echo "$as_me:$LINENO: checking for egrep" >&5
2921 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2922 if test "${ac_cv_prog_egrep+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2926 then ac_cv_prog_egrep
='grep -E'
2927 else ac_cv_prog_egrep
='egrep'
2930 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2931 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2932 EGREP
=$ac_cv_prog_egrep
2935 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2936 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2937 if test "${ac_cv_header_stdc+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 cat >conftest.
$ac_ext <<_ACEOF
2943 cat confdefs.h
>>conftest.
$ac_ext
2944 cat >>conftest.
$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2959 rm -f conftest.
$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>conftest.er1
2963 grep -v '^ *+' conftest.er1
>conftest.err
2965 cat conftest.err
>&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try
='test -z "$ac_c_werror_flag"
2969 || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try
='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_cv_header_stdc
=yes
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.
$ac_ext >&5
2986 ac_cv_header_stdc
=no
2988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2990 if test $ac_cv_header_stdc = yes; then
2991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2992 cat >conftest.
$ac_ext <<_ACEOF
2995 cat confdefs.h
>>conftest.
$ac_ext
2996 cat >>conftest.
$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 $EGREP "memchr" >/dev
/null
2>&1; then
3005 ac_cv_header_stdc
=no
3011 if test $ac_cv_header_stdc = yes; then
3012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3013 cat >conftest.
$ac_ext <<_ACEOF
3016 cat confdefs.h
>>conftest.
$ac_ext
3017 cat >>conftest.
$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023 $EGREP "free" >/dev
/null
2>&1; then
3026 ac_cv_header_stdc
=no
3032 if test $ac_cv_header_stdc = yes; then
3033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3034 if test "$cross_compiling" = yes; then
3037 cat >conftest.
$ac_ext <<_ACEOF
3040 cat confdefs.h
>>conftest.
$ac_ext
3041 cat >>conftest.
$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3044 #if ((' ' & 0x0FF) == 0x020)
3045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3048 # define ISLOWER(c) \
3049 (('a' <= (c) && (c) <= 'i') \
3050 || ('j' <= (c) && (c) <= 'r') \
3051 || ('s' <= (c) && (c) <= 'z'))
3052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3060 for (i = 0; i < 256; i++)
3061 if (XOR (islower (i), ISLOWER (i))
3062 || toupper (i) != TOUPPER (i))
3067 rm -f conftest
$ac_exeext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3069 (eval $ac_link) 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3080 echo "$as_me: program exited with status $ac_status" >&5
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3085 ac_cv_header_stdc
=no
3087 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3091 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3092 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3093 if test $ac_cv_header_stdc = yes; then
3095 cat >>confdefs.h
<<\_ACEOF
3096 #define STDC_HEADERS 1
3103 if test "X$prefix" = "XNONE"; then
3104 acl_final_prefix
="$ac_default_prefix"
3106 acl_final_prefix
="$prefix"
3108 if test "X$exec_prefix" = "XNONE"; then
3109 acl_final_exec_prefix
='${prefix}'
3111 acl_final_exec_prefix
="$exec_prefix"
3113 acl_save_prefix
="$prefix"
3114 prefix
="$acl_final_prefix"
3115 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
3116 prefix
="$acl_save_prefix"
3119 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3120 if test "${with_gnu_ld+set}" = set; then
3121 withval
="$with_gnu_ld"
3122 test "$withval" = no || with_gnu_ld
=yes
3126 # Prepare PATH_SEPARATOR.
3127 # The user is always right.
3128 if test "${PATH_SEPARATOR+set}" != set; then
3129 echo "#! /bin/sh" >conf$$.sh
3130 echo "exit 0" >>conf$$.sh
3132 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3140 if test "$GCC" = yes; then
3141 # Check if gcc -print-prog-name=ld gives a path.
3142 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3143 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3146 # gcc leaves a trailing carriage return which upsets mingw
3147 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3149 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3152 # Accept absolute paths.
3153 [\\/]* |
[A-Za-z
]:[\\/]*)
3154 re_direlt
='/[^/][^/]*/\.\./'
3155 # Canonicalize the path of ld
3156 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
3157 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3158 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3160 test -z "$LD" && LD
="$ac_prog"
3163 # If it fails, then pretend we aren't using GCC.
3167 # If it is relative, then search for the first ld in PATH.
3171 elif test "$with_gnu_ld" = yes; then
3172 echo "$as_me:$LINENO: checking for GNU ld" >&5
3173 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3175 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3176 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3178 if test "${acl_cv_path_LD+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -z "$LD"; then
3182 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3183 for ac_dir
in $PATH; do
3184 test -z "$ac_dir" && ac_dir
=.
3185 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3186 acl_cv_path_LD
="$ac_dir/$ac_prog"
3187 # Check to see if the program is GNU ld. I'd rather use --version,
3188 # but apparently some GNU ld's only accept -v.
3189 # Break only if it was the GNU/non-GNU ld that we prefer.
3190 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3191 *GNU
* |
*'with BFD'*)
3192 test "$with_gnu_ld" != no
&& break ;;
3194 test "$with_gnu_ld" != yes && break ;;
3200 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
3204 LD
="$acl_cv_path_LD"
3205 if test -n "$LD"; then
3206 echo "$as_me:$LINENO: result: $LD" >&5
3207 echo "${ECHO_T}$LD" >&6
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3212 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3213 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3214 { (exit 1); exit 1; }; }
3215 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3216 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3217 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3221 case `$LD -v 2>&1 </dev/null` in
3222 *GNU
* |
*'with BFD'*)
3223 acl_cv_prog_gnu_ld
=yes ;;
3225 acl_cv_prog_gnu_ld
=no
;;
3228 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3229 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3230 with_gnu_ld
=$acl_cv_prog_gnu_ld
3234 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3235 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3236 if test "${acl_cv_rpath+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
3241 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3247 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3248 echo "${ECHO_T}$acl_cv_rpath" >&6
3250 libext
="$acl_cv_libext"
3251 shlibext
="$acl_cv_shlibext"
3252 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
3253 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
3254 hardcode_direct
="$acl_cv_hardcode_direct"
3255 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
3256 # Check whether --enable-rpath or --disable-rpath was given.
3257 if test "${enable_rpath+set}" = set; then
3258 enableval
="$enable_rpath"
3272 acl_save_prefix
="$prefix"
3273 prefix
="$acl_final_prefix"
3274 acl_save_exec_prefix
="$exec_prefix"
3275 exec_prefix
="$acl_final_exec_prefix"
3277 eval additional_includedir
=\"$includedir\"
3278 eval additional_libdir
=\"$libdir\"
3280 exec_prefix
="$acl_save_exec_prefix"
3281 prefix
="$acl_save_prefix"
3284 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3285 if test "${with_libiconv_prefix+set}" = set; then
3286 withval
="$with_libiconv_prefix"
3288 if test "X$withval" = "Xno"; then
3291 if test "X$withval" = "X"; then
3293 acl_save_prefix
="$prefix"
3294 prefix
="$acl_final_prefix"
3295 acl_save_exec_prefix
="$exec_prefix"
3296 exec_prefix
="$acl_final_exec_prefix"
3298 eval additional_includedir
=\"$includedir\"
3299 eval additional_libdir
=\"$libdir\"
3301 exec_prefix
="$acl_save_exec_prefix"
3302 prefix
="$acl_save_prefix"
3305 additional_includedir
="$withval/include"
3306 additional_libdir
="$withval/lib"
3316 names_already_handled
=
3317 names_next_round
='iconv '
3318 while test -n "$names_next_round"; do
3319 names_this_round
="$names_next_round"
3321 for name
in $names_this_round; do
3323 for n
in $names_already_handled; do
3324 if test "$n" = "$name"; then
3329 if test -z "$already_handled"; then
3330 names_already_handled
="$names_already_handled $name"
3331 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3332 eval value
=\"\
$HAVE_LIB$uppername\"
3333 if test -n "$value"; then
3334 if test "$value" = yes; then
3335 eval value
=\"\
$LIB$uppername\"
3336 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
3337 eval value
=\"\
$LTLIB$uppername\"
3338 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
3347 if test $use_additional = yes; then
3348 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3349 found_dir
="$additional_libdir"
3350 found_so
="$additional_libdir/lib$name.$shlibext"
3351 if test -f "$additional_libdir/lib$name.la"; then
3352 found_la
="$additional_libdir/lib$name.la"
3355 if test -f "$additional_libdir/lib$name.$libext"; then
3356 found_dir
="$additional_libdir"
3357 found_a
="$additional_libdir/lib$name.$libext"
3358 if test -f "$additional_libdir/lib$name.la"; then
3359 found_la
="$additional_libdir/lib$name.la"
3364 if test "X$found_dir" = "X"; then
3365 for x
in $LDFLAGS $LTLIBICONV; do
3367 acl_save_prefix
="$prefix"
3368 prefix
="$acl_final_prefix"
3369 acl_save_exec_prefix
="$exec_prefix"
3370 exec_prefix
="$acl_final_exec_prefix"
3372 exec_prefix
="$acl_save_exec_prefix"
3373 prefix
="$acl_save_prefix"
3377 dir
=`echo "X$x" | sed -e 's/^X-L//'`
3378 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3380 found_so
="$dir/lib$name.$shlibext"
3381 if test -f "$dir/lib$name.la"; then
3382 found_la
="$dir/lib$name.la"
3385 if test -f "$dir/lib$name.$libext"; then
3387 found_a
="$dir/lib$name.$libext"
3388 if test -f "$dir/lib$name.la"; then
3389 found_la
="$dir/lib$name.la"
3395 if test "X$found_dir" != "X"; then
3400 if test "X$found_dir" != "X"; then
3401 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3402 if test "X$found_so" != "X"; then
3403 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
3404 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
3407 for x
in $ltrpathdirs; do
3408 if test "X$x" = "X$found_dir"; then
3413 if test -z "$haveit"; then
3414 ltrpathdirs
="$ltrpathdirs $found_dir"
3416 if test "$hardcode_direct" = yes; then
3417 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
3419 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
3420 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
3422 for x
in $rpathdirs; do
3423 if test "X$x" = "X$found_dir"; then
3428 if test -z "$haveit"; then
3429 rpathdirs
="$rpathdirs $found_dir"
3433 for x
in $LDFLAGS $LIBICONV; do
3435 acl_save_prefix
="$prefix"
3436 prefix
="$acl_final_prefix"
3437 acl_save_exec_prefix
="$exec_prefix"
3438 exec_prefix
="$acl_final_exec_prefix"
3440 exec_prefix
="$acl_save_exec_prefix"
3441 prefix
="$acl_save_prefix"
3443 if test "X$x" = "X-L$found_dir"; then
3448 if test -z "$haveit"; then
3449 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3451 if test "$hardcode_minus_L" != no
; then
3452 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
3454 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
3460 if test "X$found_a" != "X"; then
3461 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
3463 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3466 additional_includedir
=
3467 case "$found_dir" in
3469 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3470 additional_includedir
="$basedir/include"
3473 if test "X$additional_includedir" != "X"; then
3474 if test "X$additional_includedir" != "X/usr/include"; then
3476 if test "X$additional_includedir" = "X/usr/local/include"; then
3477 if test -n "$GCC"; then
3479 linux
*) haveit
=yes;;
3483 if test -z "$haveit"; then
3484 for x
in $CPPFLAGS $INCICONV; do
3486 acl_save_prefix
="$prefix"
3487 prefix
="$acl_final_prefix"
3488 acl_save_exec_prefix
="$exec_prefix"
3489 exec_prefix
="$acl_final_exec_prefix"
3491 exec_prefix
="$acl_save_exec_prefix"
3492 prefix
="$acl_save_prefix"
3494 if test "X$x" = "X-I$additional_includedir"; then
3499 if test -z "$haveit"; then
3500 if test -d "$additional_includedir"; then
3501 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3507 if test -n "$found_la"; then
3508 save_libdir
="$libdir"
3510 */* |
*\\*) .
"$found_la" ;;
3511 *) .
"./$found_la" ;;
3513 libdir
="$save_libdir"
3514 for dep
in $dependency_libs; do
3517 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
3518 if test "X$additional_libdir" != "X/usr/lib"; then
3520 if test "X$additional_libdir" = "X/usr/local/lib"; then
3521 if test -n "$GCC"; then
3523 linux
*) haveit
=yes;;
3527 if test -z "$haveit"; then
3529 for x
in $LDFLAGS $LIBICONV; do
3531 acl_save_prefix
="$prefix"
3532 prefix
="$acl_final_prefix"
3533 acl_save_exec_prefix
="$exec_prefix"
3534 exec_prefix
="$acl_final_exec_prefix"
3536 exec_prefix
="$acl_save_exec_prefix"
3537 prefix
="$acl_save_prefix"
3539 if test "X$x" = "X-L$additional_libdir"; then
3544 if test -z "$haveit"; then
3545 if test -d "$additional_libdir"; then
3546 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3550 for x
in $LDFLAGS $LTLIBICONV; do
3552 acl_save_prefix
="$prefix"
3553 prefix
="$acl_final_prefix"
3554 acl_save_exec_prefix
="$exec_prefix"
3555 exec_prefix
="$acl_final_exec_prefix"
3557 exec_prefix
="$acl_save_exec_prefix"
3558 prefix
="$acl_save_prefix"
3560 if test "X$x" = "X-L$additional_libdir"; then
3565 if test -z "$haveit"; then
3566 if test -d "$additional_libdir"; then
3567 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3574 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
3575 if test "$enable_rpath" != no
; then
3577 for x
in $rpathdirs; do
3578 if test "X$x" = "X$dir"; then
3583 if test -z "$haveit"; then
3584 rpathdirs
="$rpathdirs $dir"
3587 for x
in $ltrpathdirs; do
3588 if test "X$x" = "X$dir"; then
3593 if test -z "$haveit"; then
3594 ltrpathdirs
="$ltrpathdirs $dir"
3599 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3602 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3605 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
3606 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3612 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
3613 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3619 if test "X$rpathdirs" != "X"; then
3620 if test -n "$hardcode_libdir_separator"; then
3622 for found_dir
in $rpathdirs; do
3623 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3625 acl_save_libdir
="$libdir"
3627 eval flag
=\"$hardcode_libdir_flag_spec\"
3628 libdir
="$acl_save_libdir"
3629 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
3631 for found_dir
in $rpathdirs; do
3632 acl_save_libdir
="$libdir"
3634 eval flag
=\"$hardcode_libdir_flag_spec\"
3635 libdir
="$acl_save_libdir"
3636 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
3640 if test "X$ltrpathdirs" != "X"; then
3641 for found_dir
in $ltrpathdirs; do
3642 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3652 am_save_CPPFLAGS
="$CPPFLAGS"
3654 for element
in $INCICONV; do
3656 for x
in $CPPFLAGS; do
3658 acl_save_prefix
="$prefix"
3659 prefix
="$acl_final_prefix"
3660 acl_save_exec_prefix
="$exec_prefix"
3661 exec_prefix
="$acl_final_exec_prefix"
3663 exec_prefix
="$acl_save_exec_prefix"
3664 prefix
="$acl_save_prefix"
3666 if test "X$x" = "X$element"; then
3671 if test -z "$haveit"; then
3672 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
3677 echo "$as_me:$LINENO: checking for iconv" >&5
3678 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3679 if test "${am_cv_func_iconv+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 am_cv_func_iconv
="no, consider installing GNU libiconv"
3685 cat >conftest.
$ac_ext <<_ACEOF
3688 cat confdefs.h
>>conftest.
$ac_ext
3689 cat >>conftest.
$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3696 iconv_t cd = iconv_open("","");
3697 iconv(cd,NULL,NULL,NULL,NULL);
3703 rm -f conftest.
$ac_objext conftest
$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
3709 cat conftest.err
>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try
='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try
='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 am_cv_func_iconv
=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.
$ac_ext >&5
3731 rm -f conftest.err conftest.
$ac_objext \
3732 conftest
$ac_exeext conftest.
$ac_ext
3733 if test "$am_cv_func_iconv" != yes; then
3734 am_save_LIBS
="$LIBS"
3735 LIBS
="$LIBS $LIBICONV"
3736 cat >conftest.
$ac_ext <<_ACEOF
3739 cat confdefs.h
>>conftest.
$ac_ext
3740 cat >>conftest.
$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3747 iconv_t cd = iconv_open("","");
3748 iconv(cd,NULL,NULL,NULL,NULL);
3754 rm -f conftest.
$ac_objext conftest
$ac_exeext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756 (eval $ac_link) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1
>conftest.err
3760 cat conftest.err
>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try
='test -z "$ac_c_werror_flag"
3764 || test ! -s conftest.err'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try
='test -s conftest$ac_exeext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3777 am_cv_func_iconv
=yes
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.
$ac_ext >&5
3783 rm -f conftest.err conftest.
$ac_objext \
3784 conftest
$ac_exeext conftest.
$ac_ext
3785 LIBS
="$am_save_LIBS"
3789 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
3790 echo "${ECHO_T}$am_cv_func_iconv" >&6
3791 if test "$am_cv_func_iconv" = yes; then
3793 cat >>confdefs.h
<<\_ACEOF
3794 #define HAVE_ICONV 1
3798 if test "$am_cv_lib_iconv" = yes; then
3799 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
3800 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
3801 echo "$as_me:$LINENO: result: $LIBICONV" >&5
3802 echo "${ECHO_T}$LIBICONV" >&6
3804 CPPFLAGS
="$am_save_CPPFLAGS"
3811 if test "$am_cv_func_iconv" = yes; then
3812 echo "$as_me:$LINENO: checking for iconv declaration" >&5
3813 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
3814 if test "${am_cv_proto_iconv+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.
$ac_ext <<_ACEOF
3821 cat confdefs.h
>>conftest.
$ac_ext
3822 cat >>conftest.
$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3831 #if defined(__STDC__) || defined(__cplusplus)
3832 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3845 rm -f conftest.
$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try
='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try
='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 am_cv_proto_iconv_arg1
=""
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.
$ac_ext >&5
3872 am_cv_proto_iconv_arg1
="const"
3874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3875 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);"
3878 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3879 echo "$as_me:$LINENO: result: ${ac_t:-
3880 }$am_cv_proto_iconv" >&5
3881 echo "${ECHO_T}${ac_t:-
3882 }$am_cv_proto_iconv" >&6
3884 cat >>confdefs.h
<<_ACEOF
3885 #define ICONV_CONST $am_cv_proto_iconv_arg1
3890 if test -n "$LIBICONV" ; then
3891 LIBS
="$LIBS $LIBICONV"
3894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3904 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3905 inttypes.h stdint.h unistd.h
3907 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3908 echo "$as_me:$LINENO: checking for $ac_header" >&5
3909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 cat >conftest.
$ac_ext <<_ACEOF
3916 cat confdefs.h
>>conftest.
$ac_ext
3917 cat >>conftest.
$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 $ac_includes_default
3921 #include <$ac_header>
3923 rm -f conftest.
$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1
>conftest.err
3929 cat conftest.err
>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try
='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try
='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 eval "$as_ac_Header=yes"
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.
$ac_ext >&5
3950 eval "$as_ac_Header=no"
3952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3957 cat >>confdefs.h
<<_ACEOF
3958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991 for ac_header
in stdio.h stdlib.h string.h
strings.h sys
/time.h
time.h unistd.h sys
/dirent.h \
3992 dirent.h sys
/socket.h netdb.h arpa
/inet.h sys
/types.h netinet
/in.h sys
/stat.h \
3993 ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h
iconv.h \
3994 errno.h sys
/resource.h
3996 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3998 echo "$as_me:$LINENO: checking for $ac_header" >&5
3999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4006 # Is the header compilable?
4007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4009 cat >conftest.
$ac_ext <<_ACEOF
4012 cat confdefs.h
>>conftest.
$ac_ext
4013 cat >>conftest.
$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4016 #include <$ac_header>
4018 rm -f conftest.
$ac_objext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>conftest.er1
4022 grep -v '^ *+' conftest.er1
>conftest.err
4024 cat conftest.err
>&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } &&
4027 { ac_try
='test -z "$ac_c_werror_flag"
4028 || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try
='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_header_compiler
=yes
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.
$ac_ext >&5
4045 ac_header_compiler
=no
4047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4049 echo "${ECHO_T}$ac_header_compiler" >&6
4051 # Is the header present?
4052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4054 cat >conftest.
$ac_ext <<_ACEOF
4057 cat confdefs.h
>>conftest.
$ac_ext
4058 cat >>conftest.
$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 #include <$ac_header>
4062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4063 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1
>conftest.err
4067 cat conftest.err
>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } >/dev
/null
; then
4070 if test -s conftest.err
; then
4071 ac_cpp_err
=$ac_c_preproc_warn_flag
4072 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4079 if test -z "$ac_cpp_err"; then
4080 ac_header_preproc
=yes
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.
$ac_ext >&5
4085 ac_header_preproc
=no
4087 rm -f conftest.err conftest.
$ac_ext
4088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4089 echo "${ECHO_T}$ac_header_preproc" >&6
4091 # So? What about this header?
4092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4098 ac_header_preproc
=yes
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4115 ## ------------------------------------------ ##
4116 ## Report this to the AC_PACKAGE_NAME lists. ##
4117 ## ------------------------------------------ ##
4120 sed "s/^/$as_me: WARNING: /" >&2
4123 echo "$as_me:$LINENO: checking for $ac_header" >&5
4124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 eval "$as_ac_Header=\$ac_header_preproc"
4130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4135 cat >>confdefs.h
<<_ACEOF
4136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4144 echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
4145 echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6
4146 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 ac_check_lib_save_LIBS
=$LIBS
4151 cat >conftest.
$ac_ext <<_ACEOF
4154 cat confdefs.h
>>conftest.
$ac_ext
4155 cat >>conftest.
$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4158 /* Override any gcc2 internal prototype to avoid an error. */
4162 /* We use char because int might match the return type of a gcc2
4163 builtin and then its argument prototype would still apply. */
4173 rm -f conftest.
$ac_objext conftest
$ac_exeext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1
>conftest.err
4179 cat conftest.err
>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try
='test -z "$ac_c_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try
='test -s conftest$ac_exeext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_lib_gd_gdImagePng
=yes
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.
$ac_ext >&5
4200 ac_cv_lib_gd_gdImagePng
=no
4202 rm -f conftest.err conftest.
$ac_objext \
4203 conftest
$ac_exeext conftest.
$ac_ext
4204 LIBS
=$ac_check_lib_save_LIBS
4206 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
4207 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6
4208 if test $ac_cv_lib_gd_gdImagePng = yes; then
4209 LIBS
="-lgd ${LIBS}"; HAVE_GD
="yes"
4215 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4216 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4217 if test "${ac_cv_c_const+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 cat >conftest.
$ac_ext <<_ACEOF
4223 cat confdefs.h
>>conftest.
$ac_ext
4224 cat >>conftest.
$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4230 /* FIXME: Include the comments suggested by Paul. */
4232 /* Ultrix mips cc rejects this. */
4233 typedef int charset[2];
4235 /* SunOS 4.1.1 cc rejects this. */
4236 char const *const *ccp;
4238 /* NEC SVR4.0.2 mips cc rejects this. */
4239 struct point {int x, y;};
4240 static struct point const zero = {0,0};
4241 /* AIX XL C 1.02.0.0 rejects this.
4242 It does not let you subtract one const X* pointer from another in
4243 an arm of an if-expression whose if-part is not a constant
4245 const char *g = "string";
4246 ccp = &g + (g ? g-g : 0);
4247 /* HPUX 7.0 cc rejects these. */
4250 ccp = (char const *const *) p;
4251 { /* SCO 3.2v4 cc rejects this. */
4253 char const *s = 0 ? (char *) 0 : (char const *) 0;
4257 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4259 const int *foo = &x[0];
4262 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4263 typedef const int *iptr;
4267 { /* AIX XL C 1.02.0.0 rejects this saying
4268 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4269 struct s { int j; const int *ap[3]; };
4270 struct s *b; b->j = 5;
4272 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4281 rm -f conftest.
$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1
>conftest.err
4287 cat conftest.err
>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try
='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try
='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.
$ac_ext >&5
4310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4312 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4313 echo "${ECHO_T}$ac_cv_c_const" >&6
4314 if test $ac_cv_c_const = no
; then
4316 cat >>confdefs.h
<<\_ACEOF
4322 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4323 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4324 if test "${ac_cv_struct_tm+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 cat >conftest.
$ac_ext <<_ACEOF
4330 cat confdefs.h
>>conftest.
$ac_ext
4331 cat >>conftest.
$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #include <sys/types.h>
4339 struct tm *tp; tp->tm_sec;
4344 rm -f conftest.
$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1
>conftest.err
4350 cat conftest.err
>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try
='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try
='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_struct_tm
=time.h
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.
$ac_ext >&5
4371 ac_cv_struct_tm
=sys
/time.h
4373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4375 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4376 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4377 if test $ac_cv_struct_tm = sys
/time.h
; then
4379 cat >>confdefs.h
<<\_ACEOF
4380 #define TM_IN_SYS_TIME 1
4386 echo "$as_me:$LINENO: checking for off_t" >&5
4387 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4388 if test "${ac_cv_type_off_t+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 cat >conftest.
$ac_ext <<_ACEOF
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4409 rm -f conftest.
$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_type_off_t
=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.
$ac_ext >&5
4438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4440 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4441 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4443 echo "$as_me:$LINENO: checking size of off_t" >&5
4444 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
4445 if test "${ac_cv_sizeof_off_t+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test "$ac_cv_type_off_t" = yes; then
4449 # The cast to unsigned long works around a bug in the HP C Compiler
4450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4452 # This bug is HP SR number 8606223364.
4453 if test "$cross_compiling" = yes; then
4454 # Depending upon the size, compute the lo and hi bounds.
4455 cat >conftest.
$ac_ext <<_ACEOF
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4465 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
4472 rm -f conftest.
$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4476 grep -v '^ *+' conftest.er1
>conftest.err
4478 cat conftest.err
>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try
='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try
='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4496 cat >conftest.
$ac_ext <<_ACEOF
4499 cat confdefs.h
>>conftest.
$ac_ext
4500 cat >>conftest.
$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 $ac_includes_default
4506 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
4513 rm -f conftest.
$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4517 grep -v '^ *+' conftest.er1
>conftest.err
4519 cat conftest.err
>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try
='test -z "$ac_c_werror_flag"
4523 || test ! -s conftest.err'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; } &&
4529 { ac_try
='test -s conftest.$ac_objext'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 ac_hi
=$ac_mid; break
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.
$ac_ext >&5
4540 ac_lo
=`expr $ac_mid + 1`
4541 if test $ac_lo -le $ac_mid; then
4545 ac_mid
=`expr 2 '*' $ac_mid + 1`
4547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.
$ac_ext >&5
4553 cat >conftest.
$ac_ext <<_ACEOF
4556 cat confdefs.h
>>conftest.
$ac_ext
4557 cat >>conftest.
$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4563 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
4570 rm -f conftest.
$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4574 grep -v '^ *+' conftest.er1
>conftest.err
4576 cat conftest.err
>&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try
='test -z "$ac_c_werror_flag"
4580 || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try
='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4594 cat >conftest.
$ac_ext <<_ACEOF
4597 cat confdefs.h
>>conftest.
$ac_ext
4598 cat >>conftest.
$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4604 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
4611 rm -f conftest.
$ac_objext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>conftest.er1
4615 grep -v '^ *+' conftest.er1
>conftest.err
4617 cat conftest.err
>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try
='test -z "$ac_c_werror_flag"
4621 || test ! -s conftest.err'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; } &&
4627 { ac_try
='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_lo
=$ac_mid; break
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.
$ac_ext >&5
4638 ac_hi
=`expr '(' $ac_mid ')' - 1`
4639 if test $ac_mid -le $ac_hi; then
4643 ac_mid
=`expr 2 '*' $ac_mid`
4645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.
$ac_ext >&5
4653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4656 # Binary search between lo and hi bounds.
4657 while test "x$ac_lo" != "x$ac_hi"; do
4658 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4659 cat >conftest.
$ac_ext <<_ACEOF
4662 cat confdefs.h
>>conftest.
$ac_ext
4663 cat >>conftest.
$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 $ac_includes_default
4669 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
4676 rm -f conftest.
$ac_objext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>conftest.er1
4680 grep -v '^ *+' conftest.er1
>conftest.err
4682 cat conftest.err
>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try
='test -z "$ac_c_werror_flag"
4686 || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try
='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.
$ac_ext >&5
4703 ac_lo
=`expr '(' $ac_mid ')' + 1`
4705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4708 ?
*) ac_cv_sizeof_off_t
=$ac_lo;;
4709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
4710 See \`config.log' for more details." >&5
4711 echo "$as_me: error: cannot compute sizeof (off_t), 77
4712 See \`config.log' for more details." >&2;}
4713 { (exit 1); exit 1; }; } ;;
4716 if test "$cross_compiling" = yes; then
4717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4718 See \`config.log' for more details." >&5
4719 echo "$as_me: error: cannot run test program while cross compiling
4720 See \`config.log' for more details." >&2;}
4721 { (exit 1); exit 1; }; }
4723 cat >conftest.
$ac_ext <<_ACEOF
4726 cat confdefs.h
>>conftest.
$ac_ext
4727 cat >>conftest.
$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4730 long longval () { return (long) (sizeof (off_t)); }
4731 unsigned long ulongval () { return (long) (sizeof (off_t)); }
4738 FILE *f = fopen ("conftest.val", "w");
4741 if (((long) (sizeof (off_t))) < 0)
4743 long i = longval ();
4744 if (i != ((long) (sizeof (off_t))))
4746 fprintf (f, "%ld\n", i);
4750 unsigned long i = ulongval ();
4751 if (i != ((long) (sizeof (off_t))))
4753 fprintf (f, "%lu\n", i);
4755 exit (ferror (f) || fclose (f) != 0);
4761 rm -f conftest
$ac_exeext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4763 (eval $ac_link) 2>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_sizeof_off_t
=`cat conftest.val`
4774 echo "$as_me: program exited with status $ac_status" >&5
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.
$ac_ext >&5
4779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
4780 See \`config.log' for more details." >&5
4781 echo "$as_me: error: cannot compute sizeof (off_t), 77
4782 See \`config.log' for more details." >&2;}
4783 { (exit 1); exit 1; }; }
4785 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4790 ac_cv_sizeof_off_t
=0
4793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
4794 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
4795 cat >>confdefs.h
<<_ACEOF
4796 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
4800 if test $ac_cv_sizeof_off_t = "4"; then
4802 cat >>confdefs.h
<<\_ACEOF
4803 #define OFFSET_STRING "%d"
4806 elif test $ac_cv_sizeof_off_t = "8"; then
4808 cat >>confdefs.h
<<\_ACEOF
4809 #define OFFSET_STRING "%lli"
4813 { { echo "$as_me:$LINENO: error: can not detect the size of your system\'s off_t type" >&5
4814 echo "$as_me: error: can not detect the size of your system\'s off_t type" >&2;}
4815 { (exit 1); exit 1; }; }
4818 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
4819 # needs to be defined for it
4820 echo "$as_me:$LINENO: checking for fopen64" >&5
4821 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
4822 if test "${bu_cv_have_fopen64+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4835 FILE *f = fopen64 ("/tmp/foo","r");
4840 rm -f conftest.
$ac_objext conftest
$ac_exeext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4842 (eval $ac_link) 2>conftest.er1
4844 grep -v '^ *+' conftest.er1
>conftest.err
4846 cat conftest.err
>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try
='test -z "$ac_c_werror_flag"
4850 || test ! -s conftest.err'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; } &&
4856 { ac_try
='test -s conftest$ac_exeext'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 bu_cv_have_fopen64
=yes
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.
$ac_ext >&5
4867 saved_CPPFLAGS
=$CPPFLAGS
4868 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4879 FILE *f = fopen64 ("/tmp/foo","r");
4884 rm -f conftest.
$ac_objext conftest
$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1
>conftest.err
4890 cat conftest.err
>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try
='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try
='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 bu_cv_have_fopen64
="need -D_LARGEFILE64_SOURCE"
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.
$ac_ext >&5
4911 bu_cv_have_fopen64
=no
4913 rm -f conftest.err conftest.
$ac_objext \
4914 conftest
$ac_exeext conftest.
$ac_ext
4915 CPPFLAGS
=$saved_CPPFLAGS
4917 rm -f conftest.err conftest.
$ac_objext \
4918 conftest
$ac_exeext conftest.
$ac_ext
4921 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
4922 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
4923 if test "$bu_cv_have_fopen64" != no
; then
4925 cat >>confdefs.h
<<\_ACEOF
4926 #define HAVE_FOPEN64 1
4929 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
4931 cat >>confdefs.h
<<\_ACEOF
4932 #define _LARGEFILE64_SOURCE 1
4939 # Check whether --enable-bindir or --disable-bindir was given.
4940 if test "${enable_bindir+set}" = set; then
4941 enableval
="$enable_bindir"
4943 if test "$enableval"; then
4950 echo "using $BINDIR as the SARG binary"
4953 # Check whether --enable-mandir or --disable-mandir was given.
4954 if test "${enable_mandir+set}" = set; then
4955 enableval
="$enable_mandir"
4957 if test "$enableval"; then
4962 MANDIR
="/usr/local/man/man1"
4964 echo "using $MANDIR as the SARG man page"
4967 # Check whether --enable-sysconfdir or --disable-sysconfdir was given.
4968 if test "${enable_sysconfdir+set}" = set; then
4969 enableval
="$enable_sysconfdir"
4971 if test "$enableval"; then
4972 SYSCONFDIR
=$enableval
4976 SYSCONFDIR
="/usr/local/sarg"
4978 echo "using $SYSCONFDIR as the SARG configuration dir"
4981 # Check whether --enable-htmldir or --disable-htmldir was given.
4982 if test "${enable_htmldir+set}" = set; then
4983 enableval
="$enable_htmldir"
4985 if test "$enableval"; then
4990 HTMLDIR
="/var/www/html"
4992 echo "using $HTMLDIR as the WWW Document Root dir"
4996 ac_config_files
="$ac_config_files Makefile"
4997 cat >confcache
<<\_ACEOF
4998 # This file is a shell script that caches the results of configure
4999 # tests run on this system so they can be shared between configure
5000 # scripts and configure runs, see configure's option --config-cache.
5001 # It is not useful on other systems. If it contains results you don't
5002 # want to keep, you may remove or edit it.
5004 # config.status only pays attention to the cache file if you give it
5005 # the --recheck option to rerun configure.
5007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5013 # The following way of writing the cache mishandles newlines in values,
5014 # but we know of no workaround that is simple, portable, and efficient.
5015 # So, don't put newlines in cache variables' values.
5016 # Ultrix sh set writes to stderr and can't be redirected directly,
5017 # and sets the high bit in the cache file unless we assign to the vars.
5020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5022 # `set' does not quote correctly, so add quotes (double-quote
5023 # substitution turns \\\\ into \\, and sed turns \\ into \).
5026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5029 # `set' quotes correctly as required by POSIX, so do not add quotes.
5031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5040 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5042 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5043 if test -w $cache_file; then
5044 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5045 cat confcache
>$cache_file
5047 echo "not updating unwritable cache $cache_file"
5052 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5053 # Let make expand exec_prefix.
5054 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5056 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5057 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5058 # trailing colons and then remove the whole line if VPATH becomes empty
5059 # (actually we leave an empty line to preserve line numbers).
5060 if test "x$srcdir" = x.
; then
5061 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5062 s/:*\$(srcdir):*/:/;
5063 s/:*\${srcdir}:*/:/;
5065 s/^\([^=]*=[ ]*\):*/\1/;
5071 # Transform confdefs.h into DEFS.
5072 # Protect against shell expansion while executing Makefile rules.
5073 # Protect against Makefile macro expansion.
5075 # If the first sed substitution is executed (which looks for macros that
5076 # take arguments), then we branch to the quote section. Otherwise,
5077 # look for a macro that doesn't take arguments.
5078 cat >confdef2opt.
sed <<\_ACEOF
5081 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5083 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5087 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5093 # We use echo to avoid assuming a particular line-breaking character.
5094 # The extra dot is to prevent the shell from consuming trailing
5095 # line-breaks from the sub-command output. A line-break within
5096 # single-quotes doesn't work because, if this script is created in a
5097 # platform that uses two characters for line-breaks (e.g., DOS), tr
5099 ac_LF_and_DOT=`echo; echo .
`
5100 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
5101 rm -f confdef2opt.sed
5106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5107 # 1. Remove the extension, and $U if already installed.
5108 ac_i=`echo "$ac_i" |
5109 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5111 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5112 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5116 LTLIBOBJS=$ac_ltlibobjs
5120 : ${CONFIG_STATUS=./config.status}
5121 ac_clean_files_save=$ac_clean_files
5122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5123 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5124 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5125 cat >$CONFIG_STATUS <<_ACEOF
5127 # Generated by $as_me.
5128 # Run this file to recreate the current configuration.
5129 # Compiler output produced by configure, useful for debugging
5130 # configure, is in config.log if it exists.
5135 SHELL=\${CONFIG_SHELL-$SHELL}
5138 cat >>$CONFIG_STATUS <<\_ACEOF
5139 ## --------------------- ##
5140 ## M4sh Initialization. ##
5141 ## --------------------- ##
5143 # Be Bourne compatible
5144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5148 # is contrary to our usage. Disable this feature.
5149 alias -g '${1+"$@"}'='"$@"'
5150 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5153 DUALCASE=1; export DUALCASE # for MKS sh
5155 # Support unset when possible.
5156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5163 # Work around bugs in pre-3.0 UWIN ksh.
5164 $as_unset ENV MAIL MAILPATH
5171 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5172 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5173 LC_TELEPHONE LC_TIME
5175 if (set +x; test -z "`(eval $as_var=C
; export $as_var) 2>&1`"); then
5176 eval $as_var=C; export $as_var
5182 # Required to use basename.
5183 if expr a : '\(a\)' >/dev/null 2>&1; then
5189 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5190 as_basename=basename
5196 # Name of the executable.
5197 as_me=`$as_basename "$0" ||
5198 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5199 X
"$0" : 'X\(//\)$' \| \
5200 X
"$0" : 'X\(/\)$' \| \
5201 .
: '\(.\)' 2>/dev
/null ||
5203 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5204 /^X\/\(\/\/\)$/{ s//\1/; q; }
5205 /^X\/\(\/\).*/{ s//\1/; q; }
5209 # PATH needs CR, and LINENO needs CR and PATH.
5210 # Avoid depending upon Character Ranges.
5211 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5212 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5213 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5214 as_cr_digits='0123456789'
5215 as_cr_alnum=$as_cr_Letters$as_cr_digits
5217 # The user is always right.
5218 if test "${PATH_SEPARATOR+set}" != set; then
5219 echo "#! /bin/sh" >conf$$.sh
5220 echo "exit 0" >>conf$$.sh
5222 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5233 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
5234 test "x$as_lineno_1" != "x$as_lineno_2" &&
5235 test "x$as_lineno_3" = "x$as_lineno_2" || {
5236 # Find who we are. Look in the path if we contain no path at all
5239 *[\\/]* ) as_myself=$0 ;;
5240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5250 # We did not find ourselves, most probably we were run as `sh COMMAND
'
5251 # in which case we are not to be found in the path.
5252 if test "x$as_myself" = x; then
5255 if test ! -f "$as_myself"; then
5256 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5257 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5258 { (exit 1); exit 1; }; }
5260 case $CONFIG_SHELL in
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5266 test -z "$as_dir" && as_dir=.
5267 for as_base in sh bash ksh sh5; do
5270 if ("$as_dir/$as_base" -c '
5273 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5274 test "x$as_lineno_1" != "x$as_lineno_2" &&
5275 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5276 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5277 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5278 CONFIG_SHELL=$as_dir/$as_base
5280 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5288 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5289 # uniformly replaced by the line number. The first 'sed' inserts a
5290 # line-number line before each line; the second 'sed' does the real
5291 # work. The second script uses 'N
' to pair each line-number line
5292 # with the numbered line, and appends trailing '-' during
5293 # substitution so that $LINENO is not a special case at line end.
5294 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5295 # second 'sed' script. Blame Lee E. McMahon for sed's syntax.
:-)
5296 sed '=' <$as_myself |
5301 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5304 s,^['$as_cr_digits']*\n,,
5306 chmod +x
$as_me.lineno ||
5307 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5308 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5309 { (exit 1); exit 1; }; }
5311 # Don't try to exec as it changes $[0], causing all sort of problems
5312 # (the dirname of $[0] is not the place where we might find the
5313 # original and so on. Autoconf is especially sensible to this).
5315 # Exit status is that of the last command.
5320 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5321 *c
*,-n*) ECHO_N
= ECHO_C
='
5323 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5324 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5327 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5333 rm -f conf$$ conf$$.exe conf$$.
file
5335 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5336 # We could just check for DJGPP; but this test a) works b) is more generic
5337 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5338 if test -f conf$$.exe
; then
5339 # Don't use ln at all; we don't have any links
5344 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5349 rm -f conf$$ conf$$.exe conf$$.
file
5351 if mkdir
-p .
2>/dev
/null
; then
5354 test -d .
/-p && rmdir .
/-p
5358 as_executable_p
="test -f"
5360 # Sed expression to map a string onto a valid CPP name.
5361 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5363 # Sed expression to map a string onto a valid variable name.
5364 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5368 # We need space, tab and new line, in precisely that order.
5378 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5379 # report actual input values of CONFIG_FILES etc. instead of their
5380 # values after options handling. Logging --version etc. is OK.
5384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5385 ## Running $as_me. ##
5390 This file was extended by $as_me, which was
5391 generated by GNU Autoconf 2.59. Invocation command line was
5393 CONFIG_FILES = $CONFIG_FILES
5394 CONFIG_HEADERS = $CONFIG_HEADERS
5395 CONFIG_LINKS = $CONFIG_LINKS
5396 CONFIG_COMMANDS = $CONFIG_COMMANDS
5400 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5404 # Files that config.status was made for.
5405 if test -n "$ac_config_files"; then
5406 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5409 if test -n "$ac_config_headers"; then
5410 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5413 if test -n "$ac_config_links"; then
5414 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5417 if test -n "$ac_config_commands"; then
5418 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5421 cat >>$CONFIG_STATUS <<\_ACEOF
5424 \`$as_me' instantiates files from templates according to the
5425 current configuration.
5427 Usage: $0 [OPTIONS] [FILE]...
5429 -h, --help print this help, then exit
5430 -V, --version print version number, then exit
5431 -q, --quiet do not print progress messages
5432 -d, --debug don't remove temporary files
5433 --recheck update $as_me by reconfiguring in the same conditions
5434 --file=FILE[:TEMPLATE]
5435 instantiate the configuration file FILE
5437 Configuration files:
5440 Report bugs to <bug-autoconf@gnu.org>."
5443 cat >>$CONFIG_STATUS <<_ACEOF
5446 configured by $0, generated by GNU Autoconf 2.59,
5447 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5449 Copyright (C) 2003 Free Software Foundation, Inc.
5450 This config.status script is free software; the Free Software Foundation
5451 gives unlimited permission to copy, distribute and modify it."
5455 cat >>$CONFIG_STATUS <<\_ACEOF
5456 # If no file are specified by the user, then we need to provide default
5457 # value. By we need to know if files were specified by the user.
5463 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5464 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5472 *) # This is not an option, so the user has probably given explicit
5475 ac_need_defaults
=false
;;
5479 # Handling of the options.
5481 cat >>$CONFIG_STATUS <<\_ACEOF
5482 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5484 --version |
--vers* |
-V )
5485 echo "$ac_cs_version"; exit 0 ;;
5487 # Conflict between --help and --header
5488 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5489 Try \`$0 --help' for more information." >&5
5490 echo "$as_me: error: ambiguous option: $1
5491 Try \`$0 --help' for more information." >&2;}
5492 { (exit 1); exit 1; }; };;
5493 --help |
--hel |
-h )
5494 echo "$ac_cs_usage"; exit 0 ;;
5495 --debug |
--d* |
-d )
5497 --file |
--fil |
--fi |
--f )
5499 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5500 ac_need_defaults
=false
;;
5501 --header |
--heade |
--head |
--hea )
5503 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5504 ac_need_defaults
=false
;;
5505 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5506 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5510 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5511 Try \`$0 --help' for more information." >&5
5512 echo "$as_me: error: unrecognized option: $1
5513 Try \`$0 --help' for more information." >&2;}
5514 { (exit 1); exit 1; }; } ;;
5516 *) ac_config_targets
="$ac_config_targets $1" ;;
5522 ac_configure_extra_args
=
5524 if $ac_cs_silent; then
5526 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5530 cat >>$CONFIG_STATUS <<_ACEOF
5531 if \$ac_cs_recheck; then
5532 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5533 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5542 cat >>$CONFIG_STATUS <<\_ACEOF
5543 for ac_config_target
in $ac_config_targets
5545 case "$ac_config_target" in
5546 # Handling of arguments.
5547 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5548 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5549 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5550 { (exit 1); exit 1; }; };;
5554 # If the user did not use the arguments to specify the items to instantiate,
5555 # then the envvar interface is used. Set only those that are not.
5556 # We use the long form for the default assignment because of an extremely
5557 # bizarre bug on SunOS 4.1.3.
5558 if $ac_need_defaults; then
5559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5562 # Have a temporary directory for convenience. Make it in the build tree
5563 # simply because there is no reason to put it here, and in addition,
5564 # creating and moving files from /tmp can sometimes cause problems.
5565 # Create a temporary directory, and hook for its removal unless debugging.
5568 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5569 trap '{ (exit 1); exit 1; }' 1 2 13 15
5572 # Create a (secure) tmp directory for tmp files.
5575 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5576 test -n "$tmp" && test -d "$tmp"
5579 tmp
=.
/confstat$$
-$RANDOM
5580 (umask 077 && mkdir
$tmp)
5583 echo "$me: cannot create a temporary directory in ." >&2
5584 { (exit 1); exit 1; }
5589 cat >>$CONFIG_STATUS <<_ACEOF
5592 # CONFIG_FILES section.
5595 # No need to generate the scripts if there are no CONFIG_FILES.
5596 # This happens for instance when ./config.status config.h
5597 if test -n "\$CONFIG_FILES"; then
5598 # Protect against being on the right side of a sed subst in config.status.
5599 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5600 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5601 s,@SHELL@,$SHELL,;t t
5602 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5603 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5604 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5605 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5606 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5607 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5608 s,@exec_prefix@,$exec_prefix,;t t
5609 s,@prefix@,$prefix,;t t
5610 s,@program_transform_name@,$program_transform_name,;t t
5611 s,@bindir@,$bindir,;t t
5612 s,@sbindir@,$sbindir,;t t
5613 s,@libexecdir@,$libexecdir,;t t
5614 s,@datadir@,$datadir,;t t
5615 s,@sysconfdir@,$sysconfdir,;t t
5616 s,@sharedstatedir@,$sharedstatedir,;t t
5617 s,@localstatedir@,$localstatedir,;t t
5618 s,@libdir@,$libdir,;t t
5619 s,@includedir@,$includedir,;t t
5620 s,@oldincludedir@,$oldincludedir,;t t
5621 s,@infodir@,$infodir,;t t
5622 s,@mandir@,$mandir,;t t
5623 s,@build_alias@,$build_alias,;t t
5624 s,@host_alias@,$host_alias,;t t
5625 s,@target_alias@,$target_alias,;t t
5627 s,@ECHO_C@,$ECHO_C,;t t
5628 s,@ECHO_N@,$ECHO_N,;t t
5629 s,@ECHO_T@,$ECHO_T,;t t
5631 s,@build@,$build,;t t
5632 s,@build_cpu@,$build_cpu,;t t
5633 s,@build_vendor@,$build_vendor,;t t
5634 s,@build_os@,$build_os,;t t
5636 s,@host_cpu@,$host_cpu,;t t
5637 s,@host_vendor@,$host_vendor,;t t
5638 s,@host_os@,$host_os,;t t
5640 s,@CFLAGS@,$CFLAGS,;t t
5641 s,@LDFLAGS@,$LDFLAGS,;t t
5642 s,@CPPFLAGS@,$CPPFLAGS,;t t
5643 s,@ac_ct_CC@,$ac_ct_CC,;t t
5644 s,@EXEEXT@,$EXEEXT,;t t
5645 s,@OBJEXT@,$OBJEXT,;t t
5647 s,@EGREP@,$EGREP,;t t
5648 s,@LIBICONV@,$LIBICONV,;t t
5649 s,@LTLIBICONV@,$LTLIBICONV,;t t
5650 s,@BINDIR@,$BINDIR,;t t
5651 s,@MANDIR@,$MANDIR,;t t
5652 s,@SYSCONFDIR@,$SYSCONFDIR,;t t
5653 s,@HTMLDIR@,$HTMLDIR,;t t
5654 s,@LIBOBJS@,$LIBOBJS,;t t
5655 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5660 cat >>$CONFIG_STATUS <<\_ACEOF
5661 # Split the substitutions into bite-sized pieces for seds with
5662 # small command number limits, like on Digital OSF/1 and HP-UX.
5664 ac_sed_frag
=1 # Number of current file.
5665 ac_beg
=1 # First line for current file.
5666 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5669 while $ac_more_lines; do
5670 if test $ac_beg -gt 1; then
5671 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5673 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5675 if test ! -s $tmp/subs.frag
; then
5678 # The purpose of the label and of the branching condition is to
5679 # speed up the sed processing (if there are no `@' at all, there
5680 # is no need to browse any of the substitutions).
5681 # These are the two extra sed commands mentioned above.
5683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5684 if test -z "$ac_sed_cmds"; then
5685 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5687 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5689 ac_sed_frag
=`expr $ac_sed_frag + 1`
5691 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5694 if test -z "$ac_sed_cmds"; then
5697 fi # test -n "$CONFIG_FILES"
5700 cat >>$CONFIG_STATUS <<\_ACEOF
5701 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5704 - |
*:- |
*:-:* ) # input from stdin
5706 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5707 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5708 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5709 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5710 * ) ac_file_in
=$ac_file.
in ;;
5713 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5714 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5715 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5716 X"$ac_file" : 'X\(//\)[^/]' \| \
5717 X"$ac_file" : 'X\(//\)$' \| \
5718 X"$ac_file" : 'X\(/\)' \| \
5719 . : '\(.\)' 2>/dev/null ||
5721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5723 /^X\(\/\/\)$/{ s//\1/; q; }
5724 /^X\(\/\).*/{ s//\1/; q; }
5726 { if $as_mkdir_p; then
5731 while test ! -d "$as_dir"; do
5732 as_dirs
="$as_dir $as_dirs"
5733 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5735 X"$as_dir" : 'X\(//\)[^/]' \| \
5736 X"$as_dir" : 'X\(//\)$' \| \
5737 X"$as_dir" : 'X\(/\)' \| \
5738 . : '\(.\)' 2>/dev/null ||
5740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5742 /^X\(\/\/\)$/{ s//\1/; q; }
5743 /^X\(\/\).*/{ s//\1/; q; }
5746 test ! -n "$as_dirs" || mkdir
$as_dirs
5747 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5748 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5749 { (exit 1); exit 1; }; }; }
5753 if test "$ac_dir" != .
; then
5754 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5755 # A "../" for each directory in $ac_dir_suffix.
5756 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5758 ac_dir_suffix
= ac_top_builddir
=
5762 .
) # No --srcdir option. We are building in place.
5764 if test -z "$ac_top_builddir"; then
5767 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5769 [\\/]* | ?
:[\\/]* ) # Absolute path.
5770 ac_srcdir
=$srcdir$ac_dir_suffix;
5771 ac_top_srcdir
=$srcdir ;;
5773 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5774 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5777 # Do not use `cd foo && pwd` to compute absolute paths, because
5778 # the directories may not exist.
5780 .
) ac_abs_builddir
="$ac_dir";;
5783 .
) ac_abs_builddir
=`pwd`;;
5784 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5785 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5788 case $ac_abs_builddir in
5789 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5791 case ${ac_top_builddir}.
in
5792 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5793 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5794 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5797 case $ac_abs_builddir in
5798 .
) ac_abs_srcdir
=$ac_srcdir;;
5801 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5802 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5803 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5806 case $ac_abs_builddir in
5807 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5809 case $ac_top_srcdir in
5810 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5811 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5812 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5818 if test x
"$ac_file" != x-
; then
5819 { echo "$as_me:$LINENO: creating $ac_file" >&5
5820 echo "$as_me: creating $ac_file" >&6;}
5823 # Let's still pretend it is `configure' which instantiates (i.e., don't
5824 # use $as_me), people would be surprised to read:
5825 # /* config.h. Generated by config.status. */
5826 if test x
"$ac_file" = x-
; then
5829 configure_input
="$ac_file. "
5831 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5832 sed 's,.*/,,'` by configure."
5834 # First look for the input files in the build tree, otherwise in the
5836 ac_file_inputs
=`IFS=:
5837 for f in $ac_file_in; do
5839 -) echo $tmp/stdin ;;
5841 # Absolute (can't be DOS-style, as IFS=:)
5842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5843 echo "$as_me: error: cannot find input file: $f" >&2;}
5844 { (exit 1); exit 1; }; }
5847 if test -f "$f"; then
5850 elif test -f "$srcdir/$f"; then
5855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5856 echo "$as_me: error: cannot find input file: $f" >&2;}
5857 { (exit 1); exit 1; }; }
5860 done` ||
{ (exit 1); exit 1; }
5862 cat >>$CONFIG_STATUS <<_ACEOF
5866 cat >>$CONFIG_STATUS <<\_ACEOF
5868 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5869 s
,@configure_input@
,$configure_input,;t t
5870 s
,@srcdir@
,$ac_srcdir,;t t
5871 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5872 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5873 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5874 s
,@builddir@
,$ac_builddir,;t t
5875 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5876 s
,@top_builddir@
,$ac_top_builddir,;t t
5877 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5878 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5880 if test x"$ac_file" != x-; then
5881 mv $tmp/out $ac_file
5890 cat >>$CONFIG_STATUS <<\_ACEOF
5892 { (exit 0); exit 0; }
5894 chmod +x $CONFIG_STATUS
5895 ac_clean_files=$ac_clean_files_save
5898 # configure is writing to config.log, and then calls config.status.
5899 # config.status does its own redirection, appending to config.log.
5900 # Unfortunately, on DOS this fails, as config.log is still kept open
5901 # by configure, so config.status won't be able to write to it; its
5902 # output is simply discarded. So we exec the FD to /dev/null,
5903 # effectively closing config.log, so it can be properly (re)opened and
5904 # appended to by config.status. When coming back to configure, we
5905 # need to make the FD available again.
5906 if test "$no_create" != yes; then
5908 ac_config_status_args=
5909 test "$silent" = yes &&
5910 ac_config_status_args="$ac_config_status_args --quiet"
5912 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5915 # would make configure fail if this is the last instruction.
5916 $ac_cs_success || { (exit 1); exit 1; }