2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='amule'
272 PACKAGE_VERSION
='SVN'
273 PACKAGE_STRING
='aMule SVN'
274 PACKAGE_BUGREPORT
='admin@amule.org'
276 ac_unique_file
="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CXX_set
=${CXX+set}
756 ac_env_CXX_value
=$CXX
757 ac_cv_env_CXX_set
=${CXX+set}
758 ac_cv_env_CXX_value
=$CXX
759 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value
=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CXXCPP_set
=${CXXCPP+set}
772 ac_env_CXXCPP_value
=$CXXCPP
773 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value
=$CXXCPP
775 ac_env_CC_set
=${CC+set}
777 ac_cv_env_CC_set
=${CC+set}
778 ac_cv_env_CC_value
=$CC
779 ac_env_CFLAGS_set
=${CFLAGS+set}
780 ac_env_CFLAGS_value
=$CFLAGS
781 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value
=$CFLAGS
783 ac_env_CPP_set
=${CPP+set}
784 ac_env_CPP_value
=$CPP
785 ac_cv_env_CPP_set
=${CPP+set}
786 ac_cv_env_CPP_value
=$CPP
787 ac_env_RC_set
=${RC+set}
789 ac_cv_env_RC_set
=${RC+set}
790 ac_cv_env_RC_value
=$RC
791 ac_env_RCFLAGS_set
=${RCFLAGS+set}
792 ac_env_RCFLAGS_value
=$RCFLAGS
793 ac_cv_env_RCFLAGS_set
=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value
=$RCFLAGS
795 ac_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value
=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value
=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
866 --x-includes=DIR X include files are
in DIR
867 --x-libraries=DIR X library files are
in DIR
870 --build=BUILD configure
for building on BUILD
[guessed
]
871 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive
) echo "Configuration of aMule SVN:";;
882 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
883 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing
) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule
command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI
(EXPERIMENTAL
)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don
't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-optimize enable code optimization
906 --enable-profile enable code profiling
907 --enable-static produce a statically linked executable
908 --enable-ccache enable ccache support for fast recompilation
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --without-gnu-malloc Don't assume that we use GNU libc compatible
914 malloc
/realloc when cross-compiling
915 --with-zlib=PREFIX use zlib
in PREFIX
916 --with-gdlib-prefix=PREFIX
917 prefix where gdlib is installed
(optional
)
918 --with-gdlib-config=CONFIG
919 gdlib-config
script to use
(optional
)
920 --with-libpng-prefix=PREFIX
921 prefix where libpng is installed
(optional
)
922 --with-libpng-config=CONFIG
923 libpng-config
script to use
(optional
)
924 --with-geoip-headers=DIR
925 GeoIP include files location
926 --with-geoip-lib=DIR GeoIP library location
927 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
929 --with-wx-config=CONFIG wx-config
script to use
(optional
)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed
(optional
)
933 --with-toolkit Build against a specific wxWidgets toolkit
(default
935 --with-wxshared Force building against a shared build of wxWidgets
,
936 even
if --disable-shared is given
(default is auto
)
937 --with-wxdebug Force building against a debug build of wxWidgets
,
938 even
if --disable-debug is given
(default is auto
)
939 --with-wxversion Build against a specific version of wxWidgets
941 --with-libupnp-prefix=PREFIX
942 UPnP library location
943 --with-crypto-prefix=PREFIX
944 prefix where crypto
++ is installed
945 --with-x use the X Window System
946 --with-language=<langs
> Specify a comma-separated list of languages you want
947 to have installed. See po
/LINGUAS
for available
949 --with-gnu-ld assume the C compiler uses GNU ld default
=no
950 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
951 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search
for libintl
in includedir and libdir
955 --with-denoise-level=<level
>
956 Specifies denoising level
(0-4):
958 4 - Suppress all normal output
959 (for more information see
960 src
/utils
/scripts
/denoiser.rules
)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables
:
966 CXX C
++ compiler
command
967 CXXFLAGS C
++ compiler flags
968 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
969 nonstandard directory
<lib dir
>
970 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
971 headers
in a nonstandard directory
<include dir
>
972 CXXCPP C
++ preprocessor
973 CC C compiler
command
974 CFLAGS C compiler flags
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by
`configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
999 ac_dir_suffix= ac_top_builddir=
1003 .) # No --srcdir option. We are building in place.
1005 if test -z "$ac_top_builddir"; then
1008 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1018 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1019 # the directories may not exist.
1021 .) ac_abs_builddir="$ac_dir";;
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1068 $ac_configure --help
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1105 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1106 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1107 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1108 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1109 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1111 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1112 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1114 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1115 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1116 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1117 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1118 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1119 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1120 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1153 ac_must_keep_next=false
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1182 -* ) ac_must_keep_next=true ;;
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close
' the trap.
1200 trap 'exit_status
=$?
1201 # Save into config.log some information that might help in debugging.
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1211 # The following way of writing the cache mishandles newlines in values,
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1234 for ac_var
in $ac_subst_vars
1236 eval ac_val
=$
`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1241 if test -n "$ac_subst_files"; then
1248 for ac_var
in $ac_subst_files
1250 eval ac_val
=$
`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1256 if test -s confdefs.h
; then
1263 sed "/^$/d" confdefs.h |
sort
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1270 rm -f core
*.core
&&
1271 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's
/^
/|
/' "$ac_site_file" >&5
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1346 # Check that the precious variables saved in the cache have kept the same
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1359 ac_cache_corrupted=: ;;
1361 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1368 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1393 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1400 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if test -f $ac_dir/install-sh; then
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1436 elif test -f $ac_dir/install.sh; then
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1440 elif test -f $ac_dir/shtool; then
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 # Account for people who put trailing slashes in PATH elements.
1481 .
/ | .
// |
/cC
/* | \
1482 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1483 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1489 for ac_prog
in ginstall scoinst
install; do
1490 for ac_exec_ext
in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1501 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL
=$ac_cv_path_install
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL
=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1538 echo timestamp
> conftest.
file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1545 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1548 set X
`ls -t $srcdir/configure conftest.file`
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.
file
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE
&&
1580 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE
&&
1583 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF
>conftest.
sed
1587 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1589 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir
=`cd $ac_aux_dir && pwd`
1595 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run
="$MISSING --run "
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p
='mkdir -p --'
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1626 for d
in .
/-p .
/--version;
1628 test -d $d && rmdir $d
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p
='$(mkinstalldirs)'
1634 mkdir_p
='$(install_sh) -d'
1638 for ac_prog
in gawk mawk nawk
awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy
$ac_prog; ac_word
=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir
=.
1655 for ac_exec_ext
in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK
="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 cat >conftest.
make <<\_ACEOF
1686 @
echo 'ac_maketemp="$(MAKE)"'
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_
${ac_make}_set
=yes
1693 eval ac_cv_prog_make_
${ac_make}_set
=no
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE
="MAKE=${MAKE-make}"
1707 rm -rf .tst
2>/dev
/null
1708 mkdir .tst
2>/dev
/null
1709 if test -d .tst
; then
1714 rmdir .tst
2>/dev
/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status
; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1727 CYGPATH_W
='cygpath -w'
1734 # Define the identity of the package.
1739 cat >>confdefs.h
<<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1744 cat >>confdefs.h
<<_ACEOF
1745 #define VERSION "$VERSION"
1748 # Some tools Automake needs.
1750 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no
; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 STRIP
=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP
="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1837 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1848 STRIP
="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1860 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1868 ac_config_headers
="$ac_config_headers config.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval
="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE
=$enableval
1877 USE_MAINTAINER_MODE
=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE
=
1885 MAINTAINER_MODE_FALSE
='#'
1887 MAINTAINER_MODE_TRUE
='#'
1888 MAINTAINER_MODE_FALSE
=
1891 MAINT
=$MAINTAINER_MODE_TRUE
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 ac_cv_build_alias
=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias
=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1922 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 ac_cv_host_alias
=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias
=$ac_cv_build_alias
1935 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1944 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 case "${host_os}" in
1953 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1954 MULELDFLAGS
="-bind_at_load"
1955 touch src
/Scanner.cpp
1959 LIBS
="$LIBS -L/usr/local/lib"
1960 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1961 MULECPPFLAGS
="-D__OPENBSD__"
1963 *cygwin
* |
*mingw32
*)
1965 MULECPPFLAGS
="-DNOMINMAX"
1969 RESOLV_LIB
="-lresolv -lnsl"
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1983 MULECPPFLAGS
="-D__IRIX__"
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32
; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS
="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2003 MULELDFLAGS
="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS
="$CFLAGS"
2016 mule_backup_CXXFLAGS
="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2019 ac_cpp
='$CXXCPP $CPPFLAGS'
2020 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir
=.
2041 for ac_exec_ext
in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2064 if test -z "$CXX"; then
2066 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy
$ac_prog; ac_word
=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir
=.
2083 for ac_exec_ext
in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2105 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler
=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 ac_clean_files_save
=$ac_clean_files
2147 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 # b.out is created by i960 compilers.
2167 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2169 test -f "$ac_file" ||
continue
2171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2174 # This is the source file.
2177 # We found the default executable, but exeext='' is most
2181 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.
$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext
=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try
='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2221 if test "$cross_compiling" = maybe
; then
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2238 ac_clean_files
=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 for ac_file
in conftest.exe conftest conftest.
*; do
2258 test -f "$ac_file" ||
continue
2260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2261 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest
$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.
$ac_ext
2280 EXEEXT
=$ac_cv_exeext
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.
$ac_ext <<_ACEOF
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2311 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.
$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT
=$ac_cv_objext
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 cat >conftest.
$ac_ext <<_ACEOF
2340 cat confdefs.h
>>conftest.
$ac_ext
2341 cat >>conftest.
$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2355 rm -f conftest.
$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1
>conftest.err
2361 cat conftest.err
>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try
='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS
=$CXXFLAGS
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.
$ac_ext <<_ACEOF
2402 cat confdefs.h
>>conftest.
$ac_ext
2403 cat >>conftest.
$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.
$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1
>conftest.err
2420 cat conftest.err
>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try
='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try
='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g
=yes
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.
$ac_ext >&5
2443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS
=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2456 if test "$GXX" = yes; then
2462 for ac_declaration
in \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2470 cat >conftest.
$ac_ext <<_ACEOF
2473 cat confdefs.h
>>conftest.
$ac_ext
2474 cat >>conftest.
$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2486 rm -f conftest.
$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1
>conftest.err
2492 cat conftest.err
>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try
='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try
='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.
$ac_ext >&5
2515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2516 cat >conftest.
$ac_ext <<_ACEOF
2519 cat confdefs.h
>>conftest.
$ac_ext
2520 cat >>conftest.
$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.
$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1
>conftest.err
2537 cat conftest.err
>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try
='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try
='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 DEPDIR
="${am__leading_dot}deps"
2575 ac_config_commands
="$ac_config_commands depfiles"
2578 am_make
=${MAKE-make}
2579 cat > confinc
<< 'END'
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include
=.include
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval
="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno
; then
2623 am_depcomp
="$ac_aux_dir/depcomp"
2628 if test "x$enable_dependency_tracking" != xno; then
2639 depcc
="$CXX" am_compiler_list
=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2665 am_cv_CXX_dependencies_compiler_type
=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode
in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2678 for i
in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub
/conftst
$i.h
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes
; then
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode
=$depmode \
2702 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2703 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2704 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2705 >/dev
/null
2>conftest.err
&&
2706 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2707 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2708 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type
=$depmode
2727 am_cv_CXX_dependencies_compiler_type
=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2740 am__fastdepCXX_TRUE
=
2741 am__fastdepCXX_FALSE
='#'
2743 am__fastdepCXX_TRUE
='#'
2744 am__fastdepCXX_FALSE
=
2749 ac_cpp
='$CXXCPP $CPPFLAGS'
2750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP
in "$CXX -E" "/lib/cpp"
2763 for ac_cxx_preproc_warn_flag
in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.
$ac_ext <<_ACEOF
2774 cat confdefs.h
>>conftest.
$ac_ext
2775 cat >>conftest.
$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2778 # include <limits.h>
2780 # include <assert.h>
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev
/null
; then
2792 if test -s conftest.err
; then
2793 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2801 if test -z "$ac_cpp_err"; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2807 # Broken: fails on valid input.
2810 rm -f conftest.err conftest.
$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.
$ac_ext <<_ACEOF
2817 cat confdefs.h
>>conftest.
$ac_ext
2818 cat >>conftest.
$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1
>conftest.err
2827 cat conftest.err
>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev
/null
; then
2830 if test -s conftest.err
; then
2831 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.
$ac_ext >&5
2846 # Passes both tests.
2850 rm -f conftest.err conftest.
$ac_ext
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.
$ac_ext
2855 if $ac_preproc_ok; then
2860 ac_cv_prog_CXXCPP
=$CXXCPP
2863 CXXCPP
=$ac_cv_prog_CXXCPP
2865 ac_cv_prog_CXXCPP
=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2870 for ac_cxx_preproc_warn_flag
in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2885 # include <limits.h>
2887 # include <assert.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2914 # Broken: fails on valid input.
2917 rm -f conftest.err conftest.
$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev
/null
; then
2937 if test -s conftest.err
; then
2938 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Passes both tests.
2957 rm -f conftest.err conftest.
$ac_ext
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.
$ac_ext
2962 if $ac_preproc_ok; then
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2973 ac_cpp
='$CPP $CPPFLAGS'
2974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2979 ac_cpp
='$CPP $CPPFLAGS'
2980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC
="$CC" # Let the user override the test.
2994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir
=.
2999 for ac_exec_ext
in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc
; ac_word
=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 for ac_exec_ext
in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC
="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC
="$CC" # Let the user override the test.
3074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir
=.
3079 for ac_exec_ext
in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc
; ac_word
=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC
="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc
; ac_word
=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected
=yes
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy
$ac_cv_prog_CC
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3182 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC
="$CC" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3239 if test -z "$CC"; then
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy
$ac_prog; ac_word
=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC
="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler
=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 cat >conftest.
$ac_ext <<_ACEOF
3321 cat confdefs.h
>>conftest.
$ac_ext
3322 cat >>conftest.
$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3366 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS
=${CFLAGS+set}
3373 ac_save_CFLAGS
=$CFLAGS
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try
='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.
$ac_ext >&5
3424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS
=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3437 if test "$GCC" = yes; then
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_prog_cc_stdc
=no
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3474 s = g (p, va_arg (v,int));
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC
="$ac_save_CC $ac_arg"
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc
=$ac_arg
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3541 rm -f conftest.err conftest.
$ac_objext
3543 rm -f conftest.
$ac_ext conftest.
$ac_objext
3548 case "x$ac_cv_prog_cc_stdc" in
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.
$ac_ext <<_ACEOF
3567 rm -f conftest.
$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1
>conftest.err
3573 cat conftest.err
>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try
='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try
='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration
in \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3597 cat >conftest.
$ac_ext <<_ACEOF
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3613 rm -f conftest.
$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try
='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try
='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1
>conftest.err
3664 cat conftest.err
>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try
='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try
='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.
$ac_ext >&5
3700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 ac_cpp
='$CPP $CPPFLAGS'
3703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3707 depcc
="$CC" am_compiler_list
=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3733 am_cv_CC_dependencies_compiler_type
=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode
in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3746 for i
in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub
/conftst
$i.h
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes
; then
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode
=$depmode \
3770 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3771 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3772 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3773 >/dev
/null
2>conftest.err
&&
3774 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3775 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3776 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type
=$depmode
3795 am_cv_CC_dependencies_compiler_type
=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3809 am__fastdepCC_FALSE
='#'
3811 am__fastdepCC_TRUE
='#'
3812 am__fastdepCC_FALSE
=
3817 ac_cpp
='$CPP $CPPFLAGS'
3818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # Double quotes because CPP needs to be expanded
3832 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3835 for ac_c_preproc_warn_flag
in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev
/null
; then
3864 if test -s conftest.err
; then
3865 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.
$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3942 for ac_c_preproc_warn_flag
in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.
$ac_ext <<_ACEOF
3953 cat confdefs.h
>>conftest.
$ac_ext
3954 cat >>conftest.
$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3957 # include <limits.h>
3959 # include <assert.h>
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1
>conftest.err
3968 cat conftest.err
>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev
/null
; then
3971 if test -s conftest.err
; then
3972 ac_cpp_err
=$ac_c_preproc_warn_flag
3973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3980 if test -z "$ac_cpp_err"; then
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.
$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1
>conftest.err
4006 cat conftest.err
>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev
/null
; then
4009 if test -s conftest.err
; then
4010 ac_cpp_err
=$ac_c_preproc_warn_flag
4011 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.
$ac_ext >&5
4025 # Passes both tests.
4029 rm -f conftest.err conftest.
$ac_ext
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.
$ac_ext
4034 if $ac_preproc_ok; then
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cpp
='$CPP $CPPFLAGS'
4046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4052 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross
=$cross_compiling
4061 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4062 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 BUILD_CC
=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC
=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir
=.
4119 for ac_exec_ext
in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC
=$ac_ct_BUILD_CC
4141 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 BUILD_CC
=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC
=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc
; ac_word
=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC
=$ac_ct_BUILD_CC
4221 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc
; ac_word
=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected
=yes
4248 ac_cv_prog_BUILD_CC
="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy
$ac_cv_prog_BUILD_CC
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4264 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC
=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 BUILD_CC
=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC
=$BUILD_CC
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy
$ac_prog; ac_word
=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4363 BUILD_CC
=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler
=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4385 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.
$ac_ext <<_ACEOF
4398 cat confdefs.h
>>conftest.
$ac_ext
4399 cat >>conftest.
$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4410 ac_clean_files_save
=$ac_clean_files
4411 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4430 # b.out is created by i960 compilers.
4431 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4433 test -f "$ac_file" ||
continue
4435 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4438 # This is the source file.
4441 # We found the default executable, but exeext='' is most
4445 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext
=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try
='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4485 if test "$cross_compiling" = maybe
; then
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4502 ac_clean_files
=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 for ac_file
in conftest.exe conftest conftest.
*; do
4522 test -f "$ac_file" ||
continue
4524 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4525 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest
$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.
$ac_ext
4544 BUILD_EXEEXT
=$ac_cv_build_exeext
4545 ac_build_exeext
=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling
=$saved_cross
4552 ac_cpp
='$CPP $CPPFLAGS'
4553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4558 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4561 CFLAGS
="$mule_backup_CFLAGS"
4562 CXXFLAGS
="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog
in gawk mawk nawk
awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy
$ac_prog; ac_word
=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK
="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4610 then ac_cv_prog_egrep
='grep -E'
4611 else ac_cv_prog_egrep
='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP
=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.
make <<\_ACEOF
4627 @
echo 'ac_maketemp="$(MAKE)"'
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_
${ac_make}_set
=yes
4634 eval ac_cv_prog_make_
${ac_make}_set
=no
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE
="MAKE=${MAKE-make}"
4649 for ac_prog
in flex
lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy
$ac_prog; ac_word
=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX
="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4688 test -n "$LEX" || LEX
=":"
4690 if test -z "$LEXLIB"
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_check_lib_save_LIBS
=$LIBS
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4721 rm -f conftest.
$ac_objext conftest
$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1
>conftest.err
4727 cat conftest.err
>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try
='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try
='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap
=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4748 ac_cv_lib_fl_yywrap
=no
4750 rm -f conftest.err conftest.
$ac_objext \
4751 conftest
$ac_exeext conftest.
$ac_ext
4752 LIBS
=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_check_lib_save_LIBS
=$LIBS
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4788 rm -f conftest.
$ac_objext conftest
$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1
>conftest.err
4794 cat conftest.err
>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try
='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try
='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap
=yes
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.
$ac_ext >&5
4815 ac_cv_lib_l_yywrap
=no
4817 rm -f conftest.err conftest.
$ac_objext \
4818 conftest
$ac_exeext conftest.
$ac_ext
4819 LIBS
=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l
<<_ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l
) 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c
; then
4849 ac_cv_prog_lex_root
=lex.yy
4850 elif test -f lexyy.c
; then
4851 ac_cv_prog_lex_root
=lexyy
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4861 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer
=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4874 LIBS
="$LIBS $LEXLIB"
4875 cat >conftest.
$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4878 rm -f conftest.
$ac_objext conftest
$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1
>conftest.err
4884 cat conftest.err
>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try
='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try
='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer
=yes
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f conftest.err conftest.
$ac_objext \
4907 conftest
$ac_exeext conftest.
$ac_ext
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h
<<\_ACEOF
4917 #define YYTEXT_POINTER 1
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir
=.
4947 # Account for people who put trailing slashes in PATH elements.
4949 .
/ | .
// |
/cC
/* | \
4950 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4951 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4957 for ac_prog
in ginstall scoinst
install; do
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL
=$ac_cv_path_install
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL
=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir
=.
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB
=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib
; ac_word
=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5068 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB
=$ac_ct_RANLIB
5079 RANLIB
="$ac_cv_prog_RANLIB"
5082 for ac_prog
in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy
$ac_prog; ac_word
=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir
=.
5099 for ac_exec_ext
in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC
="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 YACC
=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5121 test -n "$YACC" || YACC
="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 RANLIB
=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB
=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib
; ac_word
=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB
=$ac_ct_RANLIB
5200 RANLIB
="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 STRIP
=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip
; ac_word
=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP
="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5279 STRIP
="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR
="$AR" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy
ar; ac_word
=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR
="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD
="$LD" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld
; ac_word
=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD
="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval
="$enable_monolithic"
5444 MONOLITHIC
=$enableval
5449 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5450 if test "${enable_amule_daemon+set}" = set; then
5451 enableval
="$enable_amule_daemon"
5452 AMULE_DAEMON
=$enableval
5457 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5458 if test "${enable_amulecmd+set}" = set; then
5459 enableval
="$enable_amulecmd"
5465 # Check whether --enable-webserver or --disable-webserver was given.
5466 if test "${enable_webserver+set}" = set; then
5467 enableval
="$enable_webserver"
5473 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5474 if test "${enable_amule_gui+set}" = set; then
5475 enableval
="$enable_amule_gui"
5476 AMULE_GUI
=$enableval
5481 # Check whether --enable-cas or --disable-cas was given.
5482 if test "${enable_cas+set}" = set; then
5483 enableval
="$enable_cas"
5489 # Check whether --enable-wxcas or --disable-wxcas was given.
5490 if test "${enable_wxcas+set}" = set; then
5491 enableval
="$enable_wxcas"
5497 # Check whether --enable-ed2k or --disable-ed2k was given.
5498 if test "${enable_ed2k+set}" = set; then
5499 enableval
="$enable_ed2k"
5505 # Check whether --enable-alc or --disable-alc was given.
5506 if test "${enable_alc+set}" = set; then
5507 enableval
="$enable_alc"
5513 # Check whether --enable-alcc or --disable-alcc was given.
5514 if test "${enable_alcc+set}" = set; then
5515 enableval
="$enable_alcc"
5521 # Check whether --enable-monolithic or --disable-monolithic was given.
5522 if test "${enable_monolithic+set}" = set; then
5523 enableval
="$enable_monolithic"
5524 MONOLITHIC
=$enableval
5529 # Check whether --enable-upnp or --disable-upnp was given.
5530 if test "${enable_upnp+set}" = set; then
5531 enableval
="$enable_upnp"
5532 ENABLE_UPNP
=$enableval
5537 # Check whether --enable-xas or --disable-xas was given.
5538 if test "${enable_xas+set}" = set; then
5539 enableval
="$enable_xas"
5545 # Default is yes, because they're most likely compatible.
5546 # However, this is only used when cross-compiling.
5548 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5549 if test "${with_gnu_malloc+set}" = set; then
5550 withval
="$with_gnu_malloc"
5557 # Checking for libs before all other stuff to break
5558 # configure as soon as possible in case of a missing one
5559 # to avoid losing too much time
5564 # Check whether --with-zlib or --without-zlib was given.
5565 if test "${with_zlib+set}" = set; then
5566 withval
="$with_zlib"
5570 case "${with_zlib:-yes}" in
5572 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5573 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5574 { (exit 1); exit 1; }; }
5579 zlib_prefix
="$with_zlib"
5582 mule_backup_CPPFLAGS
="$CPPFLAGS"
5583 mule_backup_LDFLAGS
="$LDFLAGS"
5584 mule_backup_LIBS
="$LIBS"
5585 if test -n "$zlib_prefix"; then
5587 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5588 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5589 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5590 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5600 LIBS
="$ZLIB_LIBS $LIBS"
5602 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5603 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5604 if test "$cross_compiling" = yes; then
5608 cat >conftest.
$ac_ext <<_ACEOF
5612 cat confdefs.h
>>conftest.
$ac_ext
5613 cat >>conftest.
$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5623 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5631 rm -f conftest.
$ac_objext conftest
$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1
>conftest.err
5637 cat conftest.err
>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try
='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try
='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5654 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5655 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5656 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5657 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5658 if test "$cross_zver_max" -gt "1"; then
5660 elif test "$cross_zver_max" -eq "1"; then
5662 if test "$cross_zver_mid" -gt "1"; then
5664 elif test "$cross_zver_mid" -eq "1"; then
5665 if test "$cross_zver_min" -ge "4"; then
5674 if test ${result:-no} = yes; then
5675 z_version
=" (version $ZLIB_VERSION)"
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.
$ac_ext >&5
5684 rm -f conftest.err conftest.
$ac_objext \
5685 conftest
$ac_exeext conftest.
$ac_ext
5686 echo "$as_me:$LINENO: result: $result$z_version" >&5
5687 echo "${ECHO_T}$result$z_version" >&6
5690 cat >conftest.
$ac_ext <<_ACEOF
5694 cat confdefs.h
>>conftest.
$ac_ext
5695 cat >>conftest.
$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5704 char *zver = zlibVersion();
5705 FILE *f=fopen("conftestval", "w");
5712 zver[4] >= '4'))) ? "yes" : "no");
5714 f=fopen("conftestver", "w");
5716 fprintf(f, "%s", ZLIB_VERSION);
5725 rm -f conftest
$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5737 if test -f conftestval
; then
5738 result
=`cat conftestval`
5743 if test ${result:-no} = yes; then
5745 if test -f conftestver
; then
5747 ZLIB_VERSION
=`cat conftestver`
5748 z_version
=" (version $ZLIB_VERSION)"
5757 echo "$as_me:$LINENO: result: $result$z_version" >&5
5758 echo "${ECHO_T}$result$z_version" >&6
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.
$ac_ext >&5
5768 echo "$as_me:$LINENO: result: $result" >&5
5769 echo "${ECHO_T}$result" >&6
5772 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5775 CPPFLAGS
="$mule_backup_CPPFLAGS"
5776 LDFLAGS
="$mule_backup_LDFLAGS"
5777 LIBS
="$mule_backup_LIBS"
5779 if test ${result:-no} = no
; then
5784 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5785 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5786 { (exit 1); exit 1; }; }
5793 if test x
$CAS = xyes
; then
5797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5799 if test "${ac_cv_header_stdc+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 cat >conftest.
$ac_ext <<_ACEOF
5805 cat confdefs.h
>>conftest.
$ac_ext
5806 cat >>conftest.
$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try
='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try
='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_header_stdc
=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 ac_cv_header_stdc
=no
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 if test $ac_cv_header_stdc = yes; then
5853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5854 cat >conftest.
$ac_ext <<_ACEOF
5857 cat confdefs.h
>>conftest.
$ac_ext
5858 cat >>conftest.
$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864 $EGREP "memchr" >/dev
/null
2>&1; then
5867 ac_cv_header_stdc
=no
5873 if test $ac_cv_header_stdc = yes; then
5874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "free" >/dev
/null
2>&1; then
5888 ac_cv_header_stdc
=no
5894 if test $ac_cv_header_stdc = yes; then
5895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896 if test "$cross_compiling" = yes; then
5899 cat >conftest.
$ac_ext <<_ACEOF
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5929 rm -f conftest
$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5942 echo "$as_me: program exited with status $ac_status" >&5
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5947 ac_cv_header_stdc
=no
5949 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5955 if test $ac_cv_header_stdc = yes; then
5957 cat >>confdefs.h
<<\_ACEOF
5958 #define STDC_HEADERS 1
5963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5973 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5974 inttypes.h stdint.h unistd.h
5976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5990 #include <$ac_header>
5992 rm -f conftest.
$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1
>conftest.err
5998 cat conftest.err
>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try
='test -z "$ac_c_werror_flag"
6002 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try
='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 eval "$as_ac_Header=yes"
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6019 eval "$as_ac_Header=no"
6021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026 cat >>confdefs.h
<<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6038 if test "${with_gdlib_prefix+set}" = set; then
6039 withval
="$with_gdlib_prefix"
6043 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6044 if test "${with_gdlib_config+set}" = set; then
6045 withval
="$with_gdlib_config"
6051 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6052 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6053 GDLIB_CONFIG_NAME
=gdlib-config
6056 if test -n "$with_gdlib_config"; then
6057 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6061 # deal with optional prefix
6062 if test -n "$with_gdlib_prefix"; then
6063 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6067 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6068 if test -x "$GDLIB_CONFIG_NAME"; then
6070 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6071 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6072 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6073 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6074 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6077 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6078 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6079 echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 case $GDLIB_CONFIG_PATH in
6086 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6090 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6091 for as_dir
in $as_dummy
6094 test -z "$as_dir" && as_dir
=.
6095 for ac_exec_ext
in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6108 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6110 if test -n "$GDLIB_CONFIG_PATH"; then
6111 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6112 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6121 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6123 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6124 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6125 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6127 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6128 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6129 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6130 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6133 if test $gdlib_config_major_version -gt 2; then
6135 elif test $gdlib_config_major_version -eq 2; then
6137 if test $gdlib_config_minor_version -gt 0; then
6139 elif test $gdlib_config_minor_version -eq 0; then
6140 if test $gdlib_config_micro_version -ge 0; then
6150 if test -z "$gdlib_ver_ok"; then
6152 if test -z "$GDLIB_VERSION"; then
6153 echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6157 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6158 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6166 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6167 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6168 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6169 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6170 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6171 mule_backup_CFLAGS
="$CFLAGS"
6172 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6173 if test "${ac_cv_header_gd_h+set}" = set; then
6174 echo "$as_me:$LINENO: checking for gd.h" >&5
6175 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6176 if test "${ac_cv_header_gd_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6182 # Is the header compilable?
6183 echo "$as_me:$LINENO: checking gd.h usability" >&5
6184 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try
='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try
='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_header_compiler
=yes
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6221 ac_header_compiler
=no
6223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225 echo "${ECHO_T}$ac_header_compiler" >&6
6227 # Is the header present?
6228 echo "$as_me:$LINENO: checking gd.h presence" >&5
6229 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6233 cat confdefs.h
>>conftest.
$ac_ext
6234 cat >>conftest.
$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1
>conftest.err
6243 cat conftest.err
>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev
/null
; then
6246 if test -s conftest.err
; then
6247 ac_cpp_err
=$ac_c_preproc_warn_flag
6248 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6255 if test -z "$ac_cpp_err"; then
6256 ac_header_preproc
=yes
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.
$ac_ext >&5
6261 ac_header_preproc
=no
6263 rm -f conftest.err conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc
=yes
6277 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6291 ## ------------------------------ ##
6292 ## Report this to admin@amule.org ##
6293 ## ------------------------------ ##
6296 sed "s/^/$as_me: WARNING: /" >&2
6299 echo "$as_me:$LINENO: checking for gd.h" >&5
6300 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6301 if test "${ac_cv_header_gd_h+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_header_gd_h
=$ac_header_preproc
6306 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6307 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6310 if test $ac_cv_header_gd_h = yes; then
6317 CFLAGS
="$mule_backup_CFLAGS"
6325 if test -n "$GDLIB_VERSION"; then
6328 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6337 if test -z "$CAS_DEFS"; then
6338 { echo "$as_me:$LINENO: WARNING:
6339 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6340 Please check that gdlib-config is in your default path, check out
6341 LD_LIBRARY_PATH or equivalent variable.
6342 Or this might also be that your gdlib-config has other name.
6343 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6344 (replace /usr/bin/gdlib-config with a valid path to your
6346 If you use compiled packages check if you have devel pack installed.
6347 To download the latest version check http://www.boutell.com/gd for
6349 echo "$as_me: WARNING:
6350 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd for
6361 _mule_has_warnings
=yes
6367 GDLIB_VERSION
="not_needed"
6372 if test x
$WEB = xyes
; then
6375 for ac_header
in sys
/types.h
6377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6399 rm -f conftest.
$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1
>conftest.err
6405 cat conftest.err
>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try
='test -z "$ac_c_werror_flag"
6409 || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try
='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler
=yes
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.
$ac_ext >&5
6426 ac_header_compiler
=no
6428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6
6432 # Is the header present?
6433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6438 cat confdefs.h
>>conftest.
$ac_ext
6439 cat >>conftest.
$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <$ac_header>
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6446 grep -v '^ *+' conftest.er1
>conftest.err
6448 cat conftest.err
>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev
/null
; then
6451 if test -s conftest.err
; then
6452 ac_cpp_err
=$ac_c_preproc_warn_flag
6453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6460 if test -z "$ac_cpp_err"; then
6461 ac_header_preproc
=yes
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.
$ac_ext >&5
6466 ac_header_preproc
=no
6468 rm -f conftest.err conftest.
$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6472 # So? What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc
=yes
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6496 ## ------------------------------ ##
6497 ## Report this to admin@amule.org ##
6498 ## ------------------------------ ##
6501 sed "s/^/$as_me: WARNING: /" >&2
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 eval "$as_ac_Header=\$ac_header_preproc"
6511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h
<<_ACEOF
6517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6524 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6525 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6527 for REGEX_LIBS
in '' -lgnurx -lregex; do
6528 mule_backup_LIBS
="$LIBS"
6529 LIBS
="$REGEX_LIBS $LIBS"
6530 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6538 #ifdef HAVE_SYS_TYPES_H
6539 # include <sys/types.h>
6548 regcomp(&preg, "", REG_EXTENDED);
6550 regexec(&preg, "", 0, pmatch, 0);
6558 rm -f conftest.
$ac_objext conftest
$ac_exeext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>conftest.er1
6562 grep -v '^ *+' conftest.er1
>conftest.err
6564 cat conftest.err
>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try
='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try
='test -s conftest$ac_exeext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6581 LIBS
="$mule_backup_LIBS"
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.
$ac_ext >&5
6589 LIBS
="$mule_backup_LIBS"
6591 rm -f conftest.err conftest.
$ac_objext \
6592 conftest
$ac_exeext conftest.
$ac_ext
6594 echo "$as_me:$LINENO: result: $regex_found" >&5
6595 echo "${ECHO_T}$regex_found" >&6
6596 if test $regex_found = yes; then
6601 { echo "$as_me:$LINENO: WARNING:
6602 amuleweb has been disabled because configure could not find a POSIX
6603 compliant regex library." >&5
6604 echo "$as_me: WARNING:
6605 amuleweb has been disabled because configure could not find a POSIX
6606 compliant regex library." >&2;}
6608 _mule_has_warnings
=yes
6617 if test x
$WEB = xyes
; then
6620 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6621 if test "${with_libpng_prefix+set}" = set; then
6622 withval
="$with_libpng_prefix"
6626 # Check whether --with-libpng-config or --without-libpng-config was given.
6627 if test "${with_libpng_config+set}" = set; then
6628 withval
="$with_libpng_config"
6634 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6635 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6636 LIBPNG_CONFIG_NAME
=libpng-config
6639 if test -n "$with_libpng_config"; then
6640 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6644 # deal with optional prefix
6645 if test -n "$with_libpng_prefix"; then
6646 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6650 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6651 if test -x "$LIBPNG_CONFIG_NAME"; then
6653 echo "$as_me:$LINENO: checking for libpng-config" >&5
6654 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6655 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6656 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6657 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6660 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6661 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 case $LIBPNG_CONFIG_PATH in
6669 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6673 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6674 for as_dir
in $as_dummy
6677 test -z "$as_dir" && as_dir
=.
6678 for ac_exec_ext
in '' $ac_executable_extensions; do
6679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6691 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6693 if test -n "$LIBPNG_CONFIG_PATH"; then
6694 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6695 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6697 echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6
6704 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6706 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6707 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6709 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6711 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6712 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6713 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6714 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6717 if test $libpng_config_major_version -gt 1; then
6719 elif test $libpng_config_major_version -eq 1; then
6721 if test $libpng_config_minor_version -gt 2; then
6723 elif test $libpng_config_minor_version -eq 2; then
6724 if test $libpng_config_micro_version -ge 0; then
6734 if test -z "$libpng_ver_ok"; then
6736 if test -z "$LIBPNG_VERSION"; then
6737 echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6
6741 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6742 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6750 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6751 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6752 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6753 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6754 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6762 if test -n "$LIBPNG_VERSION"; then
6763 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6766 { echo "$as_me:$LINENO: WARNING:
6767 libpng >= 1.2.0 not found.
6768 amuleweb will be compiled but file download progress bar images will
6769 NOT be generated." >&5
6770 echo "$as_me: WARNING:
6771 libpng >= 1.2.0 not found.
6772 amuleweb will be compiled but file download progress bar images will
6773 NOT be generated." >&2;}
6775 _mule_has_warnings
=yes
6785 LIBPNG_VERSION
="not_needed"
6790 # Check for perl File::Copy
6791 echo "$as_me:$LINENO: checking for File::Copy" >&5
6792 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6793 if perl
-e "require File::Copy" 2>/dev
/null
; then
6794 echo "$as_me:$LINENO: result: ok" >&5
6795 echo "${ECHO_T}ok" >&6
6797 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6798 echo "$as_me: error: File::Copy perl module is required" >&2;}
6799 { (exit 1); exit 1; }; }
6804 # Check if we need the GUI
6805 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6806 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6807 if test x
$MONOLITHIC = xyes
; then
6811 if test x
$WXCAS = xyes
; then
6815 if test x
$ALC = xyes
; then
6819 if test x
$AMULE_GUI = xyes
; then
6823 if test x
${need_gui:+set} != xset
; then
6827 echo "$as_me:$LINENO: result: $need_gui" >&5
6828 echo "${ECHO_T}$need_gui" >&6
6830 # Check if we need to install skins
6831 if test x
$MONOLITHIC = xyes
; then
6835 if test x
$AMULE_GUI = xyes
; then
6839 if test x
${INSTALL_SKINS:+set} != xset
; then
6844 # Check for GeoIP (required for IP2Country capability)
6846 # Check whether --enable-geoip or --disable-geoip was given.
6847 if test "${enable_geoip+set}" = set; then
6848 enableval
="$enable_geoip"
6849 ENABLE_IP2COUNTRY
=$enableval
6851 ENABLE_IP2COUNTRY
=no
6854 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6857 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6858 if test "${with_geoip_headers+set}" = set; then
6859 withval
="$with_geoip_headers"
6860 GEOIP_CPPFLAGS
="-I$withval"
6863 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6864 if test "${with_geoip_lib+set}" = set; then
6865 withval
="$with_geoip_lib"
6866 GEOIP_LDFLAGS
="-L$withval"
6869 mule_backup_CPPFLAGS
="$CPPFLAGS"
6870 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6871 mule_backup_LDFLAGS
="$LDFLAGS"
6872 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
6874 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6875 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6876 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6877 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6881 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6883 # Is the header compilable?
6884 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6885 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6886 cat >conftest.
$ac_ext <<_ACEOF
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6895 rm -f conftest.
$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1
>conftest.err
6901 cat conftest.err
>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try
='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try
='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_header_compiler
=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6922 ac_header_compiler
=no
6924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6926 echo "${ECHO_T}$ac_header_compiler" >&6
6928 # Is the header present?
6929 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6930 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6931 cat >conftest.
$ac_ext <<_ACEOF
6934 cat confdefs.h
>>conftest.
$ac_ext
6935 cat >>conftest.
$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6942 grep -v '^ *+' conftest.er1
>conftest.err
6944 cat conftest.err
>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev
/null
; then
6947 if test -s conftest.err
; then
6948 ac_cpp_err
=$ac_c_preproc_warn_flag
6949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6956 if test -z "$ac_cpp_err"; then
6957 ac_header_preproc
=yes
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.
$ac_ext >&5
6962 ac_header_preproc
=no
6964 rm -f conftest.err conftest.
$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6
6968 # So? What about this header?
6969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6971 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6974 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6975 ac_header_preproc
=yes
6978 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6979 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6981 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6983 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6985 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6989 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6992 ## ------------------------------ ##
6993 ## Report this to admin@amule.org ##
6994 ## ------------------------------ ##
6997 sed "s/^/$as_me: WARNING: /" >&2
7000 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7001 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7002 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_cv_header_GeoIP_h
=$ac_header_preproc
7007 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7008 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7011 if test $ac_cv_header_GeoIP_h = yes; then
7013 if test x
$SYS = xwin32
; then
7015 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
7016 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
7017 # Actually, we might not need any if GeoIP is linked as a .dll
7018 # - but that's even harder to check for
7019 cat >conftest.
$ac_ext <<_ACEOF
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7029 I do know it's not the best approach, but at least works with MinGW stock headers.
7030 (tested with w32api-3.12)
7042 rm -f conftest.
$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1
>conftest.err
7048 cat conftest.err
>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try
='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try
='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7065 GEOIP_WINSOCK_LIB
="-lwsock32"
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.
$ac_ext >&5
7072 GEOIP_WINSOCK_LIB
="-lws2_32"
7075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7076 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
7077 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
7081 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7082 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7083 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_check_lib_save_LIBS
=$LIBS
7087 LIBS
="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7088 cat >conftest.
$ac_ext <<_ACEOF
7091 cat confdefs.h
>>conftest.
$ac_ext
7092 cat >>conftest.
$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7110 rm -f conftest.
$ac_objext conftest
$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7114 grep -v '^ *+' conftest.er1
>conftest.err
7116 cat conftest.err
>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try
='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try
='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 ac_cv_lib_GeoIP_GeoIP_open
=yes
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.
$ac_ext >&5
7137 ac_cv_lib_GeoIP_GeoIP_open
=no
7139 rm -f conftest.err conftest.
$ac_objext \
7140 conftest
$ac_exeext conftest.
$ac_ext
7141 LIBS
=$ac_check_lib_save_LIBS
7143 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7144 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7145 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7148 cat >>confdefs.h
<<\_ACEOF
7149 #define SUPPORT_GEOIP 1
7152 GEOIP_LIBS
="-lGeoIP"
7153 if test x
$SYS = xwin32
; then
7154 GEOIP_LIBS
="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7157 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7159 # Check whether --with-geoip-static or --without-geoip-static was given.
7160 if test "${with_geoip_static+set}" = set; then
7161 withval
="$with_geoip_static"
7163 if test "$withval" != "no" -a ${enable_static:-no} = no
; then
7165 mule_backup_LIBS
="$LIBS"
7166 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7167 cat >conftest.
$ac_ext <<_ACEOF
7171 cat confdefs.h
>>conftest.
$ac_ext
7172 cat >>conftest.
$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7181 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7188 rm -f conftest.
$ac_objext conftest
$ac_exeext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>conftest.er1
7192 grep -v '^ *+' conftest.er1
>conftest.err
7194 cat conftest.err
>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try
='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try
='test -s conftest$ac_exeext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7211 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.
$ac_ext >&5
7218 { echo "$as_me:$LINENO: WARNING:
7219 Cannot link GeoIP statically, because your linker ($LD) does not
7221 echo "$as_me: WARNING:
7222 Cannot link GeoIP statically, because your linker ($LD) does not
7225 _mule_has_warnings
=yes
7229 rm -f conftest.err conftest.
$ac_objext \
7230 conftest
$ac_exeext conftest.
$ac_ext
7231 LIBS
="$mule_backup_LIBS"
7240 ENABLE_IP2COUNTRY
=disabled
7241 { echo "$as_me:$LINENO: WARNING:
7242 GeoIP support has been disabled because the GeoIP libraries were not
7244 echo "$as_me: WARNING:
7245 GeoIP support has been disabled because the GeoIP libraries were not
7248 _mule_has_warnings
=yes
7256 ENABLE_IP2COUNTRY
=disabled
7257 { echo "$as_me:$LINENO: WARNING:
7258 GeoIP support has been disabled because the GeoIP header files were
7260 echo "$as_me: WARNING:
7261 GeoIP support has been disabled because the GeoIP header files were
7264 _mule_has_warnings
=yes
7271 CPPFLAGS
="$mule_backup_CPPFLAGS"
7272 LDFLAGS
="$mule_backup_LDFLAGS"
7281 # Check whether --with-wxdir or --without-wxdir was given.
7282 if test "${with_wxdir+set}" = set; then
7283 withval
="$with_wxdir"
7284 wx_config_name
="$withval/wx-config"
7285 wx_config_args
="--inplace"
7288 # Check whether --with-wx-config or --without-wx-config was given.
7289 if test "${with_wx_config+set}" = set; then
7290 withval
="$with_wx_config"
7291 wx_config_name
="$withval"
7294 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7295 if test "${with_wx_prefix+set}" = set; then
7296 withval
="$with_wx_prefix"
7297 wx_config_prefix
="$withval"
7302 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7303 if test "${with_wx_exec_prefix+set}" = set; then
7304 withval
="$with_wx_exec_prefix"
7305 wx_config_exec_prefix
="$withval"
7307 wx_config_exec_prefix
=""
7321 # Check whether --with-toolkit or --without-toolkit was given.
7322 if test "${with_toolkit+set}" = set; then
7323 withval
="$with_toolkit"
7329 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7330 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7331 if test "$withval" = "auto" ; then
7332 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7333 echo "${ECHO_T}will be automatically detected" >&6
7338 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7339 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7340 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7341 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7342 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7343 { { echo "$as_me:$LINENO: error:
7344 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7346 echo "$as_me: error:
7347 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7349 { (exit 1); exit 1; }; }
7352 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7353 echo "${ECHO_T}$TOOLKIT" >&6
7360 # Check whether --with-wxshared or --without-wxshared was given.
7361 if test "${with_wxshared+set}" = set; then
7362 withval
="$with_wxshared"
7368 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7369 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7370 if test "$withval" = "yes" ; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372 echo "${ECHO_T}yes" >&6
7375 elif test "1" = "1" -a "$withval" = "no" ; then
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7379 elif test "$withval" = "auto" ; then
7380 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7381 echo "${ECHO_T}will be automatically detected" >&6
7384 { { echo "$as_me:$LINENO: error:
7385 Unrecognized option value (allowed values: yes, auto)
7387 echo "$as_me: error:
7388 Unrecognized option value (allowed values: yes, auto)
7390 { (exit 1); exit 1; }; }
7397 # Check whether --with-wxdebug or --without-wxdebug was given.
7398 if test "${with_wxdebug+set}" = set; then
7399 withval
="$with_wxdebug"
7405 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7406 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7407 if test "$withval" = "yes" ; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409 echo "${ECHO_T}yes" >&6
7412 elif test "1" = "1" -a "$withval" = "no" ; then
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7416 elif test "$withval" = "auto" ; then
7417 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7418 echo "${ECHO_T}will be automatically detected" >&6
7421 { { echo "$as_me:$LINENO: error:
7422 Unrecognized option value (allowed values: yes, auto)
7424 echo "$as_me: error:
7425 Unrecognized option value (allowed values: yes, auto)
7427 { (exit 1); exit 1; }; }
7434 # Check whether --with-wxversion or --without-wxversion was given.
7435 if test "${with_wxversion+set}" = set; then
7436 withval
="$with_wxversion"
7442 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7443 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7444 if test "$withval" = "auto" ; then
7445 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7446 echo "${ECHO_T}will be automatically detected" >&6
7450 wx_requested_major_version
=`echo $withval | \
7451 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7452 wx_requested_minor_version
=`echo $withval | \
7453 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7455 if test "${#wx_requested_major_version}" != "1" -o \
7456 "${#wx_requested_minor_version}" != "1" ; then
7457 { { echo "$as_me:$LINENO: error:
7458 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7460 echo "$as_me: error:
7461 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7463 { (exit 1); exit 1; }; }
7466 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7467 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7468 echo "${ECHO_T}$WX_VERSION" >&6
7472 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7473 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7474 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7475 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7476 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7477 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7480 # Force using a static wxWidgets library if the executable is to be linked statically.
7481 if test ${enable_static:-no} = yes; then
7485 # Force using a unicode build of the library
7489 if test "$WX_SHARED" = "1" ; then
7490 WXCONFIG_FLAGS
="--static=no "
7491 elif test "$WX_SHARED" = "0" ; then
7492 WXCONFIG_FLAGS
="--static=yes "
7495 if test "$WX_DEBUG" = "1" ; then
7496 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7497 elif test "$WX_DEBUG" = "0" ; then
7498 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7501 if test "$WX_UNICODE" = "1" ; then
7502 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7503 elif test "$WX_UNICODE" = "0" ; then
7504 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7507 if test "$TOOLKIT" != "auto" ; then
7508 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7511 if test "$WX_VERSION" != "auto" ; then
7512 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7515 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7517 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7518 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7522 if test x
${WX_CONFIG_NAME+set} != xset
; then
7523 WX_CONFIG_NAME
=wx-config
7526 if test "x$wx_config_name" != x
; then
7527 WX_CONFIG_NAME
="$wx_config_name"
7530 if test x
$wx_config_exec_prefix != x
; then
7531 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7532 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7534 if test x
$wx_config_prefix != x
; then
7535 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7536 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7538 if test "$cross_compiling" = "yes"; then
7539 wx_config_args
="$wx_config_args --host=$host_alias"
7542 if test -x "$WX_CONFIG_NAME" ; then
7543 echo "$as_me:$LINENO: checking for wx-config" >&5
7544 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7545 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7546 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7547 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7549 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7550 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7551 echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 case $WX_CONFIG_PATH in
7558 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7562 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7563 for as_dir
in $as_dummy
7566 test -z "$as_dir" && as_dir
=.
7567 for ac_exec_ext
in '' $ac_executable_extensions; do
7568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7580 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7582 if test -n "$WX_CONFIG_PATH"; then
7583 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7584 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7592 if test "$WX_CONFIG_PATH" != "no" ; then
7595 min_wx_version
=2.8.0
7596 if test -z "$WXCONFIG_FLAGS" ; then
7597 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7598 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7600 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7601 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7604 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7606 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7607 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7609 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7611 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7614 wx_requested_major_version
=`echo $min_wx_version | \
7615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7616 wx_requested_minor_version
=`echo $min_wx_version | \
7617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7618 wx_requested_micro_version
=`echo $min_wx_version | \
7619 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7623 if test "x$WX_VERSION_FULL" != x
; then
7624 if test $wx_config_major_version -gt $wx_requested_major_version; then
7627 if test $wx_config_major_version -eq $wx_requested_major_version; then
7628 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7631 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7632 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7642 if test -n "$wx_ver_ok"; then
7644 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7645 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7646 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7648 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7649 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7650 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7651 if test "x$WX_LIBS_STATIC" = "x"; then
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7655 echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7660 if test $wx_config_major_version -gt 2; then
7663 if test $wx_config_major_version -eq 2; then
7664 if test $wx_config_minor_version -gt 2; then
7667 if test $wx_config_minor_version -eq 2; then
7668 if test $wx_config_micro_version -ge 6; then
7677 if test $wx_config_major_version -gt 2; then
7680 if test $wx_config_major_version -eq 2; then
7681 if test $wx_config_minor_version -ge 7; then
7686 if test "x$wx_has_rescomp" = x
; then
7689 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7692 if test "x$wx_has_cppflags" = x
; then
7693 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7694 WX_CPPFLAGS
=$WX_CFLAGS
7695 WX_CXXFLAGS
=$WX_CFLAGS
7697 WX_CFLAGS_ONLY
=$WX_CFLAGS
7698 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7700 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7701 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7702 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7704 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7705 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7712 if test "x$WX_VERSION_FULL" = x
; then
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7716 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7717 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7727 if test ! -z "$WXCONFIG_FLAGS"; then
7730 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7731 build with the following settings:
7733 but such build is not available.
7735 To see the wxWidgets builds available on this system, please use
7736 'wx-config --list' command. To use the default build, returned by
7737 'wx-config --selected-config', use the options with their 'auto'
7743 The requested wxWidgets build couldn't be found.
7746 If you still get this error, then check that 'wx-config' is
7747 in path, the directory where wxWidgets libraries are installed
7748 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7749 or equivalent variable and wxWidgets version is 2.8.0 or above."
7751 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7752 echo "$as_me: error: $wx_error_message" >&2;}
7753 { (exit 1); exit 1; }; }
7779 WX_VERSION_MAJOR
="$wx_config_major_version"
7780 WX_VERSION_MINOR
="$wx_config_minor_version"
7784 if test "$wxWin" != 1; then
7785 { { echo "$as_me:$LINENO: error:
7786 wxWidgets must be installed on your system but wx-config
7787 script couldn't be found. Please check that wx-config is
7788 in path or specified by --with-wx-config=path flag, the
7789 directory where wxWidgets libraries are installed (returned
7790 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7791 equivalent variable and wxWidgets version is 2.8.0 or above.
7793 echo "$as_me: error:
7794 wxWidgets must be installed on your system but wx-config
7795 script couldn't be found. Please check that wx-config is
7796 in path or specified by --with-wx-config=path flag, the
7797 directory where wxWidgets libraries are installed (returned
7798 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7799 equivalent variable and wxWidgets version is 2.8.0 or above.
7801 { (exit 1); exit 1; }; }
7804 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7805 if test $WX_VERSION -lt 26 ; then
7807 { { echo "$as_me:$LINENO: error:
7808 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7809 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7810 version of wxWidgets.
7812 echo "$as_me: error:
7813 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7814 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7815 version of wxWidgets.
7817 { (exit 1); exit 1; }; }
7820 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7822 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7823 echo "[dbg] Using wx-config --selected-config"
7824 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7828 if test $WX_SHARED = "1"; then
7830 elif test $WX_SHARED = "0"; then
7832 elif test $WX_SHARED = "auto"; then
7837 if test "$UNICODE" = "auto" ; then
7839 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7840 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7842 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7844 if test "$WX_UNICODE" != "0"; then
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7851 echo "$as_me:$LINENO: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7861 if test "$DEBUG" = "auto" ; then
7863 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7864 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7866 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7868 if test "$WX_DEBUG" != "0"; then
7870 echo "$as_me:$LINENO: result: yes" >&5
7871 echo "${ECHO_T}yes" >&6
7875 echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7885 if test "$STATIC" = "auto" ; then
7887 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7888 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7890 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7892 if test "$WX_STATIC" != "0"; then
7894 echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7899 echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7909 if test "$WX_STATIC" != "0"; then
7919 if test "$TOOLKIT" = "auto" ; then
7921 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7922 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7924 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7925 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7926 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7927 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7928 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7929 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7930 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7931 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7932 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7933 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7936 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7937 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7938 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7939 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7940 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7941 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7942 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7943 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7944 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7945 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
7948 if test "$WX_PORT" = "unknown" ; then
7949 { { echo "$as_me:$LINENO: error:
7950 Cannot detect the currently installed wxWidgets port !
7951 Please check your 'wx-config --cxxflags'...
7953 echo "$as_me: error:
7954 Cannot detect the currently installed wxWidgets port !
7955 Please check your 'wx-config --cxxflags'...
7957 { (exit 1); exit 1; }; }
7960 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7961 echo "${ECHO_T}$WX_PORT" >&6
7964 if test -z "$TOOLKIT" ; then
7973 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7974 echo "[dbg] Values of all WX_* options after final detection:"
7975 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7976 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7977 echo "[dbg] WX_SHARED: $WX_SHARED"
7978 echo "[dbg] WX_VERSION: $WX_VERSION"
7979 echo "[dbg] WX_PORT: $WX_PORT"
7982 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7983 { { echo "$as_me:$LINENO: error:
7984 Cannot build shared library against a static build of wxWidgets !
7985 This error happens because the wxWidgets build which was selected
7986 has been detected as static while you asked to build $PACKAGE_NAME
7987 as shared library and this is not possible.
7988 Use the '--disable-shared' option to build $PACKAGE_NAME
7989 as static library or '--with-wxshared' to use wxWidgets as shared library.
7991 echo "$as_me: error:
7992 Cannot build shared library against a static build of wxWidgets !
7993 This error happens because the wxWidgets build which was selected
7994 has been detected as static while you asked to build $PACKAGE_NAME
7995 as shared library and this is not possible.
7996 Use the '--disable-shared' option to build $PACKAGE_NAME
7997 as static library or '--with-wxshared' to use wxWidgets as shared library.
7999 { (exit 1); exit 1; }; }
8002 if test "$DEBUG" = "auto"; then
8005 if test "$DEBUG" = "1"; then
8007 elif test "$DEBUG" = ""; then
8011 if test "$UNICODE" = "auto"; then
8014 if test "$SHARED" = "auto"; then
8017 if test "$TOOLKIT" = "auto"; then
8023 # We also need wxBase
8024 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8025 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
8026 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
8030 if test ${SYS:-unknown} = win32
; then
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8034 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8035 echo "$as_me:$LINENO: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037 if test "${ac_cv_prog_RC+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 if test -n "$RC"; then
8041 ac_cv_prog_RC
="$RC" # Let the user override the test.
8043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8047 test -z "$as_dir" && as_dir
=.
8048 for ac_exec_ext
in '' $ac_executable_extensions; do
8049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_RC
="${ac_tool_prefix}windres"
8051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 if test -n "$RC"; then
8061 echo "$as_me:$LINENO: result: $RC" >&5
8062 echo "${ECHO_T}$RC" >&6
8064 echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6
8069 if test -z "$ac_cv_prog_RC"; then
8071 # Extract the first word of "windres", so it can be a program name with args.
8072 set dummy windres
; ac_word
=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 if test -n "$ac_ct_RC"; then
8079 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
8081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir
=.
8086 for ac_exec_ext
in '' $ac_executable_extensions; do
8087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_RC
="windres"
8089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
8098 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
8099 if test -n "$ac_ct_RC"; then
8100 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8101 echo "${ECHO_T}$ac_ct_RC" >&6
8103 echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6
8112 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8119 if test "${ENABLE_UPNP:-yes}" = yes; then
8123 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8124 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8126 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir
=.
8142 for ac_exec_ext
in '' $ac_executable_extensions; do
8143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8156 if test -n "$PKG_CONFIG"; then
8157 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8158 echo "${ECHO_T}$PKG_CONFIG" >&6
8160 echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6
8165 if test -z "$ac_cv_path_PKG_CONFIG"; then
8166 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8167 # Extract the first word of "pkg-config", so it can be a program name with args.
8168 set dummy pkg-config
; ac_word
=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 case $ac_pt_PKG_CONFIG in
8176 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir
=.
8184 for ac_exec_ext
in '' $ac_executable_extensions; do
8185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8198 if test -n "$ac_pt_PKG_CONFIG"; then
8199 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8200 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8206 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8208 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8212 if test -n "$PKG_CONFIG"; then
8213 _pkg_min_version
=0.9.0
8214 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8215 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8216 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218 echo "${ECHO_T}yes" >&6
8220 echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8228 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8229 if test "${with_libupnp_prefix+set}" = set; then
8230 withval
="$with_libupnp_prefix"
8231 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
8234 if test $cross_compiling = no
; then
8235 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8236 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8237 if test -n "$PKG_CONFIG"; then
8238 if $PKG_CONFIG libupnp
--exists; then
8239 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
8240 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
8242 resultstr
=" (version $LIBUPNP_VERSION)"
8243 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
8244 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8245 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8246 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8247 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8251 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8257 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8263 resultstr
=" (pkg-config not found)"
8266 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8267 echo "${ECHO_T}$result$resultstr" >&6
8268 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8272 libupnp_error
="cross compiling"
8276 if test ${result:-no} = yes; then
8277 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8279 ENABLE_UPNP
=disabled
8280 { echo "$as_me:$LINENO: WARNING:
8281 UPnP code has been disabled because ${libupnp_error}." >&5
8282 echo "$as_me: WARNING:
8283 UPnP code has been disabled because ${libupnp_error}." >&2;}
8285 _mule_has_warnings
=yes
8296 # Check for Crypto++
8299 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8300 if test "${with_crypto_prefix+set}" = set; then
8301 withval
="$with_crypto_prefix"
8305 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8306 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8308 cryptopp_file_with_version
="cryptlib.h"
8310 CRYPTOPP_STYLE
="unknown"
8311 CRYPTOPP_LIB_NAME
="unknown"
8312 cryptopp_includedir
="unknown"
8313 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8314 cryptopp_libdir
="unknown"
8316 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8317 if test -z "$CRYPTOPP_PREFIX"; then
8322 # Find the Cryptopp header
8323 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8325 CRYPTOPP_STYLE
="sources"
8326 CRYPTOPP_LIB_NAME
="cryptopp"
8327 cryptopp_includedir
=
8328 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8332 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8334 CRYPTOPP_STYLE
="installed"
8335 CRYPTOPP_LIB_NAME
="cryptopp"
8336 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8337 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8338 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8341 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8343 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8344 CRYPTOPP_STYLE
="gentoo_debian"
8345 CRYPTOPP_LIB_NAME
="crypto++"
8346 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8347 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8348 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8355 if test $CRYPTOPP_STYLE = "unknown"; then
8356 result
=no
; resultstr
=""
8359 # Find out the crypto++ version and check against the minimum required
8360 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8361 CRYPTOPP_VERSION_STRING
=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8362 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8363 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8365 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8368 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8369 if test -n "$cryptopp_includedir"; then
8370 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8375 if test -n "$cryptopp_libdir"; then
8377 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8378 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8383 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8389 cat >>confdefs.h
<<_ACEOF
8390 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8397 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8405 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8406 echo "${ECHO_T}$result$resultstr" >&6
8408 if test ${result:-no} = yes; then
8410 # Check for CryptoPP >= 5.5
8411 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8412 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8418 { { echo "$as_me:$LINENO: error:
8419 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8420 Please try again with --with-crypto-prefix=/my_crypto_prefix
8421 (replace /my_crypto_prefix with a valid path to your crypto++
8422 installation directory)." >&5
8423 echo "$as_me: error:
8424 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8425 Please try again with --with-crypto-prefix=/my_crypto_prefix
8426 (replace /my_crypto_prefix with a valid path to your crypto++
8427 installation directory)." >&2;}
8428 { (exit 1); exit 1; }; }
8436 ac_cpp
='$CXXCPP $CPPFLAGS'
8437 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8444 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8445 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8446 cat >conftest.
$ac_ext <<_ACEOF
8450 cat confdefs.h
>>conftest.
$ac_ext
8451 cat >>conftest.
$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8456 #error Non-GNU C++ library found.
8461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev
/null
; then
8469 if test -s conftest.err
; then
8470 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8471 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8478 if test -z "$ac_cpp_err"; then
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.
$ac_ext >&5
8486 rm -f conftest.err conftest.
$ac_ext
8487 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8488 echo "${ECHO_T}$GLIBCXX" >&6
8491 mule_backup_CPPFLAGS
="$CPPFLAGS"
8492 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8494 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8495 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8496 cat >conftest.
$ac_ext <<_ACEOF
8500 cat confdefs.h
>>conftest.
$ac_ext
8501 cat >>conftest.
$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8505 #include <wx/filefn.h>
8506 #ifndef wxHAS_LARGE_FILES
8507 #error No LargeFile support!
8512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8515 grep -v '^ *+' conftest.er1
>conftest.err
8517 cat conftest.err
>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } >/dev
/null
; then
8520 if test -s conftest.err
; then
8521 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8522 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8529 if test -z "$ac_cpp_err"; then
8531 echo "$as_me:$LINENO: result: yes" >&5
8532 echo "${ECHO_T}yes" >&6
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.
$ac_ext >&5
8539 echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8541 { { echo "$as_me:$LINENO: error:
8542 Support for large files in wxWidgets is required by aMule.
8543 To continue you must recompile wxWidgets with support for
8544 large files enabled." >&5
8545 echo "$as_me: error:
8546 Support for large files in wxWidgets is required by aMule.
8547 To continue you must recompile wxWidgets with support for
8548 large files enabled." >&2;}
8549 { (exit 1); exit 1; }; }
8552 rm -f conftest.err conftest.
$ac_ext
8554 CPPFLAGS
="$mule_backup_CPPFLAGS"
8557 # Check if the compiler is broken, wrt. exceptions.
8559 echo "$as_me:$LINENO: checking for exception-handling" >&5
8560 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8561 if test "$cross_compiling" = yes; then
8563 echo "$as_me:$LINENO: result: undeterminable" >&5
8564 echo "${ECHO_T}undeterminable" >&6
8565 { echo "$as_me:$LINENO: WARNING:
8566 Cross-compilation detected, so exception handling cannot be tested.
8567 Note that broken exception handling in your compiler may lead to
8568 unexpected crashes." >&5
8569 echo "$as_me: WARNING:
8570 Cross-compilation detected, so exception handling cannot be tested.
8571 Note that broken exception handling in your compiler may lead to
8572 unexpected crashes." >&2;}
8574 _mule_has_warnings
=yes
8578 cat >conftest.
$ac_ext <<_ACEOF
8582 cat confdefs.h
>>conftest.
$ac_ext
8583 cat >>conftest.
$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8602 rm -f conftest
$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8614 echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6
8618 echo "$as_me: program exited with status $ac_status" >&5
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.
$ac_ext >&5
8624 echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8626 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8627 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8628 { (exit 1); exit 1; }; }
8631 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8636 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8637 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8638 cat >conftest.
$ac_ext <<_ACEOF
8642 cat confdefs.h
>>conftest.
$ac_ext
8643 cat >>conftest.
$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8653 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8654 std::type_info *ti = abi::__cxa_current_exception_type();
8661 rm -f conftest.
$ac_objext conftest
$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8665 grep -v '^ *+' conftest.er1
>conftest.err
8667 cat conftest.err
>&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try
='test -z "$ac_cxx_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try
='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8686 cat >>confdefs.h
<<\_ACEOF
8687 #define HAVE_CXXABI 1
8690 echo "$as_me:$LINENO: result: yes" >&5
8691 echo "${ECHO_T}yes" >&6
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.
$ac_ext >&5
8698 echo "$as_me:$LINENO: result: no" >&5
8699 echo "${ECHO_T}no" >&6
8702 rm -f conftest.err conftest.
$ac_objext \
8703 conftest
$ac_exeext conftest.
$ac_ext
8706 ac_cpp
='$CPP $CPPFLAGS'
8707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8712 # Ok, we have all needed libs, now checking for other stuff
8713 if test "$LEX" = "flex"; then
8715 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8716 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8718 extended_flex
=`flex --help | grep header-file`
8719 if test -n "$extended_flex"; then
8720 HAVE_FLEX_EXTENDED
=yes
8722 HAVE_FLEX_EXTENDED
=no
8725 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8726 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8728 if test $HAVE_FLEX_EXTENDED = no
; then
8729 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8730 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8735 HAVE_FLEX_EXTENDED
=no
8739 # Flush standard test results for speeding cache
8740 cat >confcache
<<\_ACEOF
8741 # This file is a shell script that caches the results of configure
8742 # tests run on this system so they can be shared between configure
8743 # scripts and configure runs, see configure's option --config-cache.
8744 # It is not useful on other systems. If it contains results you don't
8745 # want to keep, you may remove or edit it.
8747 # config.status only pays attention to the cache file if you give it
8748 # the --recheck option to rerun configure.
8750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8756 # The following way of writing the cache mishandles newlines in values,
8757 # but we know of no workaround that is simple, portable, and efficient.
8758 # So, don't put newlines in cache variables' values.
8759 # Ultrix sh set writes to stderr and can't be redirected directly,
8760 # and sets the high bit in the cache file unless we assign to the vars.
8763 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8765 # `set' does not quote correctly, so add quotes (double-quote
8766 # substitution turns \\\\ into \\, and sed turns \\ into \).
8769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8772 # `set' quotes correctly as required by POSIX, so do not add quotes.
8774 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8783 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8785 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8786 if test -w $cache_file; then
8787 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8788 cat confcache
>$cache_file
8790 echo "not updating unwritable cache $cache_file"
8795 # Checks for header files.
8796 echo "$as_me:$LINENO: checking for X" >&5
8797 echo $ECHO_N "checking for X... $ECHO_C" >&6
8800 # Check whether --with-x or --without-x was given.
8801 if test "${with_x+set}" = set; then
8805 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8806 if test "x$with_x" = xno
; then
8807 # The user explicitly disabled X.
8810 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8811 # Both variables are already set.
8814 if test "${ac_cv_have_x+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 # One or both of the vars are not set, and there is no cached value.
8818 ac_x_includes
=no ac_x_libraries
=no
8820 if mkdir conftest.dir
; then
8822 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8823 cat >Imakefile
<<'_ACEOF'
8825 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8827 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8829 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8830 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8831 for ac_extension
in a so sl
; do
8832 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8833 test -f $ac_im_libdir/libX11.
$ac_extension; then
8834 ac_im_usrlibdir
=$ac_im_libdir; break
8837 # Screen out bogus values from the imake configuration. They are
8838 # bogus both because they are the default anyway, and because
8839 # using them would break gcc on systems where it needs fixed includes.
8840 case $ac_im_incroot in
8842 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8844 case $ac_im_usrlibdir in
8846 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8853 # Standard set of common directories for X headers.
8854 # Check X11 before X11Rn because it is often a symlink to the current release.
8866 /usr/local/X11/include
8867 /usr/local/X11R6/include
8868 /usr/local/X11R5/include
8869 /usr/local/X11R4/include
8871 /usr/local/include/X11
8872 /usr/local/include/X11R6
8873 /usr/local/include/X11R5
8874 /usr/local/include/X11R4
8878 /usr/XFree86/include/X11
8882 /usr/unsupported/include
8884 /usr/local/x11r5/include
8885 /usr/lpp/Xamples/include
8887 /usr/openwin/include
8888 /usr/openwin/share/include'
8890 if test "$ac_x_includes" = no
; then
8891 # Guess where to find include files, by looking for Intrinsic.h.
8892 # First, try using that file with no special directory specified.
8893 cat >conftest.
$ac_ext <<_ACEOF
8896 cat confdefs.h
>>conftest.
$ac_ext
8897 cat >>conftest.
$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 #include <X11/Intrinsic.h>
8901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8902 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8904 grep -v '^ *+' conftest.er1
>conftest.err
8906 cat conftest.err
>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } >/dev
/null
; then
8909 if test -s conftest.err
; then
8910 ac_cpp_err
=$ac_c_preproc_warn_flag
8911 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8918 if test -z "$ac_cpp_err"; then
8919 # We can compile using X headers with no special include directory.
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.
$ac_ext >&5
8925 for ac_dir
in $ac_x_header_dirs; do
8926 if test -r "$ac_dir/X11/Intrinsic.h"; then
8927 ac_x_includes
=$ac_dir
8932 rm -f conftest.err conftest.
$ac_ext
8933 fi # $ac_x_includes = no
8935 if test "$ac_x_libraries" = no
; then
8936 # Check for the libraries.
8937 # See if we find them without any special options.
8938 # Don't add to $LIBS permanently.
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 #include <X11/Intrinsic.h>
8956 rm -f conftest.
$ac_objext conftest
$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8960 grep -v '^ *+' conftest.er1
>conftest.err
8962 cat conftest.err
>&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try
='test -z "$ac_c_werror_flag"
8966 || test ! -s conftest.err'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try
='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8979 # We can link X programs with no special library path.
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.
$ac_ext >&5
8986 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8988 # Don't even attempt the hair of trying to link an X program!
8989 for ac_extension
in a so sl
; do
8990 if test -r $ac_dir/libXt.
$ac_extension; then
8991 ac_x_libraries
=$ac_dir
8997 rm -f conftest.err conftest.
$ac_objext \
8998 conftest
$ac_exeext conftest.
$ac_ext
8999 fi # $ac_x_libraries = no
9001 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
9002 # Didn't find X anywhere. Cache the known absence of X.
9003 ac_cv_have_x
="have_x=no"
9005 # Record where we found X for the cache.
9006 ac_cv_have_x
="have_x=yes \
9007 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9012 eval "$ac_cv_have_x"
9015 if test "$have_x" != yes; then
9016 echo "$as_me:$LINENO: result: $have_x" >&5
9017 echo "${ECHO_T}$have_x" >&6
9020 # If each of the values was on the command line, it overrides each guess.
9021 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9022 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9023 # Update the cache value to reflect the command line values.
9024 ac_cv_have_x
="have_x=yes \
9025 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9026 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9027 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9031 # for constant arguments. Useless!
9032 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9033 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9034 if test "${ac_cv_working_alloca_h+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 cat >conftest.
$ac_ext <<_ACEOF
9040 cat confdefs.h
>>conftest.
$ac_ext
9041 cat >>conftest.
$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9047 char *p = (char *) alloca (2 * sizeof (int));
9052 rm -f conftest.
$ac_objext conftest
$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054 (eval $ac_link) 2>conftest.er1
9056 grep -v '^ *+' conftest.er1
>conftest.err
9058 cat conftest.err
>&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try
='test -z "$ac_c_werror_flag"
9062 || test ! -s conftest.err'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try
='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_working_alloca_h
=yes
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.
$ac_ext >&5
9079 ac_cv_working_alloca_h
=no
9081 rm -f conftest.err conftest.
$ac_objext \
9082 conftest
$ac_exeext conftest.
$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9085 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9086 if test $ac_cv_working_alloca_h = yes; then
9088 cat >>confdefs.h
<<\_ACEOF
9089 #define HAVE_ALLOCA_H 1
9094 echo "$as_me:$LINENO: checking for alloca" >&5
9095 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9096 if test "${ac_cv_func_alloca_works+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 cat >conftest.
$ac_ext <<_ACEOF
9102 cat confdefs.h
>>conftest.
$ac_ext
9103 cat >>conftest.
$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 # define alloca __builtin_alloca
9109 # include <malloc.h>
9110 # define alloca _alloca
9113 # include <alloca.h>
9118 # ifndef alloca /* predefined by HP cc +Olibcalls */
9129 char *p = (char *) alloca (1);
9134 rm -f conftest.
$ac_objext conftest
$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>conftest.er1
9138 grep -v '^ *+' conftest.er1
>conftest.err
9140 cat conftest.err
>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try
='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try
='test -s conftest$ac_exeext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_func_alloca_works
=yes
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.
$ac_ext >&5
9161 ac_cv_func_alloca_works
=no
9163 rm -f conftest.err conftest.
$ac_objext \
9164 conftest
$ac_exeext conftest.
$ac_ext
9166 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9167 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9169 if test $ac_cv_func_alloca_works = yes; then
9171 cat >>confdefs.h
<<\_ACEOF
9172 #define HAVE_ALLOCA 1
9176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9177 # that cause trouble. Some versions do not even contain alloca or
9178 # contain a buggy version. If you still want to use their alloca,
9179 # use ar to extract alloca.o from them instead of compiling alloca.c.
9181 ALLOCA
=alloca.
$ac_objext
9183 cat >>confdefs.h
<<\_ACEOF
9188 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9189 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9190 if test "${ac_cv_os_cray+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 cat >conftest.
$ac_ext <<_ACEOF
9196 cat confdefs.h
>>conftest.
$ac_ext
9197 cat >>conftest.
$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #if defined(CRAY) && ! defined(CRAY2)
9206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9207 $EGREP "webecray" >/dev
/null
2>&1; then
9215 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9216 echo "${ECHO_T}$ac_cv_os_cray" >&6
9217 if test $ac_cv_os_cray = yes; then
9218 for ac_func
in _getb67 GETB67 getb67
; do
9219 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9220 echo "$as_me:$LINENO: checking for $ac_func" >&5
9221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9222 if eval "test \"\${$as_ac_var+set}\" = set"; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 cat >conftest.
$ac_ext <<_ACEOF
9228 cat confdefs.h
>>conftest.
$ac_ext
9229 cat >>conftest.
$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9233 #define $ac_func innocuous_$ac_func
9235 /* System header to define __stub macros and hopefully few prototypes,
9236 which can conflict with char $ac_func (); below.
9237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9238 <limits.h> exists even on freestanding compilers. */
9241 # include <limits.h>
9243 # include <assert.h>
9248 /* Override any gcc2 internal prototype to avoid an error. */
9253 /* We use char because int might match the return type of a gcc2
9254 builtin and then its argument prototype would still apply. */
9256 /* The GNU C library defines this for functions which it implements
9257 to always fail with ENOSYS. Some functions are actually named
9258 something starting with __ and the normal name is an alias. */
9259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9262 char (*f) () = $ac_func;
9271 return f != $ac_func;
9276 rm -f conftest.
$ac_objext conftest
$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278 (eval $ac_link) 2>conftest.er1
9280 grep -v '^ *+' conftest.er1
>conftest.err
9282 cat conftest.err
>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try
='test -z "$ac_c_werror_flag"
9286 || test ! -s conftest.err'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; } &&
9292 { ac_try
='test -s conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 eval "$as_ac_var=yes"
9300 echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.
$ac_ext >&5
9303 eval "$as_ac_var=no"
9305 rm -f conftest.err conftest.
$ac_objext \
9306 conftest
$ac_exeext conftest.
$ac_ext
9308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9310 if test `eval echo '${'$as_ac_var'}'` = yes; then
9312 cat >>confdefs.h
<<_ACEOF
9313 #define CRAY_STACKSEG_END $ac_func
9322 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9323 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9324 if test "${ac_cv_c_stack_direction+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 if test "$cross_compiling" = yes; then
9328 ac_cv_c_stack_direction
=0
9330 cat >conftest.
$ac_ext <<_ACEOF
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 find_stack_direction ()
9339 static char *addr = 0;
9344 return find_stack_direction ();
9347 return (&dummy > addr) ? 1 : -1;
9353 exit (find_stack_direction () < 0);
9356 rm -f conftest
$ac_exeext
9357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9358 (eval $ac_link) 2>&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_cv_c_stack_direction
=1
9369 echo "$as_me: program exited with status $ac_status" >&5
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.
$ac_ext >&5
9374 ac_cv_c_stack_direction
=-1
9376 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9380 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9382 cat >>confdefs.h
<<_ACEOF
9383 #define STACK_DIRECTION $ac_cv_c_stack_direction
9395 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9396 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9397 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9398 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 cat >conftest.
$ac_ext <<_ACEOF
9405 cat confdefs.h
>>conftest.
$ac_ext
9406 cat >>conftest.
$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 #include <sys/types.h>
9420 rm -f conftest.
$ac_objext
9421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9422 (eval $ac_compile) 2>conftest.er1
9424 grep -v '^ *+' conftest.er1
>conftest.err
9426 cat conftest.err
>&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } &&
9429 { ac_try
='test -z "$ac_c_werror_flag"
9430 || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try
='test -s conftest.$ac_objext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 eval "$as_ac_Header=yes"
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.
$ac_ext >&5
9447 eval "$as_ac_Header=no"
9449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9454 cat >>confdefs.h
<<_ACEOF
9455 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9458 ac_header_dirent
=$ac_hdr; break
9462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9463 if test $ac_header_dirent = dirent.h
; then
9464 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9465 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9466 if test "${ac_cv_search_opendir+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 ac_func_search_save_LIBS
=$LIBS
9470 ac_cv_search_opendir
=no
9471 cat >conftest.
$ac_ext <<_ACEOF
9474 cat confdefs.h
>>conftest.
$ac_ext
9475 cat >>conftest.
$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 /* Override any gcc2 internal prototype to avoid an error. */
9482 /* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9493 rm -f conftest.
$ac_objext conftest
$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>conftest.er1
9497 grep -v '^ *+' conftest.er1
>conftest.err
9499 cat conftest.err
>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try
='test -z "$ac_c_werror_flag"
9503 || test ! -s conftest.err'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try
='test -s conftest$ac_exeext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 ac_cv_search_opendir
="none required"
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.
$ac_ext >&5
9521 rm -f conftest.err conftest.
$ac_objext \
9522 conftest
$ac_exeext conftest.
$ac_ext
9523 if test "$ac_cv_search_opendir" = no
; then
9524 for ac_lib
in dir
; do
9525 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9526 cat >conftest.
$ac_ext <<_ACEOF
9529 cat confdefs.h
>>conftest.
$ac_ext
9530 cat >>conftest.
$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9533 /* Override any gcc2 internal prototype to avoid an error. */
9537 /* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9548 rm -f conftest.
$ac_objext conftest
$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>conftest.er1
9552 grep -v '^ *+' conftest.er1
>conftest.err
9554 cat conftest.err
>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try
='test -z "$ac_c_werror_flag"
9558 || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try
='test -s conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_search_opendir
="-l$ac_lib"
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.
$ac_ext >&5
9577 rm -f conftest.err conftest.
$ac_objext \
9578 conftest
$ac_exeext conftest.
$ac_ext
9581 LIBS
=$ac_func_search_save_LIBS
9583 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9584 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9585 if test "$ac_cv_search_opendir" != no
; then
9586 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9591 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9592 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9593 if test "${ac_cv_search_opendir+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 ac_func_search_save_LIBS
=$LIBS
9597 ac_cv_search_opendir
=no
9598 cat >conftest.
$ac_ext <<_ACEOF
9601 cat confdefs.h
>>conftest.
$ac_ext
9602 cat >>conftest.
$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9605 /* Override any gcc2 internal prototype to avoid an error. */
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9620 rm -f conftest.
$ac_objext conftest
$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>conftest.er1
9624 grep -v '^ *+' conftest.er1
>conftest.err
9626 cat conftest.err
>&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try
='test -z "$ac_c_werror_flag"
9630 || test ! -s conftest.err'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; } &&
9636 { ac_try
='test -s conftest$ac_exeext'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9642 ac_cv_search_opendir
="none required"
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.
$ac_ext >&5
9648 rm -f conftest.err conftest.
$ac_objext \
9649 conftest
$ac_exeext conftest.
$ac_ext
9650 if test "$ac_cv_search_opendir" = no
; then
9652 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9653 cat >conftest.
$ac_ext <<_ACEOF
9656 cat confdefs.h
>>conftest.
$ac_ext
9657 cat >>conftest.
$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9660 /* Override any gcc2 internal prototype to avoid an error. */
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9675 rm -f conftest.
$ac_objext conftest
$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>conftest.er1
9679 grep -v '^ *+' conftest.er1
>conftest.err
9681 cat conftest.err
>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try
='test -z "$ac_c_werror_flag"
9685 || test ! -s conftest.err'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try
='test -s conftest$ac_exeext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_cv_search_opendir
="-l$ac_lib"
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.
$ac_ext >&5
9704 rm -f conftest.err conftest.
$ac_objext \
9705 conftest
$ac_exeext conftest.
$ac_ext
9708 LIBS
=$ac_func_search_save_LIBS
9710 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9711 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9712 if test "$ac_cv_search_opendir" != no
; then
9713 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9719 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9720 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9721 if test "${ac_cv_header_stdc+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 cat >conftest.
$ac_ext <<_ACEOF
9727 cat confdefs.h
>>conftest.
$ac_ext
9728 cat >>conftest.
$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9743 rm -f conftest.
$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9747 grep -v '^ *+' conftest.er1
>conftest.err
9749 cat conftest.err
>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try
='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try
='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_header_stdc
=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.
$ac_ext >&5
9770 ac_cv_header_stdc
=no
9772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9774 if test $ac_cv_header_stdc = yes; then
9775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9776 cat >conftest.
$ac_ext <<_ACEOF
9779 cat confdefs.h
>>conftest.
$ac_ext
9780 cat >>conftest.
$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9786 $EGREP "memchr" >/dev
/null
2>&1; then
9789 ac_cv_header_stdc
=no
9795 if test $ac_cv_header_stdc = yes; then
9796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9797 cat >conftest.
$ac_ext <<_ACEOF
9800 cat confdefs.h
>>conftest.
$ac_ext
9801 cat >>conftest.
$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9807 $EGREP "free" >/dev
/null
2>&1; then
9810 ac_cv_header_stdc
=no
9816 if test $ac_cv_header_stdc = yes; then
9817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9818 if test "$cross_compiling" = yes; then
9821 cat >conftest.
$ac_ext <<_ACEOF
9824 cat confdefs.h
>>conftest.
$ac_ext
9825 cat >>conftest.
$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 #if ((' ' & 0x0FF) == 0x020)
9829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9832 # define ISLOWER(c) \
9833 (('a' <= (c) && (c) <= 'i') \
9834 || ('j' <= (c) && (c) <= 'r') \
9835 || ('s' <= (c) && (c) <= 'z'))
9836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9844 for (i = 0; i < 256; i++)
9845 if (XOR (islower (i), ISLOWER (i))
9846 || toupper (i) != TOUPPER (i))
9851 rm -f conftest
$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9864 echo "$as_me: program exited with status $ac_status" >&5
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.
$ac_ext >&5
9869 ac_cv_header_stdc
=no
9871 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9875 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9876 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9877 if test $ac_cv_header_stdc = yes; then
9879 cat >>confdefs.h
<<\_ACEOF
9880 #define STDC_HEADERS 1
9919 for ac_header
in argz.h arpa
/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet
/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h errno.h signal.h
9921 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9923 echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931 # Is the header compilable?
9932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9934 cat >conftest.
$ac_ext <<_ACEOF
9937 cat confdefs.h
>>conftest.
$ac_ext
9938 cat >>conftest.
$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 $ac_includes_default
9941 #include <$ac_header>
9943 rm -f conftest.
$ac_objext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9945 (eval $ac_compile) 2>conftest.er1
9947 grep -v '^ *+' conftest.er1
>conftest.err
9949 cat conftest.err
>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try
='test -z "$ac_c_werror_flag"
9953 || test ! -s conftest.err'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try
='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler
=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.
$ac_ext >&5
9970 ac_header_compiler
=no
9972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974 echo "${ECHO_T}$ac_header_compiler" >&6
9976 # Is the header present?
9977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9979 cat >conftest.
$ac_ext <<_ACEOF
9982 cat confdefs.h
>>conftest.
$ac_ext
9983 cat >>conftest.
$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 #include <$ac_header>
9987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9988 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9990 grep -v '^ *+' conftest.er1
>conftest.err
9992 cat conftest.err
>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } >/dev
/null
; then
9995 if test -s conftest.err
; then
9996 ac_cpp_err
=$ac_c_preproc_warn_flag
9997 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10004 if test -z "$ac_cpp_err"; then
10005 ac_header_preproc
=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.
$ac_ext >&5
10010 ac_header_preproc
=no
10012 rm -f conftest.err conftest.
$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014 echo "${ECHO_T}$ac_header_preproc" >&6
10016 # So? What about this header?
10017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10023 ac_header_preproc
=yes
10026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10040 ## ------------------------------ ##
10041 ## Report this to admin@amule.org ##
10042 ## ------------------------------ ##
10045 sed "s/^/$as_me: WARNING: /" >&2
10048 echo "$as_me:$LINENO: checking for $ac_header" >&5
10049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 eval "$as_ac_Header=\$ac_header_preproc"
10055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10060 cat >>confdefs.h
<<_ACEOF
10061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10068 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10069 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10070 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 cat >conftest.
$ac_ext <<_ACEOF
10076 cat confdefs.h
>>conftest.
$ac_ext
10077 cat >>conftest.
$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 #include <sys/types.h>
10080 #include <sys/wait.h>
10081 #ifndef WEXITSTATUS
10082 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10085 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10093 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10098 rm -f conftest.
$ac_objext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 (eval $ac_compile) 2>conftest.er1
10102 grep -v '^ *+' conftest.er1
>conftest.err
10104 cat conftest.err
>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try
='test -z "$ac_c_werror_flag"
10108 || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try
='test -s conftest.$ac_objext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_header_sys_wait_h
=yes
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.
$ac_ext >&5
10125 ac_cv_header_sys_wait_h
=no
10127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10130 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10131 if test $ac_cv_header_sys_wait_h = yes; then
10133 cat >>confdefs.h
<<\_ACEOF
10134 #define HAVE_SYS_WAIT_H 1
10140 # Checks for typedefs, structures, and compiler characteristics.
10141 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10142 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10143 if test "${ac_cv_header_stdbool_h+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 cat >conftest.
$ac_ext <<_ACEOF
10149 cat confdefs.h
>>conftest.
$ac_ext
10150 cat >>conftest.
$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10153 #include <stdbool.h>
10155 # error bool is not defined
10158 # error false is not defined
10161 # error false is not 0
10164 # error true is not defined
10167 # error true is not 1
10169 #ifndef __bool_true_false_are_defined
10170 # error __bool_true_false_are_defined is not defined
10173 struct s { _Bool s: 1; _Bool t; } s;
10175 char a[true == 1 ? 1 : -1];
10176 char b[false == 0 ? 1 : -1];
10177 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10178 char d[(bool) -0.5 == true ? 1 : -1];
10180 char f[(_Bool) -0.0 == false ? 1 : -1];
10182 char h[sizeof (_Bool)];
10183 char i[sizeof s.t];
10188 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10193 rm -f conftest.
$ac_objext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195 (eval $ac_compile) 2>conftest.er1
10197 grep -v '^ *+' conftest.er1
>conftest.err
10199 cat conftest.err
>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try
='test -z "$ac_c_werror_flag"
10203 || test ! -s conftest.err'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try
='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_header_stdbool_h
=yes
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.
$ac_ext >&5
10220 ac_cv_header_stdbool_h
=no
10222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10224 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10225 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10226 echo "$as_me:$LINENO: checking for _Bool" >&5
10227 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10228 if test "${ac_cv_type__Bool+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 cat >conftest.
$ac_ext <<_ACEOF
10234 cat confdefs.h
>>conftest.
$ac_ext
10235 cat >>conftest.
$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 $ac_includes_default
10243 if (sizeof (_Bool))
10249 rm -f conftest.
$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>conftest.er1
10253 grep -v '^ *+' conftest.er1
>conftest.err
10255 cat conftest.err
>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try
='test -z "$ac_c_werror_flag"
10259 || test ! -s conftest.err'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; } &&
10265 { ac_try
='test -s conftest.$ac_objext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_type__Bool
=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.
$ac_ext >&5
10276 ac_cv_type__Bool
=no
10278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10281 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10282 if test $ac_cv_type__Bool = yes; then
10284 cat >>confdefs.h
<<_ACEOF
10285 #define HAVE__BOOL 1
10291 if test $ac_cv_header_stdbool_h = yes; then
10293 cat >>confdefs.h
<<\_ACEOF
10294 #define HAVE_STDBOOL_H 1
10299 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10300 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10301 if test "${ac_cv_c_const+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10314 /* FIXME: Include the comments suggested by Paul. */
10315 #ifndef __cplusplus
10316 /* Ultrix mips cc rejects this. */
10317 typedef int charset[2];
10319 /* SunOS 4.1.1 cc rejects this. */
10320 char const *const *ccp;
10322 /* NEC SVR4.0.2 mips cc rejects this. */
10323 struct point {int x, y;};
10324 static struct point const zero = {0,0};
10325 /* AIX XL C 1.02.0.0 rejects this.
10326 It does not let you subtract one const X* pointer from another in
10327 an arm of an if-expression whose if-part is not a constant
10329 const char *g = "string";
10330 ccp = &g + (g ? g-g : 0);
10331 /* HPUX 7.0 cc rejects these. */
10334 ccp = (char const *const *) p;
10335 { /* SCO 3.2v4 cc rejects this. */
10337 char const *s = 0 ? (char *) 0 : (char const *) 0;
10341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10342 int x[] = {25, 17};
10343 const int *foo = &x[0];
10346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10347 typedef const int *iptr;
10351 { /* AIX XL C 1.02.0.0 rejects this saying
10352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10353 struct s { int j; const int *ap[3]; };
10354 struct s *b; b->j = 5;
10356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10357 const int foo = 10;
10365 rm -f conftest.
$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10369 grep -v '^ *+' conftest.er1
>conftest.err
10371 cat conftest.err
>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try
='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try
='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.
$ac_ext >&5
10394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10397 echo "${ECHO_T}$ac_cv_c_const" >&6
10398 if test $ac_cv_c_const = no
; then
10400 cat >>confdefs.h
<<\_ACEOF
10406 echo "$as_me:$LINENO: checking for inline" >&5
10407 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10408 if test "${ac_cv_c_inline+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 for ac_kw
in inline __inline__ __inline
; do
10413 cat >conftest.
$ac_ext <<_ACEOF
10416 cat confdefs.h
>>conftest.
$ac_ext
10417 cat >>conftest.
$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #ifndef __cplusplus
10421 static $ac_kw foo_t static_foo () {return 0; }
10422 $ac_kw foo_t foo () {return 0; }
10426 rm -f conftest.
$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10430 grep -v '^ *+' conftest.er1
>conftest.err
10432 cat conftest.err
>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try
='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try
='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_c_inline
=$ac_kw; break
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.
$ac_ext >&5
10454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10458 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10459 echo "${ECHO_T}$ac_cv_c_inline" >&6
10462 case $ac_cv_c_inline in
10465 case $ac_cv_c_inline in
10467 *) ac_val
=$ac_cv_c_inline;;
10469 cat >>confdefs.h
<<_ACEOF
10470 #ifndef __cplusplus
10471 #define inline $ac_val
10477 echo "$as_me:$LINENO: checking for mode_t" >&5
10478 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10479 if test "${ac_cv_type_mode_t+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 cat >conftest.
$ac_ext <<_ACEOF
10485 cat confdefs.h
>>conftest.
$ac_ext
10486 cat >>conftest.
$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 $ac_includes_default
10494 if (sizeof (mode_t))
10500 rm -f conftest.
$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10504 grep -v '^ *+' conftest.er1
>conftest.err
10506 cat conftest.err
>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try
='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try
='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_type_mode_t
=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.
$ac_ext >&5
10527 ac_cv_type_mode_t
=no
10529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10531 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10532 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10533 if test $ac_cv_type_mode_t = yes; then
10537 cat >>confdefs.h
<<_ACEOF
10543 echo "$as_me:$LINENO: checking for off_t" >&5
10544 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10545 if test "${ac_cv_type_off_t+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 cat >conftest.
$ac_ext <<_ACEOF
10551 cat confdefs.h
>>conftest.
$ac_ext
10552 cat >>conftest.
$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 $ac_includes_default
10560 if (sizeof (off_t))
10566 rm -f conftest.
$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1
>conftest.err
10572 cat conftest.err
>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try
='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try
='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_type_off_t
=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.
$ac_ext >&5
10593 ac_cv_type_off_t
=no
10595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10597 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10598 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10599 if test $ac_cv_type_off_t = yes; then
10603 cat >>confdefs.h
<<_ACEOF
10609 echo "$as_me:$LINENO: checking for size_t" >&5
10610 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10611 if test "${ac_cv_type_size_t+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 cat >conftest.
$ac_ext <<_ACEOF
10617 cat confdefs.h
>>conftest.
$ac_ext
10618 cat >>conftest.
$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10626 if (sizeof (size_t))
10632 rm -f conftest.
$ac_objext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634 (eval $ac_compile) 2>conftest.er1
10636 grep -v '^ *+' conftest.er1
>conftest.err
10638 cat conftest.err
>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try
='test -z "$ac_c_werror_flag"
10642 || test ! -s conftest.err'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try
='test -s conftest.$ac_objext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_type_size_t
=yes
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.
$ac_ext >&5
10659 ac_cv_type_size_t
=no
10661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10663 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10664 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10665 if test $ac_cv_type_size_t = yes; then
10669 cat >>confdefs.h
<<_ACEOF
10670 #define size_t unsigned
10675 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10676 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10677 if test "${ac_cv_header_time+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 cat >conftest.
$ac_ext <<_ACEOF
10683 cat confdefs.h
>>conftest.
$ac_ext
10684 cat >>conftest.
$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 #include <sys/types.h>
10687 #include <sys/time.h>
10693 if ((struct tm *) 0)
10699 rm -f conftest.
$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1
>conftest.err
10705 cat conftest.err
>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try
='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try
='test -s conftest.$ac_objext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_header_time
=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.
$ac_ext >&5
10726 ac_cv_header_time
=no
10728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10730 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10731 echo "${ECHO_T}$ac_cv_header_time" >&6
10732 if test $ac_cv_header_time = yes; then
10734 cat >>confdefs.h
<<\_ACEOF
10735 #define TIME_WITH_SYS_TIME 1
10740 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10742 if test "${ac_cv_struct_tm+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.
$ac_ext <<_ACEOF
10748 cat confdefs.h
>>conftest.
$ac_ext
10749 cat >>conftest.
$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 #include <sys/types.h>
10757 struct tm *tp; tp->tm_sec;
10762 rm -f conftest.
$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>conftest.er1
10766 grep -v '^ *+' conftest.er1
>conftest.err
10768 cat conftest.err
>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try
='test -z "$ac_c_werror_flag"
10772 || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try
='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_struct_tm
=time.h
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.
$ac_ext >&5
10789 ac_cv_struct_tm
=sys
/time.h
10791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10793 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10794 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10795 if test $ac_cv_struct_tm = sys
/time.h
; then
10797 cat >>confdefs.h
<<\_ACEOF
10798 #define TM_IN_SYS_TIME 1
10803 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10804 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10805 if test "${ac_cv_type_uid_t+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.
$ac_ext <<_ACEOF
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <sys/types.h>
10817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10818 $EGREP "uid_t" >/dev
/null
2>&1; then
10819 ac_cv_type_uid_t
=yes
10821 ac_cv_type_uid_t
=no
10826 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10827 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10828 if test $ac_cv_type_uid_t = no
; then
10830 cat >>confdefs.h
<<\_ACEOF
10835 cat >>confdefs.h
<<\_ACEOF
10841 echo "$as_me:$LINENO: checking for working volatile" >&5
10842 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10843 if test "${ac_cv_c_volatile+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.
$ac_ext <<_ACEOF
10849 cat confdefs.h
>>conftest.
$ac_ext
10850 cat >>conftest.
$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10863 rm -f conftest.
$ac_objext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>conftest.er1
10867 grep -v '^ *+' conftest.er1
>conftest.err
10869 cat conftest.err
>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try
='test -z "$ac_c_werror_flag"
10873 || test ! -s conftest.err'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try
='test -s conftest.$ac_objext'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; }; then
10885 ac_cv_c_volatile
=yes
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.
$ac_ext >&5
10890 ac_cv_c_volatile
=no
10892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10894 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10895 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10896 if test $ac_cv_c_volatile = no
; then
10898 cat >>confdefs.h
<<\_ACEOF
10904 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10905 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10906 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 cat >conftest.
$ac_ext <<_ACEOF
10912 cat confdefs.h
>>conftest.
$ac_ext
10913 cat >>conftest.
$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 $ac_includes_default
10919 if ((ptrdiff_t *) 0)
10921 if (sizeof (ptrdiff_t))
10927 rm -f conftest.
$ac_objext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10929 (eval $ac_compile) 2>conftest.er1
10931 grep -v '^ *+' conftest.er1
>conftest.err
10933 cat conftest.err
>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try
='test -z "$ac_c_werror_flag"
10937 || test ! -s conftest.err'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try
='test -s conftest.$ac_objext'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_cv_type_ptrdiff_t
=yes
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.
$ac_ext >&5
10954 ac_cv_type_ptrdiff_t
=no
10956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10958 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10959 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10960 if test $ac_cv_type_ptrdiff_t = yes; then
10962 cat >>confdefs.h
<<_ACEOF
10963 #define HAVE_PTRDIFF_T 1
10970 # Checks for library functions.
10971 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10972 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10973 if test "${ac_cv_func_closedir_void+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 if test "$cross_compiling" = yes; then
10977 ac_cv_func_closedir_void
=yes
10979 cat >conftest.
$ac_ext <<_ACEOF
10982 cat confdefs.h
>>conftest.
$ac_ext
10983 cat >>conftest.
$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 $ac_includes_default
10986 #include <$ac_header_dirent>
10987 #ifndef __cplusplus
10994 exit (closedir (opendir (".")) != 0);
10999 rm -f conftest
$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 ac_cv_func_closedir_void
=no
11012 echo "$as_me: program exited with status $ac_status" >&5
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.
$ac_ext >&5
11016 ( exit $ac_status )
11017 ac_cv_func_closedir_void
=yes
11019 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11022 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11023 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11024 if test $ac_cv_func_closedir_void = yes; then
11026 cat >>confdefs.h
<<\_ACEOF
11027 #define CLOSEDIR_VOID 1
11032 if test $ac_cv_c_compiler_gnu = yes; then
11033 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11034 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11035 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 ac_pattern
="Autoconf.*'x'"
11039 cat >conftest.
$ac_ext <<_ACEOF
11042 cat confdefs.h
>>conftest.
$ac_ext
11043 cat >>conftest.
$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11049 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11050 ac_cv_prog_gcc_traditional
=yes
11052 ac_cv_prog_gcc_traditional
=no
11057 if test $ac_cv_prog_gcc_traditional = no
; then
11058 cat >conftest.
$ac_ext <<_ACEOF
11061 cat confdefs.h
>>conftest.
$ac_ext
11062 cat >>conftest.
$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 #include <termio.h>
11067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11068 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11069 ac_cv_prog_gcc_traditional
=yes
11075 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11076 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11077 if test $ac_cv_prog_gcc_traditional = yes; then
11078 CC
="$CC -traditional"
11082 echo "$as_me:$LINENO: checking for pid_t" >&5
11083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11084 if test "${ac_cv_type_pid_t+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 cat >conftest.
$ac_ext <<_ACEOF
11090 cat confdefs.h
>>conftest.
$ac_ext
11091 cat >>conftest.
$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 $ac_includes_default
11099 if (sizeof (pid_t))
11105 rm -f conftest.
$ac_objext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>conftest.er1
11109 grep -v '^ *+' conftest.er1
>conftest.err
11111 cat conftest.err
>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try
='test -z "$ac_c_werror_flag"
11115 || test ! -s conftest.err'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; } &&
11121 { ac_try
='test -s conftest.$ac_objext'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_type_pid_t
=yes
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.
$ac_ext >&5
11132 ac_cv_type_pid_t
=no
11134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11136 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11138 if test $ac_cv_type_pid_t = yes; then
11142 cat >>confdefs.h
<<_ACEOF
11150 for ac_header
in unistd.h vfork.h
11152 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11154 echo "$as_me:$LINENO: checking for $ac_header" >&5
11155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11162 # Is the header compilable?
11163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11165 cat >conftest.
$ac_ext <<_ACEOF
11168 cat confdefs.h
>>conftest.
$ac_ext
11169 cat >>conftest.
$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 $ac_includes_default
11172 #include <$ac_header>
11174 rm -f conftest.
$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11178 grep -v '^ *+' conftest.er1
>conftest.err
11180 cat conftest.err
>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try
='test -z "$ac_c_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try
='test -s conftest.$ac_objext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_header_compiler
=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.
$ac_ext >&5
11201 ac_header_compiler
=no
11203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11205 echo "${ECHO_T}$ac_header_compiler" >&6
11207 # Is the header present?
11208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11210 cat >conftest.
$ac_ext <<_ACEOF
11213 cat confdefs.h
>>conftest.
$ac_ext
11214 cat >>conftest.
$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 #include <$ac_header>
11218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11221 grep -v '^ *+' conftest.er1
>conftest.err
11223 cat conftest.err
>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev
/null
; then
11226 if test -s conftest.err
; then
11227 ac_cpp_err
=$ac_c_preproc_warn_flag
11228 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11235 if test -z "$ac_cpp_err"; then
11236 ac_header_preproc
=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.
$ac_ext >&5
11241 ac_header_preproc
=no
11243 rm -f conftest.err conftest.
$ac_ext
11244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11245 echo "${ECHO_T}$ac_header_preproc" >&6
11247 # So? What about this header?
11248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11254 ac_header_preproc
=yes
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271 ## ------------------------------ ##
11272 ## Report this to admin@amule.org ##
11273 ## ------------------------------ ##
11276 sed "s/^/$as_me: WARNING: /" >&2
11279 echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 eval "$as_ac_Header=\$ac_header_preproc"
11286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 cat >>confdefs.h
<<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301 for ac_func
in fork vfork
11303 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11304 echo "$as_me:$LINENO: checking for $ac_func" >&5
11305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11306 if eval "test \"\${$as_ac_var+set}\" = set"; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 cat >conftest.
$ac_ext <<_ACEOF
11312 cat confdefs.h
>>conftest.
$ac_ext
11313 cat >>conftest.
$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11317 #define $ac_func innocuous_$ac_func
11319 /* System header to define __stub macros and hopefully few prototypes,
11320 which can conflict with char $ac_func (); below.
11321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11322 <limits.h> exists even on freestanding compilers. */
11325 # include <limits.h>
11327 # include <assert.h>
11332 /* Override any gcc2 internal prototype to avoid an error. */
11337 /* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11346 char (*f) () = $ac_func;
11355 return f != $ac_func;
11360 rm -f conftest.
$ac_objext conftest
$ac_exeext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>conftest.er1
11364 grep -v '^ *+' conftest.er1
>conftest.err
11366 cat conftest.err
>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try
='test -z "$ac_c_werror_flag"
11370 || test ! -s conftest.err'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try
='test -s conftest$ac_exeext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 eval "$as_ac_var=yes"
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.
$ac_ext >&5
11387 eval "$as_ac_var=no"
11389 rm -f conftest.err conftest.
$ac_objext \
11390 conftest
$ac_exeext conftest.
$ac_ext
11392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h
<<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11402 if test "x$ac_cv_func_fork" = xyes
; then
11403 echo "$as_me:$LINENO: checking for working fork" >&5
11404 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11405 if test "${ac_cv_func_fork_works+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 if test "$cross_compiling" = yes; then
11409 ac_cv_func_fork_works
=cross
11411 cat >conftest.
$ac_ext <<_ACEOF
11412 /* By Ruediger Kuhlmann. */
11413 #include <sys/types.h>
11415 # include <unistd.h>
11417 /* Some systems only have a dummy stub for fork() */
11425 rm -f conftest
$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_func_fork_works
=yes
11438 echo "$as_me: program exited with status $ac_status" >&5
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.
$ac_ext >&5
11442 ( exit $ac_status )
11443 ac_cv_func_fork_works
=no
11445 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11448 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11449 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11452 ac_cv_func_fork_works
=$ac_cv_func_fork
11454 if test "x$ac_cv_func_fork_works" = xcross
; then
11456 *-*-amigaos* |
*-*-msdosdjgpp*)
11457 # Override, as these systems have only a dummy fork() stub
11458 ac_cv_func_fork_works
=no
11461 ac_cv_func_fork_works
=yes
11464 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11465 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11467 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11468 if test "x$ac_cv_func_vfork" = xyes
; then
11469 echo "$as_me:$LINENO: checking for working vfork" >&5
11470 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11471 if test "${ac_cv_func_vfork_works+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 if test "$cross_compiling" = yes; then
11475 ac_cv_func_vfork_works
=cross
11477 cat >conftest.
$ac_ext <<_ACEOF
11480 cat confdefs.h
>>conftest.
$ac_ext
11481 cat >>conftest.
$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 /* Thanks to Paul Eggert for this test. */
11485 #include <stdlib.h>
11486 #include <sys/types.h>
11487 #include <sys/stat.h>
11488 #include <sys/wait.h>
11490 # include <unistd.h>
11493 # include <vfork.h>
11495 /* On some sparc systems, changes by the child to local and incoming
11496 argument registers are propagated back to the parent. The compiler
11497 is told about this with #include <vfork.h>, but some compilers
11498 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11499 static variable whose address is put into a register that is
11500 clobbered by the vfork. */
11503 sparc_address_test (int arg)
11505 sparc_address_test (arg) int arg;
11508 static pid_t child;
11526 pid_t parent = getpid ();
11529 sparc_address_test (0);
11534 /* Here is another test for sparc vfork register problems. This
11535 test uses lots of local variables, at least as many local
11536 variables as main has allocated so far including compiler
11537 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11538 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11539 reuse the register of parent for one of the local variables,
11540 since it will think that parent can't possibly be used any more
11541 in this routine. Assigning to the local variable will thus
11542 munge parent in the parent process. */
11544 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11545 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11546 /* Convince the compiler that p..p7 are live; otherwise, it might
11547 use the same hardware register for all 8 local variables. */
11548 if (p != p1 || p != p2 || p != p3 || p != p4
11549 || p != p5 || p != p6 || p != p7)
11552 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11553 from child file descriptors. If the child closes a descriptor
11554 before it execs or exits, this munges the parent's descriptor
11555 as well. Test for this by closing stdout in the child. */
11556 _exit(close(fileno(stdout)) != 0);
11561 while (wait(&status) != child)
11564 /* Was there some problem with vforking? */
11567 /* Did the child fail? (This shouldn't happen.) */
11570 /* Did the vfork/compiler bug occur? */
11571 || parent != getpid()
11573 /* Did the file descriptor bug occur? */
11574 || fstat(fileno(stdout), &st) != 0
11579 rm -f conftest
$ac_exeext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581 (eval $ac_link) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_cv_func_vfork_works
=yes
11592 echo "$as_me: program exited with status $ac_status" >&5
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.
$ac_ext >&5
11596 ( exit $ac_status )
11597 ac_cv_func_vfork_works
=no
11599 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11603 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11606 if test "x$ac_cv_func_fork_works" = xcross
; then
11607 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11608 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11609 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11612 if test "x$ac_cv_func_vfork_works" = xyes
; then
11614 cat >>confdefs.h
<<\_ACEOF
11615 #define HAVE_WORKING_VFORK 1
11620 cat >>confdefs.h
<<\_ACEOF
11625 if test "x$ac_cv_func_fork_works" = xyes
; then
11627 cat >>confdefs.h
<<\_ACEOF
11628 #define HAVE_WORKING_FORK 1
11633 if test x
$SYS != xwin32
; then
11635 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11636 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11637 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11638 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 ac_check_lib_save_LIBS
=$LIBS
11643 cat >conftest.
$ac_ext <<_ACEOF
11646 cat confdefs.h
>>conftest.
$ac_ext
11647 cat >>conftest.
$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11650 /* Override any gcc2 internal prototype to avoid an error. */
11654 /* We use char because int might match the return type of a gcc2
11655 builtin and then its argument prototype would still apply. */
11665 rm -f conftest.
$ac_objext conftest
$ac_exeext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11667 (eval $ac_link) 2>conftest.er1
11669 grep -v '^ *+' conftest.er1
>conftest.err
11671 cat conftest.err
>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try
='test -z "$ac_c_werror_flag"
11675 || test ! -s conftest.err'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try
='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_lib_sun_getmntent
=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.
$ac_ext >&5
11692 ac_cv_lib_sun_getmntent
=no
11694 rm -f conftest.err conftest.
$ac_objext \
11695 conftest
$ac_exeext conftest.
$ac_ext
11696 LIBS
=$ac_check_lib_save_LIBS
11698 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11699 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11700 if test $ac_cv_lib_sun_getmntent = yes; then
11703 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11704 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11705 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 ac_check_lib_save_LIBS
=$LIBS
11710 cat >conftest.
$ac_ext <<_ACEOF
11713 cat confdefs.h
>>conftest.
$ac_ext
11714 cat >>conftest.
$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11717 /* Override any gcc2 internal prototype to avoid an error. */
11721 /* We use char because int might match the return type of a gcc2
11722 builtin and then its argument prototype would still apply. */
11732 rm -f conftest.
$ac_objext conftest
$ac_exeext
11733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11734 (eval $ac_link) 2>conftest.er1
11736 grep -v '^ *+' conftest.er1
>conftest.err
11738 cat conftest.err
>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
11741 { ac_try
='test -z "$ac_c_werror_flag"
11742 || test ! -s conftest.err'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try
='test -s conftest$ac_exeext'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_cv_lib_seq_getmntent
=yes
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.
$ac_ext >&5
11759 ac_cv_lib_seq_getmntent
=no
11761 rm -f conftest.err conftest.
$ac_objext \
11762 conftest
$ac_exeext conftest.
$ac_ext
11763 LIBS
=$ac_check_lib_save_LIBS
11765 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11766 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11767 if test $ac_cv_lib_seq_getmntent = yes; then
11770 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11771 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11772 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 ac_check_lib_save_LIBS
=$LIBS
11777 cat >conftest.
$ac_ext <<_ACEOF
11780 cat confdefs.h
>>conftest.
$ac_ext
11781 cat >>conftest.
$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11784 /* Override any gcc2 internal prototype to avoid an error. */
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11799 rm -f conftest.
$ac_objext conftest
$ac_exeext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11801 (eval $ac_link) 2>conftest.er1
11803 grep -v '^ *+' conftest.er1
>conftest.err
11805 cat conftest.err
>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try
='test -z "$ac_c_werror_flag"
11809 || test ! -s conftest.err'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try
='test -s conftest$ac_exeext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_cv_lib_gen_getmntent
=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.
$ac_ext >&5
11826 ac_cv_lib_gen_getmntent
=no
11828 rm -f conftest.err conftest.
$ac_objext \
11829 conftest
$ac_exeext conftest.
$ac_ext
11830 LIBS
=$ac_check_lib_save_LIBS
11832 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11833 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11834 if test $ac_cv_lib_gen_getmntent = yes; then
11843 for ac_func
in getmntent
11845 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11846 echo "$as_me:$LINENO: checking for $ac_func" >&5
11847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11848 if eval "test \"\${$as_ac_var+set}\" = set"; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 cat >conftest.
$ac_ext <<_ACEOF
11854 cat confdefs.h
>>conftest.
$ac_ext
11855 cat >>conftest.
$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11859 #define $ac_func innocuous_$ac_func
11861 /* System header to define __stub macros and hopefully few prototypes,
11862 which can conflict with char $ac_func (); below.
11863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11864 <limits.h> exists even on freestanding compilers. */
11867 # include <limits.h>
11869 # include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error. */
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11882 /* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11888 char (*f) () = $ac_func;
11897 return f != $ac_func;
11902 rm -f conftest.
$ac_objext conftest
$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11906 grep -v '^ *+' conftest.er1
>conftest.err
11908 cat conftest.err
>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try
='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try
='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 eval "$as_ac_var=yes"
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.
$ac_ext >&5
11929 eval "$as_ac_var=no"
11931 rm -f conftest.err conftest.
$ac_objext \
11932 conftest
$ac_exeext conftest.
$ac_ext
11934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937 cat >>confdefs.h
<<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11946 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11947 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 rm -f conftest.sym conftest.
file
11951 echo >conftest.
file
11952 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11953 if test "$cross_compiling" = yes; then
11954 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11956 cat >conftest.
$ac_ext <<_ACEOF
11959 cat confdefs.h
>>conftest.
$ac_ext
11960 cat >>conftest.
$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 $ac_includes_default
11967 /* Linux will dereference the symlink and fail.
11968 That is better in the sense that it means we will not
11969 have to compile and use the lstat wrapper. */
11970 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11975 rm -f conftest
$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11988 echo "$as_me: program exited with status $ac_status" >&5
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.
$ac_ext >&5
11992 ( exit $ac_status )
11993 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11995 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11998 # If the `ln -s' command failed, then we probably don't even
11999 # have an lstat function.
12000 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12002 rm -f conftest.sym conftest.
file
12005 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12006 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12008 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12010 cat >>confdefs.h
<<_ACEOF
12011 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12015 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12017 "lstat.$ac_objext" | \
12018 *" lstat.$ac_objext" | \
12019 "lstat.$ac_objext "* | \
12020 *" lstat.$ac_objext "* ) ;;
12021 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12026 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12027 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12028 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 if test "$cross_compiling" = yes; then
12032 ac_cv_func_lstat_empty_string_bug
=yes
12034 cat >conftest.
$ac_ext <<_ACEOF
12037 cat confdefs.h
>>conftest.
$ac_ext
12038 cat >>conftest.
$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12045 exit (lstat ("", &sbuf) ? 1 : 0);
12050 rm -f conftest
$ac_exeext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052 (eval $ac_link) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_func_lstat_empty_string_bug
=yes
12063 echo "$as_me: program exited with status $ac_status" >&5
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.
$ac_ext >&5
12067 ( exit $ac_status )
12068 ac_cv_func_lstat_empty_string_bug
=no
12070 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12073 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12074 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12075 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12077 "lstat.$ac_objext" | \
12078 *" lstat.$ac_objext" | \
12079 "lstat.$ac_objext "* | \
12080 *" lstat.$ac_objext "* ) ;;
12081 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12085 cat >>confdefs.h
<<_ACEOF
12086 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12091 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12092 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12093 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 rm -f conftest.sym conftest.
file
12097 echo >conftest.
file
12098 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12099 if test "$cross_compiling" = yes; then
12100 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12102 cat >conftest.
$ac_ext <<_ACEOF
12105 cat confdefs.h
>>conftest.
$ac_ext
12106 cat >>conftest.
$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12113 /* Linux will dereference the symlink and fail.
12114 That is better in the sense that it means we will not
12115 have to compile and use the lstat wrapper. */
12116 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12121 rm -f conftest
$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12134 echo "$as_me: program exited with status $ac_status" >&5
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.
$ac_ext >&5
12138 ( exit $ac_status )
12139 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12141 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12144 # If the `ln -s' command failed, then we probably don't even
12145 # have an lstat function.
12146 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12148 rm -f conftest.sym conftest.
file
12151 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12152 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12154 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12156 cat >>confdefs.h
<<_ACEOF
12157 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12161 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12163 "lstat.$ac_objext" | \
12164 *" lstat.$ac_objext" | \
12165 "lstat.$ac_objext "* | \
12166 *" lstat.$ac_objext "* ) ;;
12167 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12175 echo "$as_me:$LINENO: checking for working memcmp" >&5
12176 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12177 if test "${ac_cv_func_memcmp_working+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 if test "$cross_compiling" = yes; then
12181 ac_cv_func_memcmp_working
=no
12183 cat >conftest.
$ac_ext <<_ACEOF
12186 cat confdefs.h
>>conftest.
$ac_ext
12187 cat >>conftest.
$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 $ac_includes_default
12194 /* Some versions of memcmp are not 8-bit clean. */
12195 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12196 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12199 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12200 or more and with at least one buffer not starting on a 4-byte boundary.
12201 William Lewis provided this test program. */
12206 for (i = 0; i < 4; i++)
12210 strcpy (a, "--------01111111");
12211 strcpy (b, "--------10000000");
12212 if (memcmp (a, b, 16) >= 0)
12222 rm -f conftest
$ac_exeext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 ac_cv_func_memcmp_working
=yes
12235 echo "$as_me: program exited with status $ac_status" >&5
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.
$ac_ext >&5
12239 ( exit $ac_status )
12240 ac_cv_func_memcmp_working
=no
12242 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12245 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12246 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12247 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12248 "memcmp.$ac_objext" | \
12249 *" memcmp.$ac_objext" | \
12250 "memcmp.$ac_objext "* | \
12251 *" memcmp.$ac_objext "* ) ;;
12252 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12258 for ac_header
in sys
/select.h sys
/socket.h
12260 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12262 echo "$as_me:$LINENO: checking for $ac_header" >&5
12263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12270 # Is the header compilable?
12271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12273 cat >conftest.
$ac_ext <<_ACEOF
12276 cat confdefs.h
>>conftest.
$ac_ext
12277 cat >>conftest.
$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279 $ac_includes_default
12280 #include <$ac_header>
12282 rm -f conftest.
$ac_objext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12284 (eval $ac_compile) 2>conftest.er1
12286 grep -v '^ *+' conftest.er1
>conftest.err
12288 cat conftest.err
>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try
='test -z "$ac_c_werror_flag"
12292 || test ! -s conftest.err'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try
='test -s conftest.$ac_objext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_header_compiler
=yes
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.
$ac_ext >&5
12309 ac_header_compiler
=no
12311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12313 echo "${ECHO_T}$ac_header_compiler" >&6
12315 # Is the header present?
12316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12318 cat >conftest.
$ac_ext <<_ACEOF
12321 cat confdefs.h
>>conftest.
$ac_ext
12322 cat >>conftest.
$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <$ac_header>
12326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12327 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12329 grep -v '^ *+' conftest.er1
>conftest.err
12331 cat conftest.err
>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } >/dev
/null
; then
12334 if test -s conftest.err
; then
12335 ac_cpp_err
=$ac_c_preproc_warn_flag
12336 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12343 if test -z "$ac_cpp_err"; then
12344 ac_header_preproc
=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.
$ac_ext >&5
12349 ac_header_preproc
=no
12351 rm -f conftest.err conftest.
$ac_ext
12352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12353 echo "${ECHO_T}$ac_header_preproc" >&6
12355 # So? What about this header?
12356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12362 ac_header_preproc
=yes
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12379 ## ------------------------------ ##
12380 ## Report this to admin@amule.org ##
12381 ## ------------------------------ ##
12384 sed "s/^/$as_me: WARNING: /" >&2
12387 echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 eval "$as_ac_Header=\$ac_header_preproc"
12394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12399 cat >>confdefs.h
<<_ACEOF
12400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12407 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12408 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12409 if test "${ac_cv_func_select_args+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12413 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12414 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12415 cat >conftest.
$ac_ext <<_ACEOF
12418 cat confdefs.h
>>conftest.
$ac_ext
12419 cat >>conftest.
$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 #if HAVE_SYS_SELECT_H
12423 # include <sys/select.h>
12425 #if HAVE_SYS_SOCKET_H
12426 # include <sys/socket.h>
12432 extern int select ($ac_arg1,
12433 $ac_arg234, $ac_arg234, $ac_arg234,
12439 rm -f conftest.
$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>conftest.er1
12443 grep -v '^ *+' conftest.er1
>conftest.err
12445 cat conftest.err
>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try
='test -z "$ac_c_werror_flag"
12449 || test ! -s conftest.err'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try
='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.
$ac_ext >&5
12467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12471 # Provide a safe default value.
12472 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12475 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12476 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12477 ac_save_IFS
=$IFS; IFS
=','
12478 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12482 cat >>confdefs.h
<<_ACEOF
12483 #define SELECT_TYPE_ARG1 $1
12487 cat >>confdefs.h
<<_ACEOF
12488 #define SELECT_TYPE_ARG234 ($2)
12492 cat >>confdefs.h
<<_ACEOF
12493 #define SELECT_TYPE_ARG5 ($3)
12498 echo "$as_me:$LINENO: checking for function prototypes" >&5
12499 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12500 if test "$ac_cv_prog_cc_stdc" != no
; then
12501 echo "$as_me:$LINENO: result: yes" >&5
12502 echo "${ECHO_T}yes" >&6
12504 cat >>confdefs.h
<<\_ACEOF
12505 #define PROTOTYPES 1
12509 cat >>confdefs.h
<<\_ACEOF
12510 #define __PROTOTYPES 1
12514 echo "$as_me:$LINENO: result: no" >&5
12515 echo "${ECHO_T}no" >&6
12518 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12519 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12520 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 ac_cv_func_setvbuf_reversed
=no
12524 cat >conftest.
$ac_ext <<_ACEOF
12527 cat confdefs.h
>>conftest.
$ac_ext
12528 cat >>conftest.
$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12532 int (setvbuf) (FILE *, int, char *, size_t);
12537 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12542 rm -f conftest.
$ac_objext conftest
$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12546 grep -v '^ *+' conftest.er1
>conftest.err
12548 cat conftest.err
>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try
='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try
='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 cat >conftest.
$ac_ext <<_ACEOF
12567 cat confdefs.h
>>conftest.
$ac_ext
12568 cat >>conftest.
$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12572 int (setvbuf) (FILE *, int, char *, size_t);
12577 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12582 rm -f conftest.
$ac_objext conftest
$ac_exeext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>conftest.er1
12586 grep -v '^ *+' conftest.er1
>conftest.err
12588 cat conftest.err
>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try
='test -z "$ac_c_werror_flag"
12592 || test ! -s conftest.err'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try
='test -s conftest$ac_exeext'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 # It compiles and links either way, so it must not be declared
12605 # with a prototype and most likely this is a K&R C compiler.
12607 if test "$cross_compiling" = yes; then
12608 : # Assume setvbuf is not reversed when cross-compiling.
12610 cat >conftest.
$ac_ext <<_ACEOF
12613 cat confdefs.h
>>conftest.
$ac_ext
12614 cat >>conftest.
$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12620 /* This call has the arguments reversed.
12621 A reversed system may check and see that the address of buf
12622 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12624 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12627 exit (0); /* Non-reversed systems SEGV here. */
12632 rm -f conftest
$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_func_setvbuf_reversed
=yes
12645 echo "$as_me: program exited with status $ac_status" >&5
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.
$ac_ext >&5
12649 ( exit $ac_status )
12652 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12654 ac_cv_func_setvbuf_reversed
=yes
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12660 rm -f conftest.err conftest.
$ac_objext \
12661 conftest
$ac_exeext conftest.
$ac_ext
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.
$ac_ext >&5
12667 rm -f conftest.err conftest.
$ac_objext \
12668 conftest
$ac_exeext conftest.
$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12671 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12672 if test $ac_cv_func_setvbuf_reversed = yes; then
12674 cat >>confdefs.h
<<\_ACEOF
12675 #define SETVBUF_REVERSED 1
12680 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12681 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12682 if test "${ac_cv_type_signal+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 cat >conftest.
$ac_ext <<_ACEOF
12688 cat confdefs.h
>>conftest.
$ac_ext
12689 cat >>conftest.
$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 #include <sys/types.h>
12692 #include <signal.h>
12697 extern "C" void (*signal (int, void (*)(int)))(int);
12699 void (*signal ()) ();
12710 rm -f conftest.
$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12714 grep -v '^ *+' conftest.er1
>conftest.err
12716 cat conftest.err
>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try
='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try
='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_type_signal
=void
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.
$ac_ext >&5
12737 ac_cv_type_signal
=int
12739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12741 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12742 echo "${ECHO_T}$ac_cv_type_signal" >&6
12744 cat >>confdefs.h
<<_ACEOF
12745 #define RETSIGTYPE $ac_cv_type_signal
12749 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12750 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12751 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 if test "$cross_compiling" = yes; then
12755 ac_cv_func_stat_empty_string_bug
=yes
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 $ac_includes_default
12768 exit (stat ("", &sbuf) ? 1 : 0);
12773 rm -f conftest
$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_func_stat_empty_string_bug
=yes
12786 echo "$as_me: program exited with status $ac_status" >&5
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.
$ac_ext >&5
12790 ( exit $ac_status )
12791 ac_cv_func_stat_empty_string_bug
=no
12793 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12796 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12797 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12798 if test $ac_cv_func_stat_empty_string_bug = yes; then
12800 "stat.$ac_objext" | \
12801 *" stat.$ac_objext" | \
12802 "stat.$ac_objext "* | \
12803 *" stat.$ac_objext "* ) ;;
12804 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
12808 cat >>confdefs.h
<<_ACEOF
12809 #define HAVE_STAT_EMPTY_STRING_BUG 1
12815 for ac_func
in strftime
12817 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12818 echo "$as_me:$LINENO: checking for $ac_func" >&5
12819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12820 if eval "test \"\${$as_ac_var+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.
$ac_ext <<_ACEOF
12826 cat confdefs.h
>>conftest.
$ac_ext
12827 cat >>conftest.
$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define $ac_func innocuous_$ac_func
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char $ac_func (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12839 # include <limits.h>
12841 # include <assert.h>
12846 /* Override any gcc2 internal prototype to avoid an error. */
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12854 /* The GNU C library defines this for functions which it implements
12855 to always fail with ENOSYS. Some functions are actually named
12856 something starting with __ and the normal name is an alias. */
12857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12860 char (*f) () = $ac_func;
12869 return f != $ac_func;
12874 rm -f conftest.
$ac_objext conftest
$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12878 grep -v '^ *+' conftest.er1
>conftest.err
12880 cat conftest.err
>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try
='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try
='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 eval "$as_ac_var=yes"
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.
$ac_ext >&5
12901 eval "$as_ac_var=no"
12903 rm -f conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908 if test `eval echo '${'$as_ac_var'}'` = yes; then
12909 cat >>confdefs.h
<<_ACEOF
12910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12914 # strftime is in -lintl on SCO UNIX.
12915 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12916 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12917 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 ac_check_lib_save_LIBS
=$LIBS
12921 LIBS
="-lintl $LIBS"
12922 cat >conftest.
$ac_ext <<_ACEOF
12925 cat confdefs.h
>>conftest.
$ac_ext
12926 cat >>conftest.
$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12929 /* Override any gcc2 internal prototype to avoid an error. */
12933 /* We use char because int might match the return type of a gcc2
12934 builtin and then its argument prototype would still apply. */
12944 rm -f conftest.
$ac_objext conftest
$ac_exeext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12946 (eval $ac_link) 2>conftest.er1
12948 grep -v '^ *+' conftest.er1
>conftest.err
12950 cat conftest.err
>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try
='test -z "$ac_c_werror_flag"
12954 || test ! -s conftest.err'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try
='test -s conftest$ac_exeext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_lib_intl_strftime
=yes
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.
$ac_ext >&5
12971 ac_cv_lib_intl_strftime
=no
12973 rm -f conftest.err conftest.
$ac_objext \
12974 conftest
$ac_exeext conftest.
$ac_ext
12975 LIBS
=$ac_check_lib_save_LIBS
12977 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12978 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12979 if test $ac_cv_lib_intl_strftime = yes; then
12980 cat >>confdefs.h
<<\_ACEOF
12981 #define HAVE_STRFTIME 1
12984 LIBS
="-lintl $LIBS"
12990 echo "$as_me:$LINENO: checking for working strtod" >&5
12991 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12992 if test "${ac_cv_func_strtod+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 if test "$cross_compiling" = yes; then
12996 ac_cv_func_strtod
=no
12998 cat >conftest.
$ac_ext <<_ACEOF
13001 cat confdefs.h
>>conftest.
$ac_ext
13002 cat >>conftest.
$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13010 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13011 char *string = " +69";
13014 value = strtod (string, &term);
13015 if (value != 69 || term != (string + 4))
13020 /* Under Solaris 2.4, strtod returns the wrong value for the
13021 terminating character under some conditions. */
13022 char *string = "NaN";
13024 strtod (string, &term);
13025 if (term != string && *(term - 1) == 0)
13032 rm -f conftest
$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034 (eval $ac_link) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_func_strtod
=yes
13045 echo "$as_me: program exited with status $ac_status" >&5
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.
$ac_ext >&5
13049 ( exit $ac_status )
13050 ac_cv_func_strtod
=no
13052 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13056 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13057 if test $ac_cv_func_strtod = no
; then
13059 "strtod.$ac_objext" | \
13060 *" strtod.$ac_objext" | \
13061 "strtod.$ac_objext "* | \
13062 *" strtod.$ac_objext "* ) ;;
13063 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
13066 echo "$as_me:$LINENO: checking for pow" >&5
13067 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13068 if test "${ac_cv_func_pow+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 cat >conftest.
$ac_ext <<_ACEOF
13074 cat confdefs.h
>>conftest.
$ac_ext
13075 cat >>conftest.
$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13079 #define pow innocuous_pow
13081 /* System header to define __stub macros and hopefully few prototypes,
13082 which can conflict with char pow (); below.
13083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13084 <limits.h> exists even on freestanding compilers. */
13087 # include <limits.h>
13089 # include <assert.h>
13094 /* Override any gcc2 internal prototype to avoid an error. */
13099 /* We use char because int might match the return type of a gcc2
13100 builtin and then its argument prototype would still apply. */
13102 /* The GNU C library defines this for functions which it implements
13103 to always fail with ENOSYS. Some functions are actually named
13104 something starting with __ and the normal name is an alias. */
13105 #if defined (__stub_pow) || defined (__stub___pow)
13108 char (*f) () = pow;
13122 rm -f conftest.
$ac_objext conftest
$ac_exeext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13124 (eval $ac_link) 2>conftest.er1
13126 grep -v '^ *+' conftest.er1
>conftest.err
13128 cat conftest.err
>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try
='test -z "$ac_c_werror_flag"
13132 || test ! -s conftest.err'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try
='test -s conftest$ac_exeext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.
$ac_ext >&5
13151 rm -f conftest.err conftest.
$ac_objext \
13152 conftest
$ac_exeext conftest.
$ac_ext
13154 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13155 echo "${ECHO_T}$ac_cv_func_pow" >&6
13157 if test $ac_cv_func_pow = no
; then
13158 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13159 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13160 if test "${ac_cv_lib_m_pow+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 ac_check_lib_save_LIBS
=$LIBS
13165 cat >conftest.
$ac_ext <<_ACEOF
13168 cat confdefs.h
>>conftest.
$ac_ext
13169 cat >>conftest.
$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13172 /* Override any gcc2 internal prototype to avoid an error. */
13176 /* We use char because int might match the return type of a gcc2
13177 builtin and then its argument prototype would still apply. */
13187 rm -f conftest.
$ac_objext conftest
$ac_exeext
13188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13189 (eval $ac_link) 2>conftest.er1
13191 grep -v '^ *+' conftest.er1
>conftest.err
13193 cat conftest.err
>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try
='test -z "$ac_c_werror_flag"
13197 || test ! -s conftest.err'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try
='test -s conftest$ac_exeext'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_cv_lib_m_pow
=yes
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.
$ac_ext >&5
13216 rm -f conftest.err conftest.
$ac_objext \
13217 conftest
$ac_exeext conftest.
$ac_ext
13218 LIBS
=$ac_check_lib_save_LIBS
13220 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13221 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13222 if test $ac_cv_lib_m_pow = yes; then
13225 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13226 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13234 for ac_func
in vprintf
13236 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13237 echo "$as_me:$LINENO: checking for $ac_func" >&5
13238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13239 if eval "test \"\${$as_ac_var+set}\" = set"; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 cat >conftest.
$ac_ext <<_ACEOF
13245 cat confdefs.h
>>conftest.
$ac_ext
13246 cat >>conftest.
$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13250 #define $ac_func innocuous_$ac_func
13252 /* System header to define __stub macros and hopefully few prototypes,
13253 which can conflict with char $ac_func (); below.
13254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13255 <limits.h> exists even on freestanding compilers. */
13258 # include <limits.h>
13260 # include <assert.h>
13265 /* Override any gcc2 internal prototype to avoid an error. */
13270 /* We use char because int might match the return type of a gcc2
13271 builtin and then its argument prototype would still apply. */
13273 /* The GNU C library defines this for functions which it implements
13274 to always fail with ENOSYS. Some functions are actually named
13275 something starting with __ and the normal name is an alias. */
13276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13279 char (*f) () = $ac_func;
13288 return f != $ac_func;
13293 rm -f conftest.
$ac_objext conftest
$ac_exeext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295 (eval $ac_link) 2>conftest.er1
13297 grep -v '^ *+' conftest.er1
>conftest.err
13299 cat conftest.err
>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try
='test -z "$ac_c_werror_flag"
13303 || test ! -s conftest.err'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try
='test -s conftest$ac_exeext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 eval "$as_ac_var=yes"
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.
$ac_ext >&5
13320 eval "$as_ac_var=no"
13322 rm -f conftest.err conftest.
$ac_objext \
13323 conftest
$ac_exeext conftest.
$ac_ext
13325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13327 if test `eval echo '${'$as_ac_var'}'` = yes; then
13328 cat >>confdefs.h
<<_ACEOF
13329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13332 echo "$as_me:$LINENO: checking for _doprnt" >&5
13333 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13334 if test "${ac_cv_func__doprnt+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 cat >conftest.
$ac_ext <<_ACEOF
13340 cat confdefs.h
>>conftest.
$ac_ext
13341 cat >>conftest.
$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13345 #define _doprnt innocuous__doprnt
13347 /* System header to define __stub macros and hopefully few prototypes,
13348 which can conflict with char _doprnt (); below.
13349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13350 <limits.h> exists even on freestanding compilers. */
13353 # include <limits.h>
13355 # include <assert.h>
13360 /* Override any gcc2 internal prototype to avoid an error. */
13365 /* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13368 /* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13374 char (*f) () = _doprnt;
13383 return f != _doprnt;
13388 rm -f conftest.
$ac_objext conftest
$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>conftest.er1
13392 grep -v '^ *+' conftest.er1
>conftest.err
13394 cat conftest.err
>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try
='test -z "$ac_c_werror_flag"
13398 || test ! -s conftest.err'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try
='test -s conftest$ac_exeext'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 ac_cv_func__doprnt
=yes
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.
$ac_ext >&5
13415 ac_cv_func__doprnt
=no
13417 rm -f conftest.err conftest.
$ac_objext \
13418 conftest
$ac_exeext conftest.
$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13421 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13422 if test $ac_cv_func__doprnt = yes; then
13424 cat >>confdefs.h
<<\_ACEOF
13425 #define HAVE_DOPRNT 1
13434 if test $cross_compiling = yes -a $gnumalloc = yes; then
13436 { echo "$as_me:$LINENO: WARNING:
13437 configure cannot check whether malloc() and realloc() are GNU libc
13438 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13439 run configure with the --without-gnu-malloc switch." >&5
13440 echo "$as_me: WARNING:
13441 configure cannot check whether malloc() and realloc() are GNU libc
13442 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13443 run configure with the --without-gnu-malloc switch." >&2;}
13444 _mule_warning_8
=yes
13445 _mule_has_warnings
=yes
13447 ac_cv_func_malloc_0_nonnull
=yes
13448 ac_cv_func_realloc_0_nonnull
=yes
13453 for ac_header
in stdlib.h
13455 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo "$as_me:$LINENO: checking for $ac_header" >&5
13458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465 # Is the header compilable?
13466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13468 cat >conftest.
$ac_ext <<_ACEOF
13471 cat confdefs.h
>>conftest.
$ac_ext
13472 cat >>conftest.
$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 $ac_includes_default
13475 #include <$ac_header>
13477 rm -f conftest.
$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>conftest.er1
13481 grep -v '^ *+' conftest.er1
>conftest.err
13483 cat conftest.err
>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try
='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try
='test -s conftest.$ac_objext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_header_compiler
=yes
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.
$ac_ext >&5
13504 ac_header_compiler
=no
13506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13508 echo "${ECHO_T}$ac_header_compiler" >&6
13510 # Is the header present?
13511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13513 cat >conftest.
$ac_ext <<_ACEOF
13516 cat confdefs.h
>>conftest.
$ac_ext
13517 cat >>conftest.
$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <$ac_header>
13521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1
>conftest.err
13526 cat conftest.err
>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } >/dev
/null
; then
13529 if test -s conftest.err
; then
13530 ac_cpp_err
=$ac_c_preproc_warn_flag
13531 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13538 if test -z "$ac_cpp_err"; then
13539 ac_header_preproc
=yes
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.
$ac_ext >&5
13544 ac_header_preproc
=no
13546 rm -f conftest.err conftest.
$ac_ext
13547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13548 echo "${ECHO_T}$ac_header_preproc" >&6
13550 # So? What about this header?
13551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13557 ac_header_preproc
=yes
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13574 ## ------------------------------ ##
13575 ## Report this to admin@amule.org ##
13576 ## ------------------------------ ##
13579 sed "s/^/$as_me: WARNING: /" >&2
13582 echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 eval "$as_ac_Header=\$ac_header_preproc"
13589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13594 cat >>confdefs.h
<<_ACEOF
13595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13602 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13603 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13604 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 if test "$cross_compiling" = yes; then
13608 ac_cv_func_malloc_0_nonnull
=no
13610 cat >conftest.
$ac_ext <<_ACEOF
13613 cat confdefs.h
>>conftest.
$ac_ext
13614 cat >>conftest.
$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #if STDC_HEADERS || HAVE_STDLIB_H
13617 # include <stdlib.h>
13625 exit (malloc (0) ? 0 : 1);
13630 rm -f conftest
$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_func_malloc_0_nonnull
=yes
13643 echo "$as_me: program exited with status $ac_status" >&5
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.
$ac_ext >&5
13647 ( exit $ac_status )
13648 ac_cv_func_malloc_0_nonnull
=no
13650 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13653 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13654 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13655 if test $ac_cv_func_malloc_0_nonnull = yes; then
13657 cat >>confdefs.h
<<\_ACEOF
13658 #define HAVE_MALLOC 1
13662 cat >>confdefs.h
<<\_ACEOF
13663 #define HAVE_MALLOC 0
13667 "malloc.$ac_objext" | \
13668 *" malloc.$ac_objext" | \
13669 "malloc.$ac_objext "* | \
13670 *" malloc.$ac_objext "* ) ;;
13671 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
13675 cat >>confdefs.h
<<\_ACEOF
13676 #define malloc rpl_malloc
13684 for ac_header
in stdlib.h
13686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688 echo "$as_me:$LINENO: checking for $ac_header" >&5
13689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13696 # Is the header compilable?
13697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13699 cat >conftest.
$ac_ext <<_ACEOF
13702 cat confdefs.h
>>conftest.
$ac_ext
13703 cat >>conftest.
$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 $ac_includes_default
13706 #include <$ac_header>
13708 rm -f conftest.
$ac_objext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
13712 grep -v '^ *+' conftest.er1
>conftest.err
13714 cat conftest.err
>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try
='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try
='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler
=yes
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.
$ac_ext >&5
13735 ac_header_compiler
=no
13737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739 echo "${ECHO_T}$ac_header_compiler" >&6
13741 # Is the header present?
13742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13744 cat >conftest.
$ac_ext <<_ACEOF
13747 cat confdefs.h
>>conftest.
$ac_ext
13748 cat >>conftest.
$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 #include <$ac_header>
13752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13755 grep -v '^ *+' conftest.er1
>conftest.err
13757 cat conftest.err
>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev
/null
; then
13760 if test -s conftest.err
; then
13761 ac_cpp_err
=$ac_c_preproc_warn_flag
13762 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13769 if test -z "$ac_cpp_err"; then
13770 ac_header_preproc
=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.
$ac_ext >&5
13775 ac_header_preproc
=no
13777 rm -f conftest.err conftest.
$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779 echo "${ECHO_T}$ac_header_preproc" >&6
13781 # So? What about this header?
13782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13788 ac_header_preproc
=yes
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13805 ## ------------------------------ ##
13806 ## Report this to admin@amule.org ##
13807 ## ------------------------------ ##
13810 sed "s/^/$as_me: WARNING: /" >&2
13813 echo "$as_me:$LINENO: checking for $ac_header" >&5
13814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 eval "$as_ac_Header=\$ac_header_preproc"
13820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825 cat >>confdefs.h
<<_ACEOF
13826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13833 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13834 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13835 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 if test "$cross_compiling" = yes; then
13839 ac_cv_func_realloc_0_nonnull
=no
13841 cat >conftest.
$ac_ext <<_ACEOF
13844 cat confdefs.h
>>conftest.
$ac_ext
13845 cat >>conftest.
$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 #if STDC_HEADERS || HAVE_STDLIB_H
13848 # include <stdlib.h>
13856 exit (realloc (0, 0) ? 0 : 1);
13861 rm -f conftest
$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 (eval $ac_link) 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_func_realloc_0_nonnull
=yes
13874 echo "$as_me: program exited with status $ac_status" >&5
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.
$ac_ext >&5
13878 ( exit $ac_status )
13879 ac_cv_func_realloc_0_nonnull
=no
13881 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13884 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13885 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13886 if test $ac_cv_func_realloc_0_nonnull = yes; then
13888 cat >>confdefs.h
<<\_ACEOF
13889 #define HAVE_REALLOC 1
13893 cat >>confdefs.h
<<\_ACEOF
13894 #define HAVE_REALLOC 0
13898 "realloc.$ac_objext" | \
13899 *" realloc.$ac_objext" | \
13900 "realloc.$ac_objext "* | \
13901 *" realloc.$ac_objext "* ) ;;
13902 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
13906 cat >>confdefs.h
<<\_ACEOF
13907 #define realloc rpl_realloc
13947 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13949 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13950 echo "$as_me:$LINENO: checking for $ac_func" >&5
13951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13952 if eval "test \"\${$as_ac_var+set}\" = set"; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 cat >conftest.
$ac_ext <<_ACEOF
13958 cat confdefs.h
>>conftest.
$ac_ext
13959 cat >>conftest.
$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13963 #define $ac_func innocuous_$ac_func
13965 /* System header to define __stub macros and hopefully few prototypes,
13966 which can conflict with char $ac_func (); below.
13967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13968 <limits.h> exists even on freestanding compilers. */
13971 # include <limits.h>
13973 # include <assert.h>
13978 /* Override any gcc2 internal prototype to avoid an error. */
13983 /* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13986 /* The GNU C library defines this for functions which it implements
13987 to always fail with ENOSYS. Some functions are actually named
13988 something starting with __ and the normal name is an alias. */
13989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13992 char (*f) () = $ac_func;
14001 return f != $ac_func;
14006 rm -f conftest.
$ac_objext conftest
$ac_exeext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008 (eval $ac_link) 2>conftest.er1
14010 grep -v '^ *+' conftest.er1
>conftest.err
14012 cat conftest.err
>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try
='test -z "$ac_c_werror_flag"
14016 || test ! -s conftest.err'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try
='test -s conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 eval "$as_ac_var=yes"
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.
$ac_ext >&5
14033 eval "$as_ac_var=no"
14035 rm -f conftest.err conftest.
$ac_objext \
14036 conftest
$ac_exeext conftest.
$ac_ext
14038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14040 if test `eval echo '${'$as_ac_var'}'` = yes; then
14041 cat >>confdefs.h
<<_ACEOF
14042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14048 #-------------------------------------------------------------------------------
14049 # End of autoscan stuff
14050 #-------------------------------------------------------------------------------
14056 for ac_func
in mkdir getrlimit setrlimit getopt_long
14058 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14059 echo "$as_me:$LINENO: checking for $ac_func" >&5
14060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14061 if eval "test \"\${$as_ac_var+set}\" = set"; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 cat >conftest.
$ac_ext <<_ACEOF
14067 cat confdefs.h
>>conftest.
$ac_ext
14068 cat >>conftest.
$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14072 #define $ac_func innocuous_$ac_func
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char $ac_func (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
14080 # include <limits.h>
14082 # include <assert.h>
14087 /* Override any gcc2 internal prototype to avoid an error. */
14092 /* We use char because int might match the return type of a gcc2
14093 builtin and then its argument prototype would still apply. */
14095 /* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
14098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14101 char (*f) () = $ac_func;
14110 return f != $ac_func;
14115 rm -f conftest.
$ac_objext conftest
$ac_exeext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14117 (eval $ac_link) 2>conftest.er1
14119 grep -v '^ *+' conftest.er1
>conftest.err
14121 cat conftest.err
>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try
='test -z "$ac_c_werror_flag"
14125 || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try
='test -s conftest$ac_exeext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 eval "$as_ac_var=yes"
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.
$ac_ext >&5
14142 eval "$as_ac_var=no"
14144 rm -f conftest.err conftest.
$ac_objext \
14145 conftest
$ac_exeext conftest.
$ac_ext
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14149 if test `eval echo '${'$as_ac_var'}'` = yes; then
14150 cat >>confdefs.h
<<_ACEOF
14151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14158 # Check whether --enable-mmap or --disable-mmap was given.
14159 if test "${enable_mmap+set}" = set; then
14160 enableval
="$enable_mmap"
14164 if test ${enable_mmap:-no} = yes; then
14167 for ac_header
in sys
/mman.h
14169 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14171 echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14179 # Is the header compilable?
14180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14182 cat >conftest.
$ac_ext <<_ACEOF
14185 cat confdefs.h
>>conftest.
$ac_ext
14186 cat >>conftest.
$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 $ac_includes_default
14189 #include <$ac_header>
14191 rm -f conftest.
$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193 (eval $ac_compile) 2>conftest.er1
14195 grep -v '^ *+' conftest.er1
>conftest.err
14197 cat conftest.err
>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try
='test -z "$ac_c_werror_flag"
14201 || test ! -s conftest.err'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try
='test -s conftest.$ac_objext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_header_compiler
=yes
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.
$ac_ext >&5
14218 ac_header_compiler
=no
14220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14222 echo "${ECHO_T}$ac_header_compiler" >&6
14224 # Is the header present?
14225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14227 cat >conftest.
$ac_ext <<_ACEOF
14230 cat confdefs.h
>>conftest.
$ac_ext
14231 cat >>conftest.
$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <$ac_header>
14235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14236 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14238 grep -v '^ *+' conftest.er1
>conftest.err
14240 cat conftest.err
>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } >/dev
/null
; then
14243 if test -s conftest.err
; then
14244 ac_cpp_err
=$ac_c_preproc_warn_flag
14245 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14252 if test -z "$ac_cpp_err"; then
14253 ac_header_preproc
=yes
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.
$ac_ext >&5
14258 ac_header_preproc
=no
14260 rm -f conftest.err conftest.
$ac_ext
14261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14262 echo "${ECHO_T}$ac_header_preproc" >&6
14264 # So? What about this header?
14265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14271 ac_header_preproc
=yes
14274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14288 ## ------------------------------ ##
14289 ## Report this to admin@amule.org ##
14290 ## ------------------------------ ##
14293 sed "s/^/$as_me: WARNING: /" >&2
14296 echo "$as_me:$LINENO: checking for $ac_header" >&5
14297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 eval "$as_ac_Header=\$ac_header_preproc"
14303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14308 cat >>confdefs.h
<<_ACEOF
14309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14318 for ac_header
in stdlib.h unistd.h
14320 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14322 echo "$as_me:$LINENO: checking for $ac_header" >&5
14323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14330 # Is the header compilable?
14331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14333 cat >conftest.
$ac_ext <<_ACEOF
14336 cat confdefs.h
>>conftest.
$ac_ext
14337 cat >>conftest.
$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 $ac_includes_default
14340 #include <$ac_header>
14342 rm -f conftest.
$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>conftest.er1
14346 grep -v '^ *+' conftest.er1
>conftest.err
14348 cat conftest.err
>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try
='test -z "$ac_c_werror_flag"
14352 || test ! -s conftest.err'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try
='test -s conftest.$ac_objext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_header_compiler
=yes
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.
$ac_ext >&5
14369 ac_header_compiler
=no
14371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14373 echo "${ECHO_T}$ac_header_compiler" >&6
14375 # Is the header present?
14376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14378 cat >conftest.
$ac_ext <<_ACEOF
14381 cat confdefs.h
>>conftest.
$ac_ext
14382 cat >>conftest.
$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 #include <$ac_header>
14386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14387 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14389 grep -v '^ *+' conftest.er1
>conftest.err
14391 cat conftest.err
>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } >/dev
/null
; then
14394 if test -s conftest.err
; then
14395 ac_cpp_err
=$ac_c_preproc_warn_flag
14396 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14403 if test -z "$ac_cpp_err"; then
14404 ac_header_preproc
=yes
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14409 ac_header_preproc
=no
14411 rm -f conftest.err conftest.
$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14413 echo "${ECHO_T}$ac_header_preproc" >&6
14415 # So? What about this header?
14416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14422 ac_header_preproc
=yes
14425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14439 ## ------------------------------ ##
14440 ## Report this to admin@amule.org ##
14441 ## ------------------------------ ##
14444 sed "s/^/$as_me: WARNING: /" >&2
14447 echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 eval "$as_ac_Header=\$ac_header_preproc"
14454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14459 cat >>confdefs.h
<<_ACEOF
14460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14468 for ac_func
in getpagesize
14470 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14471 echo "$as_me:$LINENO: checking for $ac_func" >&5
14472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14473 if eval "test \"\${$as_ac_var+set}\" = set"; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 cat >conftest.
$ac_ext <<_ACEOF
14479 cat confdefs.h
>>conftest.
$ac_ext
14480 cat >>conftest.
$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14484 #define $ac_func innocuous_$ac_func
14486 /* System header to define __stub macros and hopefully few prototypes,
14487 which can conflict with char $ac_func (); below.
14488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14489 <limits.h> exists even on freestanding compilers. */
14492 # include <limits.h>
14494 # include <assert.h>
14499 /* Override any gcc2 internal prototype to avoid an error. */
14504 /* We use char because int might match the return type of a gcc2
14505 builtin and then its argument prototype would still apply. */
14507 /* The GNU C library defines this for functions which it implements
14508 to always fail with ENOSYS. Some functions are actually named
14509 something starting with __ and the normal name is an alias. */
14510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14513 char (*f) () = $ac_func;
14522 return f != $ac_func;
14527 rm -f conftest.
$ac_objext conftest
$ac_exeext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14529 (eval $ac_link) 2>conftest.er1
14531 grep -v '^ *+' conftest.er1
>conftest.err
14533 cat conftest.err
>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try
='test -z "$ac_c_werror_flag"
14537 || test ! -s conftest.err'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try
='test -s conftest$ac_exeext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 eval "$as_ac_var=yes"
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.
$ac_ext >&5
14554 eval "$as_ac_var=no"
14556 rm -f conftest.err conftest.
$ac_objext \
14557 conftest
$ac_exeext conftest.
$ac_ext
14559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14561 if test `eval echo '${'$as_ac_var'}'` = yes; then
14562 cat >>confdefs.h
<<_ACEOF
14563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14569 echo "$as_me:$LINENO: checking for working mmap" >&5
14570 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14571 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 if test "$cross_compiling" = yes; then
14575 ac_cv_func_mmap_fixed_mapped
=no
14577 cat >conftest.
$ac_ext <<_ACEOF
14580 cat confdefs.h
>>conftest.
$ac_ext
14581 cat >>conftest.
$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 $ac_includes_default
14584 /* malloc might have been renamed as rpl_malloc. */
14587 /* Thanks to Mike Haertel and Jim Avera for this test.
14588 Here is a matrix of mmap possibilities:
14589 mmap private not fixed
14590 mmap private fixed at somewhere currently unmapped
14591 mmap private fixed at somewhere already mapped
14592 mmap shared not fixed
14593 mmap shared fixed at somewhere currently unmapped
14594 mmap shared fixed at somewhere already mapped
14595 For private mappings, we should verify that changes cannot be read()
14596 back from the file, nor mmap's back from the file at a different
14597 address. (There have been systems where private was not correctly
14598 implemented like the infamous i386 svr4.0, and systems where the
14599 VM page cache was not coherent with the file system buffer cache
14600 like early versions of FreeBSD and possibly contemporary NetBSD.)
14601 For shared mappings, we should conversely verify that changes get
14602 propagated back to all the places they're supposed to be.
14604 Grep wants private fixed already mapped.
14605 The main things grep needs to know about mmap are:
14606 * does it exist and is it safe to write into the mmap'd area
14607 * how to use it (BSD variants) */
14610 #include <sys/mman.h>
14612 #if !STDC_HEADERS && !HAVE_STDLIB_H
14616 /* This mess was copied from the GNU getpagesize.h. */
14617 #if !HAVE_GETPAGESIZE
14618 /* Assume that all systems that can run configure have sys/param.h. */
14619 # if !HAVE_SYS_PARAM_H
14620 # define HAVE_SYS_PARAM_H 1
14623 # ifdef _SC_PAGESIZE
14624 # define getpagesize() sysconf(_SC_PAGESIZE)
14625 # else /* no _SC_PAGESIZE */
14626 # if HAVE_SYS_PARAM_H
14627 # include <sys/param.h>
14628 # ifdef EXEC_PAGESIZE
14629 # define getpagesize() EXEC_PAGESIZE
14630 # else /* no EXEC_PAGESIZE */
14632 # define getpagesize() NBPG * CLSIZE
14635 # endif /* no CLSIZE */
14636 # else /* no NBPG */
14638 # define getpagesize() NBPC
14639 # else /* no NBPC */
14641 # define getpagesize() PAGESIZE
14642 # endif /* PAGESIZE */
14643 # endif /* no NBPC */
14644 # endif /* no NBPG */
14645 # endif /* no EXEC_PAGESIZE */
14646 # else /* no HAVE_SYS_PARAM_H */
14647 # define getpagesize() 8192 /* punt totally */
14648 # endif /* no HAVE_SYS_PARAM_H */
14649 # endif /* no _SC_PAGESIZE */
14651 #endif /* no HAVE_GETPAGESIZE */
14656 char *data, *data2, *data3;
14660 pagesize = getpagesize ();
14662 /* First, make a file with some known garbage in it. */
14663 data = (char *) malloc (pagesize);
14666 for (i = 0; i < pagesize; ++i)
14667 *(data + i) = rand ();
14669 fd = creat ("conftest.mmap", 0600);
14672 if (write (fd, data, pagesize) != pagesize)
14676 /* Next, try to mmap the file at a fixed address which already has
14677 something else allocated at it. If we can, also make sure that
14678 we see the same garbage. */
14679 fd = open ("conftest.mmap", O_RDWR);
14682 data2 = (char *) malloc (2 * pagesize);
14685 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14686 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14689 for (i = 0; i < pagesize; ++i)
14690 if (*(data + i) != *(data2 + i))
14693 /* Finally, make sure that changes to the mapped area do not
14694 percolate back to the file as seen by read(). (This is a bug on
14695 some variants of i386 svr4.0.) */
14696 for (i = 0; i < pagesize; ++i)
14697 *(data2 + i) = *(data2 + i) + 1;
14698 data3 = (char *) malloc (pagesize);
14701 if (read (fd, data3, pagesize) != pagesize)
14703 for (i = 0; i < pagesize; ++i)
14704 if (*(data + i) != *(data3 + i))
14710 rm -f conftest
$ac_exeext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14712 (eval $ac_link) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_cv_func_mmap_fixed_mapped
=yes
14723 echo "$as_me: program exited with status $ac_status" >&5
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.
$ac_ext >&5
14727 ( exit $ac_status )
14728 ac_cv_func_mmap_fixed_mapped
=no
14730 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14733 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14734 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14735 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14737 cat >>confdefs.h
<<\_ACEOF
14738 #define HAVE_MMAP 1
14742 rm -f conftest.mmap
14745 for ac_func
in munmap
14747 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14748 echo "$as_me:$LINENO: checking for $ac_func" >&5
14749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14750 if eval "test \"\${$as_ac_var+set}\" = set"; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 cat >conftest.
$ac_ext <<_ACEOF
14756 cat confdefs.h
>>conftest.
$ac_ext
14757 cat >>conftest.
$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14761 #define $ac_func innocuous_$ac_func
14763 /* System header to define __stub macros and hopefully few prototypes,
14764 which can conflict with char $ac_func (); below.
14765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14766 <limits.h> exists even on freestanding compilers. */
14769 # include <limits.h>
14771 # include <assert.h>
14776 /* Override any gcc2 internal prototype to avoid an error. */
14781 /* We use char because int might match the return type of a gcc2
14782 builtin and then its argument prototype would still apply. */
14784 /* The GNU C library defines this for functions which it implements
14785 to always fail with ENOSYS. Some functions are actually named
14786 something starting with __ and the normal name is an alias. */
14787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14790 char (*f) () = $ac_func;
14799 return f != $ac_func;
14804 rm -f conftest.
$ac_objext conftest
$ac_exeext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>conftest.er1
14808 grep -v '^ *+' conftest.er1
>conftest.err
14810 cat conftest.err
>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try
='test -z "$ac_c_werror_flag"
14814 || test ! -s conftest.err'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try
='test -s conftest$ac_exeext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 eval "$as_ac_var=yes"
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.
$ac_ext >&5
14831 eval "$as_ac_var=no"
14833 rm -f conftest.err conftest.
$ac_objext \
14834 conftest
$ac_exeext conftest.
$ac_ext
14836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14838 if test `eval echo '${'$as_ac_var'}'` = yes; then
14839 cat >>confdefs.h
<<_ACEOF
14840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14849 # fake the result of the test for munmap() for the gettext macros
14850 ac_cv_func_munmap
=no
14856 mule_backup_CPPFLAGS
="$CPPFLAGS"
14857 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14858 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14859 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14860 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 cat >conftest.
$ac_ext <<_ACEOF
14866 cat confdefs.h
>>conftest.
$ac_ext
14867 cat >>conftest.
$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 $ac_includes_default
14874 char *p = (char *) strerror_r;
14881 rm -f conftest.
$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14885 grep -v '^ *+' conftest.er1
>conftest.err
14887 cat conftest.err
>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try
='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try
='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_have_decl_strerror_r
=yes
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.
$ac_ext >&5
14908 ac_cv_have_decl_strerror_r
=no
14910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14912 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14913 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14914 if test $ac_cv_have_decl_strerror_r = yes; then
14916 cat >>confdefs.h
<<_ACEOF
14917 #define HAVE_DECL_STRERROR_R 1
14922 cat >>confdefs.h
<<_ACEOF
14923 #define HAVE_DECL_STRERROR_R 0
14931 for ac_func
in strerror_r
14933 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14934 echo "$as_me:$LINENO: checking for $ac_func" >&5
14935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14936 if eval "test \"\${$as_ac_var+set}\" = set"; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 cat >conftest.
$ac_ext <<_ACEOF
14942 cat confdefs.h
>>conftest.
$ac_ext
14943 cat >>conftest.
$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14947 #define $ac_func innocuous_$ac_func
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func (); below.
14951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952 <limits.h> exists even on freestanding compilers. */
14955 # include <limits.h>
14957 # include <assert.h>
14962 /* Override any gcc2 internal prototype to avoid an error. */
14967 /* We use char because int might match the return type of a gcc2
14968 builtin and then its argument prototype would still apply. */
14970 /* The GNU C library defines this for functions which it implements
14971 to always fail with ENOSYS. Some functions are actually named
14972 something starting with __ and the normal name is an alias. */
14973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14976 char (*f) () = $ac_func;
14985 return f != $ac_func;
14990 rm -f conftest.
$ac_objext conftest
$ac_exeext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14992 (eval $ac_link) 2>conftest.er1
14994 grep -v '^ *+' conftest.er1
>conftest.err
14996 cat conftest.err
>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try
='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try
='test -s conftest$ac_exeext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 eval "$as_ac_var=yes"
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.
$ac_ext >&5
15017 eval "$as_ac_var=no"
15019 rm -f conftest.err conftest.
$ac_objext \
15020 conftest
$ac_exeext conftest.
$ac_ext
15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15024 if test `eval echo '${'$as_ac_var'}'` = yes; then
15025 cat >>confdefs.h
<<_ACEOF
15026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15032 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15033 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
15034 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_cv_func_strerror_r_char_p
=no
15039 if test $ac_cv_have_decl_strerror_r = yes; then
15040 cat >conftest.
$ac_ext <<_ACEOF
15043 cat confdefs.h
>>conftest.
$ac_ext
15044 cat >>conftest.
$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15052 char x = *strerror_r (0, buf, sizeof buf);
15053 char *p = strerror_r (0, buf, sizeof buf);
15059 rm -f conftest.
$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15063 grep -v '^ *+' conftest.er1
>conftest.err
15065 cat conftest.err
>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try
='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try
='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_func_strerror_r_char_p
=yes
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.
$ac_ext >&5
15087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15089 # strerror_r is not declared. Choose between
15090 # systems that have relatively inaccessible declarations for the
15091 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15092 # former has a strerror_r that returns char*, while the latter
15093 # has a strerror_r that returns `int'.
15094 # This test should segfault on the DEC system.
15095 if test "$cross_compiling" = yes; then
15098 cat >conftest.
$ac_ext <<_ACEOF
15101 cat confdefs.h
>>conftest.
$ac_ext
15102 cat >>conftest.
$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15105 extern char *strerror_r ();
15110 char x = *strerror_r (0, buf, sizeof buf);
15111 exit (!isalpha (x));
15116 rm -f conftest
$ac_exeext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15118 (eval $ac_link) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_func_strerror_r_char_p
=yes
15129 echo "$as_me: program exited with status $ac_status" >&5
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.
$ac_ext >&5
15134 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15139 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15140 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15141 if test $ac_cv_func_strerror_r_char_p = yes; then
15143 cat >>confdefs.h
<<\_ACEOF
15144 #define STRERROR_R_CHAR_P 1
15149 CPPFLAGS
="$mule_backup_CPPFLAGS"
15151 # Look for a way to preallocate disk space for files.
15153 echo "$as_me:$LINENO: checking for fallocate" >&5
15154 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15155 cat >conftest.
$ac_ext <<_ACEOF
15159 cat confdefs.h
>>conftest.
$ac_ext
15160 cat >>conftest.
$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15163 #include <linux/falloc.h>
15169 fallocate(0, 0, 0, 0);
15176 rm -f conftest.
$ac_objext conftest
$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1
>conftest.err
15182 cat conftest.err
>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try
='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try
='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15201 cat >>confdefs.h
<<\_ACEOF
15202 #define HAVE_FALLOCATE 1
15205 echo "$as_me:$LINENO: result: yes" >&5
15206 echo "${ECHO_T}yes" >&6
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.
$ac_ext >&5
15213 echo "$as_me:$LINENO: result: no" >&5
15214 echo "${ECHO_T}no" >&6
15217 rm -f conftest.err conftest.
$ac_objext \
15218 conftest
$ac_exeext conftest.
$ac_ext
15221 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15222 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15223 cat >conftest.
$ac_ext <<_ACEOF
15227 cat confdefs.h
>>conftest.
$ac_ext
15228 cat >>conftest.
$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 #include <sys/sycall.h>
15232 #include <sys/types.h>
15233 #include <unistd.h>
15239 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15246 rm -f conftest.
$ac_objext conftest
$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>conftest.er1
15250 grep -v '^ *+' conftest.er1
>conftest.err
15252 cat conftest.err
>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try
='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try
='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15271 cat >>confdefs.h
<<\_ACEOF
15272 #define HAVE_SYS_FALLOCATE 1
15275 echo "$as_me:$LINENO: result: yes" >&5
15276 echo "${ECHO_T}yes" >&6
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.
$ac_ext >&5
15283 echo "$as_me:$LINENO: result: no" >&5
15284 echo "${ECHO_T}no" >&6
15287 rm -f conftest.err conftest.
$ac_objext \
15288 conftest
$ac_exeext conftest.
$ac_ext
15290 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15291 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15292 cat >conftest.
$ac_ext <<_ACEOF
15296 cat confdefs.h
>>conftest.
$ac_ext
15297 cat >>conftest.
$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15300 #define _XOPEN_SOURCE 600
15301 #include <stdlib.h>
15302 #ifdef HAVE_FCNTL_H
15303 # include <fcntl.h>
15310 posix_fallocate(0, 0, 0);
15317 rm -f conftest.
$ac_objext conftest
$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>conftest.er1
15321 grep -v '^ *+' conftest.er1
>conftest.err
15323 cat conftest.err
>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try
='test -z "$ac_c_werror_flag"
15327 || test ! -s conftest.err'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try
='test -s conftest$ac_exeext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15342 cat >>confdefs.h
<<\_ACEOF
15343 #define HAVE_POSIX_FALLOCATE 1
15346 echo "$as_me:$LINENO: result: yes" >&5
15347 echo "${ECHO_T}yes" >&6
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.
$ac_ext >&5
15354 echo "$as_me:$LINENO: result: no" >&5
15355 echo "${ECHO_T}no" >&6
15358 rm -f conftest.err conftest.
$ac_objext \
15359 conftest
$ac_exeext conftest.
$ac_ext
15362 # Checking Native Language Support
15366 if test -n "$ac_aux_dir"; then
15367 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15369 if test -z "$MKINSTALLDIRS"; then
15370 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15377 # Extract the first word of "msgfmt", so it can be a program name with args.
15378 set dummy msgfmt
; ac_word
=$2
15379 echo "$as_me:$LINENO: checking for $ac_word" >&5
15380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15381 if test "${ac_cv_path_MSGFMT+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15389 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15390 for ac_dir
in $PATH; do
15391 test -z "$ac_dir" && ac_dir
=.
15392 if test -f $ac_dir/$ac_word; then
15393 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15394 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15395 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15401 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15405 MSGFMT
="$ac_cv_path_MSGFMT"
15406 if test "$MSGFMT" != ":"; then
15407 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15408 echo "${ECHO_T}$MSGFMT" >&6
15410 echo "$as_me:$LINENO: result: no" >&5
15411 echo "${ECHO_T}no" >&6
15414 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15415 set dummy gmsgfmt
; ac_word
=$2
15416 echo "$as_me:$LINENO: checking for $ac_word" >&5
15417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15418 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15427 for as_dir
in $PATH
15430 test -z "$as_dir" && as_dir
=.
15431 for ac_exec_ext
in '' $ac_executable_extensions; do
15432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15433 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15440 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15444 GMSGFMT
=$ac_cv_path_GMSGFMT
15446 if test -n "$GMSGFMT"; then
15447 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15448 echo "${ECHO_T}$GMSGFMT" >&6
15450 echo "$as_me:$LINENO: result: no" >&5
15451 echo "${ECHO_T}no" >&6
15455 # Extract the first word of "xgettext", so it can be a program name with args.
15456 set dummy xgettext
; ac_word
=$2
15457 echo "$as_me:$LINENO: checking for $ac_word" >&5
15458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15459 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 case "$XGETTEXT" in
15464 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15467 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15468 for ac_dir
in $PATH; do
15469 test -z "$ac_dir" && ac_dir
=.
15470 if test -f $ac_dir/$ac_word; then
15471 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15472 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15473 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15479 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15483 XGETTEXT
="$ac_cv_path_XGETTEXT"
15484 if test "$XGETTEXT" != ":"; then
15485 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15486 echo "${ECHO_T}$XGETTEXT" >&6
15488 echo "$as_me:$LINENO: result: no" >&5
15489 echo "${ECHO_T}no" >&6
15494 # Extract the first word of "msgmerge", so it can be a program name with args.
15495 set dummy msgmerge
; ac_word
=$2
15496 echo "$as_me:$LINENO: checking for $ac_word" >&5
15497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15498 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 case "$MSGMERGE" in
15503 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15506 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15507 for ac_dir
in $PATH; do
15508 test -z "$ac_dir" && ac_dir
=.
15509 if test -f $ac_dir/$ac_word; then
15510 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15511 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15517 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15521 MSGMERGE
="$ac_cv_path_MSGMERGE"
15522 if test "$MSGMERGE" != ":"; then
15523 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15524 echo "${ECHO_T}$MSGMERGE" >&6
15526 echo "$as_me:$LINENO: result: no" >&5
15527 echo "${ECHO_T}no" >&6
15531 if test "$GMSGFMT" != ":"; then
15532 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15533 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15536 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15537 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15538 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15543 if test "$XGETTEXT" != ":"; then
15544 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15545 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15548 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15549 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15555 ac_config_commands
="$ac_config_commands default-1"
15558 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15559 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15560 if test "${ac_cv_search_strerror+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_func_search_save_LIBS
=$LIBS
15564 ac_cv_search_strerror
=no
15565 cat >conftest.
$ac_ext <<_ACEOF
15568 cat confdefs.h
>>conftest.
$ac_ext
15569 cat >>conftest.
$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any gcc2 internal prototype to avoid an error. */
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15587 rm -f conftest.
$ac_objext conftest
$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>conftest.er1
15591 grep -v '^ *+' conftest.er1
>conftest.err
15593 cat conftest.err
>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try
='test -z "$ac_c_werror_flag"
15597 || test ! -s conftest.err'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try
='test -s conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_search_strerror
="none required"
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.
$ac_ext >&5
15615 rm -f conftest.err conftest.
$ac_objext \
15616 conftest
$ac_exeext conftest.
$ac_ext
15617 if test "$ac_cv_search_strerror" = no
; then
15618 for ac_lib
in cposix
; do
15619 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15620 cat >conftest.
$ac_ext <<_ACEOF
15623 cat confdefs.h
>>conftest.
$ac_ext
15624 cat >>conftest.
$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any gcc2 internal prototype to avoid an error. */
15631 /* We use char because int might match the return type of a gcc2
15632 builtin and then its argument prototype would still apply. */
15642 rm -f conftest.
$ac_objext conftest
$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15646 grep -v '^ *+' conftest.er1
>conftest.err
15648 cat conftest.err
>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try
='test -z "$ac_c_werror_flag"
15652 || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try
='test -s conftest$ac_exeext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_search_strerror
="-l$ac_lib"
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.
$ac_ext >&5
15671 rm -f conftest.err conftest.
$ac_objext \
15672 conftest
$ac_exeext conftest.
$ac_ext
15675 LIBS
=$ac_func_search_save_LIBS
15677 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15678 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15679 if test "$ac_cv_search_strerror" != no
; then
15680 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15685 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15686 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15687 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15690 cat >conftest.
$ac_ext <<_ACEOF
15693 cat confdefs.h
>>conftest.
$ac_ext
15694 cat >>conftest.
$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 #include <features.h>
15698 #ifdef __GNU_LIBRARY__
15699 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15706 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15707 ac_cv_gnu_library_2_1
=yes
15709 ac_cv_gnu_library_2_1
=no
15716 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15717 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15719 GLIBC21
="$ac_cv_gnu_library_2_1"
15724 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15725 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15726 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 if test "$cross_compiling" = yes; then
15732 # Guess based on the CPU.
15733 case "$host_cpu" in
15734 alpha
* | i3456786 | m68k | s390
*)
15735 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15737 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15741 cat >conftest.
$ac_ext <<_ACEOF
15744 cat confdefs.h
>>conftest.
$ac_ext
15745 cat >>conftest.
$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15748 #include <stdlib.h>
15749 #include <signal.h>
15753 sigfpe_handler (int sig)
15755 sigfpe_handler (sig) int sig;
15758 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15759 exit (sig != SIGFPE);
15769 signal (SIGFPE, sigfpe_handler);
15770 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15771 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15772 signal (SIGTRAP, sigfpe_handler);
15774 /* Linux/SPARC yields signal SIGILL. */
15775 #if defined (__sparc__) && defined (__linux__)
15776 signal (SIGILL, sigfpe_handler);
15785 rm -f conftest
$ac_exeext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15787 (eval $ac_link) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 gt_cv_int_divbyzero_sigfpe
=yes
15798 echo "$as_me: program exited with status $ac_status" >&5
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.
$ac_ext >&5
15802 ( exit $ac_status )
15803 gt_cv_int_divbyzero_sigfpe
=no
15805 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15809 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15810 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15811 case "$gt_cv_int_divbyzero_sigfpe" in
15816 cat >>confdefs.h
<<_ACEOF
15817 #define INTDIV0_RAISES_SIGFPE $value
15822 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15823 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15824 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 cat >conftest.
$ac_ext <<_ACEOF
15830 cat confdefs.h
>>conftest.
$ac_ext
15831 cat >>conftest.
$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 #include <sys/types.h>
15834 #include <inttypes.h>
15838 uintmax_t i = (uintmax_t) -1;
15843 rm -f conftest.
$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>conftest.er1
15847 grep -v '^ *+' conftest.er1
>conftest.err
15849 cat conftest.err
>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try
='test -z "$ac_c_werror_flag"
15853 || test ! -s conftest.err'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try
='test -s conftest.$ac_objext'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 jm_ac_cv_header_inttypes_h
=yes
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.
$ac_ext >&5
15870 jm_ac_cv_header_inttypes_h
=no
15872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15874 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15875 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15876 if test $jm_ac_cv_header_inttypes_h = yes; then
15878 cat >>confdefs.h
<<_ACEOF
15879 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15885 echo "$as_me:$LINENO: checking for stdint.h" >&5
15886 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15887 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 cat >conftest.
$ac_ext <<_ACEOF
15893 cat confdefs.h
>>conftest.
$ac_ext
15894 cat >>conftest.
$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <sys/types.h>
15897 #include <stdint.h>
15901 uintmax_t i = (uintmax_t) -1;
15906 rm -f conftest.
$ac_objext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>conftest.er1
15910 grep -v '^ *+' conftest.er1
>conftest.err
15912 cat conftest.err
>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try
='test -z "$ac_c_werror_flag"
15916 || test ! -s conftest.err'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try
='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 jm_ac_cv_header_stdint_h
=yes
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.
$ac_ext >&5
15933 jm_ac_cv_header_stdint_h
=no
15935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15937 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15938 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15939 if test $jm_ac_cv_header_stdint_h = yes; then
15941 cat >>confdefs.h
<<_ACEOF
15942 #define HAVE_STDINT_H_WITH_UINTMAX 1
15948 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15949 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15950 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 cat >conftest.
$ac_ext <<_ACEOF
15956 cat confdefs.h
>>conftest.
$ac_ext
15957 cat >>conftest.
$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 unsigned long long ull = 1; int i = 63;
15963 unsigned long long ullmax = (unsigned long long) -1;
15964 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15969 rm -f conftest.
$ac_objext conftest
$ac_exeext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15971 (eval $ac_link) 2>conftest.er1
15973 grep -v '^ *+' conftest.er1
>conftest.err
15975 cat conftest.err
>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
15978 { ac_try
='test -z "$ac_c_werror_flag"
15979 || test ! -s conftest.err'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try
='test -s conftest$ac_exeext'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 ac_cv_type_unsigned_long_long
=yes
15993 echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.
$ac_ext >&5
15996 ac_cv_type_unsigned_long_long
=no
15998 rm -f conftest.err conftest.
$ac_objext \
15999 conftest
$ac_exeext conftest.
$ac_ext
16001 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16002 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16003 if test $ac_cv_type_unsigned_long_long = yes; then
16005 cat >>confdefs.h
<<\_ACEOF
16006 #define HAVE_UNSIGNED_LONG_LONG 1
16014 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
16016 test $ac_cv_type_unsigned_long_long = yes \
16017 && ac_type
='unsigned long long' \
16018 || ac_type
='unsigned long'
16020 cat >>confdefs.h
<<_ACEOF
16021 #define uintmax_t $ac_type
16027 echo "$as_me:$LINENO: checking for inttypes.h" >&5
16028 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16029 if test "${gt_cv_header_inttypes_h+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 cat >conftest.
$ac_ext <<_ACEOF
16036 cat confdefs.h
>>conftest.
$ac_ext
16037 cat >>conftest.
$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <sys/types.h>
16040 #include <inttypes.h>
16049 rm -f conftest.
$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>conftest.er1
16053 grep -v '^ *+' conftest.er1
>conftest.err
16055 cat conftest.err
>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try
='test -z "$ac_c_werror_flag"
16059 || test ! -s conftest.err'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; } &&
16065 { ac_try
='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 gt_cv_header_inttypes_h
=yes
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.
$ac_ext >&5
16076 gt_cv_header_inttypes_h
=no
16078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16081 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16082 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16083 if test $gt_cv_header_inttypes_h = yes; then
16085 cat >>confdefs.h
<<_ACEOF
16086 #define HAVE_INTTYPES_H 1
16093 if test $gt_cv_header_inttypes_h = yes; then
16094 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16095 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16096 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 cat >conftest.
$ac_ext <<_ACEOF
16103 cat confdefs.h
>>conftest.
$ac_ext
16104 cat >>conftest.
$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #include <inttypes.h>
16119 rm -f conftest.
$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16123 grep -v '^ *+' conftest.er1
>conftest.err
16125 cat conftest.err
>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try
='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; } &&
16135 { ac_try
='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 gt_cv_inttypes_pri_broken
=no
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.
$ac_ext >&5
16146 gt_cv_inttypes_pri_broken
=yes
16148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16151 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16152 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16154 if test "$gt_cv_inttypes_pri_broken" = yes; then
16156 cat >>confdefs.h
<<_ACEOF
16157 #define PRI_MACROS_BROKEN 1
16163 if test "X$prefix" = "XNONE"; then
16164 acl_final_prefix
="$ac_default_prefix"
16166 acl_final_prefix
="$prefix"
16168 if test "X$exec_prefix" = "XNONE"; then
16169 acl_final_exec_prefix
='${prefix}'
16171 acl_final_exec_prefix
="$exec_prefix"
16173 acl_save_prefix
="$prefix"
16174 prefix
="$acl_final_prefix"
16175 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
16176 prefix
="$acl_save_prefix"
16179 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16180 if test "${with_gnu_ld+set}" = set; then
16181 withval
="$with_gnu_ld"
16182 test "$withval" = no || with_gnu_ld
=yes
16187 if test "$GCC" = yes; then
16188 # Check if gcc -print-prog-name=ld gives a path.
16189 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16190 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16193 # gcc leaves a trailing carriage return which upsets mingw
16194 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16196 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16199 # Accept absolute paths.
16200 [\\/]* |
[A-Za-z
]:[\\/]*)
16201 re_direlt
='/[^/][^/]*/\.\./'
16202 # Canonicalize the path of ld
16203 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
16204 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
16205 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
16207 test -z "$LD" && LD
="$ac_prog"
16210 # If it fails, then pretend we aren't using GCC.
16214 # If it is relative, then search for the first ld in PATH.
16215 with_gnu_ld
=unknown
16218 elif test "$with_gnu_ld" = yes; then
16219 echo "$as_me:$LINENO: checking for GNU ld" >&5
16220 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16222 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16223 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16225 if test "${acl_cv_path_LD+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 if test -z "$LD"; then
16229 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16230 for ac_dir
in $PATH; do
16231 test -z "$ac_dir" && ac_dir
=.
16232 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16233 acl_cv_path_LD
="$ac_dir/$ac_prog"
16234 # Check to see if the program is GNU ld. I'd rather use --version,
16235 # but apparently some GNU ld's only accept -v.
16236 # Break only if it was the GNU/non-GNU ld that we prefer.
16237 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
16238 test "$with_gnu_ld" != no
&& break
16240 test "$with_gnu_ld" != yes && break
16246 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16250 LD
="$acl_cv_path_LD"
16251 if test -n "$LD"; then
16252 echo "$as_me:$LINENO: result: $LD" >&5
16253 echo "${ECHO_T}$LD" >&6
16255 echo "$as_me:$LINENO: result: no" >&5
16256 echo "${ECHO_T}no" >&6
16258 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16259 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16260 { (exit 1); exit 1; }; }
16261 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16262 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16263 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16267 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
16268 acl_cv_prog_gnu_ld
=yes
16270 acl_cv_prog_gnu_ld
=no
16273 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16274 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16275 with_gnu_ld
=$acl_cv_prog_gnu_ld
16279 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16280 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16281 if test "${acl_cv_rpath+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16286 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16288 rm -f .
/conftest.sh
16292 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16293 echo "${ECHO_T}$acl_cv_rpath" >&6
16295 libext
="$acl_cv_libext"
16296 shlibext
="$acl_cv_shlibext"
16297 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16298 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16299 hardcode_direct
="$acl_cv_hardcode_direct"
16300 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16301 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16302 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16303 # Check whether --enable-rpath or --disable-rpath was given.
16304 if test "${enable_rpath+set}" = set; then
16305 enableval
="$enable_rpath"
16319 acl_save_prefix
="$prefix"
16320 prefix
="$acl_final_prefix"
16321 acl_save_exec_prefix
="$exec_prefix"
16322 exec_prefix
="$acl_final_exec_prefix"
16324 eval additional_includedir
=\"$includedir\"
16325 eval additional_libdir
=\"$libdir\"
16327 exec_prefix
="$acl_save_exec_prefix"
16328 prefix
="$acl_save_prefix"
16331 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16332 if test "${with_libiconv_prefix+set}" = set; then
16333 withval
="$with_libiconv_prefix"
16335 if test "X$withval" = "Xno"; then
16338 if test "X$withval" = "X"; then
16340 acl_save_prefix
="$prefix"
16341 prefix
="$acl_final_prefix"
16342 acl_save_exec_prefix
="$exec_prefix"
16343 exec_prefix
="$acl_final_exec_prefix"
16345 eval additional_includedir
=\"$includedir\"
16346 eval additional_libdir
=\"$libdir\"
16348 exec_prefix
="$acl_save_exec_prefix"
16349 prefix
="$acl_save_prefix"
16352 additional_includedir
="$withval/include"
16353 additional_libdir
="$withval/lib"
16363 names_already_handled
=
16364 names_next_round
='iconv '
16365 while test -n "$names_next_round"; do
16366 names_this_round
="$names_next_round"
16368 for name
in $names_this_round; do
16370 for n
in $names_already_handled; do
16371 if test "$n" = "$name"; then
16372 already_handled
=yes
16376 if test -z "$already_handled"; then
16377 names_already_handled
="$names_already_handled $name"
16378 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16379 eval value
=\"\
$HAVE_LIB$uppername\"
16380 if test -n "$value"; then
16381 if test "$value" = yes; then
16382 eval value
=\"\
$LIB$uppername\"
16383 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16384 eval value
=\"\
$LTLIB$uppername\"
16385 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16394 if test $use_additional = yes; then
16395 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16396 found_dir
="$additional_libdir"
16397 found_so
="$additional_libdir/lib$name.$shlibext"
16398 if test -f "$additional_libdir/lib$name.la"; then
16399 found_la
="$additional_libdir/lib$name.la"
16402 if test -f "$additional_libdir/lib$name.$libext"; then
16403 found_dir
="$additional_libdir"
16404 found_a
="$additional_libdir/lib$name.$libext"
16405 if test -f "$additional_libdir/lib$name.la"; then
16406 found_la
="$additional_libdir/lib$name.la"
16411 if test "X$found_dir" = "X"; then
16412 for x
in $LDFLAGS $LTLIBICONV; do
16414 acl_save_prefix
="$prefix"
16415 prefix
="$acl_final_prefix"
16416 acl_save_exec_prefix
="$exec_prefix"
16417 exec_prefix
="$acl_final_exec_prefix"
16419 exec_prefix
="$acl_save_exec_prefix"
16420 prefix
="$acl_save_prefix"
16424 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16425 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16427 found_so
="$dir/lib$name.$shlibext"
16428 if test -f "$dir/lib$name.la"; then
16429 found_la
="$dir/lib$name.la"
16432 if test -f "$dir/lib$name.$libext"; then
16434 found_a
="$dir/lib$name.$libext"
16435 if test -f "$dir/lib$name.la"; then
16436 found_la
="$dir/lib$name.la"
16442 if test "X$found_dir" != "X"; then
16447 if test "X$found_dir" != "X"; then
16448 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16449 if test "X$found_so" != "X"; then
16450 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16451 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16454 for x
in $ltrpathdirs; do
16455 if test "X$x" = "X$found_dir"; then
16460 if test -z "$haveit"; then
16461 ltrpathdirs
="$ltrpathdirs $found_dir"
16463 if test "$hardcode_direct" = yes; then
16464 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16466 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16467 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16469 for x
in $rpathdirs; do
16470 if test "X$x" = "X$found_dir"; then
16475 if test -z "$haveit"; then
16476 rpathdirs
="$rpathdirs $found_dir"
16480 for x
in $LDFLAGS $LIBICONV; do
16482 acl_save_prefix
="$prefix"
16483 prefix
="$acl_final_prefix"
16484 acl_save_exec_prefix
="$exec_prefix"
16485 exec_prefix
="$acl_final_exec_prefix"
16487 exec_prefix
="$acl_save_exec_prefix"
16488 prefix
="$acl_save_prefix"
16490 if test "X$x" = "X-L$found_dir"; then
16495 if test -z "$haveit"; then
16496 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16498 if test "$hardcode_minus_L" != no
; then
16499 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16501 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16507 if test "X$found_a" != "X"; then
16508 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16510 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16513 additional_includedir
=
16514 case "$found_dir" in
16516 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16517 additional_includedir
="$basedir/include"
16520 if test "X$additional_includedir" != "X"; then
16521 if test "X$additional_includedir" != "X/usr/include"; then
16523 if test "X$additional_includedir" = "X/usr/local/include"; then
16524 if test -n "$GCC"; then
16526 linux
*) haveit
=yes;;
16530 if test -z "$haveit"; then
16531 for x
in $CPPFLAGS $INCICONV; do
16533 acl_save_prefix
="$prefix"
16534 prefix
="$acl_final_prefix"
16535 acl_save_exec_prefix
="$exec_prefix"
16536 exec_prefix
="$acl_final_exec_prefix"
16538 exec_prefix
="$acl_save_exec_prefix"
16539 prefix
="$acl_save_prefix"
16541 if test "X$x" = "X-I$additional_includedir"; then
16546 if test -z "$haveit"; then
16547 if test -d "$additional_includedir"; then
16548 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16554 if test -n "$found_la"; then
16555 save_libdir
="$libdir"
16556 case "$found_la" in
16557 */* |
*\\*) .
"$found_la" ;;
16558 *) .
"./$found_la" ;;
16560 libdir
="$save_libdir"
16561 for dep
in $dependency_libs; do
16564 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16565 if test "X$additional_libdir" != "X/usr/lib"; then
16567 if test "X$additional_libdir" = "X/usr/local/lib"; then
16568 if test -n "$GCC"; then
16570 linux
*) haveit
=yes;;
16574 if test -z "$haveit"; then
16576 for x
in $LDFLAGS $LIBICONV; do
16578 acl_save_prefix
="$prefix"
16579 prefix
="$acl_final_prefix"
16580 acl_save_exec_prefix
="$exec_prefix"
16581 exec_prefix
="$acl_final_exec_prefix"
16583 exec_prefix
="$acl_save_exec_prefix"
16584 prefix
="$acl_save_prefix"
16586 if test "X$x" = "X-L$additional_libdir"; then
16591 if test -z "$haveit"; then
16592 if test -d "$additional_libdir"; then
16593 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16597 for x
in $LDFLAGS $LTLIBICONV; do
16599 acl_save_prefix
="$prefix"
16600 prefix
="$acl_final_prefix"
16601 acl_save_exec_prefix
="$exec_prefix"
16602 exec_prefix
="$acl_final_exec_prefix"
16604 exec_prefix
="$acl_save_exec_prefix"
16605 prefix
="$acl_save_prefix"
16607 if test "X$x" = "X-L$additional_libdir"; then
16612 if test -z "$haveit"; then
16613 if test -d "$additional_libdir"; then
16614 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16621 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16622 if test "$enable_rpath" != no
; then
16624 for x
in $rpathdirs; do
16625 if test "X$x" = "X$dir"; then
16630 if test -z "$haveit"; then
16631 rpathdirs
="$rpathdirs $dir"
16634 for x
in $ltrpathdirs; do
16635 if test "X$x" = "X$dir"; then
16640 if test -z "$haveit"; then
16641 ltrpathdirs
="$ltrpathdirs $dir"
16646 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16649 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16652 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16653 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16659 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16660 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16666 if test "X$rpathdirs" != "X"; then
16667 if test -n "$hardcode_libdir_separator"; then
16669 for found_dir
in $rpathdirs; do
16670 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16672 acl_save_libdir
="$libdir"
16674 eval flag
=\"$hardcode_libdir_flag_spec\"
16675 libdir
="$acl_save_libdir"
16676 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16678 for found_dir
in $rpathdirs; do
16679 acl_save_libdir
="$libdir"
16680 libdir
="$found_dir"
16681 eval flag
=\"$hardcode_libdir_flag_spec\"
16682 libdir
="$acl_save_libdir"
16683 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16687 if test "X$ltrpathdirs" != "X"; then
16688 for found_dir
in $ltrpathdirs; do
16689 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16706 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16707 stdlib.h string.h unistd.h sys
/param.h
16709 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16711 echo "$as_me:$LINENO: checking for $ac_header" >&5
16712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16719 # Is the header compilable?
16720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16722 cat >conftest.
$ac_ext <<_ACEOF
16725 cat confdefs.h
>>conftest.
$ac_ext
16726 cat >>conftest.
$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16729 #include <$ac_header>
16731 rm -f conftest.
$ac_objext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16733 (eval $ac_compile) 2>conftest.er1
16735 grep -v '^ *+' conftest.er1
>conftest.err
16737 cat conftest.err
>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try
='test -z "$ac_c_werror_flag"
16741 || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try
='test -s conftest.$ac_objext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_header_compiler
=yes
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.
$ac_ext >&5
16758 ac_header_compiler
=no
16760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16762 echo "${ECHO_T}$ac_header_compiler" >&6
16764 # Is the header present?
16765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16767 cat >conftest.
$ac_ext <<_ACEOF
16770 cat confdefs.h
>>conftest.
$ac_ext
16771 cat >>conftest.
$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <$ac_header>
16775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16776 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16778 grep -v '^ *+' conftest.er1
>conftest.err
16780 cat conftest.err
>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } >/dev
/null
; then
16783 if test -s conftest.err
; then
16784 ac_cpp_err
=$ac_c_preproc_warn_flag
16785 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16792 if test -z "$ac_cpp_err"; then
16793 ac_header_preproc
=yes
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.
$ac_ext >&5
16798 ac_header_preproc
=no
16800 rm -f conftest.err conftest.
$ac_ext
16801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16802 echo "${ECHO_T}$ac_header_preproc" >&6
16804 # So? What about this header?
16805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16811 ac_header_preproc
=yes
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16828 ## ------------------------------ ##
16829 ## Report this to admin@amule.org ##
16830 ## ------------------------------ ##
16833 sed "s/^/$as_me: WARNING: /" >&2
16836 echo "$as_me:$LINENO: checking for $ac_header" >&5
16837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 eval "$as_ac_Header=\$ac_header_preproc"
16843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16848 cat >>confdefs.h
<<_ACEOF
16849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16877 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16878 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16879 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16881 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16882 echo "$as_me:$LINENO: checking for $ac_func" >&5
16883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16884 if eval "test \"\${$as_ac_var+set}\" = set"; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 cat >conftest.
$ac_ext <<_ACEOF
16890 cat confdefs.h
>>conftest.
$ac_ext
16891 cat >>conftest.
$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16895 #define $ac_func innocuous_$ac_func
16897 /* System header to define __stub macros and hopefully few prototypes,
16898 which can conflict with char $ac_func (); below.
16899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 <limits.h> exists even on freestanding compilers. */
16903 # include <limits.h>
16905 # include <assert.h>
16910 /* Override any gcc2 internal prototype to avoid an error. */
16915 /* We use char because int might match the return type of a gcc2
16916 builtin and then its argument prototype would still apply. */
16918 /* The GNU C library defines this for functions which it implements
16919 to always fail with ENOSYS. Some functions are actually named
16920 something starting with __ and the normal name is an alias. */
16921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16924 char (*f) () = $ac_func;
16933 return f != $ac_func;
16938 rm -f conftest.
$ac_objext conftest
$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>conftest.er1
16942 grep -v '^ *+' conftest.er1
>conftest.err
16944 cat conftest.err
>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
16947 { ac_try
='test -z "$ac_c_werror_flag"
16948 || test ! -s conftest.err'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try
='test -s conftest$ac_exeext'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 eval "$as_ac_var=yes"
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.
$ac_ext >&5
16965 eval "$as_ac_var=no"
16967 rm -f conftest.err conftest.
$ac_objext \
16968 conftest
$ac_exeext conftest.
$ac_ext
16970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16972 if test `eval echo '${'$as_ac_var'}'` = yes; then
16973 cat >>confdefs.h
<<_ACEOF
16974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16986 am_save_CPPFLAGS
="$CPPFLAGS"
16988 for element
in $INCICONV; do
16990 for x
in $CPPFLAGS; do
16992 acl_save_prefix
="$prefix"
16993 prefix
="$acl_final_prefix"
16994 acl_save_exec_prefix
="$exec_prefix"
16995 exec_prefix
="$acl_final_exec_prefix"
16997 exec_prefix
="$acl_save_exec_prefix"
16998 prefix
="$acl_save_prefix"
17000 if test "X$x" = "X$element"; then
17005 if test -z "$haveit"; then
17006 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17011 echo "$as_me:$LINENO: checking for iconv" >&5
17012 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
17013 if test "${am_cv_func_iconv+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 am_cv_func_iconv
="no, consider installing GNU libiconv"
17019 cat >conftest.
$ac_ext <<_ACEOF
17022 cat confdefs.h
>>conftest.
$ac_ext
17023 cat >>conftest.
$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #include <stdlib.h>
17030 iconv_t cd = iconv_open("","");
17031 iconv(cd,NULL,NULL,NULL,NULL);
17037 rm -f conftest.
$ac_objext conftest
$ac_exeext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>conftest.er1
17041 grep -v '^ *+' conftest.er1
>conftest.err
17043 cat conftest.err
>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try
='test -z "$ac_c_werror_flag"
17047 || test ! -s conftest.err'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try
='test -s conftest$ac_exeext'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 am_cv_func_iconv
=yes
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.
$ac_ext >&5
17065 rm -f conftest.err conftest.
$ac_objext \
17066 conftest
$ac_exeext conftest.
$ac_ext
17067 if test "$am_cv_func_iconv" != yes; then
17068 am_save_LIBS
="$LIBS"
17069 LIBS
="$LIBS $LIBICONV"
17070 cat >conftest.
$ac_ext <<_ACEOF
17073 cat confdefs.h
>>conftest.
$ac_ext
17074 cat >>conftest.
$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 #include <stdlib.h>
17081 iconv_t cd = iconv_open("","");
17082 iconv(cd,NULL,NULL,NULL,NULL);
17088 rm -f conftest.
$ac_objext conftest
$ac_exeext
17089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17090 (eval $ac_link) 2>conftest.er1
17092 grep -v '^ *+' conftest.er1
>conftest.err
17094 cat conftest.err
>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try
='test -z "$ac_c_werror_flag"
17098 || test ! -s conftest.err'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try
='test -s conftest$ac_exeext'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 am_cv_lib_iconv
=yes
17111 am_cv_func_iconv
=yes
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.
$ac_ext >&5
17117 rm -f conftest.err conftest.
$ac_objext \
17118 conftest
$ac_exeext conftest.
$ac_ext
17119 LIBS
="$am_save_LIBS"
17123 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17124 echo "${ECHO_T}$am_cv_func_iconv" >&6
17125 if test "$am_cv_func_iconv" = yes; then
17127 cat >>confdefs.h
<<\_ACEOF
17128 #define HAVE_ICONV 1
17132 if test "$am_cv_lib_iconv" = yes; then
17133 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17134 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17135 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17136 echo "${ECHO_T}$LIBICONV" >&6
17138 CPPFLAGS
="$am_save_CPPFLAGS"
17145 if test "$am_cv_func_iconv" = yes; then
17146 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17147 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17148 if test "${am_cv_proto_iconv+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 cat >conftest.
$ac_ext <<_ACEOF
17155 cat confdefs.h
>>conftest.
$ac_ext
17156 cat >>conftest.
$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17159 #include <stdlib.h>
17165 #if defined(__STDC__) || defined(__cplusplus)
17166 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17179 rm -f conftest.
$ac_objext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181 (eval $ac_compile) 2>conftest.er1
17183 grep -v '^ *+' conftest.er1
>conftest.err
17185 cat conftest.err
>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try
='test -z "$ac_c_werror_flag"
17189 || test ! -s conftest.err'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; } &&
17195 { ac_try
='test -s conftest.$ac_objext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 am_cv_proto_iconv_arg1
=""
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.
$ac_ext >&5
17206 am_cv_proto_iconv_arg1
="const"
17208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17209 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);"
17212 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17213 echo "$as_me:$LINENO: result: ${ac_t:-
17214 }$am_cv_proto_iconv" >&5
17215 echo "${ECHO_T}${ac_t:-
17216 }$am_cv_proto_iconv" >&6
17218 cat >>confdefs.h
<<_ACEOF
17219 #define ICONV_CONST $am_cv_proto_iconv_arg1
17225 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17226 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17227 if test "${am_cv_langinfo_codeset+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 cat >conftest.
$ac_ext <<_ACEOF
17233 cat confdefs.h
>>conftest.
$ac_ext
17234 cat >>conftest.
$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <langinfo.h>
17240 char* cs = nl_langinfo(CODESET);
17245 rm -f conftest.
$ac_objext conftest
$ac_exeext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17247 (eval $ac_link) 2>conftest.er1
17249 grep -v '^ *+' conftest.er1
>conftest.err
17251 cat conftest.err
>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try
='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try
='test -s conftest$ac_exeext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 am_cv_langinfo_codeset
=yes
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.
$ac_ext >&5
17272 am_cv_langinfo_codeset
=no
17274 rm -f conftest.err conftest.
$ac_objext \
17275 conftest
$ac_exeext conftest.
$ac_ext
17278 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17279 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17280 if test $am_cv_langinfo_codeset = yes; then
17282 cat >>confdefs.h
<<\_ACEOF
17283 #define HAVE_LANGINFO_CODESET 1
17288 if test $ac_cv_header_locale_h = yes; then
17290 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17291 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17292 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 cat >conftest.
$ac_ext <<_ACEOF
17298 cat confdefs.h
>>conftest.
$ac_ext
17299 cat >>conftest.
$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 #include <locale.h>
17310 rm -f conftest.
$ac_objext conftest
$ac_exeext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17312 (eval $ac_link) 2>conftest.er1
17314 grep -v '^ *+' conftest.er1
>conftest.err
17316 cat conftest.err
>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } &&
17319 { ac_try
='test -z "$ac_c_werror_flag"
17320 || test ! -s conftest.err'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try
='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 am_cv_val_LC_MESSAGES
=yes
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.
$ac_ext >&5
17337 am_cv_val_LC_MESSAGES
=no
17339 rm -f conftest.err conftest.
$ac_objext \
17340 conftest
$ac_exeext conftest.
$ac_ext
17342 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17343 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17344 if test $am_cv_val_LC_MESSAGES = yes; then
17346 cat >>confdefs.h
<<\_ACEOF
17347 #define HAVE_LC_MESSAGES 1
17354 for ac_prog
in bison
17356 # Extract the first word of "$ac_prog", so it can be a program name with args.
17357 set dummy
$ac_prog; ac_word
=$2
17358 echo "$as_me:$LINENO: checking for $ac_word" >&5
17359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17360 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 if test -n "$INTLBISON"; then
17364 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17367 for as_dir
in $PATH
17370 test -z "$as_dir" && as_dir
=.
17371 for ac_exec_ext
in '' $ac_executable_extensions; do
17372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17373 ac_cv_prog_INTLBISON
="$ac_prog"
17374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17382 INTLBISON
=$ac_cv_prog_INTLBISON
17383 if test -n "$INTLBISON"; then
17384 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17385 echo "${ECHO_T}$INTLBISON" >&6
17387 echo "$as_me:$LINENO: result: no" >&5
17388 echo "${ECHO_T}no" >&6
17391 test -n "$INTLBISON" && break
17394 if test -z "$INTLBISON"; then
17397 echo "$as_me:$LINENO: checking version of bison" >&5
17398 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17399 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17400 case $ac_prog_version in
17401 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17402 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17403 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17404 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17406 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17407 echo "${ECHO_T}$ac_prog_version" >&6
17409 if test $ac_verc_fail = yes; then
17415 # Check whether --with-language or --without-language was given.
17416 if test "${with_language+set}" = set; then
17417 withval
="$with_language"
17418 if test "$withval" = "all"; then
17421 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17440 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17441 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17442 # Check whether --enable-nls or --disable-nls was given.
17443 if test "${enable_nls+set}" = set; then
17444 enableval
="$enable_nls"
17449 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17450 echo "${ECHO_T}$USE_NLS" >&6
17454 BUILD_INCLUDED_LIBINTL
=no
17455 USE_INCLUDED_LIBINTL
=no
17461 if test "$USE_NLS" = "yes"; then
17462 gt_use_preinstalled_gnugettext
=no
17464 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17465 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17467 # Check whether --with-included-gettext or --without-included-gettext was given.
17468 if test "${with_included_gettext+set}" = set; then
17469 withval
="$with_included_gettext"
17470 nls_cv_force_use_gnu_gettext
=$withval
17472 nls_cv_force_use_gnu_gettext
=no
17474 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17475 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17477 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17478 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17485 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17486 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17487 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 cat >conftest.
$ac_ext <<_ACEOF
17493 cat confdefs.h
>>conftest.
$ac_ext
17494 cat >>conftest.
$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 #include <libintl.h>
17497 extern int _nl_msg_cat_cntr;
17498 extern int *_nl_domain_bindings;
17502 bindtextdomain ("", "");
17503 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17508 rm -f conftest.
$ac_objext conftest
$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>conftest.er1
17512 grep -v '^ *+' conftest.er1
>conftest.err
17514 cat conftest.err
>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try
='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try
='test -s conftest$ac_exeext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 gt_cv_func_gnugettext2_libc
=yes
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.
$ac_ext >&5
17535 gt_cv_func_gnugettext2_libc
=no
17537 rm -f conftest.err conftest.
$ac_objext \
17538 conftest
$ac_exeext conftest.
$ac_ext
17540 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17541 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17543 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17549 acl_save_prefix
="$prefix"
17550 prefix
="$acl_final_prefix"
17551 acl_save_exec_prefix
="$exec_prefix"
17552 exec_prefix
="$acl_final_exec_prefix"
17554 eval additional_includedir
=\"$includedir\"
17555 eval additional_libdir
=\"$libdir\"
17557 exec_prefix
="$acl_save_exec_prefix"
17558 prefix
="$acl_save_prefix"
17561 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17562 if test "${with_libintl_prefix+set}" = set; then
17563 withval
="$with_libintl_prefix"
17565 if test "X$withval" = "Xno"; then
17568 if test "X$withval" = "X"; then
17570 acl_save_prefix
="$prefix"
17571 prefix
="$acl_final_prefix"
17572 acl_save_exec_prefix
="$exec_prefix"
17573 exec_prefix
="$acl_final_exec_prefix"
17575 eval additional_includedir
=\"$includedir\"
17576 eval additional_libdir
=\"$libdir\"
17578 exec_prefix
="$acl_save_exec_prefix"
17579 prefix
="$acl_save_prefix"
17582 additional_includedir
="$withval/include"
17583 additional_libdir
="$withval/lib"
17593 names_already_handled
=
17594 names_next_round
='intl '
17595 while test -n "$names_next_round"; do
17596 names_this_round
="$names_next_round"
17598 for name
in $names_this_round; do
17600 for n
in $names_already_handled; do
17601 if test "$n" = "$name"; then
17602 already_handled
=yes
17606 if test -z "$already_handled"; then
17607 names_already_handled
="$names_already_handled $name"
17608 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17609 eval value
=\"\
$HAVE_LIB$uppername\"
17610 if test -n "$value"; then
17611 if test "$value" = yes; then
17612 eval value
=\"\
$LIB$uppername\"
17613 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17614 eval value
=\"\
$LTLIB$uppername\"
17615 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17624 if test $use_additional = yes; then
17625 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17626 found_dir
="$additional_libdir"
17627 found_so
="$additional_libdir/lib$name.$shlibext"
17628 if test -f "$additional_libdir/lib$name.la"; then
17629 found_la
="$additional_libdir/lib$name.la"
17632 if test -f "$additional_libdir/lib$name.$libext"; then
17633 found_dir
="$additional_libdir"
17634 found_a
="$additional_libdir/lib$name.$libext"
17635 if test -f "$additional_libdir/lib$name.la"; then
17636 found_la
="$additional_libdir/lib$name.la"
17641 if test "X$found_dir" = "X"; then
17642 for x
in $LDFLAGS $LTLIBINTL; do
17644 acl_save_prefix
="$prefix"
17645 prefix
="$acl_final_prefix"
17646 acl_save_exec_prefix
="$exec_prefix"
17647 exec_prefix
="$acl_final_exec_prefix"
17649 exec_prefix
="$acl_save_exec_prefix"
17650 prefix
="$acl_save_prefix"
17654 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17655 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17657 found_so
="$dir/lib$name.$shlibext"
17658 if test -f "$dir/lib$name.la"; then
17659 found_la
="$dir/lib$name.la"
17662 if test -f "$dir/lib$name.$libext"; then
17664 found_a
="$dir/lib$name.$libext"
17665 if test -f "$dir/lib$name.la"; then
17666 found_la
="$dir/lib$name.la"
17672 if test "X$found_dir" != "X"; then
17677 if test "X$found_dir" != "X"; then
17678 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17679 if test "X$found_so" != "X"; then
17680 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17681 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17684 for x
in $ltrpathdirs; do
17685 if test "X$x" = "X$found_dir"; then
17690 if test -z "$haveit"; then
17691 ltrpathdirs
="$ltrpathdirs $found_dir"
17693 if test "$hardcode_direct" = yes; then
17694 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17696 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17697 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17699 for x
in $rpathdirs; do
17700 if test "X$x" = "X$found_dir"; then
17705 if test -z "$haveit"; then
17706 rpathdirs
="$rpathdirs $found_dir"
17710 for x
in $LDFLAGS $LIBINTL; do
17712 acl_save_prefix
="$prefix"
17713 prefix
="$acl_final_prefix"
17714 acl_save_exec_prefix
="$exec_prefix"
17715 exec_prefix
="$acl_final_exec_prefix"
17717 exec_prefix
="$acl_save_exec_prefix"
17718 prefix
="$acl_save_prefix"
17720 if test "X$x" = "X-L$found_dir"; then
17725 if test -z "$haveit"; then
17726 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17728 if test "$hardcode_minus_L" != no
; then
17729 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17731 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17737 if test "X$found_a" != "X"; then
17738 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17740 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17743 additional_includedir
=
17744 case "$found_dir" in
17746 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17747 additional_includedir
="$basedir/include"
17750 if test "X$additional_includedir" != "X"; then
17751 if test "X$additional_includedir" != "X/usr/include"; then
17753 if test "X$additional_includedir" = "X/usr/local/include"; then
17754 if test -n "$GCC"; then
17756 linux
*) haveit
=yes;;
17760 if test -z "$haveit"; then
17761 for x
in $CPPFLAGS $INCINTL; do
17763 acl_save_prefix
="$prefix"
17764 prefix
="$acl_final_prefix"
17765 acl_save_exec_prefix
="$exec_prefix"
17766 exec_prefix
="$acl_final_exec_prefix"
17768 exec_prefix
="$acl_save_exec_prefix"
17769 prefix
="$acl_save_prefix"
17771 if test "X$x" = "X-I$additional_includedir"; then
17776 if test -z "$haveit"; then
17777 if test -d "$additional_includedir"; then
17778 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17784 if test -n "$found_la"; then
17785 save_libdir
="$libdir"
17786 case "$found_la" in
17787 */* |
*\\*) .
"$found_la" ;;
17788 *) .
"./$found_la" ;;
17790 libdir
="$save_libdir"
17791 for dep
in $dependency_libs; do
17794 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17795 if test "X$additional_libdir" != "X/usr/lib"; then
17797 if test "X$additional_libdir" = "X/usr/local/lib"; then
17798 if test -n "$GCC"; then
17800 linux
*) haveit
=yes;;
17804 if test -z "$haveit"; then
17806 for x
in $LDFLAGS $LIBINTL; do
17808 acl_save_prefix
="$prefix"
17809 prefix
="$acl_final_prefix"
17810 acl_save_exec_prefix
="$exec_prefix"
17811 exec_prefix
="$acl_final_exec_prefix"
17813 exec_prefix
="$acl_save_exec_prefix"
17814 prefix
="$acl_save_prefix"
17816 if test "X$x" = "X-L$additional_libdir"; then
17821 if test -z "$haveit"; then
17822 if test -d "$additional_libdir"; then
17823 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17827 for x
in $LDFLAGS $LTLIBINTL; do
17829 acl_save_prefix
="$prefix"
17830 prefix
="$acl_final_prefix"
17831 acl_save_exec_prefix
="$exec_prefix"
17832 exec_prefix
="$acl_final_exec_prefix"
17834 exec_prefix
="$acl_save_exec_prefix"
17835 prefix
="$acl_save_prefix"
17837 if test "X$x" = "X-L$additional_libdir"; then
17842 if test -z "$haveit"; then
17843 if test -d "$additional_libdir"; then
17844 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17851 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17852 if test "$enable_rpath" != no
; then
17854 for x
in $rpathdirs; do
17855 if test "X$x" = "X$dir"; then
17860 if test -z "$haveit"; then
17861 rpathdirs
="$rpathdirs $dir"
17864 for x
in $ltrpathdirs; do
17865 if test "X$x" = "X$dir"; then
17870 if test -z "$haveit"; then
17871 ltrpathdirs
="$ltrpathdirs $dir"
17876 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17879 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17882 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17883 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17889 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17890 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17896 if test "X$rpathdirs" != "X"; then
17897 if test -n "$hardcode_libdir_separator"; then
17899 for found_dir
in $rpathdirs; do
17900 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17902 acl_save_libdir
="$libdir"
17904 eval flag
=\"$hardcode_libdir_flag_spec\"
17905 libdir
="$acl_save_libdir"
17906 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17908 for found_dir
in $rpathdirs; do
17909 acl_save_libdir
="$libdir"
17910 libdir
="$found_dir"
17911 eval flag
=\"$hardcode_libdir_flag_spec\"
17912 libdir
="$acl_save_libdir"
17913 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17917 if test "X$ltrpathdirs" != "X"; then
17918 for found_dir
in $ltrpathdirs; do
17919 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17923 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17924 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17925 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 gt_save_CPPFLAGS
="$CPPFLAGS"
17929 CPPFLAGS
="$CPPFLAGS $INCINTL"
17930 gt_save_LIBS
="$LIBS"
17931 LIBS
="$LIBS $LIBINTL"
17932 cat >conftest.
$ac_ext <<_ACEOF
17935 cat confdefs.h
>>conftest.
$ac_ext
17936 cat >>conftest.
$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <libintl.h>
17939 extern int _nl_msg_cat_cntr;
17944 const char *_nl_expand_alias ();
17948 bindtextdomain ("", "");
17949 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17954 rm -f conftest.
$ac_objext conftest
$ac_exeext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17956 (eval $ac_link) 2>conftest.er1
17958 grep -v '^ *+' conftest.er1
>conftest.err
17960 cat conftest.err
>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try
='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try
='test -s conftest$ac_exeext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 gt_cv_func_gnugettext2_libintl
=yes
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.
$ac_ext >&5
17981 gt_cv_func_gnugettext2_libintl
=no
17983 rm -f conftest.err conftest.
$ac_objext \
17984 conftest
$ac_exeext conftest.
$ac_ext
17985 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17986 LIBS
="$LIBS $LIBICONV"
17987 cat >conftest.
$ac_ext <<_ACEOF
17990 cat confdefs.h
>>conftest.
$ac_ext
17991 cat >>conftest.
$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 #include <libintl.h>
17994 extern int _nl_msg_cat_cntr;
17999 const char *_nl_expand_alias ();
18003 bindtextdomain ("", "");
18004 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18009 rm -f conftest.
$ac_objext conftest
$ac_exeext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18011 (eval $ac_link) 2>conftest.er1
18013 grep -v '^ *+' conftest.er1
>conftest.err
18015 cat conftest.err
>&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
18018 { ac_try
='test -z "$ac_c_werror_flag"
18019 || test ! -s conftest.err'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try
='test -s conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 LIBINTL
="$LIBINTL $LIBICONV"
18032 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
18033 gt_cv_func_gnugettext2_libintl
=yes
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.
$ac_ext >&5
18040 rm -f conftest.err conftest.
$ac_objext \
18041 conftest
$ac_exeext conftest.
$ac_ext
18043 CPPFLAGS
="$gt_save_CPPFLAGS"
18044 LIBS
="$gt_save_LIBS"
18046 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18047 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18050 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18051 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18052 && test "$PACKAGE" != gettext; }; then
18053 gt_use_preinstalled_gnugettext
=yes
18061 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18062 nls_cv_use_gnu_gettext
=yes
18066 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18067 INTLOBJS
="\$(GETTOBJS)"
18068 BUILD_INCLUDED_LIBINTL
=yes
18069 USE_INCLUDED_LIBINTL
=yes
18070 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
18071 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18072 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18075 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18076 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
18081 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18082 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
18084 cat >>confdefs.h
<<\_ACEOF
18085 #define ENABLE_NLS 1
18093 if test "$USE_NLS" = "yes"; then
18095 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18096 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18097 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18098 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18099 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18100 echo "${ECHO_T}$LIBINTL" >&6
18102 for element
in $INCINTL; do
18104 for x
in $CPPFLAGS; do
18106 acl_save_prefix
="$prefix"
18107 prefix
="$acl_final_prefix"
18108 acl_save_exec_prefix
="$exec_prefix"
18109 exec_prefix
="$acl_final_exec_prefix"
18111 exec_prefix
="$acl_save_exec_prefix"
18112 prefix
="$acl_save_prefix"
18114 if test "X$x" = "X$element"; then
18119 if test -z "$haveit"; then
18120 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18127 cat >>confdefs.h
<<\_ACEOF
18128 #define HAVE_GETTEXT 1
18132 cat >>confdefs.h
<<\_ACEOF
18133 #define HAVE_DCGETTEXT 1
18142 if test "$PACKAGE" = gettext; then
18143 BUILD_INCLUDED_LIBINTL
=yes
18151 nls_cv_header_intl
=
18152 nls_cv_header_libgt
=
18163 INTL_LIBTOOL_SUFFIX_PREFIX
=
18167 INTLLIBS
="$LIBINTL"
18174 if test $USE_INCLUDED_LIBINTL = yes; then
18175 INCINTL
=-I\
${top_builddir}/intl
18179 if test x
$USE_NLS = xyes
; then
18181 echo "$as_me:$LINENO: checking for autopoint" >&5
18182 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18183 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18184 if test -n "$autopoint_version"; then
18186 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18187 echo "${ECHO_T}yes ($autopoint_version)" >&6
18192 echo "$as_me:$LINENO: result: no" >&5
18193 echo "${ECHO_T}no" >&6
18201 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
18202 { echo "$as_me:$LINENO: WARNING:
18203 You need to install GNU gettext/gettext-tools to compile aMule with
18205 echo "$as_me: WARNING:
18206 You need to install GNU gettext/gettext-tools to compile aMule with
18207 i18n support." >&2;}
18208 _mule_warning_9
=yes
18209 _mule_has_warnings
=yes
18214 if test ${USE_NLS:-no} = yes; then
18216 echo "$as_me:$LINENO: checking for requested languages" >&5
18217 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18218 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18220 if test "$AMULE_DAEMON" = "yes"; then
18222 if test -z "$LINGUAS"; then
18223 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18226 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18227 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18231 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18234 AMULE_DAEMON_MANPAGES
=
18240 if test "$AMULECMD" = "yes"; then
18242 if test -z "$LINGUAS"; then
18243 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18246 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18247 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18251 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18260 if test "$WEB" = "yes"; then
18262 if test -z "$LINGUAS"; then
18263 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18266 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18267 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18271 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
18280 if test "$AMULE_GUI" = "yes"; then
18282 if test -z "$LINGUAS"; then
18283 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18286 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18287 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18291 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18294 AMULE_GUI_MANPAGES
=
18300 if test "$CAS" = "yes"; then
18302 if test -z "$LINGUAS"; then
18303 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18306 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18307 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18311 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18320 if test "$WXCAS" = "yes"; then
18322 if test -z "$LINGUAS"; then
18323 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18326 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18327 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18331 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18340 if test "$ED2K" = "yes"; then
18342 if test -z "$LINGUAS"; then
18343 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18346 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18347 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18351 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18360 if test "$ALC" = "yes"; then
18362 if test -z "$LINGUAS"; then
18363 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18366 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18367 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18371 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18380 if test "$ALCC" = "yes"; then
18382 if test -z "$LINGUAS"; then
18383 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18386 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18387 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18391 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18400 if test "$MONOLITHIC" = "yes"; then
18402 if test -z "$LINGUAS"; then
18403 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18406 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18407 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18411 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18414 MONOLITHIC_MANPAGES
=
18419 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18420 echo "${ECHO_T}${LINGUAS:-all}" >&6
18427 # Check for bfd.h (to have proper backtraces without using wxExecute)
18429 echo "$as_me:$LINENO: checking for bfd" >&5
18430 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18432 for bfd_ldadd
in "" "${LIBINTL}"; do
18433 mule_backup_LIBS
="$LIBS"
18434 mule_backup_LDFLAGS
="$LDFLAGS"
18435 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18436 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
18437 cat >conftest.
$ac_ext <<_ACEOF
18441 cat confdefs.h
>>conftest.
$ac_ext
18442 cat >>conftest.
$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18445 #include <ansidecl.h>
18452 char *dummy = bfd_errmsg(bfd_get_error());
18459 rm -f conftest.
$ac_objext conftest
$ac_exeext
18460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461 (eval $ac_link) 2>conftest.er1
18463 grep -v '^ *+' conftest.er1
>conftest.err
18465 cat conftest.err
>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try
='test -z "$ac_c_werror_flag"
18469 || test ! -s conftest.err'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try
='test -s conftest$ac_exeext'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18483 BFD_CPPFLAGS
="-DHAVE_BFD"
18484 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
18485 LIBS
="$mule_backup_LIBS"
18486 LDFLAGS
="$mule_backup_LDFLAGS"
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.
$ac_ext >&5
18494 rm -f conftest.err conftest.
$ac_objext \
18495 conftest
$ac_exeext conftest.
$ac_ext
18496 LIBS
="$mule_backup_LIBS"
18497 LDFLAGS
="$mule_backup_LDFLAGS"
18500 echo "$as_me:$LINENO: result: $result" >&5
18501 echo "${ECHO_T}$result" >&6
18503 if test $result = no
; then
18504 { echo "$as_me:$LINENO: WARNING:
18505 bfd.h not found or unusable, please install binutils development
18506 package if you are a developer or want to help testing aMule" >&5
18507 echo "$as_me: WARNING:
18508 bfd.h not found or unusable, please install binutils development
18509 package if you are a developer or want to help testing aMule" >&2;}
18510 _mule_warning_10
=yes
18511 _mule_has_warnings
=yes
18518 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18519 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18520 cat >conftest.
$ac_ext <<_ACEOF
18524 cat confdefs.h
>>conftest.
$ac_ext
18525 cat >>conftest.
$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18528 #include <execinfo.h>
18535 int n = backtrace(&bt, 1);
18536 const char **bt_syms = backtrace_symbols(bt, n);
18543 rm -f conftest.
$ac_objext conftest
$ac_exeext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>conftest.er1
18547 grep -v '^ *+' conftest.er1
>conftest.err
18549 cat conftest.err
>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } &&
18552 { ac_try
='test -z "$ac_c_werror_flag"
18553 || test ! -s conftest.err'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try
='test -s conftest$ac_exeext'
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18568 cat >>confdefs.h
<<\_ACEOF
18569 #define HAVE_EXECINFO 1
18572 echo "$as_me:$LINENO: result: yes" >&5
18573 echo "${ECHO_T}yes" >&6
18576 echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.
$ac_ext >&5
18580 echo "$as_me:$LINENO: result: no" >&5
18581 echo "${ECHO_T}no" >&6
18584 rm -f conftest.err conftest.
$ac_objext \
18585 conftest
$ac_exeext conftest.
$ac_ext
18588 # Flush standard test results for speeding cache
18589 cat >confcache
<<\_ACEOF
18590 # This file is a shell script that caches the results of configure
18591 # tests run on this system so they can be shared between configure
18592 # scripts and configure runs, see configure's option --config-cache.
18593 # It is not useful on other systems. If it contains results you don't
18594 # want to keep, you may remove or edit it.
18596 # config.status only pays attention to the cache file if you give it
18597 # the --recheck option to rerun configure.
18599 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18601 # following values.
18605 # The following way of writing the cache mishandles newlines in values,
18606 # but we know of no workaround that is simple, portable, and efficient.
18607 # So, don't put newlines in cache variables' values.
18608 # Ultrix sh set writes to stderr and can't be redirected directly,
18609 # and sets the high bit in the cache file unless we assign to the vars.
18612 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18614 # `set' does not quote correctly, so add quotes (double-quote
18615 # substitution turns \\\\ into \\, and sed turns \\ into \).
18618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18621 # `set' quotes correctly as required by POSIX, so do not add quotes.
18623 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18632 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18634 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18635 if test -w $cache_file; then
18636 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18637 cat confcache
>$cache_file
18639 echo "not updating unwritable cache $cache_file"
18648 # Check whether --enable-debug or --disable-debug was given.
18649 if test "${enable_debug+set}" = set; then
18650 enableval
="$enable_debug"
18651 USE_DEBUG
=${enableval:-yes}
18656 if test $USE_DEBUG = yes; then
18658 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18660 MULECFLAGS
="$MULECFLAGS -g"
18661 MULECXXFLAGS
="$MULECXXFLAGS -g"
18663 if test ${GLIBCXX:-no} = yes; then
18664 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18667 if test ${GCC:-no} = yes; then
18669 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18670 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18674 if test ${SYS:-unknown} = win32
; then
18675 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18681 if test ${GCC:-no} = yes; then
18683 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18684 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18693 # Check whether --enable-optimize or --disable-optimize was given.
18694 if test "${enable_optimize+set}" = set; then
18695 enableval
="$enable_optimize"
18696 USE_OPTIMIZE
=${enableval:-no}
18701 if test $USE_OPTIMIZE = yes; then
18703 MULECFLAGS
="$MULECFLAGS -O2"
18704 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18710 # Check whether --enable-profile or --disable-profile was given.
18711 if test "${enable_profile+set}" = set; then
18712 enableval
="$enable_profile"
18713 USE_PROFILE
=${enableval:-no}
18718 if test $USE_PROFILE = yes; then
18721 MULECFLAGS
="$MULECFLAGS -pg"
18722 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18724 MULELDFLAGS
="$MULELDFLAGS -pg"
18730 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18731 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18732 # Check whether --enable-static or --disable-static was given.
18733 if test "${enable_static+set}" = set; then
18734 enableval
="$enable_static"
18735 if test ${enableval:-no} = yes; then
18736 MULELDFLAGS
="$MULELDFLAGS -static"
18740 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18741 echo "${ECHO_T}${enableval:-no}" >&6
18743 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18746 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18747 echo "$as_me:$LINENO: checking for docdir" >&5
18748 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18749 if test -z "$docdir"; then
18750 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18753 echo "$as_me:$LINENO: result: $docdir" >&5
18754 echo "${ECHO_T}$docdir" >&6
18756 # Try to set the SVN checkout-date
18757 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18758 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18759 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18761 svndate
="rev. `cat $srcdir/.svn-revision`"
18762 elif test -d $srcdir/.svn
# SVNDATE for svn
18764 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18766 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18767 echo "${ECHO_T}${svndate:-None required}" >&6
18768 if test -n "$svndate"; then
18771 cat >>confdefs.h
<<_ACEOF
18772 #define SVNDATE "$svndate"
18775 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18783 # Check whether --with-denoise-level or --without-denoise-level was given.
18784 if test "${with_denoise_level+set}" = set; then
18785 withval
="$with_denoise_level"
18789 echo "$as_me:$LINENO: checking denoising level" >&5
18790 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18791 if test ${with_denoise_level:-5} = yes; then
18792 with_denoise_level
=5
18795 if test ${with_denoise_level:-5} = no
; then
18796 with_denoise_level
=0
18799 if test ${with_denoise_level:-5} -gt 4; then
18800 if test "${svndate:+set}" = "set"; then
18801 with_denoise_level
=0
18803 with_denoise_level
=4
18808 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18809 echo "${ECHO_T}$with_denoise_level" >&6
18811 ac_config_commands
="$ac_config_commands denoiser"
18817 if test x
$WEB = xyes
; then
18827 if test x
$ED2K = xyes
; then
18837 if test x
$CAS = xyes
; then
18847 if test x
$WXCAS = xyes
; then
18857 if test x
$ALC = xyes
; then
18867 if test x
$ALCC = xyes
; then
18877 if test x
$AMULE_GUI = xyes
; then
18879 AMULE_GUI_FALSE
='#'
18887 if test x
$AMULE_DAEMON = xyes
; then
18889 AMULE_DAEMON_FALSE
='#'
18891 AMULE_DAEMON_TRUE
='#'
18892 AMULE_DAEMON_FALSE
=
18897 if test x
$AMULECMD = xyes
; then
18899 COMPILE_CMD_FALSE
='#'
18901 COMPILE_CMD_TRUE
='#'
18907 if test x
$MONOLITHIC = xyes
; then
18909 MONOLITHIC_FALSE
='#'
18911 MONOLITHIC_TRUE
='#'
18917 if test x
$XAS = xyes
; then
18927 if test x
$ENABLE_UPNP = xyes
; then
18929 ENABLE_UPNP_FALSE
='#'
18931 ENABLE_UPNP_TRUE
='#'
18937 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18938 ENABLE_IP2COUNTRY_TRUE
=
18939 ENABLE_IP2COUNTRY_FALSE
='#'
18941 ENABLE_IP2COUNTRY_TRUE
='#'
18942 ENABLE_IP2COUNTRY_FALSE
=
18947 if test x
$SYS = xwin32
; then
18949 SYS_WIN32_FALSE
='#'
18957 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18967 if test x
$SYS = xdarwin
; then
18968 NEED_CORESERVICES_TRUE
=
18969 NEED_CORESERVICES_FALSE
='#'
18971 NEED_CORESERVICES_TRUE
='#'
18972 NEED_CORESERVICES_FALSE
=
18977 if test x
$USE_NLS = xyes
; then
18979 COMPILE_NLS_FALSE
='#'
18981 COMPILE_NLS_TRUE
='#'
18987 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18988 GENERATE_FLEX_HEADER_TRUE
=
18989 GENERATE_FLEX_HEADER_FALSE
='#'
18991 GENERATE_FLEX_HEADER_TRUE
='#'
18992 GENERATE_FLEX_HEADER_FALSE
=
18997 if test x
$INSTALL_SKINS = xyes
; then
18998 INSTALL_SKINS_TRUE
=
18999 INSTALL_SKINS_FALSE
='#'
19001 INSTALL_SKINS_TRUE
='#'
19002 INSTALL_SKINS_FALSE
=
19006 # Check for readline library
19007 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
19009 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
19010 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
19011 if test "${vl_cv_lib_readline+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 for readline_lib
in readline edit editline
; do
19017 for termcap_lib
in "" termcap curses ncurses
; do
19018 if test -z "$termcap_lib"; then
19019 TRY_LIB
="-l$readline_lib"
19021 TRY_LIB
="-l$readline_lib -l$termcap_lib"
19023 LIBS
="$ORIG_LIBS $TRY_LIB"
19024 cat >conftest.
$ac_ext <<_ACEOF
19027 cat confdefs.h
>>conftest.
$ac_ext
19028 cat >>conftest.
$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19031 /* Override any gcc2 internal prototype to avoid an error. */
19035 /* We use char because int might match the return type of a gcc2
19036 builtin and then its argument prototype would still apply. */
19046 rm -f conftest.
$ac_objext conftest
$ac_exeext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048 (eval $ac_link) 2>conftest.er1
19050 grep -v '^ *+' conftest.er1
>conftest.err
19052 cat conftest.err
>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try
='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try
='test -s conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 vl_cv_lib_readline
="$TRY_LIB"
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.
$ac_ext >&5
19074 rm -f conftest.err conftest.
$ac_objext \
19075 conftest
$ac_exeext conftest.
$ac_ext
19076 if test -n "$vl_cv_lib_readline"; then
19080 if test -n "$vl_cv_lib_readline"; then
19084 if test -z "$vl_cv_lib_readline"; then
19085 vl_cv_lib_readline
="no"
19089 READLINE_LIBS
="$vl_cv_lib_readline"
19093 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19094 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19096 if test "$vl_cv_lib_readline" != "no"; then
19098 cat >>confdefs.h
<<\_ACEOF
19099 #define HAVE_LIBREADLINE 1
19104 for ac_header
in readline.h readline
/readline.h
19106 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19108 echo "$as_me:$LINENO: checking for $ac_header" >&5
19109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19116 # Is the header compilable?
19117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19119 cat >conftest.
$ac_ext <<_ACEOF
19122 cat confdefs.h
>>conftest.
$ac_ext
19123 cat >>conftest.
$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 $ac_includes_default
19126 #include <$ac_header>
19128 rm -f conftest.
$ac_objext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19130 (eval $ac_compile) 2>conftest.er1
19132 grep -v '^ *+' conftest.er1
>conftest.err
19134 cat conftest.err
>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try
='test -z "$ac_c_werror_flag"
19138 || test ! -s conftest.err'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try
='test -s conftest.$ac_objext'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_header_compiler
=yes
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.
$ac_ext >&5
19155 ac_header_compiler
=no
19157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19159 echo "${ECHO_T}$ac_header_compiler" >&6
19161 # Is the header present?
19162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19164 cat >conftest.
$ac_ext <<_ACEOF
19167 cat confdefs.h
>>conftest.
$ac_ext
19168 cat >>conftest.
$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 #include <$ac_header>
19172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19175 grep -v '^ *+' conftest.er1
>conftest.err
19177 cat conftest.err
>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } >/dev
/null
; then
19180 if test -s conftest.err
; then
19181 ac_cpp_err
=$ac_c_preproc_warn_flag
19182 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19189 if test -z "$ac_cpp_err"; then
19190 ac_header_preproc
=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.
$ac_ext >&5
19195 ac_header_preproc
=no
19197 rm -f conftest.err conftest.
$ac_ext
19198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19199 echo "${ECHO_T}$ac_header_preproc" >&6
19201 # So? What about this header?
19202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19208 ac_header_preproc
=yes
19211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19225 ## ------------------------------ ##
19226 ## Report this to admin@amule.org ##
19227 ## ------------------------------ ##
19230 sed "s/^/$as_me: WARNING: /" >&2
19233 echo "$as_me:$LINENO: checking for $ac_header" >&5
19234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 eval "$as_ac_Header=\$ac_header_preproc"
19240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19245 cat >>confdefs.h
<<_ACEOF
19246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19253 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19254 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19255 if test "${vl_cv_lib_readline_history+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 vl_cv_lib_readline_history
="no"
19260 cat >conftest.
$ac_ext <<_ACEOF
19263 cat confdefs.h
>>conftest.
$ac_ext
19264 cat >>conftest.
$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any gcc2 internal prototype to avoid an error. */
19271 /* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19273 char add_history ();
19282 rm -f conftest.
$ac_objext conftest
$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
19286 grep -v '^ *+' conftest.er1
>conftest.err
19288 cat conftest.err
>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try
='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try
='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 vl_cv_lib_readline_history
="yes"
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.
$ac_ext >&5
19310 rm -f conftest.err conftest.
$ac_objext \
19311 conftest
$ac_exeext conftest.
$ac_ext
19314 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19315 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19316 if test "$vl_cv_lib_readline_history" = "yes"; then
19318 cat >>confdefs.h
<<\_ACEOF
19319 #define HAVE_READLINE_HISTORY 1
19324 for ac_header
in history.h readline
/history.h
19326 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19328 echo "$as_me:$LINENO: checking for $ac_header" >&5
19329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19336 # Is the header compilable?
19337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19339 cat >conftest.
$ac_ext <<_ACEOF
19342 cat confdefs.h
>>conftest.
$ac_ext
19343 cat >>conftest.
$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 $ac_includes_default
19346 #include <$ac_header>
19348 rm -f conftest.
$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19352 grep -v '^ *+' conftest.er1
>conftest.err
19354 cat conftest.err
>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try
='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try
='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_header_compiler
=yes
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.
$ac_ext >&5
19375 ac_header_compiler
=no
19377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19379 echo "${ECHO_T}$ac_header_compiler" >&6
19381 # Is the header present?
19382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19384 cat >conftest.
$ac_ext <<_ACEOF
19387 cat confdefs.h
>>conftest.
$ac_ext
19388 cat >>conftest.
$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 #include <$ac_header>
19392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19393 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19395 grep -v '^ *+' conftest.er1
>conftest.err
19397 cat conftest.err
>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } >/dev
/null
; then
19400 if test -s conftest.err
; then
19401 ac_cpp_err
=$ac_c_preproc_warn_flag
19402 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19409 if test -z "$ac_cpp_err"; then
19410 ac_header_preproc
=yes
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.
$ac_ext >&5
19415 ac_header_preproc
=no
19417 rm -f conftest.err conftest.
$ac_ext
19418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19419 echo "${ECHO_T}$ac_header_preproc" >&6
19421 # So? What about this header?
19422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19428 ac_header_preproc
=yes
19431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19445 ## ------------------------------ ##
19446 ## Report this to admin@amule.org ##
19447 ## ------------------------------ ##
19450 sed "s/^/$as_me: WARNING: /" >&2
19453 echo "$as_me:$LINENO: checking for $ac_header" >&5
19454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 eval "$as_ac_Header=\$ac_header_preproc"
19460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19465 cat >>confdefs.h
<<_ACEOF
19466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19480 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19483 # Check whether --enable-ccache or --disable-ccache was given.
19484 if test "${enable_ccache+set}" = set; then
19485 enableval
="$enable_ccache"
19490 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19491 if test "${with_ccache_prefix+set}" = set; then
19492 withval
="$with_ccache_prefix"
19496 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19497 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19498 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19499 echo "${ECHO_T}${enable_ccache:-no}" >&6
19501 if test ${enable_ccache:-no} = yes; then
19503 echo "$as_me:$LINENO: checking for ccache presence" >&5
19504 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19505 if test -z "$with_ccache_prefix"; then
19507 ccache_full
=`which ccache`
19508 with_ccache_prefix
=`dirname ${ccache_full}`
19512 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19514 echo "$as_me:$LINENO: result: yes" >&5
19515 echo "${ECHO_T}yes" >&6
19516 CC
="$with_ccache_prefix/ccache $CC"
19517 CXX
="$with_ccache_prefix/ccache $CXX"
19518 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19523 echo "$as_me:$LINENO: result: no" >&5
19524 echo "${ECHO_T}no" >&6
19533 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19535 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19537 if test x
$SYS = xwin32
; then
19538 ac_config_files
="$ac_config_files version.rc"
19542 cat >confcache
<<\_ACEOF
19543 # This file is a shell script that caches the results of configure
19544 # tests run on this system so they can be shared between configure
19545 # scripts and configure runs, see configure's option --config-cache.
19546 # It is not useful on other systems. If it contains results you don't
19547 # want to keep, you may remove or edit it.
19549 # config.status only pays attention to the cache file if you give it
19550 # the --recheck option to rerun configure.
19552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19554 # following values.
19558 # The following way of writing the cache mishandles newlines in values,
19559 # but we know of no workaround that is simple, portable, and efficient.
19560 # So, don't put newlines in cache variables' values.
19561 # Ultrix sh set writes to stderr and can't be redirected directly,
19562 # and sets the high bit in the cache file unless we assign to the vars.
19565 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19567 # `set' does not quote correctly, so add quotes (double-quote
19568 # substitution turns \\\\ into \\, and sed turns \\ into \).
19571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19574 # `set' quotes correctly as required by POSIX, so do not add quotes.
19576 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19585 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19587 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19588 if test -w $cache_file; then
19589 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19590 cat confcache
>$cache_file
19592 echo "not updating unwritable cache $cache_file"
19597 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19598 # Let make expand exec_prefix.
19599 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19603 # trailing colons and then remove the whole line if VPATH becomes empty
19604 # (actually we leave an empty line to preserve line numbers).
19605 if test "x$srcdir" = x.
; then
19606 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19607 s/:*\$(srcdir):*/:/;
19608 s/:*\${srcdir}:*/:/;
19610 s/^\([^=]*=[ ]*\):*/\1/;
19616 DEFS
=-DHAVE_CONFIG_H
19620 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19621 # 1. Remove the extension, and $U if already installed.
19622 ac_i
=`echo "$ac_i" |
19623 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19625 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19626 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19628 LIBOBJS
=$ac_libobjs
19630 LTLIBOBJS
=$ac_ltlibobjs
19633 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19634 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&5
19636 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&2;}
19638 { (exit 1); exit 1; }; }
19640 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19641 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19642 Usually this means the macro was only invoked conditionally." >&5
19643 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19644 Usually this means the macro was only invoked conditionally." >&2;}
19645 { (exit 1); exit 1; }; }
19647 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19648 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19649 Usually this means the macro was only invoked conditionally." >&5
19650 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19651 Usually this means the macro was only invoked conditionally." >&2;}
19652 { (exit 1); exit 1; }; }
19654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19655 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19656 Usually this means the macro was only invoked conditionally." >&5
19657 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19658 Usually this means the macro was only invoked conditionally." >&2;}
19659 { (exit 1); exit 1; }; }
19661 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19662 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19663 Usually this means the macro was only invoked conditionally." >&5
19664 echo "$as_me: error: conditional \"WEB\" was never defined.
19665 Usually this means the macro was only invoked conditionally." >&2;}
19666 { (exit 1); exit 1; }; }
19668 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19669 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19670 Usually this means the macro was only invoked conditionally." >&5
19671 echo "$as_me: error: conditional \"ED2K\" was never defined.
19672 Usually this means the macro was only invoked conditionally." >&2;}
19673 { (exit 1); exit 1; }; }
19675 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19676 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19677 Usually this means the macro was only invoked conditionally." >&5
19678 echo "$as_me: error: conditional \"CAS\" was never defined.
19679 Usually this means the macro was only invoked conditionally." >&2;}
19680 { (exit 1); exit 1; }; }
19682 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19683 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19684 Usually this means the macro was only invoked conditionally." >&5
19685 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19686 Usually this means the macro was only invoked conditionally." >&2;}
19687 { (exit 1); exit 1; }; }
19689 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19690 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19691 Usually this means the macro was only invoked conditionally." >&5
19692 echo "$as_me: error: conditional \"ALC\" was never defined.
19693 Usually this means the macro was only invoked conditionally." >&2;}
19694 { (exit 1); exit 1; }; }
19696 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19697 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19698 Usually this means the macro was only invoked conditionally." >&5
19699 echo "$as_me: error: conditional \"ALCC\" was never defined.
19700 Usually this means the macro was only invoked conditionally." >&2;}
19701 { (exit 1); exit 1; }; }
19703 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19704 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19705 Usually this means the macro was only invoked conditionally." >&5
19706 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19707 Usually this means the macro was only invoked conditionally." >&2;}
19708 { (exit 1); exit 1; }; }
19710 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19711 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19712 Usually this means the macro was only invoked conditionally." >&5
19713 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19714 Usually this means the macro was only invoked conditionally." >&2;}
19715 { (exit 1); exit 1; }; }
19717 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19718 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19719 Usually this means the macro was only invoked conditionally." >&5
19720 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19721 Usually this means the macro was only invoked conditionally." >&2;}
19722 { (exit 1); exit 1; }; }
19724 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19725 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19726 Usually this means the macro was only invoked conditionally." >&5
19727 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19728 Usually this means the macro was only invoked conditionally." >&2;}
19729 { (exit 1); exit 1; }; }
19731 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19732 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19733 Usually this means the macro was only invoked conditionally." >&5
19734 echo "$as_me: error: conditional \"XAS\" was never defined.
19735 Usually this means the macro was only invoked conditionally." >&2;}
19736 { (exit 1); exit 1; }; }
19738 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19739 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19740 Usually this means the macro was only invoked conditionally." >&5
19741 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19742 Usually this means the macro was only invoked conditionally." >&2;}
19743 { (exit 1); exit 1; }; }
19745 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19746 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19747 Usually this means the macro was only invoked conditionally." >&5
19748 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19749 Usually this means the macro was only invoked conditionally." >&2;}
19750 { (exit 1); exit 1; }; }
19752 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19753 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19754 Usually this means the macro was only invoked conditionally." >&5
19755 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19756 Usually this means the macro was only invoked conditionally." >&2;}
19757 { (exit 1); exit 1; }; }
19759 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19760 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19761 Usually this means the macro was only invoked conditionally." >&5
19762 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19763 Usually this means the macro was only invoked conditionally." >&2;}
19764 { (exit 1); exit 1; }; }
19766 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19767 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19768 Usually this means the macro was only invoked conditionally." >&5
19769 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19770 Usually this means the macro was only invoked conditionally." >&2;}
19771 { (exit 1); exit 1; }; }
19773 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19774 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19775 Usually this means the macro was only invoked conditionally." >&5
19776 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19777 Usually this means the macro was only invoked conditionally." >&2;}
19778 { (exit 1); exit 1; }; }
19780 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19781 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19782 Usually this means the macro was only invoked conditionally." >&5
19783 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19784 Usually this means the macro was only invoked conditionally." >&2;}
19785 { (exit 1); exit 1; }; }
19787 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19788 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19789 Usually this means the macro was only invoked conditionally." >&5
19790 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19791 Usually this means the macro was only invoked conditionally." >&2;}
19792 { (exit 1); exit 1; }; }
19795 : ${CONFIG_STATUS=./config.status}
19796 ac_clean_files_save
=$ac_clean_files
19797 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19798 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19799 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19800 cat >$CONFIG_STATUS <<_ACEOF
19802 # Generated by $as_me.
19803 # Run this file to recreate the current configuration.
19804 # Compiler output produced by configure, useful for debugging
19805 # configure, is in config.log if it exists.
19808 ac_cs_recheck=false
19810 SHELL=\${CONFIG_SHELL-$SHELL}
19813 cat >>$CONFIG_STATUS <<\_ACEOF
19814 ## --------------------- ##
19815 ## M4sh Initialization. ##
19816 ## --------------------- ##
19818 # Be Bourne compatible
19819 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19822 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19823 # is contrary to our usage. Disable this feature.
19824 alias -g '${1+"$@"}'='"$@"'
19825 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19828 DUALCASE
=1; export DUALCASE
# for MKS sh
19830 # Support unset when possible.
19831 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19838 # Work around bugs in pre-3.0 UWIN ksh.
19839 $as_unset ENV MAIL MAILPATH
19846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19848 LC_TELEPHONE LC_TIME
19850 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19851 eval $as_var=C
; export $as_var
19857 # Required to use basename.
19858 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19864 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19865 as_basename
=basename
19871 # Name of the executable.
19872 as_me
=`$as_basename "$0" ||
19873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19874 X"$0" : 'X\(//\)$' \| \
19875 X"$0" : 'X\(/\)$' \| \
19876 . : '\(.\)' 2>/dev/null ||
19878 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19879 /^X\/\(\/\/\)$/{ s//\1/; q; }
19880 /^X\/\(\/\).*/{ s//\1/; q; }
19884 # PATH needs CR, and LINENO needs CR and PATH.
19885 # Avoid depending upon Character Ranges.
19886 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19887 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19888 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19889 as_cr_digits
='0123456789'
19890 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19892 # The user is always right.
19893 if test "${PATH_SEPARATOR+set}" != set; then
19894 echo "#! /bin/sh" >conf$$.sh
19895 echo "exit 0" >>conf$$.sh
19897 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19906 as_lineno_1
=$LINENO
19907 as_lineno_2
=$LINENO
19908 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19909 test "x$as_lineno_1" != "x$as_lineno_2" &&
19910 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19911 # Find who we are. Look in the path if we contain no path at all
19914 *[\\/]* ) as_myself
=$0 ;;
19915 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19916 for as_dir
in $PATH
19919 test -z "$as_dir" && as_dir
=.
19920 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19925 # We did not find ourselves, most probably we were run as `sh COMMAND'
19926 # in which case we are not to be found in the path.
19927 if test "x$as_myself" = x
; then
19930 if test ! -f "$as_myself"; then
19931 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19932 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19933 { (exit 1); exit 1; }; }
19935 case $CONFIG_SHELL in
19937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19938 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19941 test -z "$as_dir" && as_dir
=.
19942 for as_base
in sh bash ksh sh5
; do
19945 if ("$as_dir/$as_base" -c '
19946 as_lineno_1=$LINENO
19947 as_lineno_2=$LINENO
19948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19949 test "x$as_lineno_1" != "x$as_lineno_2" &&
19950 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19951 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19952 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19953 CONFIG_SHELL
=$as_dir/$as_base
19954 export CONFIG_SHELL
19955 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19964 # uniformly replaced by the line number. The first 'sed' inserts a
19965 # line-number line before each line; the second 'sed' does the real
19966 # work. The second script uses 'N' to pair each line-number line
19967 # with the numbered line, and appends trailing '-' during
19968 # substitution so that $LINENO is not a special case at line end.
19969 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19970 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19971 sed '=' <$as_myself |
19976 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19979 s,^['$as_cr_digits']*\n,,
19980 ' >$as_me.lineno
&&
19981 chmod +x
$as_me.lineno ||
19982 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19983 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19984 { (exit 1); exit 1; }; }
19986 # Don't try to exec as it changes $[0], causing all sort of problems
19987 # (the dirname of $[0] is not the place where we might find the
19988 # original and so on. Autoconf is especially sensible to this).
19990 # Exit status is that of the last command.
19995 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19996 *c
*,-n*) ECHO_N
= ECHO_C
='
19998 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19999 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20002 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20008 rm -f conf$$ conf$$.exe conf$$.
file
20010 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20011 # We could just check for DJGPP; but this test a) works b) is more generic
20012 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20013 if test -f conf$$.exe
; then
20014 # Don't use ln at all; we don't have any links
20019 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20024 rm -f conf$$ conf$$.exe conf$$.
file
20026 if mkdir
-p .
2>/dev
/null
; then
20029 test -d .
/-p && rmdir .
/-p
20033 as_executable_p
="test -f"
20035 # Sed expression to map a string onto a valid CPP name.
20036 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20038 # Sed expression to map a string onto a valid variable name.
20039 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20043 # We need space, tab and new line, in precisely that order.
20053 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20054 # report actual input values of CONFIG_FILES etc. instead of their
20055 # values after options handling. Logging --version etc. is OK.
20059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20060 ## Running $as_me. ##
20065 This file was extended by aMule $as_me SVN, which was
20066 generated by GNU Autoconf 2.59. Invocation command line was
20068 CONFIG_FILES = $CONFIG_FILES
20069 CONFIG_HEADERS = $CONFIG_HEADERS
20070 CONFIG_LINKS = $CONFIG_LINKS
20071 CONFIG_COMMANDS = $CONFIG_COMMANDS
20075 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20079 # Files that config.status was made for.
20080 if test -n "$ac_config_files"; then
20081 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20084 if test -n "$ac_config_headers"; then
20085 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20088 if test -n "$ac_config_links"; then
20089 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20092 if test -n "$ac_config_commands"; then
20093 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20096 cat >>$CONFIG_STATUS <<\_ACEOF
20099 \`$as_me' instantiates files from templates according to the
20100 current configuration.
20102 Usage: $0 [OPTIONS] [FILE]...
20104 -h, --help print this help, then exit
20105 -V, --version print version number, then exit
20106 -q, --quiet do not print progress messages
20107 -d, --debug don't remove temporary files
20108 --recheck update $as_me by reconfiguring in the same conditions
20109 --file=FILE[:TEMPLATE]
20110 instantiate the configuration file FILE
20111 --header=FILE[:TEMPLATE]
20112 instantiate the configuration header FILE
20114 Configuration files:
20117 Configuration headers:
20120 Configuration commands:
20123 Report bugs to <bug-autoconf@gnu.org>."
20126 cat >>$CONFIG_STATUS <<_ACEOF
20128 aMule config.status SVN
20129 configured by $0, generated by GNU Autoconf 2.59,
20130 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20132 Copyright (C) 2003 Free Software Foundation, Inc.
20133 This config.status script is free software; the Free Software Foundation
20134 gives unlimited permission to copy, distribute and modify it."
20139 cat >>$CONFIG_STATUS <<\_ACEOF
20140 # If no file are specified by the user, then we need to provide default
20141 # value. By we need to know if files were specified by the user.
20147 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20148 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20156 *) # This is not an option, so the user has probably given explicit
20159 ac_need_defaults
=false
;;
20163 # Handling of the options.
20165 cat >>$CONFIG_STATUS <<\_ACEOF
20166 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20168 --version |
--vers* |
-V )
20169 echo "$ac_cs_version"; exit 0 ;;
20171 # Conflict between --help and --header
20172 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20173 Try \`$0 --help' for more information." >&5
20174 echo "$as_me: error: ambiguous option: $1
20175 Try \`$0 --help' for more information." >&2;}
20176 { (exit 1); exit 1; }; };;
20177 --help |
--hel |
-h )
20178 echo "$ac_cs_usage"; exit 0 ;;
20179 --debug |
--d* |
-d )
20181 --file |
--fil |
--fi |
--f )
20183 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20184 ac_need_defaults
=false
;;
20185 --header |
--heade |
--head |
--hea )
20187 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20188 ac_need_defaults
=false
;;
20189 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20190 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20193 # This is an error.
20194 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20195 Try \`$0 --help' for more information." >&5
20196 echo "$as_me: error: unrecognized option: $1
20197 Try \`$0 --help' for more information." >&2;}
20198 { (exit 1); exit 1; }; } ;;
20200 *) ac_config_targets
="$ac_config_targets $1" ;;
20206 ac_configure_extra_args
=
20208 if $ac_cs_silent; then
20210 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20214 cat >>$CONFIG_STATUS <<_ACEOF
20215 if \$ac_cs_recheck; then
20216 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20217 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20222 cat >>$CONFIG_STATUS <<_ACEOF
20224 # INIT-COMMANDS section.
20227 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20228 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20229 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20231 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20232 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20233 LINGUAS="${LINGUAS-%UNSET%}"
20235 denoiserlevel=$with_denoise_level
20241 cat >>$CONFIG_STATUS <<\_ACEOF
20242 for ac_config_target
in $ac_config_targets
20244 case "$ac_config_target" in
20245 # Handling of arguments.
20246 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20247 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
20248 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
20249 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
20250 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20251 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
20252 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20253 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
20254 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
20255 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20256 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
20257 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
20258 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20259 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20260 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20261 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
20262 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20263 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20264 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20265 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20266 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20267 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
20268 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20269 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20270 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
20271 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
20272 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
20273 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
20274 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
20275 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20276 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20277 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20278 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20279 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20280 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20281 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20282 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20283 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20286 { (exit 1); exit 1; }; };;
20290 # If the user did not use the arguments to specify the items to instantiate,
20291 # then the envvar interface is used. Set only those that are not.
20292 # We use the long form for the default assignment because of an extremely
20293 # bizarre bug on SunOS 4.1.3.
20294 if $ac_need_defaults; then
20295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20300 # Have a temporary directory for convenience. Make it in the build tree
20301 # simply because there is no reason to put it here, and in addition,
20302 # creating and moving files from /tmp can sometimes cause problems.
20303 # Create a temporary directory, and hook for its removal unless debugging.
20306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20307 trap '{ (exit 1); exit 1; }' 1 2 13 15
20310 # Create a (secure) tmp directory for tmp files.
20313 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20314 test -n "$tmp" && test -d "$tmp"
20317 tmp
=.
/confstat$$
-$RANDOM
20318 (umask 077 && mkdir
$tmp)
20321 echo "$me: cannot create a temporary directory in ." >&2
20322 { (exit 1); exit 1; }
20327 cat >>$CONFIG_STATUS <<_ACEOF
20330 # CONFIG_FILES section.
20333 # No need to generate the scripts if there are no CONFIG_FILES.
20334 # This happens for instance when ./config.status config.h
20335 if test -n "\$CONFIG_FILES"; then
20336 # Protect against being on the right side of a sed subst in config.status.
20337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20339 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20340 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20341 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20342 s,@SHELL@,$SHELL,;t t
20343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20349 s,@exec_prefix@,$exec_prefix,;t t
20350 s,@prefix@,$prefix,;t t
20351 s,@program_transform_name@,$program_transform_name,;t t
20352 s,@bindir@,$bindir,;t t
20353 s,@sbindir@,$sbindir,;t t
20354 s,@libexecdir@,$libexecdir,;t t
20355 s,@datadir@,$datadir,;t t
20356 s,@sysconfdir@,$sysconfdir,;t t
20357 s,@sharedstatedir@,$sharedstatedir,;t t
20358 s,@localstatedir@,$localstatedir,;t t
20359 s,@libdir@,$libdir,;t t
20360 s,@includedir@,$includedir,;t t
20361 s,@oldincludedir@,$oldincludedir,;t t
20362 s,@infodir@,$infodir,;t t
20363 s,@mandir@,$mandir,;t t
20364 s,@build_alias@,$build_alias,;t t
20365 s,@host_alias@,$host_alias,;t t
20366 s,@target_alias@,$target_alias,;t t
20367 s,@DEFS@,$DEFS,;t t
20368 s,@ECHO_C@,$ECHO_C,;t t
20369 s,@ECHO_N@,$ECHO_N,;t t
20370 s,@ECHO_T@,$ECHO_T,;t t
20371 s,@LIBS@,$LIBS,;t t
20372 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20373 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20374 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20375 s,@CYGPATH_W@,$CYGPATH_W,;t t
20376 s,@PACKAGE@,$PACKAGE,;t t
20377 s,@VERSION@,$VERSION,;t t
20378 s,@ACLOCAL@,$ACLOCAL,;t t
20379 s,@AUTOCONF@,$AUTOCONF,;t t
20380 s,@AUTOMAKE@,$AUTOMAKE,;t t
20381 s,@AUTOHEADER@,$AUTOHEADER,;t t
20382 s,@MAKEINFO@,$MAKEINFO,;t t
20383 s,@install_sh@,$install_sh,;t t
20384 s,@STRIP@,$STRIP,;t t
20385 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20386 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20387 s,@mkdir_p@,$mkdir_p,;t t
20389 s,@SET_MAKE@,$SET_MAKE,;t t
20390 s,@am__leading_dot@,$am__leading_dot,;t t
20391 s,@AMTAR@,$AMTAR,;t t
20392 s,@am__tar@,$am__tar,;t t
20393 s,@am__untar@,$am__untar,;t t
20394 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20395 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20396 s,@MAINT@,$MAINT,;t t
20397 s,@build@,$build,;t t
20398 s,@build_cpu@,$build_cpu,;t t
20399 s,@build_vendor@,$build_vendor,;t t
20400 s,@build_os@,$build_os,;t t
20401 s,@host@,$host,;t t
20402 s,@host_cpu@,$host_cpu,;t t
20403 s,@host_vendor@,$host_vendor,;t t
20404 s,@host_os@,$host_os,;t t
20405 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20406 s,@X11LIBS@,$X11LIBS,;t t
20407 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20408 s,@MULECFLAGS@,$MULECFLAGS,;t t
20409 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20410 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20411 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20413 s,@CXXFLAGS@,$CXXFLAGS,;t t
20414 s,@LDFLAGS@,$LDFLAGS,;t t
20415 s,@CPPFLAGS@,$CPPFLAGS,;t t
20416 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20417 s,@EXEEXT@,$EXEEXT,;t t
20418 s,@OBJEXT@,$OBJEXT,;t t
20419 s,@DEPDIR@,$DEPDIR,;t t
20420 s,@am__include@,$am__include,;t t
20421 s,@am__quote@,$am__quote,;t t
20422 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20423 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20424 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20425 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20426 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20427 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20428 s,@CXXCPP@,$CXXCPP,;t t
20430 s,@CFLAGS@,$CFLAGS,;t t
20431 s,@ac_ct_CC@,$ac_ct_CC,;t t
20432 s,@CCDEPMODE@,$CCDEPMODE,;t t
20433 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20434 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20436 s,@BUILD_CC@,$BUILD_CC,;t t
20437 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20438 s,@EXEEXT@,$EXEEXT,;t t
20439 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20440 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20441 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20442 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20443 s,@EGREP@,$EGREP,;t t
20445 s,@LEXLIB@,$LEXLIB,;t t
20446 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20447 s,@RANLIB@,$RANLIB,;t t
20448 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20449 s,@YACC@,$YACC,;t t
20451 s,@ac_ct_AR@,$ac_ct_AR,;t t
20453 s,@ac_ct_LD@,$ac_ct_LD,;t t
20454 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20455 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20456 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20457 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20458 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20459 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20460 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20461 s,@CAS_DEFS@,$CAS_DEFS,;t t
20462 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20463 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20464 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20465 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20466 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20467 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20468 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20469 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20470 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20471 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20472 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20473 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20474 s,@WX_LIBS@,$WX_LIBS,;t t
20475 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20476 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20477 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20478 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20479 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20480 s,@WX_UNICODE@,$WX_UNICODE,;t t
20481 s,@WX_DEBUG@,$WX_DEBUG,;t t
20482 s,@WX_SHARED@,$WX_SHARED,;t t
20483 s,@WX_PORT@,$WX_PORT,;t t
20484 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20485 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20487 s,@RCFLAGS@,$RCFLAGS,;t t
20488 s,@ac_ct_RC@,$ac_ct_RC,;t t
20489 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20490 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20491 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20492 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20493 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20494 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20495 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20496 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20497 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20498 s,@ALLOCA@,$ALLOCA,;t t
20499 s,@LIBOBJS@,$LIBOBJS,;t t
20500 s,@POW_LIB@,$POW_LIB,;t t
20501 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20502 s,@MSGFMT@,$MSGFMT,;t t
20503 s,@GMSGFMT@,$GMSGFMT,;t t
20504 s,@XGETTEXT@,$XGETTEXT,;t t
20505 s,@MSGMERGE@,$MSGMERGE,;t t
20506 s,@GLIBC21@,$GLIBC21,;t t
20507 s,@LIBICONV@,$LIBICONV,;t t
20508 s,@LTLIBICONV@,$LTLIBICONV,;t t
20509 s,@INTLBISON@,$INTLBISON,;t t
20510 s,@USE_NLS@,$USE_NLS,;t t
20511 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20512 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20513 s,@CATOBJEXT@,$CATOBJEXT,;t t
20514 s,@INTLOBJS@,$INTLOBJS,;t t
20515 s,@DATADIRNAME@,$DATADIRNAME,;t t
20516 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20517 s,@GENCAT@,$GENCAT,;t t
20518 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20519 s,@INTLLIBS@,$INTLLIBS,;t t
20520 s,@LIBINTL@,$LIBINTL,;t t
20521 s,@LTLIBINTL@,$LTLIBINTL,;t t
20522 s,@POSUB@,$POSUB,;t t
20523 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20524 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20525 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20526 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20527 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20528 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20529 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20530 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20531 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20532 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20533 s,@INCINTL@,$INCINTL,;t t
20534 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20535 s,@BFD_LIBS@,$BFD_LIBS,;t t
20536 s,@docdir@,$docdir,;t t
20537 s,@SVNDATE@,$SVNDATE,;t t
20538 s,@WEB_TRUE@,$WEB_TRUE,;t t
20539 s,@WEB_FALSE@,$WEB_FALSE,;t t
20540 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20541 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20542 s,@CAS_TRUE@,$CAS_TRUE,;t t
20543 s,@CAS_FALSE@,$CAS_FALSE,;t t
20544 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20545 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20546 s,@ALC_TRUE@,$ALC_TRUE,;t t
20547 s,@ALC_FALSE@,$ALC_FALSE,;t t
20548 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20549 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20550 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20551 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20552 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20553 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20554 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20555 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20556 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20557 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20558 s,@XAS_TRUE@,$XAS_TRUE,;t t
20559 s,@XAS_FALSE@,$XAS_FALSE,;t t
20560 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20561 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20562 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20563 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20564 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20565 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20566 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20567 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20568 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20569 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20570 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20571 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20572 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20573 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20574 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20575 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20576 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20577 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20582 cat >>$CONFIG_STATUS <<\_ACEOF
20583 # Split the substitutions into bite-sized pieces for seds with
20584 # small command number limits, like on Digital OSF/1 and HP-UX.
20585 ac_max_sed_lines
=48
20586 ac_sed_frag
=1 # Number of current file.
20587 ac_beg
=1 # First line for current file.
20588 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20591 while $ac_more_lines; do
20592 if test $ac_beg -gt 1; then
20593 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20595 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20597 if test ! -s $tmp/subs.frag
; then
20598 ac_more_lines
=false
20600 # The purpose of the label and of the branching condition is to
20601 # speed up the sed processing (if there are no `@' at all, there
20602 # is no need to browse any of the substitutions).
20603 # These are the two extra sed commands mentioned above.
20605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20606 if test -z "$ac_sed_cmds"; then
20607 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20609 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20611 ac_sed_frag
=`expr $ac_sed_frag + 1`
20613 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20616 if test -z "$ac_sed_cmds"; then
20619 fi # test -n "$CONFIG_FILES"
20622 cat >>$CONFIG_STATUS <<\_ACEOF
20623 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20626 - |
*:- |
*:-:* ) # input from stdin
20628 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20629 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20630 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20631 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20632 * ) ac_file_in
=$ac_file.
in ;;
20635 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20636 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20638 X"$ac_file" : 'X\(//\)[^/]' \| \
20639 X"$ac_file" : 'X\(//\)$' \| \
20640 X"$ac_file" : 'X\(/\)' \| \
20641 . : '\(.\)' 2>/dev/null ||
20643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20645 /^X\(\/\/\)$/{ s//\1/; q; }
20646 /^X\(\/\).*/{ s//\1/; q; }
20648 { if $as_mkdir_p; then
20653 while test ! -d "$as_dir"; do
20654 as_dirs
="$as_dir $as_dirs"
20655 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20657 X"$as_dir" : 'X\(//\)[^/]' \| \
20658 X"$as_dir" : 'X\(//\)$' \| \
20659 X"$as_dir" : 'X\(/\)' \| \
20660 . : '\(.\)' 2>/dev/null ||
20662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20664 /^X\(\/\/\)$/{ s//\1/; q; }
20665 /^X\(\/\).*/{ s//\1/; q; }
20668 test ! -n "$as_dirs" || mkdir
$as_dirs
20669 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20671 { (exit 1); exit 1; }; }; }
20675 if test "$ac_dir" != .
; then
20676 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20677 # A "../" for each directory in $ac_dir_suffix.
20678 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20680 ac_dir_suffix
= ac_top_builddir
=
20684 .
) # No --srcdir option. We are building in place.
20686 if test -z "$ac_top_builddir"; then
20689 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20691 [\\/]* | ?
:[\\/]* ) # Absolute path.
20692 ac_srcdir
=$srcdir$ac_dir_suffix;
20693 ac_top_srcdir
=$srcdir ;;
20694 *) # Relative path.
20695 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20696 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20699 # Do not use `cd foo && pwd` to compute absolute paths, because
20700 # the directories may not exist.
20702 .
) ac_abs_builddir
="$ac_dir";;
20705 .
) ac_abs_builddir
=`pwd`;;
20706 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20707 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20710 case $ac_abs_builddir in
20711 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20713 case ${ac_top_builddir}.
in
20714 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20715 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20716 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20719 case $ac_abs_builddir in
20720 .
) ac_abs_srcdir
=$ac_srcdir;;
20723 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20724 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20725 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20728 case $ac_abs_builddir in
20729 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20731 case $ac_top_srcdir in
20732 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20733 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20734 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20740 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20741 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20744 if test x
"$ac_file" != x-
; then
20745 { echo "$as_me:$LINENO: creating $ac_file" >&5
20746 echo "$as_me: creating $ac_file" >&6;}
20749 # Let's still pretend it is `configure' which instantiates (i.e., don't
20750 # use $as_me), people would be surprised to read:
20751 # /* config.h. Generated by config.status. */
20752 if test x
"$ac_file" = x-
; then
20755 configure_input
="$ac_file. "
20757 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20758 sed 's,.*/,,'` by configure."
20760 # First look for the input files in the build tree, otherwise in the
20762 ac_file_inputs
=`IFS=:
20763 for f in $ac_file_in; do
20765 -) echo $tmp/stdin ;;
20767 # Absolute (can't be DOS-style, as IFS=:)
20768 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20769 echo "$as_me: error: cannot find input file: $f" >&2;}
20770 { (exit 1); exit 1; }; }
20773 if test -f "$f"; then
20776 elif test -f "$srcdir/$f"; then
20781 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20782 echo "$as_me: error: cannot find input file: $f" >&2;}
20783 { (exit 1); exit 1; }; }
20786 done` ||
{ (exit 1); exit 1; }
20788 cat >>$CONFIG_STATUS <<_ACEOF
20792 cat >>$CONFIG_STATUS <<\_ACEOF
20794 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20795 s
,@configure_input@
,$configure_input,;t t
20796 s
,@srcdir@
,$ac_srcdir,;t t
20797 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20798 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20799 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20800 s
,@builddir@
,$ac_builddir,;t t
20801 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20802 s
,@top_builddir@
,$ac_top_builddir,;t t
20803 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20804 s
,@INSTALL@
,$ac_INSTALL,;t t
20805 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20807 if test x"$ac_file" != x-; then
20808 mv $tmp/out $ac_file
20816 cat >>$CONFIG_STATUS <<\_ACEOF
20819 # CONFIG_HEADER section.
20822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20825 # ac_d sets the value in "#define NAME VALUE" lines.
20826 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20827 ac_dB
='[ ].*$,\1#\2'
20830 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20831 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20832 ac_uB
='$,\1#\2define\3'
20836 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20839 - |
*:- |
*:-:* ) # input from stdin
20841 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20842 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20843 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20844 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20845 * ) ac_file_in
=$ac_file.
in ;;
20848 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20849 echo "$as_me: creating $ac_file" >&6;}
20851 # First look for the input files in the build tree, otherwise in the
20853 ac_file_inputs
=`IFS=:
20854 for f in $ac_file_in; do
20856 -) echo $tmp/stdin ;;
20858 # Absolute (can't be DOS-style, as IFS=:)
20859 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20860 echo "$as_me: error: cannot find input file: $f" >&2;}
20861 { (exit 1); exit 1; }; }
20862 # Do quote $f, to prevent DOS paths from being IFS'd.
20865 if test -f "$f"; then
20868 elif test -f "$srcdir/$f"; then
20873 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20874 echo "$as_me: error: cannot find input file: $f" >&2;}
20875 { (exit 1); exit 1; }; }
20878 done` ||
{ (exit 1); exit 1; }
20879 # Remove the trailing spaces.
20880 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20884 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20885 # `conftest.undefs', that substitutes the proper values into
20886 # config.h.in to produce config.h. The first handles `#define'
20887 # templates, and the second `#undef' templates.
20888 # And first: Protect against being on the right side of a sed subst in
20889 # config.status. Protect against being in an unquoted here document
20890 # in config.status.
20891 rm -f conftest.defines conftest.undefs
20892 # Using a here document instead of a string reduces the quoting nightmare.
20893 # Putting comments in sed scripts is not portable.
20895 # `end' is used to avoid that the second main sed command (meant for
20896 # 0-ary CPP macros) applies to n-ary macro definitions.
20897 # See the Autoconf documentation for `clear'.
20898 cat >confdef2sed.
sed <<\_ACEOF
20903 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20905 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20908 # If some macros were called several times there might be several times
20909 # the same #defines, which is useless. Nevertheless, we may not want to
20910 # sort them, since we want the *last* AC-DEFINE to be honored.
20911 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20912 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20913 rm -f confdef2sed.sed
20915 # This sed command replaces #undef with comments. This is necessary, for
20916 # example, in the case of _POSIX_SOURCE, which is predefined and required
20917 # on some systems where configure will not decide to define it.
20918 cat >>conftest.undefs <<\_ACEOF
20919 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20922 # Break up conftest.defines because some shells have a limit on the size
20923 # of here documents, and old seds have small limits too (100 cmds).
20924 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20925 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20926 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20927 echo ' :' >>$CONFIG_STATUS
20928 rm -f conftest.tail
20929 while grep . conftest.defines >/dev/null
20931 # Write a limited-size here document to $tmp/defines.sed.
20932 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20933 # Speed up: don't consider the non `#define' lines.
20934 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20935 # Work around the forget-to-reset-the-flag bug.
20936 echo 't clr' >>$CONFIG_STATUS
20937 echo ': clr' >>$CONFIG_STATUS
20938 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20940 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20942 mv $tmp/out $tmp/in
20944 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20945 rm -f conftest.defines
20946 mv conftest.
tail conftest.defines
20948 rm -f conftest.defines
20949 echo ' fi # grep' >>$CONFIG_STATUS
20950 echo >>$CONFIG_STATUS
20952 # Break up conftest.undefs because some shells have a limit on the size
20953 # of here documents, and old seds have small limits too (100 cmds).
20954 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20955 rm -f conftest.
tail
20956 while grep . conftest.undefs
>/dev
/null
20958 # Write a limited-size here document to $tmp/undefs.sed.
20959 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20960 # Speed up: don't consider the non
`#undef'
20961 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20962 # Work around the forget-to-reset-the-flag bug.
20963 echo 't clr' >>$CONFIG_STATUS
20964 echo ': clr' >>$CONFIG_STATUS
20965 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20967 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20969 mv $tmp/out $tmp/in
20971 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20972 rm -f conftest.undefs
20973 mv conftest.tail conftest.undefs
20975 rm -f conftest.undefs
20977 cat >>$CONFIG_STATUS <<\_ACEOF
20978 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20979 # use $as_me), people would be surprised to read:
20980 # /* config.h. Generated by config.status. */
20981 if test x
"$ac_file" = x-
; then
20982 echo "/* Generated by configure. */" >$tmp/config.h
20984 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20986 cat $tmp/in >>$tmp/config.h
20988 if test x
"$ac_file" != x-
; then
20989 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20990 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20991 echo "$as_me: $ac_file is unchanged" >&6;}
20993 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20995 X"$ac_file" : 'X\(//\)[^/]' \| \
20996 X"$ac_file" : 'X\(//\)$' \| \
20997 X"$ac_file" : 'X\(/\)' \| \
20998 . : '\(.\)' 2>/dev/null ||
21000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21002 /^X\(\/\/\)$/{ s//\1/; q; }
21003 /^X\(\/\).*/{ s//\1/; q; }
21005 { if $as_mkdir_p; then
21010 while test ! -d "$as_dir"; do
21011 as_dirs
="$as_dir $as_dirs"
21012 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21014 X"$as_dir" : 'X\(//\)[^/]' \| \
21015 X"$as_dir" : 'X\(//\)$' \| \
21016 X"$as_dir" : 'X\(/\)' \| \
21017 . : '\(.\)' 2>/dev/null ||
21019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21021 /^X\(\/\/\)$/{ s//\1/; q; }
21022 /^X\(\/\).*/{ s//\1/; q; }
21025 test ! -n "$as_dirs" || mkdir
$as_dirs
21026 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21027 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21028 { (exit 1); exit 1; }; }; }
21031 mv $tmp/config.h
$ac_file
21035 rm -f $tmp/config.h
21037 # Compute $ac_file's index in $config_headers.
21039 for _am_header
in $config_headers :; do
21040 case $_am_header in
21041 $ac_file |
$ac_file:* )
21044 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21047 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21048 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21049 X$ac_file : 'X\(//\)[^/]' \| \
21050 X$ac_file : 'X\(//\)$' \| \
21051 X$ac_file : 'X\(/\)' \| \
21052 . : '\(.\)' 2>/dev/null ||
21054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21056 /^X\(\/\/\)$/{ s//\1/; q; }
21057 /^X\(\/\).*/{ s//\1/; q; }
21058 s/.*/./; q'`/stamp-h
$_am_stamp_count
21061 cat >>$CONFIG_STATUS <<\_ACEOF
21064 # CONFIG_COMMANDS section.
21066 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
21067 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
21068 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21069 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
21070 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21071 X"$ac_dest" : 'X\(//\)[^/]' \| \
21072 X"$ac_dest" : 'X\(//\)$' \| \
21073 X"$ac_dest" : 'X\(/\)' \| \
21074 . : '\(.\)' 2>/dev/null ||
21076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21078 /^X\(\/\/\)$/{ s//\1/; q; }
21079 /^X\(\/\).*/{ s//\1/; q; }
21081 { if $as_mkdir_p; then
21086 while test ! -d "$as_dir"; do
21087 as_dirs
="$as_dir $as_dirs"
21088 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21090 X"$as_dir" : 'X\(//\)[^/]' \| \
21091 X"$as_dir" : 'X\(//\)$' \| \
21092 X"$as_dir" : 'X\(/\)' \| \
21093 . : '\(.\)' 2>/dev/null ||
21095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21097 /^X\(\/\/\)$/{ s//\1/; q; }
21098 /^X\(\/\).*/{ s//\1/; q; }
21101 test ! -n "$as_dirs" || mkdir
$as_dirs
21102 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21103 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21104 { (exit 1); exit 1; }; }; }
21108 if test "$ac_dir" != .
; then
21109 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21110 # A "../" for each directory in $ac_dir_suffix.
21111 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21113 ac_dir_suffix
= ac_top_builddir
=
21117 .
) # No --srcdir option. We are building in place.
21119 if test -z "$ac_top_builddir"; then
21122 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21124 [\\/]* | ?
:[\\/]* ) # Absolute path.
21125 ac_srcdir
=$srcdir$ac_dir_suffix;
21126 ac_top_srcdir
=$srcdir ;;
21127 *) # Relative path.
21128 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21129 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21132 # Do not use `cd foo && pwd` to compute absolute paths, because
21133 # the directories may not exist.
21135 .
) ac_abs_builddir
="$ac_dir";;
21138 .
) ac_abs_builddir
=`pwd`;;
21139 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21140 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21143 case $ac_abs_builddir in
21144 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21146 case ${ac_top_builddir}.
in
21147 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21148 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21149 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21152 case $ac_abs_builddir in
21153 .
) ac_abs_srcdir
=$ac_srcdir;;
21156 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21157 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21158 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21161 case $ac_abs_builddir in
21162 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21164 case $ac_top_srcdir in
21165 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21166 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21167 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21172 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21173 echo "$as_me: executing $ac_dest commands" >&6;}
21175 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21176 # Strip MF so we end up with the name of the file.
21177 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21178 # Check whether this is an Automake generated Makefile or not.
21179 # We used to match only the files named `Makefile.in', but
21180 # some people rename them; so instead we look at the file content.
21181 # Grep'ing the first line is not enough: some people post-process
21182 # each Makefile.in and add a new line on top of each file to say so.
21183 # So let's grep whole file.
21184 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21185 dirpart
=`(dirname "$mf") 2>/dev/null ||
21186 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21187 X"$mf" : 'X\(//\)[^/]' \| \
21188 X"$mf" : 'X\(//\)$' \| \
21189 X"$mf" : 'X\(/\)' \| \
21190 . : '\(.\)' 2>/dev/null ||
21192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21194 /^X\(\/\/\)$/{ s//\1/; q; }
21195 /^X\(\/\).*/{ s//\1/; q; }
21200 # Extract the definition of DEPDIR, am__include, and am__quote
21201 # from the Makefile without running `make'.
21202 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21203 test -z "$DEPDIR" && continue
21204 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21205 test -z "am__include" && continue
21206 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21207 # When using ansi2knr, U may be empty or an underscore; expand it
21208 U
=`sed -n 's/^U = //p' < "$mf"`
21209 # Find all dependency output files, they are included files with
21210 # $(DEPDIR) in their names. We invoke sed twice because it is the
21211 # simplest approach to changing $(DEPDIR) to its actual value in the
21213 for file in `sed -n "
21214 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21215 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21216 # Make sure the directory exists.
21217 test -f "$dirpart/$file" && continue
21218 fdir
=`(dirname "$file") 2>/dev/null ||
21219 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21220 X"$file" : 'X\(//\)[^/]' \| \
21221 X"$file" : 'X\(//\)$' \| \
21222 X"$file" : 'X\(/\)' \| \
21223 . : '\(.\)' 2>/dev/null ||
21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21227 /^X\(\/\/\)$/{ s//\1/; q; }
21228 /^X\(\/\).*/{ s//\1/; q; }
21230 { if $as_mkdir_p; then
21231 mkdir
-p $dirpart/$fdir
21233 as_dir
=$dirpart/$fdir
21235 while test ! -d "$as_dir"; do
21236 as_dirs
="$as_dir $as_dirs"
21237 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21239 X"$as_dir" : 'X\(//\)[^/]' \| \
21240 X"$as_dir" : 'X\(//\)$' \| \
21241 X"$as_dir" : 'X\(/\)' \| \
21242 . : '\(.\)' 2>/dev/null ||
21244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21246 /^X\(\/\/\)$/{ s//\1/; q; }
21247 /^X\(\/\).*/{ s//\1/; q; }
21250 test ! -n "$as_dirs" || mkdir
$as_dirs
21251 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21252 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21253 { (exit 1); exit 1; }; }; }
21255 # echo "creating $dirpart/$file"
21256 echo '# dummy' > "$dirpart/$file"
21261 for ac_file
in $CONFIG_FILES; do
21262 # Support "outfile[:infile[:infile...]]"
21264 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
21266 # PO directories have a Makefile.in generated from Makefile.in.in.
21267 case "$ac_file" in */Makefile.
in)
21268 # Adjust a relative srcdir.
21269 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21270 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
21271 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21272 # In autoconf-2.13 it is called $ac_given_srcdir.
21273 # In autoconf-2.50 it is called $srcdir.
21274 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
21275 case "$ac_given_srcdir" in
21276 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
21277 /*) top_srcdir
="$ac_given_srcdir" ;;
21278 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21280 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21281 rm -f "$ac_dir/POTFILES"
21282 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21283 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21284 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21285 # on $ac_dir but don't depend on user-specified configuration
21287 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21288 # The LINGUAS file contains the set of available languages.
21289 if test -n "$ALL_LINGUAS"; then
21290 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21292 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21293 # Hide the ALL_LINGUAS assigment from automake.
21294 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21296 case "$ac_given_srcdir" in
21298 *) srcdirpre
='$(srcdir)/' ;;
21304 for lang
in $ALL_LINGUAS; do
21305 POFILES
="$POFILES $srcdirpre$lang.po"
21306 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21307 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21308 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21310 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21311 # environment variable.
21313 if test -n "$ALL_LINGUAS"; then
21314 for presentlang
in $ALL_LINGUAS; do
21316 if test "%UNSET%" != "$LINGUAS"; then
21317 desiredlanguages
="$LINGUAS"
21319 desiredlanguages
="$ALL_LINGUAS"
21321 for desiredlang
in $desiredlanguages; do
21322 # Use the presentlang catalog if desiredlang is
21323 # a. equal to presentlang, or
21324 # b. a variant of presentlang (because in this case,
21325 # presentlang can be used as a fallback for messages
21326 # which are not translated in the desiredlang catalog).
21327 case "$desiredlang" in
21328 "$presentlang"*) useit
=yes;;
21331 if test $useit = yes; then
21332 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21337 if test -n "$INST_LINGUAS"; then
21338 for lang
in $INST_LINGUAS; do
21339 CATALOGS
="$CATALOGS $lang.gmo"
21342 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21343 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21344 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21345 if test -f "$f"; then
21347 *.orig |
*.bak |
*~
) ;;
21348 *) cat "$f" >> "$ac_dir/Makefile" ;;
21356 denoiser
) if test $denoiserlevel -gt 0; then
21357 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21358 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
21359 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21360 for i
in `find . -name 'Makefile' -print`; do
21361 if test -n "`head -n 1 $i | grep '^#'`"; then
21362 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21370 cat >>$CONFIG_STATUS <<\_ACEOF
21372 { (exit 0); exit 0; }
21374 chmod +x
$CONFIG_STATUS
21375 ac_clean_files
=$ac_clean_files_save
21378 # configure is writing to config.log, and then calls config.status.
21379 # config.status does its own redirection, appending to config.log.
21380 # Unfortunately, on DOS this fails, as config.log is still kept open
21381 # by configure, so config.status won't be able to write to it; its
21382 # output is simply discarded. So we exec the FD to /dev/null,
21383 # effectively closing config.log, so it can be properly (re)opened and
21384 # appended to by config.status. When coming back to configure, we
21385 # need to make the FD available again.
21386 if test "$no_create" != yes; then
21388 ac_config_status_args
=
21389 test "$silent" = yes &&
21390 ac_config_status_args
="$ac_config_status_args --quiet"
21392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21395 # would make configure fail if this is the last instruction.
21396 $ac_cs_success ||
{ (exit 1); exit 1; }
21400 if test -n "$svndate"; then
21401 SVN_REVISION
=" ($svndate)"
21409 echo " Configure script has finished system check."
21411 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21413 echo " aMule enabled options:"
21415 echo " **** aMule Core ****"
21416 echo " Prefix where aMule should be installed? ${prefix:-none}"
21417 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21418 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21419 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21420 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21421 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21422 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21423 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21424 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21425 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21426 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21429 echo " **** aMule TextClient ****"
21430 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21432 echo " **** aMule WebServer ****"
21433 echo " Should aMule WebServer be built? ${WEB:-no}"
21435 echo " **** aMule ED2K Links Handler ****"
21436 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21438 echo " **** aMuleLinkCreator ****"
21439 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21440 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21442 echo " **** aMule Statistics ****"
21443 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21444 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21445 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21448 echo " **** General Libraries and Tools ****"
21449 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21450 echo " Libraries aMule will use to build:"
21452 if test $WX_DEBUG -eq 1; then
21453 wxinfo
="$wxinfo,debug"
21456 if test $WX_SHARED -eq 1; then
21457 wxinfo
="$wxinfo,shared"
21459 wxinfo
="$wxinfo,static"
21462 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21463 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21464 if test -n "$with_libupnp_prefix"; then
21465 libupnp_place
=" (in $with_libupnp_prefix)"
21468 if test x
${ENABLE_UPNP} = xyes
; then
21469 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21472 if test x
${WEB:-no} != xno
; then
21473 if test $regex_found = no
; then
21474 regex_found
="Not detected"
21476 if test -z "$REGEX_LIB"; then
21479 regex_found
="standalone (in $REGEX_LIB)"
21484 echo " regex $regex_found"
21486 if test ${enable_nls:-yes} = yes; then
21487 if test x
$USE_NLS = xno
; then
21488 libintl_found
="Not detected"
21490 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21491 libintl_found
="included"
21493 libintl_found
="system"
21498 echo " libintl $libintl_found"
21500 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21506 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21507 echo " libGeoIP ${geoip_style}"
21510 if test x
$LIBPNG_VERSION != xnot_needed
; then
21511 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21513 if test x
$GDLIB_VERSION != xnot_needed
; then
21514 echo " libgd ${GDLIB_VERSION:-Not detected}"
21516 echo " zlib ${ZLIB_VERSION:-Not detected}"
21517 if test ${_mule_has_warnings:-no} = yes; then
21520 echo " *** Warnings during configuration ***"
21522 if test ${_mule_warning_0:-no} = yes; then
21525 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21526 Please check that gdlib-config is in your default path, check out
21527 LD_LIBRARY_PATH or equivalent variable.
21528 Or this might also be that your gdlib-config has other name.
21529 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21530 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21531 If you use compiled packages check if you have devel pack installed.
21532 To download the latest version check http://www.boutell.com/gd for sources.
21535 if test ${_mule_warning_1:-no} = yes; then
21538 * amuleweb has been disabled because configure could not find a POSIX
21539 compliant regex library.
21542 if test ${_mule_warning_2:-no} = yes; then
21545 * libpng >= 1.2.0 not found.
21546 amuleweb will be compiled but file download progress bar images will NOT be
21550 if test ${_mule_warning_3:-no} = yes; then
21553 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21556 if test ${_mule_warning_4:-no} = yes; then
21559 * GeoIP support has been disabled because the GeoIP libraries were not found
21562 if test ${_mule_warning_5:-no} = yes; then
21565 * GeoIP support has been disabled because the GeoIP header files were not
21569 if test ${_mule_warning_6:-no} = yes; then
21572 * UPnP code has been disabled because ${libupnp_error}.
21575 if test ${_mule_warning_7:-no} = yes; then
21578 * Cross-compilation detected, so exception handling cannot be tested.
21579 Note that broken exception handling in your compiler may lead to unexpected
21583 if test ${_mule_warning_8:-no} = yes; then
21586 * configure cannot check whether malloc() and realloc() are GNU libc
21587 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21588 configure with the --without-gnu-malloc switch.
21591 if test ${_mule_warning_9:-no} = yes; then
21594 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21598 if test ${_mule_warning_10:-no} = yes; then
21601 * bfd.h not found or unusable, please install binutils development package if
21602 you are a developer or want to help testing aMule