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 --disable-rpath do not hardcode runtime library paths
902 --disable-nls do not use Native Language Support
903 --disable-debug disable additional debugging output
904 --enable-optimize enable code optimization
905 --enable-profile enable code profiling
906 --enable-static produce a statically linked executable
907 --enable-ccache enable ccache support for fast recompilation
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --without-gnu-malloc Don't assume that we use GNU libc compatible
913 malloc
/realloc when cross-compiling
914 --with-zlib=PREFIX use zlib
in PREFIX
915 --with-gdlib-prefix=PREFIX
916 prefix where gdlib is installed
(optional
)
917 --with-gdlib-config=CONFIG
918 gdlib-config
script to use
(optional
)
919 --with-libpng-prefix=PREFIX
920 prefix where libpng is installed
(optional
)
921 --with-libpng-config=CONFIG
922 libpng-config
script to use
(optional
)
923 --with-geoip-headers=DIR
924 GeoIP include files location
925 --with-geoip-lib=DIR GeoIP library location
926 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
927 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
928 --with-wx-config=CONFIG wx-config
script to use
(optional
)
929 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
930 --with-wx-exec-prefix=PREFIX
931 Exec prefix where wxWidgets is installed
(optional
)
932 --with-toolkit Build against a specific wxWidgets toolkit
(default
934 --with-wxshared Force building against a shared build of wxWidgets
,
935 even
if --disable-shared is given
(default is auto
)
936 --with-wxdebug Force building against a debug build of wxWidgets
,
937 even
if --disable-debug is given
(default is auto
)
938 --with-wxversion Build against a specific version of wxWidgets
940 --with-libupnp-prefix=PREFIX
941 UPnP library location
942 --with-crypto-prefix=PREFIX
943 prefix where crypto
++ is installed
944 --with-x use the X Window System
945 --with-language=<langs
> Specify a comma-separated list of languages you want
946 to have installed. See po
/LINGUAS
for available
948 --with-gnu-ld assume the C compiler uses GNU ld default
=no
949 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
950 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
951 --with-included-gettext use the GNU gettext library included here
952 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
953 --without-libintl-prefix don't search
for libintl
in includedir and libdir
954 --with-denoise-level=<level
>
955 Specifies denoising level
(0-4):
957 4 - Suppress all normal output
958 (for more information see
959 src
/utils
/scripts
/denoiser.rules
)
961 --with-ccache-prefix=PREFIX
962 prefix where ccache is installed
964 Some influential environment variables
:
965 CXX C
++ compiler
command
966 CXXFLAGS C
++ compiler flags
967 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
968 nonstandard directory
<lib dir
>
969 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
970 headers
in a nonstandard directory
<include dir
>
971 CXXCPP C
++ preprocessor
972 CC C compiler
command
973 CFLAGS C compiler flags
976 RCFLAGS Resource Compiler Flags
977 PKG_CONFIG path to pkg-config utility
979 Use these variables to override the choices made by
`configure' or to help
980 it to find libraries and programs with nonstandard names/locations.
982 Report bugs to <admin@amule.org>.
986 if test "$ac_init_help" = "recursive"; then
987 # If there are subdirs, report their specific --help.
989 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
990 test -d $ac_dir || continue
993 if test "$ac_dir" != .; then
994 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
995 # A "../" for each directory in $ac_dir_suffix.
996 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
998 ac_dir_suffix= ac_top_builddir=
1002 .) # No --srcdir option. We are building in place.
1004 if test -z "$ac_top_builddir"; then
1007 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1009 [\\/]* | ?:[\\/]* ) # Absolute path.
1010 ac_srcdir=$srcdir$ac_dir_suffix;
1011 ac_top_srcdir=$srcdir ;;
1013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1017 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1018 # the directories may not exist.
1020 .) ac_abs_builddir="$ac_dir";;
1023 .) ac_abs_builddir=`pwd`;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1025 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1028 case $ac_abs_builddir in
1029 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 case ${ac_top_builddir}. in
1032 .) ac_abs_top_builddir=$ac_abs_builddir;;
1033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1037 case $ac_abs_builddir in
1038 .) ac_abs_srcdir=$ac_srcdir;;
1041 .) ac_abs_srcdir=$ac_abs_builddir;;
1042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1046 case $ac_abs_builddir in
1047 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 case $ac_top_srcdir in
1050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1057 # Check for guested configure; otherwise get Cygnus style configure.
1058 if test -f $ac_srcdir/configure.gnu; then
1060 $SHELL $ac_srcdir/configure.gnu --help=recursive
1061 elif test -f $ac_srcdir/configure; then
1063 $SHELL $ac_srcdir/configure --help=recursive
1064 elif test -f $ac_srcdir/configure.ac ||
1065 test -f $ac_srcdir/configure.in; then
1067 $ac_configure --help
1069 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1079 generated by GNU Autoconf 2.59
1081 Copyright (C) 2003 Free Software Foundation, Inc.
1082 This configure script is free software; the Free Software Foundation
1083 gives unlimited permission to copy, distribute and modify it.
1089 This file contains any messages produced by compilers while
1090 running configure, to aid debugging if configure makes a mistake.
1092 It was created by aMule $as_me SVN, which was
1093 generated by GNU Autoconf 2.59. Invocation command line was
1104 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1105 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1106 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1107 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1108 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1110 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1111 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1113 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1114 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1115 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1116 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1117 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1118 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1119 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1127 test -z "$as_dir" && as_dir=.
1128 echo "PATH: $as_dir"
1143 # Keep a trace of the command line.
1144 # Strip out --no-create and --no-recursion so they do not pile up.
1145 # Strip out --silent because we don't want to record it for future runs.
1146 # Also quote any args containing shell meta-characters.
1147 # Make two passes to allow for proper duplicate-argument suppression.
1152 ac_must_keep_next=false
1158 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1162 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1163 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1166 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1168 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1169 if test $ac_must_keep_next = true; then
1170 ac_must_keep_next=false # Got value, back to normal.
1173 *=* | --config-cache | -C | -disable-* | --disable-* \
1174 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1175 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1176 | -with-* | --with-* | -without-* | --without-* | --x)
1177 case "$ac_configure_args0 " in
1178 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1181 -* ) ac_must_keep_next=true ;;
1184 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1185 # Get rid of the leading space.
1191 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1192 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log. We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close
' the trap.
1199 trap 'exit_status
=$?
1200 # Save into config.log some information that might help in debugging.
1205 ## ---------------- ##
1206 ## Cache variables. ##
1207 ## ---------------- ##
1210 # The following way of writing the cache mishandles newlines in values,
1213 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1216 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1228 ## ----------------- ##
1229 ## Output variables. ##
1230 ## ----------------- ##
1233 for ac_var
in $ac_subst_vars
1235 eval ac_val
=$
`echo $ac_var`
1236 echo "$ac_var='"'"'$ac_val'"'"'"
1240 if test -n "$ac_subst_files"; then
1247 for ac_var
in $ac_subst_files
1249 eval ac_val
=$
`echo $ac_var`
1250 echo "$ac_var='"'"'$ac_val'"'"'"
1255 if test -s confdefs.h
; then
1262 sed "/^$/d" confdefs.h |
sort
1265 test "$ac_signal" != 0 &&
1266 echo "$as_me: caught signal $ac_signal"
1267 echo "$as_me: exit $exit_status"
1269 rm -f core
*.core
&&
1270 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1273 for ac_signal in 1 2 13 15; do
1274 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1278 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1279 rm -rf conftest* confdefs.h
1280 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1283 # Predefined preprocessor variables.
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_NAME "$PACKAGE_NAME"
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_STRING "$PACKAGE_STRING"
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1310 # Let the site file select an alternate cache file if it wants to.
1311 # Prefer explicitly selected file to automatically selected ones.
1312 if test -z "$CONFIG_SITE"; then
1313 if test "x$prefix" != xNONE; then
1314 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1316 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1319 for ac_site_file in $CONFIG_SITE; do
1320 if test -r "$ac_site_file"; then
1321 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1322 echo "$as_me: loading site script $ac_site_file" >&6;}
1323 sed 's
/^
/|
/' "$ac_site_file" >&5
1328 if test -r "$cache_file"; then
1329 # Some versions of bash will fail to source /dev/null (special
1330 # files actually), so we avoid doing that.
1331 if test -f "$cache_file"; then
1332 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1333 echo "$as_me: loading cache $cache_file" >&6;}
1335 [\\/]* | ?:[\\/]* ) . $cache_file;;
1336 *) . ./$cache_file;;
1340 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1341 echo "$as_me: creating cache $cache_file" >&6;}
1345 # Check that the precious variables saved in the cache have kept the same
1347 ac_cache_corrupted=false
1348 for ac_var in `(set) 2>&1 |
1349 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1351 eval ac_new_set=\$ac_env_${ac_var}_set
1352 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1353 eval ac_new_val="\$ac_env_${ac_var}_value"
1354 case $ac_old_set,$ac_new_set in
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1358 ac_cache_corrupted=: ;;
1360 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1361 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1362 ac_cache_corrupted=: ;;
1365 if test "x$ac_old_val" != "x$ac_new_val"; then
1366 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1367 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1368 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1369 echo "$as_me: former value: $ac_old_val" >&2;}
1370 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1371 echo "$as_me: current value: $ac_new_val" >&2;}
1372 ac_cache_corrupted=:
1375 # Pass precious variables to config.status.
1376 if test "$ac_new_set" = set; then
1378 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1379 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1380 *) ac_arg=$ac_var=$ac_new_val ;;
1382 case " $ac_configure_args " in
1383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1384 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1388 if $ac_cache_corrupted; then
1389 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1390 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1391 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1392 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1393 { (exit 1); exit 1; }; }
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1399 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 am__api_version="1.9"
1430 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1431 if test -f $ac_dir/install-sh; then
1433 ac_install_sh="$ac_aux_dir/install-sh -c"
1435 elif test -f $ac_dir/install.sh; then
1437 ac_install_sh="$ac_aux_dir/install.sh -c"
1439 elif test -f $ac_dir/shtool; then
1441 ac_install_sh="$ac_aux_dir/shtool install -c"
1445 if test -z "$ac_aux_dir"; then
1446 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1447 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1448 { (exit 1); exit 1; }; }
1450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1452 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1461 # AmigaOS /C/install, which installs bootblocks on floppy discs
1462 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465 # OS/2's system install, which has a completely different semantic
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469 if test -z "$INSTALL"; then
1470 if test "${ac_cv_path_install+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir
=.
1478 # Account for people who put trailing slashes in PATH elements.
1480 .
/ | .
// |
/cC
/* | \
1481 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1482 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1485 # OSF1 and SCO ODT 3.0 have their own names for install.
1486 # Don't use installbsd from OSF since it installs stuff as root
1488 for ac_prog
in ginstall scoinst
install; do
1489 for ac_exec_ext
in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491 if test $ac_prog = install &&
1492 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1493 # AIX install. It has an incompatible calling convention.
1495 elif test $ac_prog = install &&
1496 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1497 # program-specific install script used by HP pwplus--don't use.
1500 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1512 if test "${ac_cv_path_install+set}" = set; then
1513 INSTALL
=$ac_cv_path_install
1515 # As a last resort, use the slow shell script. We don't cache a
1516 # path for INSTALL within a source directory, because that will
1517 # break other packages using the cache if that directory is
1518 # removed, or if the path is relative.
1519 INSTALL
=$ac_install_sh
1522 echo "$as_me:$LINENO: result: $INSTALL" >&5
1523 echo "${ECHO_T}$INSTALL" >&6
1525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526 # It thinks the first close brace ends the variable substitution.
1527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1531 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1533 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537 echo timestamp
> conftest.
file
1538 # Do `set' in a subshell so we don't clobber the current shell's
1539 # arguments. Must try -L first in case configure is actually a
1540 # symlink; some systems play weird games with the mod time of symlinks
1541 # (eg FreeBSD returns the mod time of the symlink's containing
1544 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545 if test "$*" = "X"; then
1547 set X
`ls -t $srcdir/configure conftest.file`
1550 if test "$*" != "X $srcdir/configure conftest.file" \
1551 && test "$*" != "X conftest.file $srcdir/configure"; then
1553 # If neither matched, then we have a broken ls. This can happen
1554 # if, for instance, CONFIG_SHELL is bash and it inherits a
1555 # broken ls alias from the environment. This has actually
1556 # happened. Such a system could not be considered "sane".
1557 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1558 alias in your environment" >&5
1559 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&2;}
1561 { (exit 1); exit 1; }; }
1564 test "$2" = conftest.
file
1570 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571 Check your system clock" >&5
1572 echo "$as_me: error: newly created file is older than distributed files!
1573 Check your system clock" >&2;}
1574 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 test "$program_prefix" != NONE
&&
1579 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1580 # Use a double $ so make ignores it.
1581 test "$program_suffix" != NONE
&&
1582 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1583 # Double any \ or $. echo might interpret backslashes.
1584 # By default was `s,x,x', remove it if useless.
1585 cat <<\_ACEOF
>conftest.
sed
1586 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1588 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1591 # expand $ac_aux_dir to an absolute path
1592 am_aux_dir
=`cd $ac_aux_dir && pwd`
1594 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1595 # Use eval to expand $SHELL
1596 if eval "$MISSING --run true"; then
1597 am_missing_run
="$MISSING --run "
1600 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1605 # We used to keeping the `.' as first argument, in order to
1606 # allow $(mkdir_p) to be used without argument. As in
1607 # $(mkdir_p) $(somedir)
1608 # where $(somedir) is conditionally defined. However this is wrong
1610 # 1. if the package is installed by a user who cannot write `.'
1611 # make install will fail,
1612 # 2. the above comment should most certainly read
1613 # $(mkdir_p) $(DESTDIR)$(somedir)
1614 # so it does not work when $(somedir) is undefined and
1615 # $(DESTDIR) is not.
1616 # To support the latter case, we have to write
1617 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1618 # so the `.' trick is pointless.
1619 mkdir_p
='mkdir -p --'
1621 # On NextStep and OpenStep, the `mkdir' command does not
1622 # recognize any option. It will interpret all options as
1623 # directories to create, and then abort because `.' already
1625 for d
in .
/-p .
/--version;
1627 test -d $d && rmdir $d
1629 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1630 if test -f "$ac_aux_dir/mkinstalldirs"; then
1631 mkdir_p
='$(mkinstalldirs)'
1633 mkdir_p
='$(install_sh) -d'
1637 for ac_prog
in gawk mawk nawk
awk
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy
$ac_prog; ac_word
=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$AWK"; then
1647 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir
=.
1654 for ac_exec_ext
in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_AWK
="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 if test -n "$AWK"; then
1667 echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$AWK" && break
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 cat >conftest.
make <<\_ACEOF
1685 @
echo 'ac_maketemp="$(MAKE)"'
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690 eval ac_cv_prog_make_
${ac_make}_set
=yes
1692 eval ac_cv_prog_make_
${ac_make}_set
=no
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 SET_MAKE
="MAKE=${MAKE-make}"
1706 rm -rf .tst
2>/dev
/null
1707 mkdir .tst
2>/dev
/null
1708 if test -d .tst
; then
1713 rmdir .tst
2>/dev
/null
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status
; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1726 CYGPATH_W
='cygpath -w'
1733 # Define the identity of the package.
1738 cat >>confdefs.h
<<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1743 cat >>confdefs.h
<<_ACEOF
1744 #define VERSION "$VERSION"
1747 # Some tools Automake needs.
1749 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1755 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1761 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1763 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1765 # Installed binaries are usually stripped using `strip' when the user
1766 # run `make install-strip'. However `strip' might not be the right
1767 # tool to use in cross-compilation environments, therefore Automake
1768 # will honor the `STRIP' environment variable to overrule this program.
1769 if test "$cross_compiling" != no
; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_STRIP+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$STRIP"; then
1779 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir
=.
1786 for ac_exec_ext
in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 STRIP
=$ac_cv_prog_STRIP
1798 if test -n "$STRIP"; then
1799 echo "$as_me:$LINENO: result: $STRIP" >&5
1800 echo "${ECHO_T}$STRIP" >&6
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1807 if test -z "$ac_cv_prog_STRIP"; then
1809 # Extract the first word of "strip", so it can be a program name with args.
1810 set dummy strip
; ac_word
=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 if test -n "$ac_ct_STRIP"; then
1817 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir
=.
1824 for ac_exec_ext
in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_STRIP
="strip"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1836 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1837 if test -n "$ac_ct_STRIP"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839 echo "${ECHO_T}$ac_ct_STRIP" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1847 STRIP
="$ac_cv_prog_STRIP"
1851 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1853 # We need awk for the "check" target. The system "awk" is bad on
1855 # Always define AMTAR for backward compatibility.
1857 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1859 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1867 ac_config_headers
="$ac_config_headers config.h"
1869 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1870 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1871 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1872 if test "${enable_maintainer_mode+set}" = set; then
1873 enableval
="$enable_maintainer_mode"
1874 USE_MAINTAINER_MODE
=$enableval
1876 USE_MAINTAINER_MODE
=no
1878 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1879 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1882 if test $USE_MAINTAINER_MODE = yes; then
1883 MAINTAINER_MODE_TRUE
=
1884 MAINTAINER_MODE_FALSE
='#'
1886 MAINTAINER_MODE_TRUE
='#'
1887 MAINTAINER_MODE_FALSE
=
1890 MAINT
=$MAINTAINER_MODE_TRUE
1894 # Make sure we can run config.sub.
1895 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1896 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898 { (exit 1); exit 1; }; }
1900 echo "$as_me:$LINENO: checking build system type" >&5
1901 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902 if test "${ac_cv_build+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 ac_cv_build_alias
=$build_alias
1906 test -z "$ac_cv_build_alias" &&
1907 ac_cv_build_alias
=`$ac_config_guess`
1908 test -z "$ac_cv_build_alias" &&
1909 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911 { (exit 1); exit 1; }; }
1912 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1913 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1918 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919 echo "${ECHO_T}$ac_cv_build" >&6
1921 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1926 echo "$as_me:$LINENO: checking host system type" >&5
1927 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928 if test "${ac_cv_host+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 ac_cv_host_alias
=$host_alias
1932 test -z "$ac_cv_host_alias" &&
1933 ac_cv_host_alias
=$ac_cv_build_alias
1934 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937 { (exit 1); exit 1; }; }
1940 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941 echo "${ECHO_T}$ac_cv_host" >&6
1943 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 case "${host_os}" in
1952 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1953 MULELDFLAGS
="-bind_at_load"
1954 touch src
/Scanner.cpp
1958 LIBS
="$LIBS -L/usr/local/lib"
1959 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1960 MULECPPFLAGS
="-D__OPENBSD__"
1962 *cygwin
* |
*mingw32
*)
1964 MULECPPFLAGS
="-DNOMINMAX"
1968 RESOLV_LIB
="-lresolv -lnsl"
1974 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1975 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1976 # Still, we prepend them, instead of adding, so the user may override them.
1977 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1978 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1982 MULECPPFLAGS
="-D__IRIX__"
1989 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1990 if test ${SYS:-unknown} != win32
; then
1992 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1993 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1994 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1996 MULELDFLAGS
="$MULELDFLAGS -pthread"
1997 echo "$as_me:$LINENO: result: yes" >&5
1998 echo "${ECHO_T}yes" >&6
2002 MULELDFLAGS
="$MULELDFLAGS -lpthread"
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2014 mule_backup_CFLAGS
="$CFLAGS"
2015 mule_backup_CXXFLAGS
="$CXXFLAGS"
2016 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2018 ac_cpp
='$CXXCPP $CPPFLAGS'
2019 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2022 if test -n "$ac_tool_prefix"; then
2023 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2026 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_CXX+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$CXX"; then
2033 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir
=.
2040 for ac_exec_ext
in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 if test -n "$CXX"; then
2053 echo "$as_me:$LINENO: result: $CXX" >&5
2054 echo "${ECHO_T}$CXX" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$CXX" && break
2063 if test -z "$CXX"; then
2065 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy
$ac_prog; ac_word
=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_CXX"; then
2075 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir
=.
2082 for ac_exec_ext
in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2094 if test -n "$ac_ct_CXX"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2096 echo "${ECHO_T}$ac_ct_CXX" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 test -n "$ac_ct_CXX" && break
2104 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO:" \
2112 "checking for C++ compiler version" >&5
2113 ac_compiler
=`set X $ac_compile; echo $2`
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2115 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2120 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2125 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2130 cat >conftest.
$ac_ext <<_ACEOF
2133 cat confdefs.h
>>conftest.
$ac_ext
2134 cat >>conftest.
$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2145 ac_clean_files_save
=$ac_clean_files
2146 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2147 # Try to create an executable without -o first, disregard a.out.
2148 # It will help us diagnose broken compilers, and finding out an intuition
2150 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2151 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2152 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2154 (eval $ac_link_default) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; then
2158 # Find the output, starting from the most likely. This scheme is
2159 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2162 # Be careful to initialize this variable, since it used to be cached.
2163 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165 # b.out is created by i960 compilers.
2166 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2168 test -f "$ac_file" ||
continue
2170 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2173 # This is the source file.
2176 # We found the default executable, but exeext='' is most
2180 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 # FIXME: I believe we export ac_cv_exeext for Libtool,
2182 # but it would be cool to find out if it's true. Does anybody
2183 # maintain Libtool? --akim.
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.
$ac_ext >&5
2194 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: C++ compiler cannot create executables
2197 See \`config.log' for more details." >&2;}
2198 { (exit 77); exit 77; }; }
2201 ac_exeext
=$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_file" >&5
2203 echo "${ECHO_T}$ac_file" >&6
2205 # Check the compiler produces executables we can run. If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2208 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2209 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2210 # If not cross compiling, check that we can run a simple program.
2211 if test "$cross_compiling" != yes; then
2212 if { ac_try
='./$ac_file'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 if test "$cross_compiling" = maybe
; then
2223 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot run C++ compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2233 echo "$as_me:$LINENO: result: yes" >&5
2234 echo "${ECHO_T}yes" >&6
2236 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2237 ac_clean_files
=$ac_clean_files_save
2238 # Check the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2241 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2242 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2243 echo "${ECHO_T}$cross_compiling" >&6
2245 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2246 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2248 (eval $ac_link) 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; then
2252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2254 # work properly (i.e., refer to `conftest.exe'), while it won't with
2256 for ac_file
in conftest.exe conftest conftest.
*; do
2257 test -f "$ac_file" ||
continue
2259 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2260 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2274 rm -f conftest
$ac_cv_exeext
2275 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2276 echo "${ECHO_T}$ac_cv_exeext" >&6
2278 rm -f conftest.
$ac_ext
2279 EXEEXT
=$ac_cv_exeext
2281 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2282 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2283 if test "${ac_cv_objext+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 cat >conftest.
$ac_ext <<_ACEOF
2289 cat confdefs.h
>>conftest.
$ac_ext
2290 cat >>conftest.
$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2301 rm -f conftest.o conftest.obj
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2309 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2310 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.
$ac_ext >&5
2318 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2325 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2328 echo "${ECHO_T}$ac_cv_objext" >&6
2329 OBJEXT
=$ac_cv_objext
2331 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2332 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2333 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 cat >conftest.
$ac_ext <<_ACEOF
2339 cat confdefs.h
>>conftest.
$ac_ext
2340 cat >>conftest.
$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2354 rm -f conftest.
$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2358 grep -v '^ *+' conftest.er1
>conftest.err
2360 cat conftest.err
>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try
='test -z "$ac_cxx_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try
='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.
$ac_ext >&5
2383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2384 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2387 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2388 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2389 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2390 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2391 ac_save_CXXFLAGS
=$CXXFLAGS
2393 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2394 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2395 if test "${ac_cv_prog_cxx_g+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 cat >conftest.
$ac_ext <<_ACEOF
2401 cat confdefs.h
>>conftest.
$ac_ext
2402 cat >>conftest.
$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2413 rm -f conftest.
$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1
>conftest.err
2419 cat conftest.err
>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try
='test -z "$ac_cxx_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try
='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_prog_cxx_g
=yes
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.
$ac_ext >&5
2442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2444 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2445 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2446 if test "$ac_test_CXXFLAGS" = set; then
2447 CXXFLAGS
=$ac_save_CXXFLAGS
2448 elif test $ac_cv_prog_cxx_g = yes; then
2449 if test "$GXX" = yes; then
2455 if test "$GXX" = yes; then
2461 for ac_declaration
in \
2463 'extern "C" void std::exit (int) throw (); using std::exit;' \
2464 'extern "C" void std::exit (int); using std::exit;' \
2465 'extern "C" void exit (int) throw ();' \
2466 'extern "C" void exit (int);' \
2469 cat >conftest.
$ac_ext <<_ACEOF
2472 cat confdefs.h
>>conftest.
$ac_ext
2473 cat >>conftest.
$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2485 rm -f conftest.
$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2489 grep -v '^ *+' conftest.er1
>conftest.err
2491 cat conftest.err
>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try
='test -z "$ac_cxx_werror_flag"
2495 || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try
='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.
$ac_ext >&5
2514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2515 cat >conftest.
$ac_ext <<_ACEOF
2518 cat confdefs.h
>>conftest.
$ac_ext
2519 cat >>conftest.
$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2530 rm -f conftest.
$ac_objext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>conftest.er1
2534 grep -v '^ *+' conftest.er1
>conftest.err
2536 cat conftest.err
>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try
='test -z "$ac_cxx_werror_flag"
2540 || test ! -s conftest.err'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; } &&
2546 { ac_try
='test -s conftest.$ac_objext'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.
$ac_ext >&5
2558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2561 if test -n "$ac_declaration"; then
2562 echo '#ifdef __cplusplus' >>confdefs.h
2563 echo $ac_declaration >>confdefs.h
2564 echo '#endif' >>confdefs.h
2568 ac_cpp
='$CPP $CPPFLAGS'
2569 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2572 DEPDIR
="${am__leading_dot}deps"
2574 ac_config_commands
="$ac_config_commands depfiles"
2577 am_make
=${MAKE-make}
2578 cat > confinc
<< 'END'
2583 # If we don't find an include directive, just comment out the code.
2584 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2585 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2589 # First try GNU make style include.
2590 echo "include confinc" > confmf
2591 # We grep out `Entering directory' and `Leaving directory'
2592 # messages which can occur if `w' ends up in MAKEFLAGS.
2593 # In particular we don't look at `^make:' because GNU make might
2594 # be invoked under some other name (usually "gmake"), in which
2595 # case it prints its new name instead of `make'.
2596 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2601 # Now try BSD make style include.
2602 if test "$am__include" = "#"; then
2603 echo '.include "confinc"' > confmf
2604 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2605 am__include
=.include
2612 echo "$as_me:$LINENO: result: $_am_result" >&5
2613 echo "${ECHO_T}$_am_result" >&6
2614 rm -f confinc confmf
2616 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2617 if test "${enable_dependency_tracking+set}" = set; then
2618 enableval
="$enable_dependency_tracking"
2621 if test "x$enable_dependency_tracking" != xno
; then
2622 am_depcomp
="$ac_aux_dir/depcomp"
2627 if test "x$enable_dependency_tracking" != xno; then
2638 depcc
="$CXX" am_compiler_list
=
2640 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2641 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2642 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2646 # We make a subdir and do the tests there. Otherwise we can end up
2647 # making bogus files that we don't know about and never remove. For
2648 # instance it was reported that on HP-UX the gcc test will end up
2649 # making a dummy file named `D' -- because `-MD' means `put the output
2652 # Copy depcomp to subdir because otherwise we won't find it if we're
2653 # using a relative directory.
2654 cp "$am_depcomp" conftest.dir
2656 # We will build objects and dependencies in a subdirectory because
2657 # it helps to detect inapplicable dependency modes. For instance
2658 # both Tru64's cc and ICC support -MD to output dependencies as a
2659 # side effect of compilation, but ICC will put the dependencies in
2660 # the current directory while Tru64 will put them in the object
2664 am_cv_CXX_dependencies_compiler_type
=none
2665 if test "$am_compiler_list" = ""; then
2666 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2668 for depmode
in $am_compiler_list; do
2669 # Setup a source with many dependencies, because some compilers
2670 # like to wrap large dependency lists on column 80 (with \), and
2671 # we should not choose a depcomp mode which is confused by this.
2673 # We need to recreate these files for each test, as the compiler may
2674 # overwrite some of them when testing with obscure command lines.
2675 # This happens at least with the AIX C compiler.
2677 for i
in 1 2 3 4 5 6; do
2678 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2679 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2680 # Solaris 8's {/usr,}/bin/sh.
2681 touch sub
/conftst
$i.h
2683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2687 # after this tag, mechanisms are not by side-effect, so they'll
2688 # only be used when explicitly requested
2689 if test "x$enable_dependency_tracking" = xyes
; then
2697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2698 # mode. It turns out that the SunPro C++ compiler does not properly
2699 # handle `-M -o', and we need to detect this.
2700 if depmode
=$depmode \
2701 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2702 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2703 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2704 >/dev
/null
2>conftest.err
&&
2705 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2706 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2707 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2708 # icc doesn't choke on unknown options, it will just issue warnings
2709 # or remarks (even with -Werror). So we grep stderr for any message
2710 # that says an option was ignored or not supported.
2711 # When given -MP, icc 7.0 and 7.1 complain thusly:
2712 # icc: Command line warning: ignoring option '-M'; no argument required
2713 # The diagnosis changed in icc 8.0:
2714 # icc: Command line remark: option '-MP' not supported
2715 if (grep 'ignoring option' conftest.err ||
2716 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2717 am_cv_CXX_dependencies_compiler_type
=$depmode
2726 am_cv_CXX_dependencies_compiler_type
=none
2730 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2731 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2732 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2737 test "x$enable_dependency_tracking" != xno \
2738 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2739 am__fastdepCXX_TRUE
=
2740 am__fastdepCXX_FALSE
='#'
2742 am__fastdepCXX_TRUE
='#'
2743 am__fastdepCXX_FALSE
=
2748 ac_cpp
='$CXXCPP $CPPFLAGS'
2749 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2754 if test -z "$CXXCPP"; then
2755 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 # Double quotes because CXXCPP needs to be expanded
2759 for CXXCPP
in "$CXX -E" "/lib/cpp"
2762 for ac_cxx_preproc_warn_flag
in '' yes
2764 # Use a header file that comes with gcc, so configuring glibc
2765 # with a fresh cross-compiler works.
2766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2767 # <limits.h> exists even on freestanding compilers.
2768 # On the NeXT, cc -E runs the code through the compiler's parser,
2769 # not just through cpp. "Syntax error" is here to catch this case.
2770 cat >conftest.
$ac_ext <<_ACEOF
2773 cat confdefs.h
>>conftest.
$ac_ext
2774 cat >>conftest.
$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2777 # include <limits.h>
2779 # include <assert.h>
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1
>conftest.err
2788 cat conftest.err
>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev
/null
; then
2791 if test -s conftest.err
; then
2792 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2793 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2800 if test -z "$ac_cpp_err"; then
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2806 # Broken: fails on valid input.
2809 rm -f conftest.err conftest.
$ac_ext
2811 # OK, works on sane cases. Now check whether non-existent headers
2812 # can be detected and how.
2813 cat >conftest.
$ac_ext <<_ACEOF
2816 cat confdefs.h
>>conftest.
$ac_ext
2817 cat >>conftest.
$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 #include <ac_nonexistent.h>
2821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1
>conftest.err
2826 cat conftest.err
>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } >/dev
/null
; then
2829 if test -s conftest.err
; then
2830 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2831 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2838 if test -z "$ac_cpp_err"; then
2839 # Broken: success on invalid input.
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.
$ac_ext >&5
2845 # Passes both tests.
2849 rm -f conftest.err conftest.
$ac_ext
2852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2853 rm -f conftest.err conftest.
$ac_ext
2854 if $ac_preproc_ok; then
2859 ac_cv_prog_CXXCPP
=$CXXCPP
2862 CXXCPP
=$ac_cv_prog_CXXCPP
2864 ac_cv_prog_CXXCPP
=$CXXCPP
2866 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2867 echo "${ECHO_T}$CXXCPP" >&6
2869 for ac_cxx_preproc_warn_flag
in '' yes
2871 # Use a header file that comes with gcc, so configuring glibc
2872 # with a fresh cross-compiler works.
2873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2874 # <limits.h> exists even on freestanding compilers.
2875 # On the NeXT, cc -E runs the code through the compiler's parser,
2876 # not just through cpp. "Syntax error" is here to catch this case.
2877 cat >conftest.
$ac_ext <<_ACEOF
2880 cat confdefs.h
>>conftest.
$ac_ext
2881 cat >>conftest.
$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2884 # include <limits.h>
2886 # include <assert.h>
2890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2893 grep -v '^ *+' conftest.er1
>conftest.err
2895 cat conftest.err
>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } >/dev
/null
; then
2898 if test -s conftest.err
; then
2899 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2900 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2907 if test -z "$ac_cpp_err"; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.
$ac_ext >&5
2913 # Broken: fails on valid input.
2916 rm -f conftest.err conftest.
$ac_ext
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
2920 cat >conftest.
$ac_ext <<_ACEOF
2923 cat confdefs.h
>>conftest.
$ac_ext
2924 cat >>conftest.
$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #include <ac_nonexistent.h>
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev
/null
; then
2936 if test -s conftest.err
; then
2937 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2938 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2945 if test -z "$ac_cpp_err"; then
2946 # Broken: success on invalid input.
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.
$ac_ext >&5
2952 # Passes both tests.
2956 rm -f conftest.err conftest.
$ac_ext
2959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960 rm -f conftest.err conftest.
$ac_ext
2961 if $ac_preproc_ok; then
2964 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2972 ac_cpp
='$CPP $CPPFLAGS'
2973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2978 ac_cpp
='$CPP $CPPFLAGS'
2979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2984 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC
="$CC" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 echo "$as_me:$LINENO: result: $CC" >&5
3012 echo "${ECHO_T}$CC" >&6
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3019 if test -z "$ac_cv_prog_CC"; then
3021 # Extract the first word of "gcc", so it can be a program name with args.
3022 set dummy gcc
; ac_word
=$2
3023 echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir
=.
3036 for ac_exec_ext
in '' $ac_executable_extensions; do
3037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_CC
="gcc"
3039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3050 echo "${ECHO_T}$ac_ct_CC" >&6
3052 echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC
="$CC" # Let the user override the test.
3073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir
=.
3078 for ac_exec_ext
in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test -n "$CC"; then
3091 echo "$as_me:$LINENO: result: $CC" >&5
3092 echo "${ECHO_T}$CC" >&6
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3099 if test -z "$ac_cv_prog_CC"; then
3101 # Extract the first word of "cc", so it can be a program name with args.
3102 set dummy cc
; ac_word
=$2
3103 echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir
=.
3116 for ac_exec_ext
in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_CC
="cc"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3128 if test -n "$ac_ct_CC"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3130 echo "${ECHO_T}$ac_ct_CC" >&6
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3142 if test -z "$CC"; then
3143 # Extract the first word of "cc", so it can be a program name with args.
3144 set dummy cc
; ac_word
=$2
3145 echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147 if test "${ac_cv_prog_CC+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC
="$CC" # Let the user override the test.
3154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir
=.
3159 for ac_exec_ext
in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3162 ac_prog_rejected
=yes
3166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy
$ac_cv_prog_CC
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3181 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3187 if test -n "$CC"; then
3188 echo "$as_me:$LINENO: result: $CC" >&5
3189 echo "${ECHO_T}$CC" >&6
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3201 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_CC+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC
="$CC" # Let the user override the test.
3210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir
=.
3215 for ac_exec_ext
in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 if test -n "$CC"; then
3228 echo "$as_me:$LINENO: result: $CC" >&5
3229 echo "${ECHO_T}$CC" >&6
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 test -n "$CC" && break
3238 if test -z "$CC"; then
3242 # Extract the first word of "$ac_prog", so it can be a program name with args.
3243 set dummy
$ac_prog; ac_word
=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 if test -n "$ac_ct_CC"; then
3250 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir
=.
3257 for ac_exec_ext
in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_ac_ct_CC
="$ac_prog"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3271 echo "${ECHO_T}$ac_ct_CC" >&6
3273 echo "$as_me:$LINENO: result: no" >&5
3274 echo "${ECHO_T}no" >&6
3277 test -n "$ac_ct_CC" && break
3286 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: no acceptable C compiler found in \$PATH
3289 See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3292 # Provide some information about the compiler.
3293 echo "$as_me:$LINENO:" \
3294 "checking for C compiler version" >&5
3295 ac_compiler
=`set X $ac_compile; echo $2`
3296 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3297 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }
3301 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3302 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }
3306 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3307 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }
3312 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3313 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3314 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 cat >conftest.
$ac_ext <<_ACEOF
3320 cat confdefs.h
>>conftest.
$ac_ext
3321 cat >>conftest.
$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3335 rm -f conftest.
$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3339 grep -v '^ *+' conftest.er1
>conftest.err
3341 cat conftest.err
>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try
='test -z "$ac_c_werror_flag"
3345 || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try
='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.
$ac_ext >&5
3364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3365 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3368 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3370 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3371 ac_test_CFLAGS
=${CFLAGS+set}
3372 ac_save_CFLAGS
=$CFLAGS
3374 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3375 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3376 if test "${ac_cv_prog_cc_g+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 cat >conftest.
$ac_ext <<_ACEOF
3382 cat confdefs.h
>>conftest.
$ac_ext
3383 cat >>conftest.
$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3394 rm -f conftest.
$ac_objext
3395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>conftest.er1
3398 grep -v '^ *+' conftest.er1
>conftest.err
3400 cat conftest.err
>&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try
='test -z "$ac_c_werror_flag"
3404 || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try
='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.
$ac_ext >&5
3423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3425 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3426 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3427 if test "$ac_test_CFLAGS" = set; then
3428 CFLAGS
=$ac_save_CFLAGS
3429 elif test $ac_cv_prog_cc_g = yes; then
3430 if test "$GCC" = yes; then
3436 if test "$GCC" = yes; then
3442 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3443 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3444 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 ac_cv_prog_cc_stdc
=no
3449 cat >conftest.
$ac_ext <<_ACEOF
3452 cat confdefs.h
>>conftest.
$ac_ext
3453 cat >>conftest.
$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3457 #include <sys/types.h>
3458 #include <sys/stat.h>
3459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3460 struct buf { int x; };
3461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3462 static char *e (p, i)
3468 static char *f (char * (*g) (char **, int), char **p, ...)
3473 s = g (p, va_arg (v,int));
3478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3479 function prototypes and stuff, but not '\xHH' hex character constants.
3480 These don't provoke an error unfortunately, instead are silently treated
3481 as 'x'. The following induces an error, until -std1 is added to get
3482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3483 array size at least. It's necessary to write '\x00'==0 to get something
3484 that's true only with -std1. */
3485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3487 int test (int i, double x);
3488 struct s1 {int (*f) (int a);};
3489 struct s2 {int (*f) (double a);};
3490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3501 # Don't try gcc -ansi; that turns off useful extensions and
3502 # breaks some systems' header files.
3503 # AIX -qlanglvl=ansi
3504 # Ultrix and OSF/1 -std1
3505 # HP-UX 10.20 and later -Ae
3506 # HP-UX older versions -Aa -D_HPUX_SOURCE
3507 # SVR4 -Xc -D__EXTENSIONS__
3508 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3510 CC
="$ac_save_CC $ac_arg"
3511 rm -f conftest.
$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1
>conftest.err
3517 cat conftest.err
>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try
='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try
='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_cv_prog_cc_stdc
=$ac_arg
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.
$ac_ext >&5
3540 rm -f conftest.err conftest.
$ac_objext
3542 rm -f conftest.
$ac_ext conftest.
$ac_objext
3547 case "x$ac_cv_prog_cc_stdc" in
3549 echo "$as_me:$LINENO: result: none needed" >&5
3550 echo "${ECHO_T}none needed" >&6 ;;
3552 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3553 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3554 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3557 # Some people use a C++ compiler to compile C. Since we use `exit',
3558 # in C++ we need to declare it. In case someone uses the same compiler
3559 # for both compiling C and C++ we need to have the C++ compiler decide
3560 # the declaration of exit, since it's the most demanding environment.
3561 cat >conftest.
$ac_ext <<_ACEOF
3566 rm -f conftest.
$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1
>conftest.err
3572 cat conftest.err
>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try
='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try
='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 for ac_declaration
in \
3590 'extern "C" void std::exit (int) throw (); using std::exit;' \
3591 'extern "C" void std::exit (int); using std::exit;' \
3592 'extern "C" void exit (int) throw ();' \
3593 'extern "C" void exit (int);' \
3596 cat >conftest.
$ac_ext <<_ACEOF
3599 cat confdefs.h
>>conftest.
$ac_ext
3600 cat >>conftest.
$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3612 rm -f conftest.
$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try
='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try
='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3642 cat >conftest.
$ac_ext <<_ACEOF
3645 cat confdefs.h
>>conftest.
$ac_ext
3646 cat >>conftest.
$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3657 rm -f conftest.
$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3661 grep -v '^ *+' conftest.er1
>conftest.err
3663 cat conftest.err
>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try
='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try
='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3688 if test -n "$ac_declaration"; then
3689 echo '#ifdef __cplusplus' >>confdefs.h
3690 echo $ac_declaration >>confdefs.h
3691 echo '#endif' >>confdefs.h
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.
$ac_ext >&5
3699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3701 ac_cpp
='$CPP $CPPFLAGS'
3702 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3706 depcc
="$CC" am_compiler_list
=
3708 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3709 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3710 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3714 # We make a subdir and do the tests there. Otherwise we can end up
3715 # making bogus files that we don't know about and never remove. For
3716 # instance it was reported that on HP-UX the gcc test will end up
3717 # making a dummy file named `D' -- because `-MD' means `put the output
3720 # Copy depcomp to subdir because otherwise we won't find it if we're
3721 # using a relative directory.
3722 cp "$am_depcomp" conftest.dir
3724 # We will build objects and dependencies in a subdirectory because
3725 # it helps to detect inapplicable dependency modes. For instance
3726 # both Tru64's cc and ICC support -MD to output dependencies as a
3727 # side effect of compilation, but ICC will put the dependencies in
3728 # the current directory while Tru64 will put them in the object
3732 am_cv_CC_dependencies_compiler_type
=none
3733 if test "$am_compiler_list" = ""; then
3734 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3736 for depmode
in $am_compiler_list; do
3737 # Setup a source with many dependencies, because some compilers
3738 # like to wrap large dependency lists on column 80 (with \), and
3739 # we should not choose a depcomp mode which is confused by this.
3741 # We need to recreate these files for each test, as the compiler may
3742 # overwrite some of them when testing with obscure command lines.
3743 # This happens at least with the AIX C compiler.
3745 for i
in 1 2 3 4 5 6; do
3746 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3747 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3748 # Solaris 8's {/usr,}/bin/sh.
3749 touch sub
/conftst
$i.h
3751 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes
; then
3765 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3766 # mode. It turns out that the SunPro C++ compiler does not properly
3767 # handle `-M -o', and we need to detect this.
3768 if depmode
=$depmode \
3769 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3770 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3771 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3772 >/dev
/null
2>conftest.err
&&
3773 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3774 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3775 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3776 # icc doesn't choke on unknown options, it will just issue warnings
3777 # or remarks (even with -Werror). So we grep stderr for any message
3778 # that says an option was ignored or not supported.
3779 # When given -MP, icc 7.0 and 7.1 complain thusly:
3780 # icc: Command line warning: ignoring option '-M'; no argument required
3781 # The diagnosis changed in icc 8.0:
3782 # icc: Command line remark: option '-MP' not supported
3783 if (grep 'ignoring option' conftest.err ||
3784 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3785 am_cv_CC_dependencies_compiler_type
=$depmode
3794 am_cv_CC_dependencies_compiler_type
=none
3798 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3799 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3800 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3805 test "x$enable_dependency_tracking" != xno \
3806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3808 am__fastdepCC_FALSE
='#'
3810 am__fastdepCC_TRUE
='#'
3811 am__fastdepCC_FALSE
=
3816 ac_cpp
='$CPP $CPPFLAGS'
3817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3820 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3821 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3822 # On Suns, sometimes $CPP names a directory.
3823 if test -n "$CPP" && test -d "$CPP"; then
3826 if test -z "$CPP"; then
3827 if test "${ac_cv_prog_CPP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 # Double quotes because CPP needs to be expanded
3831 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3834 for ac_c_preproc_warn_flag
in '' yes
3836 # Use a header file that comes with gcc, so configuring glibc
3837 # with a fresh cross-compiler works.
3838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 # <limits.h> exists even on freestanding compilers.
3840 # On the NeXT, cc -E runs the code through the compiler's parser,
3841 # not just through cpp. "Syntax error" is here to catch this case.
3842 cat >conftest.
$ac_ext <<_ACEOF
3845 cat confdefs.h
>>conftest.
$ac_ext
3846 cat >>conftest.
$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3849 # include <limits.h>
3851 # include <assert.h>
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3858 grep -v '^ *+' conftest.er1
>conftest.err
3860 cat conftest.err
>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev
/null
; then
3863 if test -s conftest.err
; then
3864 ac_cpp_err
=$ac_c_preproc_warn_flag
3865 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3872 if test -z "$ac_cpp_err"; then
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.
$ac_ext >&5
3878 # Broken: fails on valid input.
3881 rm -f conftest.err conftest.
$ac_ext
3883 # OK, works on sane cases. Now check whether non-existent headers
3884 # can be detected and how.
3885 cat >conftest.
$ac_ext <<_ACEOF
3888 cat confdefs.h
>>conftest.
$ac_ext
3889 cat >>conftest.
$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 #include <ac_nonexistent.h>
3893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3894 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3896 grep -v '^ *+' conftest.er1
>conftest.err
3898 cat conftest.err
>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } >/dev
/null
; then
3901 if test -s conftest.err
; then
3902 ac_cpp_err
=$ac_c_preproc_warn_flag
3903 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3910 if test -z "$ac_cpp_err"; then
3911 # Broken: success on invalid input.
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.
$ac_ext >&5
3917 # Passes both tests.
3921 rm -f conftest.err conftest.
$ac_ext
3924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925 rm -f conftest.err conftest.
$ac_ext
3926 if $ac_preproc_ok; then
3938 echo "$as_me:$LINENO: result: $CPP" >&5
3939 echo "${ECHO_T}$CPP" >&6
3941 for ac_c_preproc_warn_flag
in '' yes
3943 # Use a header file that comes with gcc, so configuring glibc
3944 # with a fresh cross-compiler works.
3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946 # <limits.h> exists even on freestanding compilers.
3947 # On the NeXT, cc -E runs the code through the compiler's parser,
3948 # not just through cpp. "Syntax error" is here to catch this case.
3949 cat >conftest.
$ac_ext <<_ACEOF
3952 cat confdefs.h
>>conftest.
$ac_ext
3953 cat >>conftest.
$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3956 # include <limits.h>
3958 # include <assert.h>
3962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3963 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3965 grep -v '^ *+' conftest.er1
>conftest.err
3967 cat conftest.err
>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } >/dev
/null
; then
3970 if test -s conftest.err
; then
3971 ac_cpp_err
=$ac_c_preproc_warn_flag
3972 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3979 if test -z "$ac_cpp_err"; then
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.
$ac_ext >&5
3985 # Broken: fails on valid input.
3988 rm -f conftest.err conftest.
$ac_ext
3990 # OK, works on sane cases. Now check whether non-existent headers
3991 # can be detected and how.
3992 cat >conftest.
$ac_ext <<_ACEOF
3995 cat confdefs.h
>>conftest.
$ac_ext
3996 cat >>conftest.
$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 #include <ac_nonexistent.h>
4000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4003 grep -v '^ *+' conftest.er1
>conftest.err
4005 cat conftest.err
>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev
/null
; then
4008 if test -s conftest.err
; then
4009 ac_cpp_err
=$ac_c_preproc_warn_flag
4010 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4017 if test -z "$ac_cpp_err"; then
4018 # Broken: success on invalid input.
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.
$ac_ext >&5
4024 # Passes both tests.
4028 rm -f conftest.err conftest.
$ac_ext
4031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4032 rm -f conftest.err conftest.
$ac_ext
4033 if $ac_preproc_ok; then
4036 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4037 See \`config.log' for more details." >&5
4038 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4039 See \`config.log' for more details." >&2;}
4040 { (exit 1); exit 1; }; }
4044 ac_cpp
='$CPP $CPPFLAGS'
4045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4049 if test "$cross_compiling" = yes; then
4051 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4054 # Even if we're cross-compiling, we want a compiler here
4055 # that is not a cross-compiler.
4056 saved_cross
=$cross_compiling
4060 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4061 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4064 if test -n "$ac_build_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4066 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 if test -n "$BUILD_CC"; then
4073 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir
=.
4080 for ac_exec_ext
in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 BUILD_CC
=$ac_cv_prog_BUILD_CC
4092 if test -n "$BUILD_CC"; then
4093 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4094 echo "${ECHO_T}$BUILD_CC" >&6
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 if test -z "$ac_cv_prog_BUILD_CC"; then
4102 ac_ct_BUILD_CC
=$BUILD_CC
4103 # Extract the first word of "gcc", so it can be a program name with args.
4104 set dummy gcc
; ac_word
=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 if test -n "$ac_ct_BUILD_CC"; then
4111 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir
=.
4118 for ac_exec_ext
in '' $ac_executable_extensions; do
4119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4130 if test -n "$ac_ct_BUILD_CC"; then
4131 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4132 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 BUILD_CC
=$ac_ct_BUILD_CC
4140 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4143 if test -z "$BUILD_CC"; then
4144 if test -n "$ac_build_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4146 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$BUILD_CC"; then
4153 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir
=.
4160 for ac_exec_ext
in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 BUILD_CC
=$ac_cv_prog_BUILD_CC
4172 if test -n "$BUILD_CC"; then
4173 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4174 echo "${ECHO_T}$BUILD_CC" >&6
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4181 if test -z "$ac_cv_prog_BUILD_CC"; then
4182 ac_ct_BUILD_CC
=$BUILD_CC
4183 # Extract the first word of "cc", so it can be a program name with args.
4184 set dummy cc
; ac_word
=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 if test -n "$ac_ct_BUILD_CC"; then
4191 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir
=.
4198 for ac_exec_ext
in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4210 if test -n "$ac_ct_BUILD_CC"; then
4211 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4212 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4218 BUILD_CC
=$ac_ct_BUILD_CC
4220 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4224 if test -z "$BUILD_CC"; then
4225 # Extract the first word of "cc", so it can be a program name with args.
4226 set dummy cc
; ac_word
=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$BUILD_CC"; then
4233 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir
=.
4241 for ac_exec_ext
in '' $ac_executable_extensions; do
4242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4244 ac_prog_rejected
=yes
4247 ac_cv_prog_BUILD_CC
="cc"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test $ac_prog_rejected = yes; then
4255 # We found a bogon in the path, so make sure we never use it.
4256 set dummy
$ac_cv_prog_BUILD_CC
4258 if test $# != 0; then
4259 # We chose a different compiler from the bogus one.
4260 # However, it has the same basename, so the bogon will be chosen
4261 # first if we set BUILD_CC to just the basename; use the full file name.
4263 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4268 BUILD_CC
=$ac_cv_prog_BUILD_CC
4269 if test -n "$BUILD_CC"; then
4270 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4271 echo "${ECHO_T}$BUILD_CC" >&6
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4278 if test -z "$BUILD_CC"; then
4279 if test -n "$ac_build_prefix"; then
4282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4283 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 if test -n "$BUILD_CC"; then
4290 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir
=.
4297 for ac_exec_ext
in '' $ac_executable_extensions; do
4298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 BUILD_CC
=$ac_cv_prog_BUILD_CC
4309 if test -n "$BUILD_CC"; then
4310 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4311 echo "${ECHO_T}$BUILD_CC" >&6
4313 echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4317 test -n "$BUILD_CC" && break
4320 if test -z "$BUILD_CC"; then
4321 ac_ct_BUILD_CC
=$BUILD_CC
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy
$ac_prog; ac_word
=$2
4326 echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4328 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 if test -n "$ac_ct_BUILD_CC"; then
4332 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir
=.
4339 for ac_exec_ext
in '' $ac_executable_extensions; do
4340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4351 if test -n "$ac_ct_BUILD_CC"; then
4352 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4353 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4355 echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6
4359 test -n "$ac_ct_BUILD_CC" && break
4362 BUILD_CC
=$ac_ct_BUILD_CC
4368 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4369 See \`config.log' for more details." >&5
4370 echo "$as_me: error: no acceptable C compiler found in \$PATH
4371 See \`config.log' for more details." >&2;}
4372 { (exit 1); exit 1; }; }
4374 # Provide some information about the compiler.
4375 echo "$as_me:$LINENO:" \
4376 "checking for C compiler version" >&5
4377 ac_compiler
=`set X $ac_compile; echo $2`
4378 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4379 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }
4383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4384 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }
4388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4389 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }
4394 cat >conftest.
$ac_ext <<_ACEOF
4397 cat confdefs.h
>>conftest.
$ac_ext
4398 cat >>conftest.
$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4409 ac_clean_files_save
=$ac_clean_files
4410 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4411 # Try to create an executable without -o first, disregard a.out.
4412 # It will help us diagnose broken compilers, and finding out an intuition
4414 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4415 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4416 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4417 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4418 (eval $ac_link_default) 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; then
4422 # Find the output, starting from the most likely. This scheme is
4423 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4426 # Be careful to initialize this variable, since it used to be cached.
4427 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4429 # b.out is created by i960 compilers.
4430 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4432 test -f "$ac_file" ||
continue
4434 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4437 # This is the source file.
4440 # We found the default executable, but exeext='' is most
4444 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4445 # FIXME: I believe we export ac_cv_exeext for Libtool,
4446 # but it would be cool to find out if it's true. Does anybody
4447 # maintain Libtool? --akim.
4448 export ac_cv_build_exeext
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.
$ac_ext >&5
4458 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4459 See \`config.log' for more details." >&5
4460 echo "$as_me: error: C compiler cannot create executables
4461 See \`config.log' for more details." >&2;}
4462 { (exit 77); exit 77; }; }
4465 ac_build_exeext
=$ac_cv_build_exeext
4466 echo "$as_me:$LINENO: result: $ac_file" >&5
4467 echo "${ECHO_T}$ac_file" >&6
4469 # Check the compiler produces executables we can run. If not, either
4470 # the compiler is broken, or we cross compile.
4471 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4472 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4473 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4474 # If not cross compiling, check that we can run a simple program.
4475 if test "$cross_compiling" != yes; then
4476 if { ac_try
='./$ac_file'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4484 if test "$cross_compiling" = maybe
; then
4487 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details." >&5
4490 echo "$as_me: error: cannot run C compiled programs.
4491 If you meant to cross compile, use \`--host'.
4492 See \`config.log' for more details." >&2;}
4493 { (exit 1); exit 1; }; }
4497 echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6
4500 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4501 ac_clean_files
=$ac_clean_files_save
4502 # Check the compiler produces executables we can run. If not, either
4503 # the compiler is broken, or we cross compile.
4504 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4505 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4506 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4507 echo "${ECHO_T}$cross_compiling" >&6
4509 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4510 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; then
4516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4518 # work properly (i.e., refer to `conftest.exe'), while it won't with
4520 for ac_file
in conftest.exe conftest conftest.
*; do
4521 test -f "$ac_file" ||
continue
4523 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4524 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525 export ac_cv_build_exeext
4531 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4534 See \`config.log' for more details." >&2;}
4535 { (exit 1); exit 1; }; }
4538 rm -f conftest
$ac_cv_build_exeext
4539 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4540 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4542 rm -f conftest.
$ac_ext
4543 BUILD_EXEEXT
=$ac_cv_build_exeext
4544 ac_build_exeext
=$BUILD_EXEEXT
4547 # Restore configuration environment
4548 cross_compiling
=$saved_cross
4551 ac_cpp
='$CPP $CPPFLAGS'
4552 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4557 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4560 CFLAGS
="$mule_backup_CFLAGS"
4561 CXXFLAGS
="$mule_backup_CXXFLAGS"
4562 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4563 for ac_prog
in gawk mawk nawk
awk
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy
$ac_prog; ac_word
=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_AWK+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$AWK"; then
4573 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir
=.
4580 for ac_exec_ext
in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_AWK
="$ac_prog"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 if test -n "$AWK"; then
4593 echo "$as_me:$LINENO: result: $AWK" >&5
4594 echo "${ECHO_T}$AWK" >&6
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4600 test -n "$AWK" && break
4603 echo "$as_me:$LINENO: checking for egrep" >&5
4604 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4605 if test "${ac_cv_prog_egrep+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4609 then ac_cv_prog_egrep
='grep -E'
4610 else ac_cv_prog_egrep
='egrep'
4613 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4614 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4615 EGREP
=$ac_cv_prog_egrep
4618 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4619 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4620 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4621 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 cat >conftest.
make <<\_ACEOF
4626 @
echo 'ac_maketemp="$(MAKE)"'
4628 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4629 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4630 if test -n "$ac_maketemp"; then
4631 eval ac_cv_prog_make_
${ac_make}_set
=yes
4633 eval ac_cv_prog_make_
${ac_make}_set
=no
4637 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4638 echo "$as_me:$LINENO: result: yes" >&5
4639 echo "${ECHO_T}yes" >&6
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4644 SET_MAKE
="MAKE=${MAKE-make}"
4648 for ac_prog
in flex
lex
4650 # Extract the first word of "$ac_prog", so it can be a program name with args.
4651 set dummy
$ac_prog; ac_word
=$2
4652 echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4654 if test "${ac_cv_prog_LEX+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$LEX"; then
4658 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir
=.
4665 for ac_exec_ext
in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_LEX
="$ac_prog"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 if test -n "$LEX"; then
4678 echo "$as_me:$LINENO: result: $LEX" >&5
4679 echo "${ECHO_T}$LEX" >&6
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4685 test -n "$LEX" && break
4687 test -n "$LEX" || LEX
=":"
4689 if test -z "$LEXLIB"
4691 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4692 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4693 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 ac_check_lib_save_LIBS
=$LIBS
4698 cat >conftest.
$ac_ext <<_ACEOF
4701 cat confdefs.h
>>conftest.
$ac_ext
4702 cat >>conftest.
$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 /* Override any gcc2 internal prototype to avoid an error. */
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4720 rm -f conftest.
$ac_objext conftest
$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1
>conftest.err
4726 cat conftest.err
>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try
='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try
='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_lib_fl_yywrap
=yes
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.
$ac_ext >&5
4747 ac_cv_lib_fl_yywrap
=no
4749 rm -f conftest.err conftest.
$ac_objext \
4750 conftest
$ac_exeext conftest.
$ac_ext
4751 LIBS
=$ac_check_lib_save_LIBS
4753 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4754 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4755 if test $ac_cv_lib_fl_yywrap = yes; then
4758 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4759 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4760 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 ac_check_lib_save_LIBS
=$LIBS
4765 cat >conftest.
$ac_ext <<_ACEOF
4768 cat confdefs.h
>>conftest.
$ac_ext
4769 cat >>conftest.
$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4772 /* Override any gcc2 internal prototype to avoid an error. */
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4787 rm -f conftest.
$ac_objext conftest
$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>conftest.er1
4791 grep -v '^ *+' conftest.er1
>conftest.err
4793 cat conftest.err
>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try
='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try
='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_lib_l_yywrap
=yes
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.
$ac_ext >&5
4814 ac_cv_lib_l_yywrap
=no
4816 rm -f conftest.err conftest.
$ac_objext \
4817 conftest
$ac_exeext conftest.
$ac_ext
4818 LIBS
=$ac_check_lib_save_LIBS
4820 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4821 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4822 if test $ac_cv_lib_l_yywrap = yes; then
4830 if test "x$LEX" != "x:"; then
4831 echo "$as_me:$LINENO: checking lex output file root" >&5
4832 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4833 if test "${ac_cv_prog_lex_root+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 # The minimal lex program is just a single line: %%. But some broken lexes
4837 # (Solaris, I think it was) want two %% lines, so accommodate them.
4838 cat >conftest.l
<<_ACEOF
4842 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4843 (eval $LEX conftest.l
) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }
4847 if test -f lex.yy.c
; then
4848 ac_cv_prog_lex_root
=lex.yy
4849 elif test -f lexyy.c
; then
4850 ac_cv_prog_lex_root
=lexyy
4852 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4853 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4854 { (exit 1); exit 1; }; }
4857 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4858 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4860 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4862 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4863 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4864 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 # POSIX says lex can declare yytext either as a pointer or an array; the
4868 # default is implementation-dependent. Figure out which it is, since
4869 # not all implementations provide the %pointer and %array declarations.
4870 ac_cv_prog_lex_yytext_pointer
=no
4871 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4873 LIBS
="$LIBS $LEXLIB"
4874 cat >conftest.
$ac_ext <<_ACEOF
4875 `cat $LEX_OUTPUT_ROOT.c`
4877 rm -f conftest.
$ac_objext conftest
$ac_exeext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4879 (eval $ac_link) 2>conftest.er1
4881 grep -v '^ *+' conftest.er1
>conftest.err
4883 cat conftest.err
>&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try
='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try
='test -s conftest$ac_exeext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 ac_cv_prog_lex_yytext_pointer
=yes
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.
$ac_ext >&5
4905 rm -f conftest.err conftest.
$ac_objext \
4906 conftest
$ac_exeext conftest.
$ac_ext
4908 rm -f "${LEX_OUTPUT_ROOT}.c"
4911 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4912 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4913 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4915 cat >>confdefs.h
<<\_ACEOF
4916 #define YYTEXT_POINTER 1
4922 # Find a good install program. We prefer a C program (faster),
4923 # so one script is as good as another. But avoid the broken or
4924 # incompatible versions:
4925 # SysV /etc/install, /usr/sbin/install
4926 # SunOS /usr/etc/install
4927 # IRIX /sbin/install
4929 # AmigaOS /C/install, which installs bootblocks on floppy discs
4930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4933 # OS/2's system install, which has a completely different semantic
4934 # ./install, which can be erroneously created by make from ./install.sh.
4935 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4936 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4937 if test -z "$INSTALL"; then
4938 if test "${ac_cv_path_install+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4945 test -z "$as_dir" && as_dir
=.
4946 # Account for people who put trailing slashes in PATH elements.
4948 .
/ | .
// |
/cC
/* | \
4949 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4950 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4953 # OSF1 and SCO ODT 3.0 have their own names for install.
4954 # Don't use installbsd from OSF since it installs stuff as root
4956 for ac_prog
in ginstall scoinst
install; do
4957 for ac_exec_ext
in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4959 if test $ac_prog = install &&
4960 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4961 # AIX install. It has an incompatible calling convention.
4963 elif test $ac_prog = install &&
4964 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4965 # program-specific install script used by HP pwplus--don't use.
4968 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4980 if test "${ac_cv_path_install+set}" = set; then
4981 INSTALL
=$ac_cv_path_install
4983 # As a last resort, use the slow shell script. We don't cache a
4984 # path for INSTALL within a source directory, because that will
4985 # break other packages using the cache if that directory is
4986 # removed, or if the path is relative.
4987 INSTALL
=$ac_install_sh
4990 echo "$as_me:$LINENO: result: $INSTALL" >&5
4991 echo "${ECHO_T}$INSTALL" >&6
4993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4994 # It thinks the first close brace ends the variable substitution.
4995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4999 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5004 echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 RANLIB
=$ac_cv_prog_RANLIB
5029 if test -n "$RANLIB"; then
5030 echo "$as_me:$LINENO: result: $RANLIB" >&5
5031 echo "${ECHO_T}$RANLIB" >&6
5033 echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB
=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib
; ac_word
=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir
=.
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5067 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5070 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5072 echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6
5076 RANLIB
=$ac_ct_RANLIB
5078 RANLIB
="$ac_cv_prog_RANLIB"
5081 for ac_prog
in 'bison -y' byacc
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy
$ac_prog; ac_word
=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_prog_YACC+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 if test -n "$YACC"; then
5091 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir
=.
5098 for ac_exec_ext
in '' $ac_executable_extensions; do
5099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_YACC
="$ac_prog"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 YACC
=$ac_cv_prog_YACC
5110 if test -n "$YACC"; then
5111 echo "$as_me:$LINENO: result: $YACC" >&5
5112 echo "${ECHO_T}$YACC" >&6
5114 echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6
5118 test -n "$YACC" && break
5120 test -n "$YACC" || YACC
="yacc"
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5125 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5126 echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128 if test "${ac_cv_prog_RANLIB+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 if test -n "$RANLIB"; then
5132 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir
=.
5139 for ac_exec_ext
in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 RANLIB
=$ac_cv_prog_RANLIB
5151 if test -n "$RANLIB"; then
5152 echo "$as_me:$LINENO: result: $RANLIB" >&5
5153 echo "${ECHO_T}$RANLIB" >&6
5155 echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB
=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib
; ac_word
=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5189 if test -n "$ac_ct_RANLIB"; then
5190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5193 echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5197 RANLIB
=$ac_ct_RANLIB
5199 RANLIB
="$ac_cv_prog_RANLIB"
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5204 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_prog_STRIP+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 if test -n "$STRIP"; then
5211 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir
=.
5218 for ac_exec_ext
in '' $ac_executable_extensions; do
5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 STRIP
=$ac_cv_prog_STRIP
5230 if test -n "$STRIP"; then
5231 echo "$as_me:$LINENO: result: $STRIP" >&5
5232 echo "${ECHO_T}$STRIP" >&6
5234 echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6
5239 if test -z "$ac_cv_prog_STRIP"; then
5241 # Extract the first word of "strip", so it can be a program name with args.
5242 set dummy strip
; ac_word
=$2
5243 echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 if test -n "$ac_ct_STRIP"; then
5249 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_ac_ct_STRIP
="strip"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5268 if test -n "$ac_ct_STRIP"; then
5269 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5270 echo "${ECHO_T}$ac_ct_STRIP" >&6
5272 echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6
5278 STRIP
="$ac_cv_prog_STRIP"
5281 if test -n "$ac_tool_prefix"; then
5282 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5283 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_prog_AR+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 if test -n "$AR"; then
5290 ac_cv_prog_AR
="$AR" # Let the user override the test.
5292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir
=.
5297 for ac_exec_ext
in '' $ac_executable_extensions; do
5298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 if test -n "$AR"; then
5310 echo "$as_me:$LINENO: result: $AR" >&5
5311 echo "${ECHO_T}$AR" >&6
5313 echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6
5318 if test -z "$ac_cv_prog_AR"; then
5320 # Extract the first word of "ar", so it can be a program name with args.
5321 set dummy
ar; ac_word
=$2
5322 echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5324 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 if test -n "$ac_ct_AR"; then
5328 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir
=.
5335 for ac_exec_ext
in '' $ac_executable_extensions; do
5336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_ac_ct_AR
="ar"
5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5347 if test -n "$ac_ct_AR"; then
5348 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5349 echo "${ECHO_T}$ac_ct_AR" >&6
5351 echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5362 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_LD+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 if test -n "$LD"; then
5369 ac_cv_prog_LD
="$LD" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 if test -n "$LD"; then
5389 echo "$as_me:$LINENO: result: $LD" >&5
5390 echo "${ECHO_T}$LD" >&6
5392 echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5397 if test -z "$ac_cv_prog_LD"; then
5399 # Extract the first word of "ld", so it can be a program name with args.
5400 set dummy ld
; ac_word
=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 if test -n "$ac_ct_LD"; then
5407 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5413 test -z "$as_dir" && as_dir
=.
5414 for ac_exec_ext
in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_ac_ct_LD
="ld"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5426 if test -n "$ac_ct_LD"; then
5427 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5428 echo "${ECHO_T}$ac_ct_LD" >&6
5430 echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6
5440 # Check whether --enable-monolithic or --disable-monolithic was given.
5441 if test "${enable_monolithic+set}" = set; then
5442 enableval
="$enable_monolithic"
5443 MONOLITHIC
=$enableval
5448 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5449 if test "${enable_amule_daemon+set}" = set; then
5450 enableval
="$enable_amule_daemon"
5451 AMULE_DAEMON
=$enableval
5456 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5457 if test "${enable_amulecmd+set}" = set; then
5458 enableval
="$enable_amulecmd"
5464 # Check whether --enable-webserver or --disable-webserver was given.
5465 if test "${enable_webserver+set}" = set; then
5466 enableval
="$enable_webserver"
5472 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5473 if test "${enable_amule_gui+set}" = set; then
5474 enableval
="$enable_amule_gui"
5475 AMULE_GUI
=$enableval
5480 # Check whether --enable-cas or --disable-cas was given.
5481 if test "${enable_cas+set}" = set; then
5482 enableval
="$enable_cas"
5488 # Check whether --enable-wxcas or --disable-wxcas was given.
5489 if test "${enable_wxcas+set}" = set; then
5490 enableval
="$enable_wxcas"
5496 # Check whether --enable-ed2k or --disable-ed2k was given.
5497 if test "${enable_ed2k+set}" = set; then
5498 enableval
="$enable_ed2k"
5504 # Check whether --enable-alc or --disable-alc was given.
5505 if test "${enable_alc+set}" = set; then
5506 enableval
="$enable_alc"
5512 # Check whether --enable-alcc or --disable-alcc was given.
5513 if test "${enable_alcc+set}" = set; then
5514 enableval
="$enable_alcc"
5520 # Check whether --enable-monolithic or --disable-monolithic was given.
5521 if test "${enable_monolithic+set}" = set; then
5522 enableval
="$enable_monolithic"
5523 MONOLITHIC
=$enableval
5528 # Check whether --enable-upnp or --disable-upnp was given.
5529 if test "${enable_upnp+set}" = set; then
5530 enableval
="$enable_upnp"
5531 ENABLE_UPNP
=$enableval
5536 # Check whether --enable-xas or --disable-xas was given.
5537 if test "${enable_xas+set}" = set; then
5538 enableval
="$enable_xas"
5544 # Default is yes, because they're most likely compatible.
5545 # However, this is only used when cross-compiling.
5547 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5548 if test "${with_gnu_malloc+set}" = set; then
5549 withval
="$with_gnu_malloc"
5556 # Checking for libs before all other stuff to break
5557 # configure as soon as possible in case of a missing one
5558 # to avoid losing too much time
5563 # Check whether --with-zlib or --without-zlib was given.
5564 if test "${with_zlib+set}" = set; then
5565 withval
="$with_zlib"
5569 case "${with_zlib:-yes}" in
5571 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5572 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5573 { (exit 1); exit 1; }; }
5578 zlib_prefix
="$with_zlib"
5581 mule_backup_CPPFLAGS
="$CPPFLAGS"
5582 mule_backup_LDFLAGS
="$LDFLAGS"
5583 mule_backup_LIBS
="$LIBS"
5584 if test -n "$zlib_prefix"; then
5586 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5587 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5588 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5589 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5599 LIBS
="$ZLIB_LIBS $LIBS"
5601 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5602 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5603 if test "$cross_compiling" = yes; then
5607 cat >conftest.
$ac_ext <<_ACEOF
5611 cat confdefs.h
>>conftest.
$ac_ext
5612 cat >>conftest.
$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5622 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5630 rm -f conftest.
$ac_objext conftest
$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1
>conftest.err
5636 cat conftest.err
>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try
='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try
='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5653 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5654 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5655 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5656 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5657 if test "$cross_zver_max" -gt "1"; then
5659 elif test "$cross_zver_max" -eq "1"; then
5661 if test "$cross_zver_mid" -gt "1"; then
5663 elif test "$cross_zver_mid" -eq "1"; then
5664 if test "$cross_zver_min" -ge "4"; then
5673 if test ${result:-no} = yes; then
5674 z_version
=" (version $ZLIB_VERSION)"
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5683 rm -f conftest.err conftest.
$ac_objext \
5684 conftest
$ac_exeext conftest.
$ac_ext
5685 echo "$as_me:$LINENO: result: $result$z_version" >&5
5686 echo "${ECHO_T}$result$z_version" >&6
5689 cat >conftest.
$ac_ext <<_ACEOF
5693 cat confdefs.h
>>conftest.
$ac_ext
5694 cat >>conftest.
$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5703 char *zver = zlibVersion();
5704 FILE *f=fopen("conftestval", "w");
5711 zver[4] >= '4'))) ? "yes" : "no");
5713 f=fopen("conftestver", "w");
5715 fprintf(f, "%s", ZLIB_VERSION);
5724 rm -f conftest
$ac_exeext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726 (eval $ac_link) 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5736 if test -f conftestval
; then
5737 result
=`cat conftestval`
5742 if test ${result:-no} = yes; then
5744 if test -f conftestver
; then
5746 ZLIB_VERSION
=`cat conftestver`
5747 z_version
=" (version $ZLIB_VERSION)"
5756 echo "$as_me:$LINENO: result: $result$z_version" >&5
5757 echo "${ECHO_T}$result$z_version" >&6
5760 echo "$as_me: program exited with status $ac_status" >&5
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.
$ac_ext >&5
5767 echo "$as_me:$LINENO: result: $result" >&5
5768 echo "${ECHO_T}$result" >&6
5771 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5774 CPPFLAGS
="$mule_backup_CPPFLAGS"
5775 LDFLAGS
="$mule_backup_LDFLAGS"
5776 LIBS
="$mule_backup_LIBS"
5778 if test ${result:-no} = no
; then
5783 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5784 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5785 { (exit 1); exit 1; }; }
5792 if test x
$CAS = xyes
; then
5796 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5798 if test "${ac_cv_header_stdc+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 cat >conftest.
$ac_ext <<_ACEOF
5804 cat confdefs.h
>>conftest.
$ac_ext
5805 cat >>conftest.
$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5820 rm -f conftest.
$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5824 grep -v '^ *+' conftest.er1
>conftest.err
5826 cat conftest.err
>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try
='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try
='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_cv_header_stdc
=yes
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.
$ac_ext >&5
5847 ac_cv_header_stdc
=no
5849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5851 if test $ac_cv_header_stdc = yes; then
5852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5853 cat >conftest.
$ac_ext <<_ACEOF
5856 cat confdefs.h
>>conftest.
$ac_ext
5857 cat >>conftest.
$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5863 $EGREP "memchr" >/dev
/null
2>&1; then
5866 ac_cv_header_stdc
=no
5872 if test $ac_cv_header_stdc = yes; then
5873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5874 cat >conftest.
$ac_ext <<_ACEOF
5877 cat confdefs.h
>>conftest.
$ac_ext
5878 cat >>conftest.
$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "free" >/dev
/null
2>&1; then
5887 ac_cv_header_stdc
=no
5893 if test $ac_cv_header_stdc = yes; then
5894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5895 if test "$cross_compiling" = yes; then
5898 cat >conftest.
$ac_ext <<_ACEOF
5901 cat confdefs.h
>>conftest.
$ac_ext
5902 cat >>conftest.
$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5905 #if ((' ' & 0x0FF) == 0x020)
5906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 # define ISLOWER(c) \
5910 (('a' <= (c) && (c) <= 'i') \
5911 || ('j' <= (c) && (c) <= 'r') \
5912 || ('s' <= (c) && (c) <= 'z'))
5913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5921 for (i = 0; i < 256; i++)
5922 if (XOR (islower (i), ISLOWER (i))
5923 || toupper (i) != TOUPPER (i))
5928 rm -f conftest
$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: program exited with status $ac_status" >&5
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5946 ac_cv_header_stdc
=no
5948 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5952 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5953 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5954 if test $ac_cv_header_stdc = yes; then
5956 cat >>confdefs.h
<<\_ACEOF
5957 #define STDC_HEADERS 1
5962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5972 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5973 inttypes.h stdint.h unistd.h
5975 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976 echo "$as_me:$LINENO: checking for $ac_header" >&5
5977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 cat >conftest.
$ac_ext <<_ACEOF
5984 cat confdefs.h
>>conftest.
$ac_ext
5985 cat >>conftest.
$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5989 #include <$ac_header>
5991 rm -f conftest.
$ac_objext
5992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993 (eval $ac_compile) 2>conftest.er1
5995 grep -v '^ *+' conftest.er1
>conftest.err
5997 cat conftest.err
>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try
='test -z "$ac_c_werror_flag"
6001 || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try
='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 eval "$as_ac_Header=yes"
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.
$ac_ext >&5
6018 eval "$as_ac_Header=no"
6020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6025 cat >>confdefs.h
<<_ACEOF
6026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6036 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6037 if test "${with_gdlib_prefix+set}" = set; then
6038 withval
="$with_gdlib_prefix"
6042 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6043 if test "${with_gdlib_config+set}" = set; then
6044 withval
="$with_gdlib_config"
6050 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6051 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6052 GDLIB_CONFIG_NAME
=gdlib-config
6055 if test -n "$with_gdlib_config"; then
6056 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6060 # deal with optional prefix
6061 if test -n "$with_gdlib_prefix"; then
6062 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6066 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6067 if test -x "$GDLIB_CONFIG_NAME"; then
6069 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6070 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6071 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6072 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6073 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6076 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6077 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6078 echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 case $GDLIB_CONFIG_PATH in
6085 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6089 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6090 for as_dir
in $as_dummy
6093 test -z "$as_dir" && as_dir
=.
6094 for ac_exec_ext
in '' $ac_executable_extensions; do
6095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6107 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6109 if test -n "$GDLIB_CONFIG_PATH"; then
6110 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6111 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6120 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6122 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6123 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6124 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6126 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6127 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6128 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6129 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6132 if test $gdlib_config_major_version -gt 2; then
6134 elif test $gdlib_config_major_version -eq 2; then
6136 if test $gdlib_config_minor_version -gt 0; then
6138 elif test $gdlib_config_minor_version -eq 0; then
6139 if test $gdlib_config_micro_version -ge 0; then
6149 if test -z "$gdlib_ver_ok"; then
6151 if test -z "$GDLIB_VERSION"; then
6152 echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6156 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6157 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6165 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6166 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6167 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6168 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6169 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6170 mule_backup_CFLAGS
="$CFLAGS"
6171 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6172 if test "${ac_cv_header_gd_h+set}" = set; then
6173 echo "$as_me:$LINENO: checking for gd.h" >&5
6174 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6175 if test "${ac_cv_header_gd_h+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6179 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6181 # Is the header compilable?
6182 echo "$as_me:$LINENO: checking gd.h usability" >&5
6183 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6184 cat >conftest.
$ac_ext <<_ACEOF
6187 cat confdefs.h
>>conftest.
$ac_ext
6188 cat >>conftest.
$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6193 rm -f conftest.
$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>conftest.er1
6197 grep -v '^ *+' conftest.er1
>conftest.err
6199 cat conftest.err
>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try
='test -z "$ac_c_werror_flag"
6203 || test ! -s conftest.err'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try
='test -s conftest.$ac_objext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 ac_header_compiler
=yes
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.
$ac_ext >&5
6220 ac_header_compiler
=no
6222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6224 echo "${ECHO_T}$ac_header_compiler" >&6
6226 # Is the header present?
6227 echo "$as_me:$LINENO: checking gd.h presence" >&5
6228 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6229 cat >conftest.
$ac_ext <<_ACEOF
6232 cat confdefs.h
>>conftest.
$ac_ext
6233 cat >>conftest.
$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6238 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6240 grep -v '^ *+' conftest.er1
>conftest.err
6242 cat conftest.err
>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } >/dev
/null
; then
6245 if test -s conftest.err
; then
6246 ac_cpp_err
=$ac_c_preproc_warn_flag
6247 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6254 if test -z "$ac_cpp_err"; then
6255 ac_header_preproc
=yes
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.
$ac_ext >&5
6260 ac_header_preproc
=no
6262 rm -f conftest.err conftest.
$ac_ext
6263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6264 echo "${ECHO_T}$ac_header_preproc" >&6
6266 # So? What about this header?
6267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6269 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6270 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6272 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6273 ac_header_preproc
=yes
6276 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6277 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6279 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6281 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6283 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6285 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6287 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6290 ## ------------------------------ ##
6291 ## Report this to admin@amule.org ##
6292 ## ------------------------------ ##
6295 sed "s/^/$as_me: WARNING: /" >&2
6298 echo "$as_me:$LINENO: checking for gd.h" >&5
6299 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6300 if test "${ac_cv_header_gd_h+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 ac_cv_header_gd_h
=$ac_header_preproc
6305 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6306 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6309 if test $ac_cv_header_gd_h = yes; then
6316 CFLAGS
="$mule_backup_CFLAGS"
6324 if test -n "$GDLIB_VERSION"; then
6327 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6336 if test -z "$CAS_DEFS"; then
6337 { echo "$as_me:$LINENO: WARNING:
6338 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6339 Please check that gdlib-config is in your default path, check out
6340 LD_LIBRARY_PATH or equivalent variable.
6341 Or this might also be that your gdlib-config has other name.
6342 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6343 (replace /usr/bin/gdlib-config with a valid path to your
6345 If you use compiled packages check if you have devel pack installed.
6346 To download the latest version check http://www.boutell.com/gd for
6348 echo "$as_me: WARNING:
6349 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6350 Please check that gdlib-config is in your default path, check out
6351 LD_LIBRARY_PATH or equivalent variable.
6352 Or this might also be that your gdlib-config has other name.
6353 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6354 (replace /usr/bin/gdlib-config with a valid path to your
6356 If you use compiled packages check if you have devel pack installed.
6357 To download the latest version check http://www.boutell.com/gd for
6360 _mule_has_warnings
=yes
6366 GDLIB_VERSION
="not_needed"
6371 if test x
$WEB = xyes
; then
6374 for ac_header
in sys
/types.h
6376 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 # Is the header compilable?
6387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6389 cat >conftest.
$ac_ext <<_ACEOF
6392 cat confdefs.h
>>conftest.
$ac_ext
6393 cat >>conftest.
$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 #include <$ac_header>
6398 rm -f conftest.
$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6402 grep -v '^ *+' conftest.er1
>conftest.err
6404 cat conftest.err
>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try
='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try
='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_header_compiler
=yes
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.
$ac_ext >&5
6425 ac_header_compiler
=no
6427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6429 echo "${ECHO_T}$ac_header_compiler" >&6
6431 # Is the header present?
6432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6434 cat >conftest.
$ac_ext <<_ACEOF
6437 cat confdefs.h
>>conftest.
$ac_ext
6438 cat >>conftest.
$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <$ac_header>
6442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1
>conftest.err
6447 cat conftest.err
>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev
/null
; then
6450 if test -s conftest.err
; then
6451 ac_cpp_err
=$ac_c_preproc_warn_flag
6452 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6459 if test -z "$ac_cpp_err"; then
6460 ac_header_preproc
=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.
$ac_ext >&5
6465 ac_header_preproc
=no
6467 rm -f conftest.err conftest.
$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469 echo "${ECHO_T}$ac_header_preproc" >&6
6471 # So? What about this header?
6472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6478 ac_header_preproc
=yes
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495 ## ------------------------------ ##
6496 ## Report this to admin@amule.org ##
6497 ## ------------------------------ ##
6500 sed "s/^/$as_me: WARNING: /" >&2
6503 echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 eval "$as_ac_Header=\$ac_header_preproc"
6510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h
<<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6523 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6524 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6526 for REGEX_LIBS
in '' -lgnurx -lregex; do
6527 mule_backup_LIBS
="$LIBS"
6528 LIBS
="$REGEX_LIBS $LIBS"
6529 cat >conftest.
$ac_ext <<_ACEOF
6533 cat confdefs.h
>>conftest.
$ac_ext
6534 cat >>conftest.
$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6537 #ifdef HAVE_SYS_TYPES_H
6538 # include <sys/types.h>
6547 regcomp(&preg, "", REG_EXTENDED);
6549 regexec(&preg, "", 0, pmatch, 0);
6557 rm -f conftest.
$ac_objext conftest
$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1
>conftest.err
6563 cat conftest.err
>&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try
='test -z "$ac_c_werror_flag"
6567 || test ! -s conftest.err'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try
='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6580 LIBS
="$mule_backup_LIBS"
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.
$ac_ext >&5
6588 LIBS
="$mule_backup_LIBS"
6590 rm -f conftest.err conftest.
$ac_objext \
6591 conftest
$ac_exeext conftest.
$ac_ext
6593 echo "$as_me:$LINENO: result: $regex_found" >&5
6594 echo "${ECHO_T}$regex_found" >&6
6595 if test $regex_found = yes; then
6600 { echo "$as_me:$LINENO: WARNING:
6601 amuleweb has been disabled because configure could not find a POSIX
6602 compliant regex library." >&5
6603 echo "$as_me: WARNING:
6604 amuleweb has been disabled because configure could not find a POSIX
6605 compliant regex library." >&2;}
6607 _mule_has_warnings
=yes
6616 if test x
$WEB = xyes
; then
6619 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6620 if test "${with_libpng_prefix+set}" = set; then
6621 withval
="$with_libpng_prefix"
6625 # Check whether --with-libpng-config or --without-libpng-config was given.
6626 if test "${with_libpng_config+set}" = set; then
6627 withval
="$with_libpng_config"
6633 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6634 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6635 LIBPNG_CONFIG_NAME
=libpng-config
6638 if test -n "$with_libpng_config"; then
6639 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6643 # deal with optional prefix
6644 if test -n "$with_libpng_prefix"; then
6645 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6649 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6650 if test -x "$LIBPNG_CONFIG_NAME"; then
6652 echo "$as_me:$LINENO: checking for libpng-config" >&5
6653 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6654 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6655 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6656 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6659 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6660 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6661 echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6663 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 case $LIBPNG_CONFIG_PATH in
6668 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6672 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6673 for as_dir
in $as_dummy
6676 test -z "$as_dir" && as_dir
=.
6677 for ac_exec_ext
in '' $ac_executable_extensions; do
6678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6690 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6692 if test -n "$LIBPNG_CONFIG_PATH"; then
6693 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6694 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6696 echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6703 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6705 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6706 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6708 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6710 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6711 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6712 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6713 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6716 if test $libpng_config_major_version -gt 1; then
6718 elif test $libpng_config_major_version -eq 1; then
6720 if test $libpng_config_minor_version -gt 2; then
6722 elif test $libpng_config_minor_version -eq 2; then
6723 if test $libpng_config_micro_version -ge 0; then
6733 if test -z "$libpng_ver_ok"; then
6735 if test -z "$LIBPNG_VERSION"; then
6736 echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6
6740 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6741 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6749 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6750 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6751 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6752 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6753 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6761 if test -n "$LIBPNG_VERSION"; then
6762 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6765 { echo "$as_me:$LINENO: WARNING:
6766 libpng >= 1.2.0 not found.
6767 amuleweb will be compiled but file download progress bar images will
6768 NOT be generated." >&5
6769 echo "$as_me: WARNING:
6770 libpng >= 1.2.0 not found.
6771 amuleweb will be compiled but file download progress bar images will
6772 NOT be generated." >&2;}
6774 _mule_has_warnings
=yes
6784 LIBPNG_VERSION
="not_needed"
6789 # Check for perl File::Copy
6790 echo "$as_me:$LINENO: checking for File::Copy" >&5
6791 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6792 if perl
-e "require File::Copy" 2>/dev
/null
; then
6793 echo "$as_me:$LINENO: result: ok" >&5
6794 echo "${ECHO_T}ok" >&6
6796 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6797 echo "$as_me: error: File::Copy perl module is required" >&2;}
6798 { (exit 1); exit 1; }; }
6803 # Check if we need the GUI
6804 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6805 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6806 if test x
$MONOLITHIC = xyes
; then
6810 if test x
$WXCAS = xyes
; then
6814 if test x
$ALC = xyes
; then
6818 if test x
$AMULE_GUI = xyes
; then
6822 if test x
${need_gui:+set} != xset
; then
6826 echo "$as_me:$LINENO: result: $need_gui" >&5
6827 echo "${ECHO_T}$need_gui" >&6
6829 # Check if we need to install skins
6830 if test x
$MONOLITHIC = xyes
; then
6834 if test x
$AMULE_GUI = xyes
; then
6838 if test x
${INSTALL_SKINS:+set} != xset
; then
6843 # Check for GeoIP (required for IP2Country capability)
6845 # Check whether --enable-geoip or --disable-geoip was given.
6846 if test "${enable_geoip+set}" = set; then
6847 enableval
="$enable_geoip"
6848 ENABLE_IP2COUNTRY
=$enableval
6850 ENABLE_IP2COUNTRY
=no
6853 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6856 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6857 if test "${with_geoip_headers+set}" = set; then
6858 withval
="$with_geoip_headers"
6859 GEOIP_CPPFLAGS
="-I$withval"
6862 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6863 if test "${with_geoip_lib+set}" = set; then
6864 withval
="$with_geoip_lib"
6865 GEOIP_LDFLAGS
="-L$withval"
6868 mule_backup_CPPFLAGS
="$CPPFLAGS"
6869 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6870 mule_backup_LDFLAGS
="$LDFLAGS"
6871 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
6873 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6874 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6875 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6876 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6880 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6882 # Is the header compilable?
6883 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6884 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6885 cat >conftest.
$ac_ext <<_ACEOF
6888 cat confdefs.h
>>conftest.
$ac_ext
6889 cat >>conftest.
$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 $ac_includes_default
6894 rm -f conftest.
$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try
='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try
='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_header_compiler
=yes
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.
$ac_ext >&5
6921 ac_header_compiler
=no
6923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6925 echo "${ECHO_T}$ac_header_compiler" >&6
6927 # Is the header present?
6928 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6929 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6930 cat >conftest.
$ac_ext <<_ACEOF
6933 cat confdefs.h
>>conftest.
$ac_ext
6934 cat >>conftest.
$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6941 grep -v '^ *+' conftest.er1
>conftest.err
6943 cat conftest.err
>&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } >/dev
/null
; then
6946 if test -s conftest.err
; then
6947 ac_cpp_err
=$ac_c_preproc_warn_flag
6948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6955 if test -z "$ac_cpp_err"; then
6956 ac_header_preproc
=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.
$ac_ext >&5
6961 ac_header_preproc
=no
6963 rm -f conftest.err conftest.
$ac_ext
6964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6965 echo "${ECHO_T}$ac_header_preproc" >&6
6967 # So? What about this header?
6968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6970 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6971 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6973 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6974 ac_header_preproc
=yes
6977 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6978 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6979 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6980 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6981 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6982 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6983 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6984 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6986 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6987 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6988 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6991 ## ------------------------------ ##
6992 ## Report this to admin@amule.org ##
6993 ## ------------------------------ ##
6996 sed "s/^/$as_me: WARNING: /" >&2
6999 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7000 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7001 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 ac_cv_header_GeoIP_h
=$ac_header_preproc
7006 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7007 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7010 if test $ac_cv_header_GeoIP_h = yes; then
7012 if test x
$SYS = xwin32
; then
7014 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
7015 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
7016 # Actually, we might not need any if GeoIP is linked as a .dll
7017 # - but that's even harder to check for
7018 cat >conftest.
$ac_ext <<_ACEOF
7022 cat confdefs.h
>>conftest.
$ac_ext
7023 cat >>conftest.
$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7028 I do know it's not the best approach, but at least works with MinGW stock headers.
7029 (tested with w32api-3.12)
7041 rm -f conftest.
$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7045 grep -v '^ *+' conftest.er1
>conftest.err
7047 cat conftest.err
>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try
='test -z "$ac_c_werror_flag"
7051 || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try
='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7064 GEOIP_WINSOCK_LIB
="-lwsock32"
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.
$ac_ext >&5
7071 GEOIP_WINSOCK_LIB
="-lws2_32"
7074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
7076 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
7080 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7081 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7082 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 ac_check_lib_save_LIBS
=$LIBS
7086 LIBS
="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7087 cat >conftest.
$ac_ext <<_ACEOF
7090 cat confdefs.h
>>conftest.
$ac_ext
7091 cat >>conftest.
$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7094 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7109 rm -f conftest.
$ac_objext conftest
$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try
='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try
='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_lib_GeoIP_GeoIP_open
=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.
$ac_ext >&5
7136 ac_cv_lib_GeoIP_GeoIP_open
=no
7138 rm -f conftest.err conftest.
$ac_objext \
7139 conftest
$ac_exeext conftest.
$ac_ext
7140 LIBS
=$ac_check_lib_save_LIBS
7142 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7143 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7144 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7147 cat >>confdefs.h
<<\_ACEOF
7148 #define SUPPORT_GEOIP 1
7151 GEOIP_LIBS
="-lGeoIP"
7152 if test x
$SYS = xwin32
; then
7153 GEOIP_LIBS
="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7156 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7158 # Check whether --with-geoip-static or --without-geoip-static was given.
7159 if test "${with_geoip_static+set}" = set; then
7160 withval
="$with_geoip_static"
7162 if test "$withval" != "no" -a ${enable_static:-no} = no
; then
7164 mule_backup_LIBS
="$LIBS"
7165 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7166 cat >conftest.
$ac_ext <<_ACEOF
7170 cat confdefs.h
>>conftest.
$ac_ext
7171 cat >>conftest.
$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7180 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7187 rm -f conftest.
$ac_objext conftest
$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189 (eval $ac_link) 2>conftest.er1
7191 grep -v '^ *+' conftest.er1
>conftest.err
7193 cat conftest.err
>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try
='test -z "$ac_c_werror_flag"
7197 || test ! -s conftest.err'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; } &&
7203 { ac_try
='test -s conftest$ac_exeext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7210 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.
$ac_ext >&5
7217 { echo "$as_me:$LINENO: WARNING:
7218 Cannot link GeoIP statically, because your linker ($LD) does not
7220 echo "$as_me: WARNING:
7221 Cannot link GeoIP statically, because your linker ($LD) does not
7224 _mule_has_warnings
=yes
7228 rm -f conftest.err conftest.
$ac_objext \
7229 conftest
$ac_exeext conftest.
$ac_ext
7230 LIBS
="$mule_backup_LIBS"
7239 ENABLE_IP2COUNTRY
=disabled
7240 { echo "$as_me:$LINENO: WARNING:
7241 GeoIP support has been disabled because the GeoIP libraries were not
7243 echo "$as_me: WARNING:
7244 GeoIP support has been disabled because the GeoIP libraries were not
7247 _mule_has_warnings
=yes
7255 ENABLE_IP2COUNTRY
=disabled
7256 { echo "$as_me:$LINENO: WARNING:
7257 GeoIP support has been disabled because the GeoIP header files were
7259 echo "$as_me: WARNING:
7260 GeoIP support has been disabled because the GeoIP header files were
7263 _mule_has_warnings
=yes
7270 CPPFLAGS
="$mule_backup_CPPFLAGS"
7271 LDFLAGS
="$mule_backup_LDFLAGS"
7280 # Check whether --with-wxdir or --without-wxdir was given.
7281 if test "${with_wxdir+set}" = set; then
7282 withval
="$with_wxdir"
7283 wx_config_name
="$withval/wx-config"
7284 wx_config_args
="--inplace"
7287 # Check whether --with-wx-config or --without-wx-config was given.
7288 if test "${with_wx_config+set}" = set; then
7289 withval
="$with_wx_config"
7290 wx_config_name
="$withval"
7293 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7294 if test "${with_wx_prefix+set}" = set; then
7295 withval
="$with_wx_prefix"
7296 wx_config_prefix
="$withval"
7301 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7302 if test "${with_wx_exec_prefix+set}" = set; then
7303 withval
="$with_wx_exec_prefix"
7304 wx_config_exec_prefix
="$withval"
7306 wx_config_exec_prefix
=""
7320 # Check whether --with-toolkit or --without-toolkit was given.
7321 if test "${with_toolkit+set}" = set; then
7322 withval
="$with_toolkit"
7328 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7329 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7330 if test "$withval" = "auto" ; then
7331 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7332 echo "${ECHO_T}will be automatically detected" >&6
7337 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7338 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7339 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7340 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7341 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7342 { { echo "$as_me:$LINENO: error:
7343 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7345 echo "$as_me: error:
7346 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7348 { (exit 1); exit 1; }; }
7351 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7352 echo "${ECHO_T}$TOOLKIT" >&6
7359 # Check whether --with-wxshared or --without-wxshared was given.
7360 if test "${with_wxshared+set}" = set; then
7361 withval
="$with_wxshared"
7367 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7368 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7369 if test "$withval" = "yes" ; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371 echo "${ECHO_T}yes" >&6
7374 elif test "1" = "1" -a "$withval" = "no" ; then
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7378 elif test "$withval" = "auto" ; then
7379 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7380 echo "${ECHO_T}will be automatically detected" >&6
7383 { { echo "$as_me:$LINENO: error:
7384 Unrecognized option value (allowed values: yes, auto)
7386 echo "$as_me: error:
7387 Unrecognized option value (allowed values: yes, auto)
7389 { (exit 1); exit 1; }; }
7396 # Check whether --with-wxdebug or --without-wxdebug was given.
7397 if test "${with_wxdebug+set}" = set; then
7398 withval
="$with_wxdebug"
7404 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7405 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7406 if test "$withval" = "yes" ; then
7407 echo "$as_me:$LINENO: result: yes" >&5
7408 echo "${ECHO_T}yes" >&6
7411 elif test "1" = "1" -a "$withval" = "no" ; then
7412 echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7415 elif test "$withval" = "auto" ; then
7416 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7417 echo "${ECHO_T}will be automatically detected" >&6
7420 { { echo "$as_me:$LINENO: error:
7421 Unrecognized option value (allowed values: yes, auto)
7423 echo "$as_me: error:
7424 Unrecognized option value (allowed values: yes, auto)
7426 { (exit 1); exit 1; }; }
7433 # Check whether --with-wxversion or --without-wxversion was given.
7434 if test "${with_wxversion+set}" = set; then
7435 withval
="$with_wxversion"
7441 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7442 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7443 if test "$withval" = "auto" ; then
7444 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7445 echo "${ECHO_T}will be automatically detected" >&6
7449 wx_requested_major_version
=`echo $withval | \
7450 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7451 wx_requested_minor_version
=`echo $withval | \
7452 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7454 if test "${#wx_requested_major_version}" != "1" -o \
7455 "${#wx_requested_minor_version}" != "1" ; then
7456 { { echo "$as_me:$LINENO: error:
7457 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7459 echo "$as_me: error:
7460 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7462 { (exit 1); exit 1; }; }
7465 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7466 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7467 echo "${ECHO_T}$WX_VERSION" >&6
7471 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7472 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7473 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7474 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7475 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7476 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7479 # Force using a static wxWidgets library if the executable is to be linked statically.
7480 if test ${enable_static:-no} = yes; then
7484 # Force using a unicode build of the library
7488 if test "$WX_SHARED" = "1" ; then
7489 WXCONFIG_FLAGS
="--static=no "
7490 elif test "$WX_SHARED" = "0" ; then
7491 WXCONFIG_FLAGS
="--static=yes "
7494 if test "$WX_DEBUG" = "1" ; then
7495 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7496 elif test "$WX_DEBUG" = "0" ; then
7497 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7500 if test "$WX_UNICODE" = "1" ; then
7501 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7502 elif test "$WX_UNICODE" = "0" ; then
7503 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7506 if test "$TOOLKIT" != "auto" ; then
7507 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7510 if test "$WX_VERSION" != "auto" ; then
7511 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7514 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7516 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7517 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7521 if test x
${WX_CONFIG_NAME+set} != xset
; then
7522 WX_CONFIG_NAME
=wx-config
7525 if test "x$wx_config_name" != x
; then
7526 WX_CONFIG_NAME
="$wx_config_name"
7529 if test x
$wx_config_exec_prefix != x
; then
7530 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7531 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7533 if test x
$wx_config_prefix != x
; then
7534 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7535 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7537 if test "$cross_compiling" = "yes"; then
7538 wx_config_args
="$wx_config_args --host=$host_alias"
7541 if test -x "$WX_CONFIG_NAME" ; then
7542 echo "$as_me:$LINENO: checking for wx-config" >&5
7543 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7544 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7545 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7546 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7548 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7549 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7550 echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7552 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 case $WX_CONFIG_PATH in
7557 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7561 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7562 for as_dir
in $as_dummy
7565 test -z "$as_dir" && as_dir
=.
7566 for ac_exec_ext
in '' $ac_executable_extensions; do
7567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7579 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7581 if test -n "$WX_CONFIG_PATH"; then
7582 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7583 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7585 echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7591 if test "$WX_CONFIG_PATH" != "no" ; then
7594 min_wx_version
=2.8.0
7595 if test -z "$WXCONFIG_FLAGS" ; then
7596 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7597 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7599 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7600 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7603 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7605 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7606 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7607 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7608 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7609 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7610 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7611 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7613 wx_requested_major_version
=`echo $min_wx_version | \
7614 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7615 wx_requested_minor_version
=`echo $min_wx_version | \
7616 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7617 wx_requested_micro_version
=`echo $min_wx_version | \
7618 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7622 if test "x$WX_VERSION_FULL" != x
; then
7623 if test $wx_config_major_version -gt $wx_requested_major_version; then
7626 if test $wx_config_major_version -eq $wx_requested_major_version; then
7627 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7630 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7631 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7641 if test -n "$wx_ver_ok"; then
7643 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7644 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7645 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7647 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7648 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7649 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7650 if test "x$WX_LIBS_STATIC" = "x"; then
7651 echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6
7654 echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7659 if test $wx_config_major_version -gt 2; then
7662 if test $wx_config_major_version -eq 2; then
7663 if test $wx_config_minor_version -gt 2; then
7666 if test $wx_config_minor_version -eq 2; then
7667 if test $wx_config_micro_version -ge 6; then
7676 if test $wx_config_major_version -gt 2; then
7679 if test $wx_config_major_version -eq 2; then
7680 if test $wx_config_minor_version -ge 7; then
7685 if test "x$wx_has_rescomp" = x
; then
7688 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7691 if test "x$wx_has_cppflags" = x
; then
7692 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7693 WX_CPPFLAGS
=$WX_CFLAGS
7694 WX_CXXFLAGS
=$WX_CFLAGS
7696 WX_CFLAGS_ONLY
=$WX_CFLAGS
7697 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7699 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7700 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7701 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7703 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7704 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7711 if test "x$WX_VERSION_FULL" = x
; then
7712 echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7715 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7716 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7726 if test ! -z "$WXCONFIG_FLAGS"; then
7729 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7730 build with the following settings:
7732 but such build is not available.
7734 To see the wxWidgets builds available on this system, please use
7735 'wx-config --list' command. To use the default build, returned by
7736 'wx-config --selected-config', use the options with their 'auto'
7742 The requested wxWidgets build couldn't be found.
7745 If you still get this error, then check that 'wx-config' is
7746 in path, the directory where wxWidgets libraries are installed
7747 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7748 or equivalent variable and wxWidgets version is 2.8.0 or above."
7750 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7751 echo "$as_me: error: $wx_error_message" >&2;}
7752 { (exit 1); exit 1; }; }
7778 WX_VERSION_MAJOR
="$wx_config_major_version"
7779 WX_VERSION_MINOR
="$wx_config_minor_version"
7783 if test "$wxWin" != 1; then
7784 { { echo "$as_me:$LINENO: error:
7785 wxWidgets must be installed on your system but wx-config
7786 script couldn't be found. Please check that wx-config is
7787 in path or specified by --with-wx-config=path flag, the
7788 directory where wxWidgets libraries are installed (returned
7789 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7790 equivalent variable and wxWidgets version is 2.8.0 or above.
7792 echo "$as_me: error:
7793 wxWidgets must be installed on your system but wx-config
7794 script couldn't be found. Please check that wx-config is
7795 in path or specified by --with-wx-config=path flag, the
7796 directory where wxWidgets libraries are installed (returned
7797 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7798 equivalent variable and wxWidgets version is 2.8.0 or above.
7800 { (exit 1); exit 1; }; }
7803 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7804 if test $WX_VERSION -lt 26 ; then
7806 { { echo "$as_me:$LINENO: error:
7807 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7808 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7809 version of wxWidgets.
7811 echo "$as_me: error:
7812 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7813 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7814 version of wxWidgets.
7816 { (exit 1); exit 1; }; }
7819 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7821 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7822 echo "[dbg] Using wx-config --selected-config"
7823 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7827 if test $WX_SHARED = "1"; then
7829 elif test $WX_SHARED = "0"; then
7831 elif test $WX_SHARED = "auto"; then
7836 if test "$UNICODE" = "auto" ; then
7838 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7839 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7841 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7843 if test "$WX_UNICODE" != "0"; then
7845 echo "$as_me:$LINENO: result: yes" >&5
7846 echo "${ECHO_T}yes" >&6
7850 echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7860 if test "$DEBUG" = "auto" ; then
7862 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7863 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7865 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7867 if test "$WX_DEBUG" != "0"; then
7869 echo "$as_me:$LINENO: result: yes" >&5
7870 echo "${ECHO_T}yes" >&6
7874 echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6
7884 if test "$STATIC" = "auto" ; then
7886 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7887 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7889 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7891 if test "$WX_STATIC" != "0"; then
7893 echo "$as_me:$LINENO: result: yes" >&5
7894 echo "${ECHO_T}yes" >&6
7898 echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6
7908 if test "$WX_STATIC" != "0"; then
7918 if test "$TOOLKIT" = "auto" ; then
7920 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7921 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7923 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7924 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7925 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7926 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7927 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7928 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7929 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7930 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7931 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7932 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7935 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7936 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7937 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7938 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7939 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7940 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7941 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7942 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7943 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7944 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
7947 if test "$WX_PORT" = "unknown" ; then
7948 { { echo "$as_me:$LINENO: error:
7949 Cannot detect the currently installed wxWidgets port !
7950 Please check your 'wx-config --cxxflags'...
7952 echo "$as_me: error:
7953 Cannot detect the currently installed wxWidgets port !
7954 Please check your 'wx-config --cxxflags'...
7956 { (exit 1); exit 1; }; }
7959 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7960 echo "${ECHO_T}$WX_PORT" >&6
7963 if test -z "$TOOLKIT" ; then
7972 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7973 echo "[dbg] Values of all WX_* options after final detection:"
7974 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7975 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7976 echo "[dbg] WX_SHARED: $WX_SHARED"
7977 echo "[dbg] WX_VERSION: $WX_VERSION"
7978 echo "[dbg] WX_PORT: $WX_PORT"
7981 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7982 { { echo "$as_me:$LINENO: error:
7983 Cannot build shared library against a static build of wxWidgets !
7984 This error happens because the wxWidgets build which was selected
7985 has been detected as static while you asked to build $PACKAGE_NAME
7986 as shared library and this is not possible.
7987 Use the '--disable-shared' option to build $PACKAGE_NAME
7988 as static library or '--with-wxshared' to use wxWidgets as shared library.
7990 echo "$as_me: error:
7991 Cannot build shared library against a static build of wxWidgets !
7992 This error happens because the wxWidgets build which was selected
7993 has been detected as static while you asked to build $PACKAGE_NAME
7994 as shared library and this is not possible.
7995 Use the '--disable-shared' option to build $PACKAGE_NAME
7996 as static library or '--with-wxshared' to use wxWidgets as shared library.
7998 { (exit 1); exit 1; }; }
8001 if test "$DEBUG" = "auto"; then
8004 if test "$DEBUG" = "1"; then
8006 elif test "$DEBUG" = ""; then
8010 if test "$UNICODE" = "auto"; then
8013 if test "$SHARED" = "auto"; then
8016 if test "$TOOLKIT" = "auto"; then
8022 # We also need wxBase
8023 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8024 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
8025 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
8029 if test ${SYS:-unknown} = win32
; then
8031 if test -n "$ac_tool_prefix"; then
8032 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8033 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8034 echo "$as_me:$LINENO: checking for $ac_word" >&5
8035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8036 if test "${ac_cv_prog_RC+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 if test -n "$RC"; then
8040 ac_cv_prog_RC
="$RC" # Let the user override the test.
8042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir
=.
8047 for ac_exec_ext
in '' $ac_executable_extensions; do
8048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_RC
="${ac_tool_prefix}windres"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 if test -n "$RC"; then
8060 echo "$as_me:$LINENO: result: $RC" >&5
8061 echo "${ECHO_T}$RC" >&6
8063 echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8068 if test -z "$ac_cv_prog_RC"; then
8070 # Extract the first word of "windres", so it can be a program name with args.
8071 set dummy windres
; ac_word
=$2
8072 echo "$as_me:$LINENO: checking for $ac_word" >&5
8073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8074 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 if test -n "$ac_ct_RC"; then
8078 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
8080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8084 test -z "$as_dir" && as_dir
=.
8085 for ac_exec_ext
in '' $ac_executable_extensions; do
8086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_ac_ct_RC
="windres"
8088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
8097 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
8098 if test -n "$ac_ct_RC"; then
8099 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8100 echo "${ECHO_T}$ac_ct_RC" >&6
8102 echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6
8111 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8118 if test "${ENABLE_UPNP:-yes}" = yes; then
8122 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8123 if test -n "$ac_tool_prefix"; then
8124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8125 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8126 echo "$as_me:$LINENO: checking for $ac_word" >&5
8127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8128 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir
=.
8141 for ac_exec_ext
in '' $ac_executable_extensions; do
8142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8155 if test -n "$PKG_CONFIG"; then
8156 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8157 echo "${ECHO_T}$PKG_CONFIG" >&6
8159 echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6
8164 if test -z "$ac_cv_path_PKG_CONFIG"; then
8165 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8166 # Extract the first word of "pkg-config", so it can be a program name with args.
8167 set dummy pkg-config
; ac_word
=$2
8168 echo "$as_me:$LINENO: checking for $ac_word" >&5
8169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8170 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 case $ac_pt_PKG_CONFIG in
8175 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8182 test -z "$as_dir" && as_dir
=.
8183 for ac_exec_ext
in '' $ac_executable_extensions; do
8184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8197 if test -n "$ac_pt_PKG_CONFIG"; then
8198 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8199 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8201 echo "$as_me:$LINENO: result: no" >&5
8202 echo "${ECHO_T}no" >&6
8205 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8207 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8211 if test -n "$PKG_CONFIG"; then
8212 _pkg_min_version
=0.9.0
8213 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8214 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8215 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8216 echo "$as_me:$LINENO: result: yes" >&5
8217 echo "${ECHO_T}yes" >&6
8219 echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6
8227 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8228 if test "${with_libupnp_prefix+set}" = set; then
8229 withval
="$with_libupnp_prefix"
8230 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
8233 if test $cross_compiling = no
; then
8234 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8235 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8236 if test -n "$PKG_CONFIG"; then
8237 if $PKG_CONFIG libupnp
--exists; then
8238 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
8239 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
8241 resultstr
=" (version $LIBUPNP_VERSION)"
8242 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
8243 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8244 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8245 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8246 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8250 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8256 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8262 resultstr
=" (pkg-config not found)"
8265 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8266 echo "${ECHO_T}$result$resultstr" >&6
8267 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8271 libupnp_error
="cross compiling"
8275 if test ${result:-no} = yes; then
8276 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8278 ENABLE_UPNP
=disabled
8279 { echo "$as_me:$LINENO: WARNING:
8280 UPnP code has been disabled because ${libupnp_error}." >&5
8281 echo "$as_me: WARNING:
8282 UPnP code has been disabled because ${libupnp_error}." >&2;}
8284 _mule_has_warnings
=yes
8295 # Check for Crypto++
8298 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8299 if test "${with_crypto_prefix+set}" = set; then
8300 withval
="$with_crypto_prefix"
8304 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8305 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8307 cryptopp_file_with_version
="cryptlib.h"
8309 CRYPTOPP_STYLE
="unknown"
8310 CRYPTOPP_LIB_NAME
="unknown"
8311 cryptopp_includedir
="unknown"
8312 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8313 cryptopp_libdir
="unknown"
8315 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8316 if test -z "$CRYPTOPP_PREFIX"; then
8321 # Find the Cryptopp header
8322 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8324 CRYPTOPP_STYLE
="sources"
8325 CRYPTOPP_LIB_NAME
="cryptopp"
8326 cryptopp_includedir
=
8327 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8331 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8333 CRYPTOPP_STYLE
="installed"
8334 CRYPTOPP_LIB_NAME
="cryptopp"
8335 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8336 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8337 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8340 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8342 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8343 CRYPTOPP_STYLE
="gentoo_debian"
8344 CRYPTOPP_LIB_NAME
="crypto++"
8345 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8346 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8347 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8354 if test $CRYPTOPP_STYLE = "unknown"; then
8355 result
=no
; resultstr
=""
8358 # Find out the crypto++ version and check against the minimum required
8359 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8360 CRYPTOPP_VERSION_STRING
=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8361 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8362 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8364 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8367 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8368 if test -n "$cryptopp_includedir"; then
8369 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8374 if test -n "$cryptopp_libdir"; then
8376 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8377 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8382 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8388 cat >>confdefs.h
<<_ACEOF
8389 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8396 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8404 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8405 echo "${ECHO_T}$result$resultstr" >&6
8407 if test ${result:-no} = yes; then
8409 # Check for CryptoPP >= 5.5
8410 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8411 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8417 { { echo "$as_me:$LINENO: error:
8418 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8419 Please try again with --with-crypto-prefix=/my_crypto_prefix
8420 (replace /my_crypto_prefix with a valid path to your crypto++
8421 installation directory)." >&5
8422 echo "$as_me: error:
8423 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8424 Please try again with --with-crypto-prefix=/my_crypto_prefix
8425 (replace /my_crypto_prefix with a valid path to your crypto++
8426 installation directory)." >&2;}
8427 { (exit 1); exit 1; }; }
8435 ac_cpp
='$CXXCPP $CPPFLAGS'
8436 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8437 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8438 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8443 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8444 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8445 cat >conftest.
$ac_ext <<_ACEOF
8449 cat confdefs.h
>>conftest.
$ac_ext
8450 cat >>conftest.
$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8455 #error Non-GNU C++ library found.
8460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8463 grep -v '^ *+' conftest.er1
>conftest.err
8465 cat conftest.err
>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } >/dev
/null
; then
8468 if test -s conftest.err
; then
8469 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8470 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8477 if test -z "$ac_cpp_err"; then
8480 echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.
$ac_ext >&5
8485 rm -f conftest.err conftest.
$ac_ext
8486 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8487 echo "${ECHO_T}$GLIBCXX" >&6
8490 mule_backup_CPPFLAGS
="$CPPFLAGS"
8491 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8493 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8494 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8495 cat >conftest.
$ac_ext <<_ACEOF
8499 cat confdefs.h
>>conftest.
$ac_ext
8500 cat >>conftest.
$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8504 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8505 #error No LargeFile support!
8510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8511 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } >/dev
/null
; then
8518 if test -s conftest.err
; then
8519 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8520 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8527 if test -z "$ac_cpp_err"; then
8529 echo "$as_me:$LINENO: result: yes" >&5
8530 echo "${ECHO_T}yes" >&6
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.
$ac_ext >&5
8537 echo "$as_me:$LINENO: result: no" >&5
8538 echo "${ECHO_T}no" >&6
8539 { { echo "$as_me:$LINENO: error:
8540 Support for large files in wxWidgets is required by aMule.
8541 To continue you must recompile wxWidgets with support for
8542 large files enabled." >&5
8543 echo "$as_me: error:
8544 Support for large files in wxWidgets is required by aMule.
8545 To continue you must recompile wxWidgets with support for
8546 large files enabled." >&2;}
8547 { (exit 1); exit 1; }; }
8550 rm -f conftest.err conftest.
$ac_ext
8552 CPPFLAGS
="$mule_backup_CPPFLAGS"
8555 # Check if the compiler is broken, wrt. exceptions.
8557 echo "$as_me:$LINENO: checking for exception-handling" >&5
8558 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8559 if test "$cross_compiling" = yes; then
8561 echo "$as_me:$LINENO: result: undeterminable" >&5
8562 echo "${ECHO_T}undeterminable" >&6
8563 { echo "$as_me:$LINENO: WARNING:
8564 Cross-compilation detected, so exception handling cannot be tested.
8565 Note that broken exception handling in your compiler may lead to
8566 unexpected crashes." >&5
8567 echo "$as_me: WARNING:
8568 Cross-compilation detected, so exception handling cannot be tested.
8569 Note that broken exception handling in your compiler may lead to
8570 unexpected crashes." >&2;}
8572 _mule_has_warnings
=yes
8576 cat >conftest.
$ac_ext <<_ACEOF
8580 cat confdefs.h
>>conftest.
$ac_ext
8581 cat >>conftest.
$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8600 rm -f conftest
$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8612 echo "$as_me:$LINENO: result: yes" >&5
8613 echo "${ECHO_T}yes" >&6
8616 echo "$as_me: program exited with status $ac_status" >&5
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.
$ac_ext >&5
8622 echo "$as_me:$LINENO: result: no" >&5
8623 echo "${ECHO_T}no" >&6
8624 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8625 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8626 { (exit 1); exit 1; }; }
8629 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8634 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8635 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8636 cat >conftest.
$ac_ext <<_ACEOF
8640 cat confdefs.h
>>conftest.
$ac_ext
8641 cat >>conftest.
$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8651 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8652 std::type_info *ti = abi::__cxa_current_exception_type();
8659 rm -f conftest.
$ac_objext conftest
$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661 (eval $ac_link) 2>conftest.er1
8663 grep -v '^ *+' conftest.er1
>conftest.err
8665 cat conftest.err
>&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try
='test -z "$ac_cxx_werror_flag"
8669 || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try
='test -s conftest$ac_exeext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8684 cat >>confdefs.h
<<\_ACEOF
8685 #define HAVE_CXXABI 1
8688 echo "$as_me:$LINENO: result: yes" >&5
8689 echo "${ECHO_T}yes" >&6
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.
$ac_ext >&5
8696 echo "$as_me:$LINENO: result: no" >&5
8697 echo "${ECHO_T}no" >&6
8700 rm -f conftest.err conftest.
$ac_objext \
8701 conftest
$ac_exeext conftest.
$ac_ext
8704 ac_cpp
='$CPP $CPPFLAGS'
8705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8710 # Ok, we have all needed libs, now checking for other stuff
8711 if test "$LEX" = "flex"; then
8713 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8714 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8716 extended_flex
=`flex --help | grep header-file`
8717 if test -n "$extended_flex"; then
8718 HAVE_FLEX_EXTENDED
=yes
8720 HAVE_FLEX_EXTENDED
=no
8723 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8724 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8726 if test $HAVE_FLEX_EXTENDED = no
; then
8727 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8728 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8733 HAVE_FLEX_EXTENDED
=no
8737 # Flush standard test results for speeding cache
8738 cat >confcache
<<\_ACEOF
8739 # This file is a shell script that caches the results of configure
8740 # tests run on this system so they can be shared between configure
8741 # scripts and configure runs, see configure's option --config-cache.
8742 # It is not useful on other systems. If it contains results you don't
8743 # want to keep, you may remove or edit it.
8745 # config.status only pays attention to the cache file if you give it
8746 # the --recheck option to rerun configure.
8748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8754 # The following way of writing the cache mishandles newlines in values,
8755 # but we know of no workaround that is simple, portable, and efficient.
8756 # So, don't put newlines in cache variables' values.
8757 # Ultrix sh set writes to stderr and can't be redirected directly,
8758 # and sets the high bit in the cache file unless we assign to the vars.
8761 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8763 # `set' does not quote correctly, so add quotes (double-quote
8764 # substitution turns \\\\ into \\, and sed turns \\ into \).
8767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8770 # `set' quotes correctly as required by POSIX, so do not add quotes.
8772 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8781 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8783 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8784 if test -w $cache_file; then
8785 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8786 cat confcache
>$cache_file
8788 echo "not updating unwritable cache $cache_file"
8793 # Checks for header files.
8794 echo "$as_me:$LINENO: checking for X" >&5
8795 echo $ECHO_N "checking for X... $ECHO_C" >&6
8798 # Check whether --with-x or --without-x was given.
8799 if test "${with_x+set}" = set; then
8803 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8804 if test "x$with_x" = xno
; then
8805 # The user explicitly disabled X.
8808 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8809 # Both variables are already set.
8812 if test "${ac_cv_have_x+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 # One or both of the vars are not set, and there is no cached value.
8816 ac_x_includes
=no ac_x_libraries
=no
8818 if mkdir conftest.dir
; then
8820 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8821 cat >Imakefile
<<'_ACEOF'
8823 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8825 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8827 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8828 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8829 for ac_extension
in a so sl
; do
8830 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8831 test -f $ac_im_libdir/libX11.
$ac_extension; then
8832 ac_im_usrlibdir
=$ac_im_libdir; break
8835 # Screen out bogus values from the imake configuration. They are
8836 # bogus both because they are the default anyway, and because
8837 # using them would break gcc on systems where it needs fixed includes.
8838 case $ac_im_incroot in
8840 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8842 case $ac_im_usrlibdir in
8844 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8851 # Standard set of common directories for X headers.
8852 # Check X11 before X11Rn because it is often a symlink to the current release.
8864 /usr/local/X11/include
8865 /usr/local/X11R6/include
8866 /usr/local/X11R5/include
8867 /usr/local/X11R4/include
8869 /usr/local/include/X11
8870 /usr/local/include/X11R6
8871 /usr/local/include/X11R5
8872 /usr/local/include/X11R4
8876 /usr/XFree86/include/X11
8880 /usr/unsupported/include
8882 /usr/local/x11r5/include
8883 /usr/lpp/Xamples/include
8885 /usr/openwin/include
8886 /usr/openwin/share/include'
8888 if test "$ac_x_includes" = no
; then
8889 # Guess where to find include files, by looking for Intrinsic.h.
8890 # First, try using that file with no special directory specified.
8891 cat >conftest.
$ac_ext <<_ACEOF
8894 cat confdefs.h
>>conftest.
$ac_ext
8895 cat >>conftest.
$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 #include <X11/Intrinsic.h>
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8902 grep -v '^ *+' conftest.er1
>conftest.err
8904 cat conftest.err
>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } >/dev
/null
; then
8907 if test -s conftest.err
; then
8908 ac_cpp_err
=$ac_c_preproc_warn_flag
8909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8916 if test -z "$ac_cpp_err"; then
8917 # We can compile using X headers with no special include directory.
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.
$ac_ext >&5
8923 for ac_dir
in $ac_x_header_dirs; do
8924 if test -r "$ac_dir/X11/Intrinsic.h"; then
8925 ac_x_includes
=$ac_dir
8930 rm -f conftest.err conftest.
$ac_ext
8931 fi # $ac_x_includes = no
8933 if test "$ac_x_libraries" = no
; then
8934 # Check for the libraries.
8935 # See if we find them without any special options.
8936 # Don't add to $LIBS permanently.
8939 cat >conftest.
$ac_ext <<_ACEOF
8942 cat confdefs.h
>>conftest.
$ac_ext
8943 cat >>conftest.
$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 #include <X11/Intrinsic.h>
8954 rm -f conftest.
$ac_objext conftest
$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>conftest.er1
8958 grep -v '^ *+' conftest.er1
>conftest.err
8960 cat conftest.err
>&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try
='test -z "$ac_c_werror_flag"
8964 || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try
='test -s conftest$ac_exeext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8977 # We can link X programs with no special library path.
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.
$ac_ext >&5
8984 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8986 # Don't even attempt the hair of trying to link an X program!
8987 for ac_extension
in a so sl
; do
8988 if test -r $ac_dir/libXt.
$ac_extension; then
8989 ac_x_libraries
=$ac_dir
8995 rm -f conftest.err conftest.
$ac_objext \
8996 conftest
$ac_exeext conftest.
$ac_ext
8997 fi # $ac_x_libraries = no
8999 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
9000 # Didn't find X anywhere. Cache the known absence of X.
9001 ac_cv_have_x
="have_x=no"
9003 # Record where we found X for the cache.
9004 ac_cv_have_x
="have_x=yes \
9005 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9010 eval "$ac_cv_have_x"
9013 if test "$have_x" != yes; then
9014 echo "$as_me:$LINENO: result: $have_x" >&5
9015 echo "${ECHO_T}$have_x" >&6
9018 # If each of the values was on the command line, it overrides each guess.
9019 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9020 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9021 # Update the cache value to reflect the command line values.
9022 ac_cv_have_x
="have_x=yes \
9023 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9024 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9025 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9029 # for constant arguments. Useless!
9030 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9031 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9032 if test "${ac_cv_working_alloca_h+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.
$ac_ext <<_ACEOF
9038 cat confdefs.h
>>conftest.
$ac_ext
9039 cat >>conftest.
$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9045 char *p = (char *) alloca (2 * sizeof (int));
9050 rm -f conftest.
$ac_objext conftest
$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9054 grep -v '^ *+' conftest.er1
>conftest.err
9056 cat conftest.err
>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try
='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try
='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_working_alloca_h
=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.
$ac_ext >&5
9077 ac_cv_working_alloca_h
=no
9079 rm -f conftest.err conftest.
$ac_objext \
9080 conftest
$ac_exeext conftest.
$ac_ext
9082 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9083 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9084 if test $ac_cv_working_alloca_h = yes; then
9086 cat >>confdefs.h
<<\_ACEOF
9087 #define HAVE_ALLOCA_H 1
9092 echo "$as_me:$LINENO: checking for alloca" >&5
9093 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9094 if test "${ac_cv_func_alloca_works+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 cat >conftest.
$ac_ext <<_ACEOF
9100 cat confdefs.h
>>conftest.
$ac_ext
9101 cat >>conftest.
$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9104 # define alloca __builtin_alloca
9107 # include <malloc.h>
9108 # define alloca _alloca
9111 # include <alloca.h>
9116 # ifndef alloca /* predefined by HP cc +Olibcalls */
9127 char *p = (char *) alloca (1);
9132 rm -f conftest.
$ac_objext conftest
$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9136 grep -v '^ *+' conftest.er1
>conftest.err
9138 cat conftest.err
>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try
='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try
='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_func_alloca_works
=yes
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.
$ac_ext >&5
9159 ac_cv_func_alloca_works
=no
9161 rm -f conftest.err conftest.
$ac_objext \
9162 conftest
$ac_exeext conftest.
$ac_ext
9164 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9165 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9167 if test $ac_cv_func_alloca_works = yes; then
9169 cat >>confdefs.h
<<\_ACEOF
9170 #define HAVE_ALLOCA 1
9174 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9175 # that cause trouble. Some versions do not even contain alloca or
9176 # contain a buggy version. If you still want to use their alloca,
9177 # use ar to extract alloca.o from them instead of compiling alloca.c.
9179 ALLOCA
=alloca.
$ac_objext
9181 cat >>confdefs.h
<<\_ACEOF
9186 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9187 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9188 if test "${ac_cv_os_cray+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 cat >conftest.
$ac_ext <<_ACEOF
9194 cat confdefs.h
>>conftest.
$ac_ext
9195 cat >>conftest.
$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #if defined(CRAY) && ! defined(CRAY2)
9204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9205 $EGREP "webecray" >/dev
/null
2>&1; then
9213 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9214 echo "${ECHO_T}$ac_cv_os_cray" >&6
9215 if test $ac_cv_os_cray = yes; then
9216 for ac_func
in _getb67 GETB67 getb67
; do
9217 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9218 echo "$as_me:$LINENO: checking for $ac_func" >&5
9219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9220 if eval "test \"\${$as_ac_var+set}\" = set"; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 cat >conftest.
$ac_ext <<_ACEOF
9226 cat confdefs.h
>>conftest.
$ac_ext
9227 cat >>conftest.
$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9231 #define $ac_func innocuous_$ac_func
9233 /* System header to define __stub macros and hopefully few prototypes,
9234 which can conflict with char $ac_func (); below.
9235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9236 <limits.h> exists even on freestanding compilers. */
9239 # include <limits.h>
9241 # include <assert.h>
9246 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9254 /* The GNU C library defines this for functions which it implements
9255 to always fail with ENOSYS. Some functions are actually named
9256 something starting with __ and the normal name is an alias. */
9257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9260 char (*f) () = $ac_func;
9269 return f != $ac_func;
9274 rm -f conftest.
$ac_objext conftest
$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276 (eval $ac_link) 2>conftest.er1
9278 grep -v '^ *+' conftest.er1
>conftest.err
9280 cat conftest.err
>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try
='test -z "$ac_c_werror_flag"
9284 || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try
='test -s conftest$ac_exeext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 eval "$as_ac_var=yes"
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.
$ac_ext >&5
9301 eval "$as_ac_var=no"
9303 rm -f conftest.err conftest.
$ac_objext \
9304 conftest
$ac_exeext conftest.
$ac_ext
9306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9308 if test `eval echo '${'$as_ac_var'}'` = yes; then
9310 cat >>confdefs.h
<<_ACEOF
9311 #define CRAY_STACKSEG_END $ac_func
9320 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9321 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9322 if test "${ac_cv_c_stack_direction+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 if test "$cross_compiling" = yes; then
9326 ac_cv_c_stack_direction
=0
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9335 find_stack_direction ()
9337 static char *addr = 0;
9342 return find_stack_direction ();
9345 return (&dummy > addr) ? 1 : -1;
9351 exit (find_stack_direction () < 0);
9354 rm -f conftest
$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_c_stack_direction
=1
9367 echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.
$ac_ext >&5
9372 ac_cv_c_stack_direction
=-1
9374 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9377 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9378 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9380 cat >>confdefs.h
<<_ACEOF
9381 #define STACK_DIRECTION $ac_cv_c_stack_direction
9393 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9394 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9395 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9396 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 cat >conftest.
$ac_ext <<_ACEOF
9403 cat confdefs.h
>>conftest.
$ac_ext
9404 cat >>conftest.
$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 #include <sys/types.h>
9418 rm -f conftest.
$ac_objext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420 (eval $ac_compile) 2>conftest.er1
9422 grep -v '^ *+' conftest.er1
>conftest.err
9424 cat conftest.err
>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try
='test -z "$ac_c_werror_flag"
9428 || test ! -s conftest.err'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try
='test -s conftest.$ac_objext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9440 eval "$as_ac_Header=yes"
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.
$ac_ext >&5
9445 eval "$as_ac_Header=no"
9447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9452 cat >>confdefs.h
<<_ACEOF
9453 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9456 ac_header_dirent
=$ac_hdr; break
9460 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9461 if test $ac_header_dirent = dirent.h
; then
9462 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9463 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9464 if test "${ac_cv_search_opendir+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 ac_func_search_save_LIBS
=$LIBS
9468 ac_cv_search_opendir
=no
9469 cat >conftest.
$ac_ext <<_ACEOF
9472 cat confdefs.h
>>conftest.
$ac_ext
9473 cat >>conftest.
$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9476 /* Override any gcc2 internal prototype to avoid an error. */
9480 /* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */
9491 rm -f conftest.
$ac_objext conftest
$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9495 grep -v '^ *+' conftest.er1
>conftest.err
9497 cat conftest.err
>&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try
='test -z "$ac_c_werror_flag"
9501 || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try
='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_search_opendir
="none required"
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.
$ac_ext >&5
9519 rm -f conftest.err conftest.
$ac_objext \
9520 conftest
$ac_exeext conftest.
$ac_ext
9521 if test "$ac_cv_search_opendir" = no
; then
9522 for ac_lib
in dir
; do
9523 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9524 cat >conftest.
$ac_ext <<_ACEOF
9527 cat confdefs.h
>>conftest.
$ac_ext
9528 cat >>conftest.
$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9531 /* Override any gcc2 internal prototype to avoid an error. */
9535 /* We use char because int might match the return type of a gcc2
9536 builtin and then its argument prototype would still apply. */
9546 rm -f conftest.
$ac_objext conftest
$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
9550 grep -v '^ *+' conftest.er1
>conftest.err
9552 cat conftest.err
>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try
='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try
='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_search_opendir
="-l$ac_lib"
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.
$ac_ext >&5
9575 rm -f conftest.err conftest.
$ac_objext \
9576 conftest
$ac_exeext conftest.
$ac_ext
9579 LIBS
=$ac_func_search_save_LIBS
9581 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9582 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9583 if test "$ac_cv_search_opendir" != no
; then
9584 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9589 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9590 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9591 if test "${ac_cv_search_opendir+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_func_search_save_LIBS
=$LIBS
9595 ac_cv_search_opendir
=no
9596 cat >conftest.
$ac_ext <<_ACEOF
9599 cat confdefs.h
>>conftest.
$ac_ext
9600 cat >>conftest.
$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9603 /* Override any gcc2 internal prototype to avoid an error. */
9607 /* We use char because int might match the return type of a gcc2
9608 builtin and then its argument prototype would still apply. */
9618 rm -f conftest.
$ac_objext conftest
$ac_exeext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>conftest.er1
9622 grep -v '^ *+' conftest.er1
>conftest.err
9624 cat conftest.err
>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try
='test -z "$ac_c_werror_flag"
9628 || test ! -s conftest.err'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; } &&
9634 { ac_try
='test -s conftest$ac_exeext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_search_opendir
="none required"
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9646 rm -f conftest.err conftest.
$ac_objext \
9647 conftest
$ac_exeext conftest.
$ac_ext
9648 if test "$ac_cv_search_opendir" = no
; then
9650 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9651 cat >conftest.
$ac_ext <<_ACEOF
9654 cat confdefs.h
>>conftest.
$ac_ext
9655 cat >>conftest.
$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9658 /* Override any gcc2 internal prototype to avoid an error. */
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9673 rm -f conftest.
$ac_objext conftest
$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>conftest.er1
9677 grep -v '^ *+' conftest.er1
>conftest.err
9679 cat conftest.err
>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try
='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try
='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_search_opendir
="-l$ac_lib"
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.
$ac_ext >&5
9702 rm -f conftest.err conftest.
$ac_objext \
9703 conftest
$ac_exeext conftest.
$ac_ext
9706 LIBS
=$ac_func_search_save_LIBS
9708 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9709 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9710 if test "$ac_cv_search_opendir" != no
; then
9711 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9717 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9718 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9719 if test "${ac_cv_header_stdc+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.
$ac_ext <<_ACEOF
9725 cat confdefs.h
>>conftest.
$ac_ext
9726 cat >>conftest.
$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9741 rm -f conftest.
$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743 (eval $ac_compile) 2>conftest.er1
9745 grep -v '^ *+' conftest.er1
>conftest.err
9747 cat conftest.err
>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try
='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try
='test -s conftest.$ac_objext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_header_stdc
=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.
$ac_ext >&5
9768 ac_cv_header_stdc
=no
9770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9772 if test $ac_cv_header_stdc = yes; then
9773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9774 cat >conftest.
$ac_ext <<_ACEOF
9777 cat confdefs.h
>>conftest.
$ac_ext
9778 cat >>conftest.
$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9784 $EGREP "memchr" >/dev
/null
2>&1; then
9787 ac_cv_header_stdc
=no
9793 if test $ac_cv_header_stdc = yes; then
9794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9795 cat >conftest.
$ac_ext <<_ACEOF
9798 cat confdefs.h
>>conftest.
$ac_ext
9799 cat >>conftest.
$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9805 $EGREP "free" >/dev
/null
2>&1; then
9808 ac_cv_header_stdc
=no
9814 if test $ac_cv_header_stdc = yes; then
9815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9816 if test "$cross_compiling" = yes; then
9819 cat >conftest.
$ac_ext <<_ACEOF
9822 cat confdefs.h
>>conftest.
$ac_ext
9823 cat >>conftest.
$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9826 #if ((' ' & 0x0FF) == 0x020)
9827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9830 # define ISLOWER(c) \
9831 (('a' <= (c) && (c) <= 'i') \
9832 || ('j' <= (c) && (c) <= 'r') \
9833 || ('s' <= (c) && (c) <= 'z'))
9834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9842 for (i = 0; i < 256; i++)
9843 if (XOR (islower (i), ISLOWER (i))
9844 || toupper (i) != TOUPPER (i))
9849 rm -f conftest
$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9862 echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9867 ac_cv_header_stdc
=no
9869 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9873 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9874 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9875 if test $ac_cv_header_stdc = yes; then
9877 cat >>confdefs.h
<<\_ACEOF
9878 #define STDC_HEADERS 1
9918 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 sys
/mman.h unistd.h errno.h signal.h
9920 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922 echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930 # Is the header compilable?
9931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9933 cat >conftest.
$ac_ext <<_ACEOF
9936 cat confdefs.h
>>conftest.
$ac_ext
9937 cat >>conftest.
$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 $ac_includes_default
9940 #include <$ac_header>
9942 rm -f conftest.
$ac_objext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9944 (eval $ac_compile) 2>conftest.er1
9946 grep -v '^ *+' conftest.er1
>conftest.err
9948 cat conftest.err
>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try
='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try
='test -s conftest.$ac_objext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_header_compiler
=yes
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.
$ac_ext >&5
9969 ac_header_compiler
=no
9971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9973 echo "${ECHO_T}$ac_header_compiler" >&6
9975 # Is the header present?
9976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9978 cat >conftest.
$ac_ext <<_ACEOF
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <$ac_header>
9986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9987 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1
>conftest.err
9991 cat conftest.err
>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } >/dev
/null
; then
9994 if test -s conftest.err
; then
9995 ac_cpp_err
=$ac_c_preproc_warn_flag
9996 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10003 if test -z "$ac_cpp_err"; then
10004 ac_header_preproc
=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.
$ac_ext >&5
10009 ac_header_preproc
=no
10011 rm -f conftest.err conftest.
$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10013 echo "${ECHO_T}$ac_header_preproc" >&6
10015 # So? What about this header?
10016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10022 ac_header_preproc
=yes
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10039 ## ------------------------------ ##
10040 ## Report this to admin@amule.org ##
10041 ## ------------------------------ ##
10044 sed "s/^/$as_me: WARNING: /" >&2
10047 echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 eval "$as_ac_Header=\$ac_header_preproc"
10054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10059 cat >>confdefs.h
<<_ACEOF
10060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10067 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10068 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10069 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.
$ac_ext <<_ACEOF
10075 cat confdefs.h
>>conftest.
$ac_ext
10076 cat >>conftest.
$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 #include <sys/types.h>
10079 #include <sys/wait.h>
10080 #ifndef WEXITSTATUS
10081 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10084 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10092 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10097 rm -f conftest.
$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>conftest.er1
10101 grep -v '^ *+' conftest.er1
>conftest.err
10103 cat conftest.err
>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try
='test -z "$ac_c_werror_flag"
10107 || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try
='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_header_sys_wait_h
=yes
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.
$ac_ext >&5
10124 ac_cv_header_sys_wait_h
=no
10126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10129 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10130 if test $ac_cv_header_sys_wait_h = yes; then
10132 cat >>confdefs.h
<<\_ACEOF
10133 #define HAVE_SYS_WAIT_H 1
10139 # Checks for typedefs, structures, and compiler characteristics.
10140 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10141 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10142 if test "${ac_cv_header_stdbool_h+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.
$ac_ext <<_ACEOF
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 #include <stdbool.h>
10154 # error bool is not defined
10157 # error false is not defined
10160 # error false is not 0
10163 # error true is not defined
10166 # error true is not 1
10168 #ifndef __bool_true_false_are_defined
10169 # error __bool_true_false_are_defined is not defined
10172 struct s { _Bool s: 1; _Bool t; } s;
10174 char a[true == 1 ? 1 : -1];
10175 char b[false == 0 ? 1 : -1];
10176 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10177 char d[(bool) -0.5 == true ? 1 : -1];
10179 char f[(_Bool) -0.0 == false ? 1 : -1];
10181 char h[sizeof (_Bool)];
10182 char i[sizeof s.t];
10187 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10192 rm -f conftest.
$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10196 grep -v '^ *+' conftest.er1
>conftest.err
10198 cat conftest.err
>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try
='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try
='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_header_stdbool_h
=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.
$ac_ext >&5
10219 ac_cv_header_stdbool_h
=no
10221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10224 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10225 echo "$as_me:$LINENO: checking for _Bool" >&5
10226 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10227 if test "${ac_cv_type__Bool+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.
$ac_ext <<_ACEOF
10233 cat confdefs.h
>>conftest.
$ac_ext
10234 cat >>conftest.
$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10242 if (sizeof (_Bool))
10248 rm -f conftest.
$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>conftest.er1
10252 grep -v '^ *+' conftest.er1
>conftest.err
10254 cat conftest.err
>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try
='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try
='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_type__Bool
=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.
$ac_ext >&5
10275 ac_cv_type__Bool
=no
10277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10280 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10281 if test $ac_cv_type__Bool = yes; then
10283 cat >>confdefs.h
<<_ACEOF
10284 #define HAVE__BOOL 1
10290 if test $ac_cv_header_stdbool_h = yes; then
10292 cat >>confdefs.h
<<\_ACEOF
10293 #define HAVE_STDBOOL_H 1
10298 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10299 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10300 if test "${ac_cv_c_const+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 cat >conftest.
$ac_ext <<_ACEOF
10306 cat confdefs.h
>>conftest.
$ac_ext
10307 cat >>conftest.
$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10313 /* FIXME: Include the comments suggested by Paul. */
10314 #ifndef __cplusplus
10315 /* Ultrix mips cc rejects this. */
10316 typedef int charset[2];
10318 /* SunOS 4.1.1 cc rejects this. */
10319 char const *const *ccp;
10321 /* NEC SVR4.0.2 mips cc rejects this. */
10322 struct point {int x, y;};
10323 static struct point const zero = {0,0};
10324 /* AIX XL C 1.02.0.0 rejects this.
10325 It does not let you subtract one const X* pointer from another in
10326 an arm of an if-expression whose if-part is not a constant
10328 const char *g = "string";
10329 ccp = &g + (g ? g-g : 0);
10330 /* HPUX 7.0 cc rejects these. */
10333 ccp = (char const *const *) p;
10334 { /* SCO 3.2v4 cc rejects this. */
10336 char const *s = 0 ? (char *) 0 : (char const *) 0;
10340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10341 int x[] = {25, 17};
10342 const int *foo = &x[0];
10345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10346 typedef const int *iptr;
10350 { /* AIX XL C 1.02.0.0 rejects this saying
10351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10352 struct s { int j; const int *ap[3]; };
10353 struct s *b; b->j = 5;
10355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10356 const int foo = 10;
10364 rm -f conftest.
$ac_objext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>conftest.er1
10368 grep -v '^ *+' conftest.er1
>conftest.err
10370 cat conftest.err
>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try
='test -z "$ac_c_werror_flag"
10374 || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try
='test -s conftest.$ac_objext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.
$ac_ext >&5
10393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10395 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10396 echo "${ECHO_T}$ac_cv_c_const" >&6
10397 if test $ac_cv_c_const = no
; then
10399 cat >>confdefs.h
<<\_ACEOF
10405 echo "$as_me:$LINENO: checking for inline" >&5
10406 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10407 if test "${ac_cv_c_inline+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 for ac_kw
in inline __inline__ __inline
; do
10412 cat >conftest.
$ac_ext <<_ACEOF
10415 cat confdefs.h
>>conftest.
$ac_ext
10416 cat >>conftest.
$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 #ifndef __cplusplus
10420 static $ac_kw foo_t static_foo () {return 0; }
10421 $ac_kw foo_t foo () {return 0; }
10425 rm -f conftest.
$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>conftest.er1
10429 grep -v '^ *+' conftest.er1
>conftest.err
10431 cat conftest.err
>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try
='test -z "$ac_c_werror_flag"
10435 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try
='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_c_inline
=$ac_kw; break
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.
$ac_ext >&5
10453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10457 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10458 echo "${ECHO_T}$ac_cv_c_inline" >&6
10461 case $ac_cv_c_inline in
10464 case $ac_cv_c_inline in
10466 *) ac_val
=$ac_cv_c_inline;;
10468 cat >>confdefs.h
<<_ACEOF
10469 #ifndef __cplusplus
10470 #define inline $ac_val
10476 echo "$as_me:$LINENO: checking for mode_t" >&5
10477 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10478 if test "${ac_cv_type_mode_t+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.
$ac_ext <<_ACEOF
10484 cat confdefs.h
>>conftest.
$ac_ext
10485 cat >>conftest.
$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 $ac_includes_default
10493 if (sizeof (mode_t))
10499 rm -f conftest.
$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10503 grep -v '^ *+' conftest.er1
>conftest.err
10505 cat conftest.err
>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try
='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try
='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_type_mode_t
=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.
$ac_ext >&5
10526 ac_cv_type_mode_t
=no
10528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10531 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10532 if test $ac_cv_type_mode_t = yes; then
10536 cat >>confdefs.h
<<_ACEOF
10542 echo "$as_me:$LINENO: checking for off_t" >&5
10543 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10544 if test "${ac_cv_type_off_t+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 cat >conftest.
$ac_ext <<_ACEOF
10550 cat confdefs.h
>>conftest.
$ac_ext
10551 cat >>conftest.
$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 $ac_includes_default
10559 if (sizeof (off_t))
10565 rm -f conftest.
$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1
>conftest.err
10571 cat conftest.err
>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try
='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try
='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_type_off_t
=yes
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.
$ac_ext >&5
10592 ac_cv_type_off_t
=no
10594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10597 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10598 if test $ac_cv_type_off_t = yes; then
10602 cat >>confdefs.h
<<_ACEOF
10608 echo "$as_me:$LINENO: checking for size_t" >&5
10609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10610 if test "${ac_cv_type_size_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 cat >conftest.
$ac_ext <<_ACEOF
10616 cat confdefs.h
>>conftest.
$ac_ext
10617 cat >>conftest.
$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 $ac_includes_default
10625 if (sizeof (size_t))
10631 rm -f conftest.
$ac_objext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10633 (eval $ac_compile) 2>conftest.er1
10635 grep -v '^ *+' conftest.er1
>conftest.err
10637 cat conftest.err
>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try
='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try
='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_type_size_t
=yes
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.
$ac_ext >&5
10658 ac_cv_type_size_t
=no
10660 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10662 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10663 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10664 if test $ac_cv_type_size_t = yes; then
10668 cat >>confdefs.h
<<_ACEOF
10669 #define size_t unsigned
10674 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10675 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10676 if test "${ac_cv_header_time+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 cat >conftest.
$ac_ext <<_ACEOF
10682 cat confdefs.h
>>conftest.
$ac_ext
10683 cat >>conftest.
$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 #include <sys/types.h>
10686 #include <sys/time.h>
10692 if ((struct tm *) 0)
10698 rm -f conftest.
$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1
>conftest.err
10704 cat conftest.err
>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try
='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try
='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_header_time
=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.
$ac_ext >&5
10725 ac_cv_header_time
=no
10727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10730 echo "${ECHO_T}$ac_cv_header_time" >&6
10731 if test $ac_cv_header_time = yes; then
10733 cat >>confdefs.h
<<\_ACEOF
10734 #define TIME_WITH_SYS_TIME 1
10739 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10741 if test "${ac_cv_struct_tm+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 cat >conftest.
$ac_ext <<_ACEOF
10747 cat confdefs.h
>>conftest.
$ac_ext
10748 cat >>conftest.
$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 #include <sys/types.h>
10756 struct tm *tp; tp->tm_sec;
10761 rm -f conftest.
$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1
>conftest.err
10767 cat conftest.err
>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try
='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try
='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_cv_struct_tm
=time.h
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.
$ac_ext >&5
10788 ac_cv_struct_tm
=sys
/time.h
10790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10793 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10794 if test $ac_cv_struct_tm = sys
/time.h
; then
10796 cat >>confdefs.h
<<\_ACEOF
10797 #define TM_IN_SYS_TIME 1
10802 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10803 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10804 if test "${ac_cv_type_uid_t+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 cat >conftest.
$ac_ext <<_ACEOF
10810 cat confdefs.h
>>conftest.
$ac_ext
10811 cat >>conftest.
$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <sys/types.h>
10816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10817 $EGREP "uid_t" >/dev
/null
2>&1; then
10818 ac_cv_type_uid_t
=yes
10820 ac_cv_type_uid_t
=no
10825 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10826 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10827 if test $ac_cv_type_uid_t = no
; then
10829 cat >>confdefs.h
<<\_ACEOF
10834 cat >>confdefs.h
<<\_ACEOF
10840 echo "$as_me:$LINENO: checking for working volatile" >&5
10841 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10842 if test "${ac_cv_c_volatile+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 cat >conftest.
$ac_ext <<_ACEOF
10848 cat confdefs.h
>>conftest.
$ac_ext
10849 cat >>conftest.
$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10862 rm -f conftest.
$ac_objext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864 (eval $ac_compile) 2>conftest.er1
10866 grep -v '^ *+' conftest.er1
>conftest.err
10868 cat conftest.err
>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try
='test -z "$ac_c_werror_flag"
10872 || test ! -s conftest.err'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try
='test -s conftest.$ac_objext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_c_volatile
=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.
$ac_ext >&5
10889 ac_cv_c_volatile
=no
10891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10893 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10894 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10895 if test $ac_cv_c_volatile = no
; then
10897 cat >>confdefs.h
<<\_ACEOF
10903 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10904 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10905 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10918 if ((ptrdiff_t *) 0)
10920 if (sizeof (ptrdiff_t))
10926 rm -f conftest.
$ac_objext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928 (eval $ac_compile) 2>conftest.er1
10930 grep -v '^ *+' conftest.er1
>conftest.err
10932 cat conftest.err
>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try
='test -z "$ac_c_werror_flag"
10936 || test ! -s conftest.err'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try
='test -s conftest.$ac_objext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_type_ptrdiff_t
=yes
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.
$ac_ext >&5
10953 ac_cv_type_ptrdiff_t
=no
10955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10957 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10958 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10959 if test $ac_cv_type_ptrdiff_t = yes; then
10961 cat >>confdefs.h
<<_ACEOF
10962 #define HAVE_PTRDIFF_T 1
10969 # Checks for library functions.
10970 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10971 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10972 if test "${ac_cv_func_closedir_void+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 if test "$cross_compiling" = yes; then
10976 ac_cv_func_closedir_void
=yes
10978 cat >conftest.
$ac_ext <<_ACEOF
10981 cat confdefs.h
>>conftest.
$ac_ext
10982 cat >>conftest.
$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 #include <$ac_header_dirent>
10986 #ifndef __cplusplus
10993 exit (closedir (opendir (".")) != 0);
10998 rm -f conftest
$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_cv_func_closedir_void
=no
11011 echo "$as_me: program exited with status $ac_status" >&5
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.
$ac_ext >&5
11015 ( exit $ac_status )
11016 ac_cv_func_closedir_void
=yes
11018 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11021 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11022 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11023 if test $ac_cv_func_closedir_void = yes; then
11025 cat >>confdefs.h
<<\_ACEOF
11026 #define CLOSEDIR_VOID 1
11031 if test $ac_cv_c_compiler_gnu = yes; then
11032 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11033 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11034 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_pattern
="Autoconf.*'x'"
11038 cat >conftest.
$ac_ext <<_ACEOF
11041 cat confdefs.h
>>conftest.
$ac_ext
11042 cat >>conftest.
$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11048 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11049 ac_cv_prog_gcc_traditional
=yes
11051 ac_cv_prog_gcc_traditional
=no
11056 if test $ac_cv_prog_gcc_traditional = no
; then
11057 cat >conftest.
$ac_ext <<_ACEOF
11060 cat confdefs.h
>>conftest.
$ac_ext
11061 cat >>conftest.
$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <termio.h>
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11068 ac_cv_prog_gcc_traditional
=yes
11074 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11075 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11076 if test $ac_cv_prog_gcc_traditional = yes; then
11077 CC
="$CC -traditional"
11081 echo "$as_me:$LINENO: checking for pid_t" >&5
11082 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11083 if test "${ac_cv_type_pid_t+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 cat >conftest.
$ac_ext <<_ACEOF
11089 cat confdefs.h
>>conftest.
$ac_ext
11090 cat >>conftest.
$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 $ac_includes_default
11098 if (sizeof (pid_t))
11104 rm -f conftest.
$ac_objext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106 (eval $ac_compile) 2>conftest.er1
11108 grep -v '^ *+' conftest.er1
>conftest.err
11110 cat conftest.err
>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try
='test -z "$ac_c_werror_flag"
11114 || test ! -s conftest.err'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try
='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_type_pid_t
=yes
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.
$ac_ext >&5
11131 ac_cv_type_pid_t
=no
11133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11135 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11136 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11137 if test $ac_cv_type_pid_t = yes; then
11141 cat >>confdefs.h
<<_ACEOF
11149 for ac_header
in unistd.h vfork.h
11151 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11153 echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11161 # Is the header compilable?
11162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11164 cat >conftest.
$ac_ext <<_ACEOF
11167 cat confdefs.h
>>conftest.
$ac_ext
11168 cat >>conftest.
$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 $ac_includes_default
11171 #include <$ac_header>
11173 rm -f conftest.
$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175 (eval $ac_compile) 2>conftest.er1
11177 grep -v '^ *+' conftest.er1
>conftest.err
11179 cat conftest.err
>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try
='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try
='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_header_compiler
=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.
$ac_ext >&5
11200 ac_header_compiler
=no
11202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204 echo "${ECHO_T}$ac_header_compiler" >&6
11206 # Is the header present?
11207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11209 cat >conftest.
$ac_ext <<_ACEOF
11212 cat confdefs.h
>>conftest.
$ac_ext
11213 cat >>conftest.
$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <$ac_header>
11217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11218 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11220 grep -v '^ *+' conftest.er1
>conftest.err
11222 cat conftest.err
>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } >/dev
/null
; then
11225 if test -s conftest.err
; then
11226 ac_cpp_err
=$ac_c_preproc_warn_flag
11227 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11234 if test -z "$ac_cpp_err"; then
11235 ac_header_preproc
=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.
$ac_ext >&5
11240 ac_header_preproc
=no
11242 rm -f conftest.err conftest.
$ac_ext
11243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11244 echo "${ECHO_T}$ac_header_preproc" >&6
11246 # So? What about this header?
11247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11253 ac_header_preproc
=yes
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270 ## ------------------------------ ##
11271 ## Report this to admin@amule.org ##
11272 ## ------------------------------ ##
11275 sed "s/^/$as_me: WARNING: /" >&2
11278 echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 eval "$as_ac_Header=\$ac_header_preproc"
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11290 cat >>confdefs.h
<<_ACEOF
11291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300 for ac_func
in fork vfork
11302 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11305 if eval "test \"\${$as_ac_var+set}\" = set"; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 cat >conftest.
$ac_ext <<_ACEOF
11311 cat confdefs.h
>>conftest.
$ac_ext
11312 cat >>conftest.
$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11324 # include <limits.h>
11326 # include <assert.h>
11331 /* Override any gcc2 internal prototype to avoid an error. */
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11345 char (*f) () = $ac_func;
11354 return f != $ac_func;
11359 rm -f conftest.
$ac_objext conftest
$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
11363 grep -v '^ *+' conftest.er1
>conftest.err
11365 cat conftest.err
>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try
='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try
='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.
$ac_ext >&5
11386 eval "$as_ac_var=no"
11388 rm -f conftest.err conftest.
$ac_objext \
11389 conftest
$ac_exeext conftest.
$ac_ext
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h
<<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11401 if test "x$ac_cv_func_fork" = xyes
; then
11402 echo "$as_me:$LINENO: checking for working fork" >&5
11403 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11404 if test "${ac_cv_func_fork_works+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 if test "$cross_compiling" = yes; then
11408 ac_cv_func_fork_works
=cross
11410 cat >conftest.
$ac_ext <<_ACEOF
11411 /* By Ruediger Kuhlmann. */
11412 #include <sys/types.h>
11414 # include <unistd.h>
11416 /* Some systems only have a dummy stub for fork() */
11424 rm -f conftest
$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_func_fork_works
=yes
11437 echo "$as_me: program exited with status $ac_status" >&5
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.
$ac_ext >&5
11441 ( exit $ac_status )
11442 ac_cv_func_fork_works
=no
11444 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11447 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11451 ac_cv_func_fork_works
=$ac_cv_func_fork
11453 if test "x$ac_cv_func_fork_works" = xcross
; then
11455 *-*-amigaos* |
*-*-msdosdjgpp*)
11456 # Override, as these systems have only a dummy fork() stub
11457 ac_cv_func_fork_works
=no
11460 ac_cv_func_fork_works
=yes
11463 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11464 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11466 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11467 if test "x$ac_cv_func_vfork" = xyes
; then
11468 echo "$as_me:$LINENO: checking for working vfork" >&5
11469 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11470 if test "${ac_cv_func_vfork_works+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 if test "$cross_compiling" = yes; then
11474 ac_cv_func_vfork_works
=cross
11476 cat >conftest.
$ac_ext <<_ACEOF
11479 cat confdefs.h
>>conftest.
$ac_ext
11480 cat >>conftest.
$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 /* Thanks to Paul Eggert for this test. */
11484 #include <stdlib.h>
11485 #include <sys/types.h>
11486 #include <sys/stat.h>
11487 #include <sys/wait.h>
11489 # include <unistd.h>
11492 # include <vfork.h>
11494 /* On some sparc systems, changes by the child to local and incoming
11495 argument registers are propagated back to the parent. The compiler
11496 is told about this with #include <vfork.h>, but some compilers
11497 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11498 static variable whose address is put into a register that is
11499 clobbered by the vfork. */
11502 sparc_address_test (int arg)
11504 sparc_address_test (arg) int arg;
11507 static pid_t child;
11525 pid_t parent = getpid ();
11528 sparc_address_test (0);
11533 /* Here is another test for sparc vfork register problems. This
11534 test uses lots of local variables, at least as many local
11535 variables as main has allocated so far including compiler
11536 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11537 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11538 reuse the register of parent for one of the local variables,
11539 since it will think that parent can't possibly be used any more
11540 in this routine. Assigning to the local variable will thus
11541 munge parent in the parent process. */
11543 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11544 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11545 /* Convince the compiler that p..p7 are live; otherwise, it might
11546 use the same hardware register for all 8 local variables. */
11547 if (p != p1 || p != p2 || p != p3 || p != p4
11548 || p != p5 || p != p6 || p != p7)
11551 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11552 from child file descriptors. If the child closes a descriptor
11553 before it execs or exits, this munges the parent's descriptor
11554 as well. Test for this by closing stdout in the child. */
11555 _exit(close(fileno(stdout)) != 0);
11560 while (wait(&status) != child)
11563 /* Was there some problem with vforking? */
11566 /* Did the child fail? (This shouldn't happen.) */
11569 /* Did the vfork/compiler bug occur? */
11570 || parent != getpid()
11572 /* Did the file descriptor bug occur? */
11573 || fstat(fileno(stdout), &st) != 0
11578 rm -f conftest
$ac_exeext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580 (eval $ac_link) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 ac_cv_func_vfork_works
=yes
11591 echo "$as_me: program exited with status $ac_status" >&5
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.
$ac_ext >&5
11595 ( exit $ac_status )
11596 ac_cv_func_vfork_works
=no
11598 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11602 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11605 if test "x$ac_cv_func_fork_works" = xcross
; then
11606 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11607 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11608 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11611 if test "x$ac_cv_func_vfork_works" = xyes
; then
11613 cat >>confdefs.h
<<\_ACEOF
11614 #define HAVE_WORKING_VFORK 1
11619 cat >>confdefs.h
<<\_ACEOF
11624 if test "x$ac_cv_func_fork_works" = xyes
; then
11626 cat >>confdefs.h
<<\_ACEOF
11627 #define HAVE_WORKING_FORK 1
11632 if test x
$SYS != xwin32
; then
11634 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11635 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11636 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11637 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 ac_check_lib_save_LIBS
=$LIBS
11642 cat >conftest.
$ac_ext <<_ACEOF
11645 cat confdefs.h
>>conftest.
$ac_ext
11646 cat >>conftest.
$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 /* Override any gcc2 internal prototype to avoid an error. */
11653 /* We use char because int might match the return type of a gcc2
11654 builtin and then its argument prototype would still apply. */
11664 rm -f conftest.
$ac_objext conftest
$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666 (eval $ac_link) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1
>conftest.err
11670 cat conftest.err
>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try
='test -z "$ac_c_werror_flag"
11674 || test ! -s conftest.err'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try
='test -s conftest$ac_exeext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_lib_sun_getmntent
=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.
$ac_ext >&5
11691 ac_cv_lib_sun_getmntent
=no
11693 rm -f conftest.err conftest.
$ac_objext \
11694 conftest
$ac_exeext conftest.
$ac_ext
11695 LIBS
=$ac_check_lib_save_LIBS
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11698 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11699 if test $ac_cv_lib_sun_getmntent = yes; then
11702 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11703 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11704 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 ac_check_lib_save_LIBS
=$LIBS
11709 cat >conftest.
$ac_ext <<_ACEOF
11712 cat confdefs.h
>>conftest.
$ac_ext
11713 cat >>conftest.
$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11716 /* Override any gcc2 internal prototype to avoid an error. */
11720 /* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11731 rm -f conftest.
$ac_objext conftest
$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1
>conftest.err
11737 cat conftest.err
>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try
='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try
='test -s conftest$ac_exeext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_cv_lib_seq_getmntent
=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.
$ac_ext >&5
11758 ac_cv_lib_seq_getmntent
=no
11760 rm -f conftest.err conftest.
$ac_objext \
11761 conftest
$ac_exeext conftest.
$ac_ext
11762 LIBS
=$ac_check_lib_save_LIBS
11764 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11765 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11766 if test $ac_cv_lib_seq_getmntent = yes; then
11769 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11770 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11771 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 ac_check_lib_save_LIBS
=$LIBS
11776 cat >conftest.
$ac_ext <<_ACEOF
11779 cat confdefs.h
>>conftest.
$ac_ext
11780 cat >>conftest.
$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11783 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11798 rm -f conftest.
$ac_objext conftest
$ac_exeext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800 (eval $ac_link) 2>conftest.er1
11802 grep -v '^ *+' conftest.er1
>conftest.err
11804 cat conftest.err
>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try
='test -z "$ac_c_werror_flag"
11808 || test ! -s conftest.err'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try
='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_lib_gen_getmntent
=yes
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.
$ac_ext >&5
11825 ac_cv_lib_gen_getmntent
=no
11827 rm -f conftest.err conftest.
$ac_objext \
11828 conftest
$ac_exeext conftest.
$ac_ext
11829 LIBS
=$ac_check_lib_save_LIBS
11831 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11832 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11833 if test $ac_cv_lib_gen_getmntent = yes; then
11842 for ac_func
in getmntent
11844 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845 echo "$as_me:$LINENO: checking for $ac_func" >&5
11846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11847 if eval "test \"\${$as_ac_var+set}\" = set"; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 cat >conftest.
$ac_ext <<_ACEOF
11853 cat confdefs.h
>>conftest.
$ac_ext
11854 cat >>conftest.
$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11858 #define $ac_func innocuous_$ac_func
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below.
11862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863 <limits.h> exists even on freestanding compilers. */
11866 # include <limits.h>
11868 # include <assert.h>
11873 /* Override any gcc2 internal prototype to avoid an error. */
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11881 /* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11887 char (*f) () = $ac_func;
11896 return f != $ac_func;
11901 rm -f conftest.
$ac_objext conftest
$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11905 grep -v '^ *+' conftest.er1
>conftest.err
11907 cat conftest.err
>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try
='test -z "$ac_c_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try
='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 eval "$as_ac_var=yes"
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.
$ac_ext >&5
11928 eval "$as_ac_var=no"
11930 rm -f conftest.err conftest.
$ac_objext \
11931 conftest
$ac_exeext conftest.
$ac_ext
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11935 if test `eval echo '${'$as_ac_var'}'` = yes; then
11936 cat >>confdefs.h
<<_ACEOF
11937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11944 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11945 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11946 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 rm -f conftest.sym conftest.
file
11950 echo >conftest.
file
11951 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11952 if test "$cross_compiling" = yes; then
11953 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11955 cat >conftest.
$ac_ext <<_ACEOF
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11966 /* Linux will dereference the symlink and fail.
11967 That is better in the sense that it means we will not
11968 have to compile and use the lstat wrapper. */
11969 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11974 rm -f conftest
$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11987 echo "$as_me: program exited with status $ac_status" >&5
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.
$ac_ext >&5
11991 ( exit $ac_status )
11992 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11994 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11997 # If the `ln -s' command failed, then we probably don't even
11998 # have an lstat function.
11999 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12001 rm -f conftest.sym conftest.
file
12004 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12005 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12007 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12009 cat >>confdefs.h
<<_ACEOF
12010 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12014 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12016 "lstat.$ac_objext" | \
12017 *" lstat.$ac_objext" | \
12018 "lstat.$ac_objext "* | \
12019 *" lstat.$ac_objext "* ) ;;
12020 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12025 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12026 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12027 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 if test "$cross_compiling" = yes; then
12031 ac_cv_func_lstat_empty_string_bug
=yes
12033 cat >conftest.
$ac_ext <<_ACEOF
12036 cat confdefs.h
>>conftest.
$ac_ext
12037 cat >>conftest.
$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12044 exit (lstat ("", &sbuf) ? 1 : 0);
12049 rm -f conftest
$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051 (eval $ac_link) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_func_lstat_empty_string_bug
=yes
12062 echo "$as_me: program exited with status $ac_status" >&5
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.
$ac_ext >&5
12066 ( exit $ac_status )
12067 ac_cv_func_lstat_empty_string_bug
=no
12069 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12073 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12074 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12076 "lstat.$ac_objext" | \
12077 *" lstat.$ac_objext" | \
12078 "lstat.$ac_objext "* | \
12079 *" lstat.$ac_objext "* ) ;;
12080 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12084 cat >>confdefs.h
<<_ACEOF
12085 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12090 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12091 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12092 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 rm -f conftest.sym conftest.
file
12096 echo >conftest.
file
12097 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12098 if test "$cross_compiling" = yes; then
12099 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12101 cat >conftest.
$ac_ext <<_ACEOF
12104 cat confdefs.h
>>conftest.
$ac_ext
12105 cat >>conftest.
$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 $ac_includes_default
12112 /* Linux will dereference the symlink and fail.
12113 That is better in the sense that it means we will not
12114 have to compile and use the lstat wrapper. */
12115 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12120 rm -f conftest
$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12133 echo "$as_me: program exited with status $ac_status" >&5
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.
$ac_ext >&5
12137 ( exit $ac_status )
12138 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12140 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12143 # If the `ln -s' command failed, then we probably don't even
12144 # have an lstat function.
12145 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12147 rm -f conftest.sym conftest.
file
12150 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12151 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12153 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12155 cat >>confdefs.h
<<_ACEOF
12156 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12160 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12162 "lstat.$ac_objext" | \
12163 *" lstat.$ac_objext" | \
12164 "lstat.$ac_objext "* | \
12165 *" lstat.$ac_objext "* ) ;;
12166 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12174 echo "$as_me:$LINENO: checking for working memcmp" >&5
12175 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12176 if test "${ac_cv_func_memcmp_working+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 if test "$cross_compiling" = yes; then
12180 ac_cv_func_memcmp_working
=no
12182 cat >conftest.
$ac_ext <<_ACEOF
12185 cat confdefs.h
>>conftest.
$ac_ext
12186 cat >>conftest.
$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12193 /* Some versions of memcmp are not 8-bit clean. */
12194 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12195 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12198 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12199 or more and with at least one buffer not starting on a 4-byte boundary.
12200 William Lewis provided this test program. */
12205 for (i = 0; i < 4; i++)
12209 strcpy (a, "--------01111111");
12210 strcpy (b, "--------10000000");
12211 if (memcmp (a, b, 16) >= 0)
12221 rm -f conftest
$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_func_memcmp_working
=yes
12234 echo "$as_me: program exited with status $ac_status" >&5
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.
$ac_ext >&5
12238 ( exit $ac_status )
12239 ac_cv_func_memcmp_working
=no
12241 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12244 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12245 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12246 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12247 "memcmp.$ac_objext" | \
12248 *" memcmp.$ac_objext" | \
12249 "memcmp.$ac_objext "* | \
12250 *" memcmp.$ac_objext "* ) ;;
12251 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12257 for ac_header
in stdlib.h unistd.h
12259 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12261 echo "$as_me:$LINENO: checking for $ac_header" >&5
12262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12269 # Is the header compilable?
12270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12272 cat >conftest.
$ac_ext <<_ACEOF
12275 cat confdefs.h
>>conftest.
$ac_ext
12276 cat >>conftest.
$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 #include <$ac_header>
12281 rm -f conftest.
$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12285 grep -v '^ *+' conftest.er1
>conftest.err
12287 cat conftest.err
>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try
='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try
='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_header_compiler
=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.
$ac_ext >&5
12308 ac_header_compiler
=no
12310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12312 echo "${ECHO_T}$ac_header_compiler" >&6
12314 # Is the header present?
12315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12317 cat >conftest.
$ac_ext <<_ACEOF
12320 cat confdefs.h
>>conftest.
$ac_ext
12321 cat >>conftest.
$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <$ac_header>
12325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12326 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12328 grep -v '^ *+' conftest.er1
>conftest.err
12330 cat conftest.err
>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } >/dev
/null
; then
12333 if test -s conftest.err
; then
12334 ac_cpp_err
=$ac_c_preproc_warn_flag
12335 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12342 if test -z "$ac_cpp_err"; then
12343 ac_header_preproc
=yes
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.
$ac_ext >&5
12348 ac_header_preproc
=no
12350 rm -f conftest.err conftest.
$ac_ext
12351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12352 echo "${ECHO_T}$ac_header_preproc" >&6
12354 # So? What about this header?
12355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12361 ac_header_preproc
=yes
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12378 ## ------------------------------ ##
12379 ## Report this to admin@amule.org ##
12380 ## ------------------------------ ##
12383 sed "s/^/$as_me: WARNING: /" >&2
12386 echo "$as_me:$LINENO: checking for $ac_header" >&5
12387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 eval "$as_ac_Header=\$ac_header_preproc"
12393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12398 cat >>confdefs.h
<<_ACEOF
12399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12407 for ac_func
in getpagesize
12409 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12410 echo "$as_me:$LINENO: checking for $ac_func" >&5
12411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12412 if eval "test \"\${$as_ac_var+set}\" = set"; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 cat >conftest.
$ac_ext <<_ACEOF
12418 cat confdefs.h
>>conftest.
$ac_ext
12419 cat >>conftest.
$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12423 #define $ac_func innocuous_$ac_func
12425 /* System header to define __stub macros and hopefully few prototypes,
12426 which can conflict with char $ac_func (); below.
12427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428 <limits.h> exists even on freestanding compilers. */
12431 # include <limits.h>
12433 # include <assert.h>
12438 /* Override any gcc2 internal prototype to avoid an error. */
12443 /* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12446 /* The GNU C library defines this for functions which it implements
12447 to always fail with ENOSYS. Some functions are actually named
12448 something starting with __ and the normal name is an alias. */
12449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12452 char (*f) () = $ac_func;
12461 return f != $ac_func;
12466 rm -f conftest.
$ac_objext conftest
$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1
>conftest.err
12472 cat conftest.err
>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try
='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try
='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 eval "$as_ac_var=yes"
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.
$ac_ext >&5
12493 eval "$as_ac_var=no"
12495 rm -f conftest.err conftest.
$ac_objext \
12496 conftest
$ac_exeext conftest.
$ac_ext
12498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12500 if test `eval echo '${'$as_ac_var'}'` = yes; then
12501 cat >>confdefs.h
<<_ACEOF
12502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12508 echo "$as_me:$LINENO: checking for working mmap" >&5
12509 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12510 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 if test "$cross_compiling" = yes; then
12514 ac_cv_func_mmap_fixed_mapped
=no
12516 cat >conftest.
$ac_ext <<_ACEOF
12519 cat confdefs.h
>>conftest.
$ac_ext
12520 cat >>conftest.
$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 $ac_includes_default
12523 /* malloc might have been renamed as rpl_malloc. */
12526 /* Thanks to Mike Haertel and Jim Avera for this test.
12527 Here is a matrix of mmap possibilities:
12528 mmap private not fixed
12529 mmap private fixed at somewhere currently unmapped
12530 mmap private fixed at somewhere already mapped
12531 mmap shared not fixed
12532 mmap shared fixed at somewhere currently unmapped
12533 mmap shared fixed at somewhere already mapped
12534 For private mappings, we should verify that changes cannot be read()
12535 back from the file, nor mmap's back from the file at a different
12536 address. (There have been systems where private was not correctly
12537 implemented like the infamous i386 svr4.0, and systems where the
12538 VM page cache was not coherent with the file system buffer cache
12539 like early versions of FreeBSD and possibly contemporary NetBSD.)
12540 For shared mappings, we should conversely verify that changes get
12541 propagated back to all the places they're supposed to be.
12543 Grep wants private fixed already mapped.
12544 The main things grep needs to know about mmap are:
12545 * does it exist and is it safe to write into the mmap'd area
12546 * how to use it (BSD variants) */
12549 #include <sys/mman.h>
12551 #if !STDC_HEADERS && !HAVE_STDLIB_H
12555 /* This mess was copied from the GNU getpagesize.h. */
12556 #if !HAVE_GETPAGESIZE
12557 /* Assume that all systems that can run configure have sys/param.h. */
12558 # if !HAVE_SYS_PARAM_H
12559 # define HAVE_SYS_PARAM_H 1
12562 # ifdef _SC_PAGESIZE
12563 # define getpagesize() sysconf(_SC_PAGESIZE)
12564 # else /* no _SC_PAGESIZE */
12565 # if HAVE_SYS_PARAM_H
12566 # include <sys/param.h>
12567 # ifdef EXEC_PAGESIZE
12568 # define getpagesize() EXEC_PAGESIZE
12569 # else /* no EXEC_PAGESIZE */
12571 # define getpagesize() NBPG * CLSIZE
12574 # endif /* no CLSIZE */
12575 # else /* no NBPG */
12577 # define getpagesize() NBPC
12578 # else /* no NBPC */
12580 # define getpagesize() PAGESIZE
12581 # endif /* PAGESIZE */
12582 # endif /* no NBPC */
12583 # endif /* no NBPG */
12584 # endif /* no EXEC_PAGESIZE */
12585 # else /* no HAVE_SYS_PARAM_H */
12586 # define getpagesize() 8192 /* punt totally */
12587 # endif /* no HAVE_SYS_PARAM_H */
12588 # endif /* no _SC_PAGESIZE */
12590 #endif /* no HAVE_GETPAGESIZE */
12595 char *data, *data2, *data3;
12599 pagesize = getpagesize ();
12601 /* First, make a file with some known garbage in it. */
12602 data = (char *) malloc (pagesize);
12605 for (i = 0; i < pagesize; ++i)
12606 *(data + i) = rand ();
12608 fd = creat ("conftest.mmap", 0600);
12611 if (write (fd, data, pagesize) != pagesize)
12615 /* Next, try to mmap the file at a fixed address which already has
12616 something else allocated at it. If we can, also make sure that
12617 we see the same garbage. */
12618 fd = open ("conftest.mmap", O_RDWR);
12621 data2 = (char *) malloc (2 * pagesize);
12624 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12625 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12626 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12628 for (i = 0; i < pagesize; ++i)
12629 if (*(data + i) != *(data2 + i))
12632 /* Finally, make sure that changes to the mapped area do not
12633 percolate back to the file as seen by read(). (This is a bug on
12634 some variants of i386 svr4.0.) */
12635 for (i = 0; i < pagesize; ++i)
12636 *(data2 + i) = *(data2 + i) + 1;
12637 data3 = (char *) malloc (pagesize);
12640 if (read (fd, data3, pagesize) != pagesize)
12642 for (i = 0; i < pagesize; ++i)
12643 if (*(data + i) != *(data3 + i))
12649 rm -f conftest
$ac_exeext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651 (eval $ac_link) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_cv_func_mmap_fixed_mapped
=yes
12662 echo "$as_me: program exited with status $ac_status" >&5
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.
$ac_ext >&5
12666 ( exit $ac_status )
12667 ac_cv_func_mmap_fixed_mapped
=no
12669 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12672 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12673 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12674 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12676 cat >>confdefs.h
<<\_ACEOF
12677 #define HAVE_MMAP 1
12681 rm -f conftest.mmap
12685 for ac_header
in sys
/select.h sys
/socket.h
12687 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12689 echo "$as_me:$LINENO: checking for $ac_header" >&5
12690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12697 # Is the header compilable?
12698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12700 cat >conftest.
$ac_ext <<_ACEOF
12703 cat confdefs.h
>>conftest.
$ac_ext
12704 cat >>conftest.
$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 #include <$ac_header>
12709 rm -f conftest.
$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>conftest.er1
12713 grep -v '^ *+' conftest.er1
>conftest.err
12715 cat conftest.err
>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try
='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try
='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_header_compiler
=yes
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.
$ac_ext >&5
12736 ac_header_compiler
=no
12738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12740 echo "${ECHO_T}$ac_header_compiler" >&6
12742 # Is the header present?
12743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12745 cat >conftest.
$ac_ext <<_ACEOF
12748 cat confdefs.h
>>conftest.
$ac_ext
12749 cat >>conftest.
$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #include <$ac_header>
12753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12756 grep -v '^ *+' conftest.er1
>conftest.err
12758 cat conftest.err
>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } >/dev
/null
; then
12761 if test -s conftest.err
; then
12762 ac_cpp_err
=$ac_c_preproc_warn_flag
12763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12770 if test -z "$ac_cpp_err"; then
12771 ac_header_preproc
=yes
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.
$ac_ext >&5
12776 ac_header_preproc
=no
12778 rm -f conftest.err conftest.
$ac_ext
12779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12780 echo "${ECHO_T}$ac_header_preproc" >&6
12782 # So? What about this header?
12783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12789 ac_header_preproc
=yes
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12806 ## ------------------------------ ##
12807 ## Report this to admin@amule.org ##
12808 ## ------------------------------ ##
12811 sed "s/^/$as_me: WARNING: /" >&2
12814 echo "$as_me:$LINENO: checking for $ac_header" >&5
12815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 eval "$as_ac_Header=\$ac_header_preproc"
12821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12826 cat >>confdefs.h
<<_ACEOF
12827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12834 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12835 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12836 if test "${ac_cv_func_select_args+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12840 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12841 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12842 cat >conftest.
$ac_ext <<_ACEOF
12845 cat confdefs.h
>>conftest.
$ac_ext
12846 cat >>conftest.
$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 $ac_includes_default
12849 #if HAVE_SYS_SELECT_H
12850 # include <sys/select.h>
12852 #if HAVE_SYS_SOCKET_H
12853 # include <sys/socket.h>
12859 extern int select ($ac_arg1,
12860 $ac_arg234, $ac_arg234, $ac_arg234,
12866 rm -f conftest.
$ac_objext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12868 (eval $ac_compile) 2>conftest.er1
12870 grep -v '^ *+' conftest.er1
>conftest.err
12872 cat conftest.err
>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try
='test -z "$ac_c_werror_flag"
12876 || test ! -s conftest.err'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; } &&
12882 { ac_try
='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.
$ac_ext >&5
12894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12898 # Provide a safe default value.
12899 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12902 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12903 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12904 ac_save_IFS
=$IFS; IFS
=','
12905 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12909 cat >>confdefs.h
<<_ACEOF
12910 #define SELECT_TYPE_ARG1 $1
12914 cat >>confdefs.h
<<_ACEOF
12915 #define SELECT_TYPE_ARG234 ($2)
12919 cat >>confdefs.h
<<_ACEOF
12920 #define SELECT_TYPE_ARG5 ($3)
12925 echo "$as_me:$LINENO: checking for function prototypes" >&5
12926 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12927 if test "$ac_cv_prog_cc_stdc" != no
; then
12928 echo "$as_me:$LINENO: result: yes" >&5
12929 echo "${ECHO_T}yes" >&6
12931 cat >>confdefs.h
<<\_ACEOF
12932 #define PROTOTYPES 1
12936 cat >>confdefs.h
<<\_ACEOF
12937 #define __PROTOTYPES 1
12941 echo "$as_me:$LINENO: result: no" >&5
12942 echo "${ECHO_T}no" >&6
12945 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12946 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12947 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_cv_func_setvbuf_reversed
=no
12951 cat >conftest.
$ac_ext <<_ACEOF
12954 cat confdefs.h
>>conftest.
$ac_ext
12955 cat >>conftest.
$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12959 int (setvbuf) (FILE *, int, char *, size_t);
12964 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12969 rm -f conftest.
$ac_objext conftest
$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>conftest.er1
12973 grep -v '^ *+' conftest.er1
>conftest.err
12975 cat conftest.err
>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try
='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try
='test -s conftest$ac_exeext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 cat >conftest.
$ac_ext <<_ACEOF
12994 cat confdefs.h
>>conftest.
$ac_ext
12995 cat >>conftest.
$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12999 int (setvbuf) (FILE *, int, char *, size_t);
13004 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13009 rm -f conftest.
$ac_objext conftest
$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011 (eval $ac_link) 2>conftest.er1
13013 grep -v '^ *+' conftest.er1
>conftest.err
13015 cat conftest.err
>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try
='test -z "$ac_c_werror_flag"
13019 || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try
='test -s conftest$ac_exeext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 # It compiles and links either way, so it must not be declared
13032 # with a prototype and most likely this is a K&R C compiler.
13034 if test "$cross_compiling" = yes; then
13035 : # Assume setvbuf is not reversed when cross-compiling.
13037 cat >conftest.
$ac_ext <<_ACEOF
13040 cat confdefs.h
>>conftest.
$ac_ext
13041 cat >>conftest.
$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13047 /* This call has the arguments reversed.
13048 A reversed system may check and see that the address of buf
13049 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13051 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13054 exit (0); /* Non-reversed systems SEGV here. */
13059 rm -f conftest
$ac_exeext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061 (eval $ac_link) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_func_setvbuf_reversed
=yes
13072 echo "$as_me: program exited with status $ac_status" >&5
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.
$ac_ext >&5
13076 ( exit $ac_status )
13079 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13081 ac_cv_func_setvbuf_reversed
=yes
13083 echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.
$ac_ext >&5
13087 rm -f conftest.err conftest.
$ac_objext \
13088 conftest
$ac_exeext conftest.
$ac_ext
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.
$ac_ext >&5
13094 rm -f conftest.err conftest.
$ac_objext \
13095 conftest
$ac_exeext conftest.
$ac_ext
13097 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13098 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13099 if test $ac_cv_func_setvbuf_reversed = yes; then
13101 cat >>confdefs.h
<<\_ACEOF
13102 #define SETVBUF_REVERSED 1
13107 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13108 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13109 if test "${ac_cv_type_signal+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 cat >conftest.
$ac_ext <<_ACEOF
13115 cat confdefs.h
>>conftest.
$ac_ext
13116 cat >>conftest.
$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 #include <sys/types.h>
13119 #include <signal.h>
13124 extern "C" void (*signal (int, void (*)(int)))(int);
13126 void (*signal ()) ();
13137 rm -f conftest.
$ac_objext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13139 (eval $ac_compile) 2>conftest.er1
13141 grep -v '^ *+' conftest.er1
>conftest.err
13143 cat conftest.err
>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try
='test -z "$ac_c_werror_flag"
13147 || test ! -s conftest.err'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try
='test -s conftest.$ac_objext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159 ac_cv_type_signal
=void
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.
$ac_ext >&5
13164 ac_cv_type_signal
=int
13166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13168 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13169 echo "${ECHO_T}$ac_cv_type_signal" >&6
13171 cat >>confdefs.h
<<_ACEOF
13172 #define RETSIGTYPE $ac_cv_type_signal
13176 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13177 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13178 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 if test "$cross_compiling" = yes; then
13182 ac_cv_func_stat_empty_string_bug
=yes
13184 cat >conftest.
$ac_ext <<_ACEOF
13187 cat confdefs.h
>>conftest.
$ac_ext
13188 cat >>conftest.
$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 $ac_includes_default
13195 exit (stat ("", &sbuf) ? 1 : 0);
13200 rm -f conftest
$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 ac_cv_func_stat_empty_string_bug
=yes
13213 echo "$as_me: program exited with status $ac_status" >&5
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.
$ac_ext >&5
13217 ( exit $ac_status )
13218 ac_cv_func_stat_empty_string_bug
=no
13220 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13223 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13224 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13225 if test $ac_cv_func_stat_empty_string_bug = yes; then
13227 "stat.$ac_objext" | \
13228 *" stat.$ac_objext" | \
13229 "stat.$ac_objext "* | \
13230 *" stat.$ac_objext "* ) ;;
13231 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
13235 cat >>confdefs.h
<<_ACEOF
13236 #define HAVE_STAT_EMPTY_STRING_BUG 1
13242 for ac_func
in strftime
13244 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13245 echo "$as_me:$LINENO: checking for $ac_func" >&5
13246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13247 if eval "test \"\${$as_ac_var+set}\" = set"; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 cat >conftest.
$ac_ext <<_ACEOF
13253 cat confdefs.h
>>conftest.
$ac_ext
13254 cat >>conftest.
$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13258 #define $ac_func innocuous_$ac_func
13260 /* System header to define __stub macros and hopefully few prototypes,
13261 which can conflict with char $ac_func (); below.
13262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13263 <limits.h> exists even on freestanding compilers. */
13266 # include <limits.h>
13268 # include <assert.h>
13273 /* Override any gcc2 internal prototype to avoid an error. */
13278 /* We use char because int might match the return type of a gcc2
13279 builtin and then its argument prototype would still apply. */
13281 /* The GNU C library defines this for functions which it implements
13282 to always fail with ENOSYS. Some functions are actually named
13283 something starting with __ and the normal name is an alias. */
13284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13287 char (*f) () = $ac_func;
13296 return f != $ac_func;
13301 rm -f conftest.
$ac_objext conftest
$ac_exeext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13303 (eval $ac_link) 2>conftest.er1
13305 grep -v '^ *+' conftest.er1
>conftest.err
13307 cat conftest.err
>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try
='test -z "$ac_c_werror_flag"
13311 || test ! -s conftest.err'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try
='test -s conftest$ac_exeext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 eval "$as_ac_var=yes"
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.
$ac_ext >&5
13328 eval "$as_ac_var=no"
13330 rm -f conftest.err conftest.
$ac_objext \
13331 conftest
$ac_exeext conftest.
$ac_ext
13333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13335 if test `eval echo '${'$as_ac_var'}'` = yes; then
13336 cat >>confdefs.h
<<_ACEOF
13337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13341 # strftime is in -lintl on SCO UNIX.
13342 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13343 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13344 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 ac_check_lib_save_LIBS
=$LIBS
13348 LIBS
="-lintl $LIBS"
13349 cat >conftest.
$ac_ext <<_ACEOF
13352 cat confdefs.h
>>conftest.
$ac_ext
13353 cat >>conftest.
$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13356 /* Override any gcc2 internal prototype to avoid an error. */
13360 /* We use char because int might match the return type of a gcc2
13361 builtin and then its argument prototype would still apply. */
13371 rm -f conftest.
$ac_objext conftest
$ac_exeext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13373 (eval $ac_link) 2>conftest.er1
13375 grep -v '^ *+' conftest.er1
>conftest.err
13377 cat conftest.err
>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try
='test -z "$ac_c_werror_flag"
13381 || test ! -s conftest.err'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try
='test -s conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_lib_intl_strftime
=yes
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.
$ac_ext >&5
13398 ac_cv_lib_intl_strftime
=no
13400 rm -f conftest.err conftest.
$ac_objext \
13401 conftest
$ac_exeext conftest.
$ac_ext
13402 LIBS
=$ac_check_lib_save_LIBS
13404 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13405 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13406 if test $ac_cv_lib_intl_strftime = yes; then
13407 cat >>confdefs.h
<<\_ACEOF
13408 #define HAVE_STRFTIME 1
13411 LIBS
="-lintl $LIBS"
13417 echo "$as_me:$LINENO: checking for working strtod" >&5
13418 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13419 if test "${ac_cv_func_strtod+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 if test "$cross_compiling" = yes; then
13423 ac_cv_func_strtod
=no
13425 cat >conftest.
$ac_ext <<_ACEOF
13428 cat confdefs.h
>>conftest.
$ac_ext
13429 cat >>conftest.
$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13437 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13438 char *string = " +69";
13441 value = strtod (string, &term);
13442 if (value != 69 || term != (string + 4))
13447 /* Under Solaris 2.4, strtod returns the wrong value for the
13448 terminating character under some conditions. */
13449 char *string = "NaN";
13451 strtod (string, &term);
13452 if (term != string && *(term - 1) == 0)
13459 rm -f conftest
$ac_exeext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461 (eval $ac_link) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_cv_func_strtod
=yes
13472 echo "$as_me: program exited with status $ac_status" >&5
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.
$ac_ext >&5
13476 ( exit $ac_status )
13477 ac_cv_func_strtod
=no
13479 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13482 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13483 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13484 if test $ac_cv_func_strtod = no
; then
13486 "strtod.$ac_objext" | \
13487 *" strtod.$ac_objext" | \
13488 "strtod.$ac_objext "* | \
13489 *" strtod.$ac_objext "* ) ;;
13490 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
13493 echo "$as_me:$LINENO: checking for pow" >&5
13494 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13495 if test "${ac_cv_func_pow+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 cat >conftest.
$ac_ext <<_ACEOF
13501 cat confdefs.h
>>conftest.
$ac_ext
13502 cat >>conftest.
$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13506 #define pow innocuous_pow
13508 /* System header to define __stub macros and hopefully few prototypes,
13509 which can conflict with char pow (); below.
13510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13511 <limits.h> exists even on freestanding compilers. */
13514 # include <limits.h>
13516 # include <assert.h>
13521 /* Override any gcc2 internal prototype to avoid an error. */
13526 /* We use char because int might match the return type of a gcc2
13527 builtin and then its argument prototype would still apply. */
13529 /* The GNU C library defines this for functions which it implements
13530 to always fail with ENOSYS. Some functions are actually named
13531 something starting with __ and the normal name is an alias. */
13532 #if defined (__stub_pow) || defined (__stub___pow)
13535 char (*f) () = pow;
13549 rm -f conftest.
$ac_objext conftest
$ac_exeext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13551 (eval $ac_link) 2>conftest.er1
13553 grep -v '^ *+' conftest.er1
>conftest.err
13555 cat conftest.err
>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try
='test -z "$ac_c_werror_flag"
13559 || test ! -s conftest.err'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try
='test -s conftest$ac_exeext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.
$ac_ext >&5
13578 rm -f conftest.err conftest.
$ac_objext \
13579 conftest
$ac_exeext conftest.
$ac_ext
13581 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13582 echo "${ECHO_T}$ac_cv_func_pow" >&6
13584 if test $ac_cv_func_pow = no
; then
13585 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13586 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13587 if test "${ac_cv_lib_m_pow+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_check_lib_save_LIBS
=$LIBS
13592 cat >conftest.
$ac_ext <<_ACEOF
13595 cat confdefs.h
>>conftest.
$ac_ext
13596 cat >>conftest.
$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any gcc2 internal prototype to avoid an error. */
13603 /* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13614 rm -f conftest.
$ac_objext conftest
$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616 (eval $ac_link) 2>conftest.er1
13618 grep -v '^ *+' conftest.er1
>conftest.err
13620 cat conftest.err
>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try
='test -z "$ac_c_werror_flag"
13624 || test ! -s conftest.err'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try
='test -s conftest$ac_exeext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_lib_m_pow
=yes
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.
$ac_ext >&5
13643 rm -f conftest.err conftest.
$ac_objext \
13644 conftest
$ac_exeext conftest.
$ac_ext
13645 LIBS
=$ac_check_lib_save_LIBS
13647 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13648 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13649 if test $ac_cv_lib_m_pow = yes; then
13652 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13653 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13661 for ac_func
in vprintf
13663 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13664 echo "$as_me:$LINENO: checking for $ac_func" >&5
13665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13666 if eval "test \"\${$as_ac_var+set}\" = set"; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 cat >conftest.
$ac_ext <<_ACEOF
13672 cat confdefs.h
>>conftest.
$ac_ext
13673 cat >>conftest.
$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13677 #define $ac_func innocuous_$ac_func
13679 /* System header to define __stub macros and hopefully few prototypes,
13680 which can conflict with char $ac_func (); below.
13681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13682 <limits.h> exists even on freestanding compilers. */
13685 # include <limits.h>
13687 # include <assert.h>
13692 /* Override any gcc2 internal prototype to avoid an error. */
13697 /* We use char because int might match the return type of a gcc2
13698 builtin and then its argument prototype would still apply. */
13700 /* The GNU C library defines this for functions which it implements
13701 to always fail with ENOSYS. Some functions are actually named
13702 something starting with __ and the normal name is an alias. */
13703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706 char (*f) () = $ac_func;
13715 return f != $ac_func;
13720 rm -f conftest.
$ac_objext conftest
$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722 (eval $ac_link) 2>conftest.er1
13724 grep -v '^ *+' conftest.er1
>conftest.err
13726 cat conftest.err
>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try
='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try
='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 eval "$as_ac_var=yes"
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.
$ac_ext >&5
13747 eval "$as_ac_var=no"
13749 rm -f conftest.err conftest.
$ac_objext \
13750 conftest
$ac_exeext conftest.
$ac_ext
13752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13754 if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h
<<_ACEOF
13756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13759 echo "$as_me:$LINENO: checking for _doprnt" >&5
13760 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13761 if test "${ac_cv_func__doprnt+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 cat >conftest.
$ac_ext <<_ACEOF
13767 cat confdefs.h
>>conftest.
$ac_ext
13768 cat >>conftest.
$ac_ext <<_ACEOF
13769 /* end confdefs.h. */
13770 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13772 #define _doprnt innocuous__doprnt
13774 /* System header to define __stub macros and hopefully few prototypes,
13775 which can conflict with char _doprnt (); below.
13776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13777 <limits.h> exists even on freestanding compilers. */
13780 # include <limits.h>
13782 # include <assert.h>
13787 /* Override any gcc2 internal prototype to avoid an error. */
13792 /* We use char because int might match the return type of a gcc2
13793 builtin and then its argument prototype would still apply. */
13795 /* The GNU C library defines this for functions which it implements
13796 to always fail with ENOSYS. Some functions are actually named
13797 something starting with __ and the normal name is an alias. */
13798 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13801 char (*f) () = _doprnt;
13810 return f != _doprnt;
13815 rm -f conftest.
$ac_objext conftest
$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817 (eval $ac_link) 2>conftest.er1
13819 grep -v '^ *+' conftest.er1
>conftest.err
13821 cat conftest.err
>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try
='test -z "$ac_c_werror_flag"
13825 || test ! -s conftest.err'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try
='test -s conftest$ac_exeext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_func__doprnt
=yes
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.
$ac_ext >&5
13842 ac_cv_func__doprnt
=no
13844 rm -f conftest.err conftest.
$ac_objext \
13845 conftest
$ac_exeext conftest.
$ac_ext
13847 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13848 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13849 if test $ac_cv_func__doprnt = yes; then
13851 cat >>confdefs.h
<<\_ACEOF
13852 #define HAVE_DOPRNT 1
13861 if test $cross_compiling = yes -a $gnumalloc = yes; then
13863 { echo "$as_me:$LINENO: WARNING:
13864 configure cannot check whether malloc() and realloc() are GNU libc
13865 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13866 run configure with the --without-gnu-malloc switch." >&5
13867 echo "$as_me: WARNING:
13868 configure cannot check whether malloc() and realloc() are GNU libc
13869 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13870 run configure with the --without-gnu-malloc switch." >&2;}
13871 _mule_warning_8
=yes
13872 _mule_has_warnings
=yes
13874 ac_cv_func_malloc_0_nonnull
=yes
13875 ac_cv_func_realloc_0_nonnull
=yes
13880 for ac_header
in stdlib.h
13882 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13884 echo "$as_me:$LINENO: checking for $ac_header" >&5
13885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13892 # Is the header compilable?
13893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13895 cat >conftest.
$ac_ext <<_ACEOF
13898 cat confdefs.h
>>conftest.
$ac_ext
13899 cat >>conftest.
$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 $ac_includes_default
13902 #include <$ac_header>
13904 rm -f conftest.
$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>conftest.er1
13908 grep -v '^ *+' conftest.er1
>conftest.err
13910 cat conftest.err
>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try
='test -z "$ac_c_werror_flag"
13914 || test ! -s conftest.err'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try
='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_header_compiler
=yes
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.
$ac_ext >&5
13931 ac_header_compiler
=no
13933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13935 echo "${ECHO_T}$ac_header_compiler" >&6
13937 # Is the header present?
13938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13940 cat >conftest.
$ac_ext <<_ACEOF
13943 cat confdefs.h
>>conftest.
$ac_ext
13944 cat >>conftest.
$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 #include <$ac_header>
13948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13949 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13951 grep -v '^ *+' conftest.er1
>conftest.err
13953 cat conftest.err
>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } >/dev
/null
; then
13956 if test -s conftest.err
; then
13957 ac_cpp_err
=$ac_c_preproc_warn_flag
13958 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13965 if test -z "$ac_cpp_err"; then
13966 ac_header_preproc
=yes
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.
$ac_ext >&5
13971 ac_header_preproc
=no
13973 rm -f conftest.err conftest.
$ac_ext
13974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13975 echo "${ECHO_T}$ac_header_preproc" >&6
13977 # So? What about this header?
13978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13984 ac_header_preproc
=yes
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14001 ## ------------------------------ ##
14002 ## Report this to admin@amule.org ##
14003 ## ------------------------------ ##
14006 sed "s/^/$as_me: WARNING: /" >&2
14009 echo "$as_me:$LINENO: checking for $ac_header" >&5
14010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 eval "$as_ac_Header=\$ac_header_preproc"
14016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14021 cat >>confdefs.h
<<_ACEOF
14022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14029 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14030 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14031 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 if test "$cross_compiling" = yes; then
14035 ac_cv_func_malloc_0_nonnull
=no
14037 cat >conftest.
$ac_ext <<_ACEOF
14040 cat confdefs.h
>>conftest.
$ac_ext
14041 cat >>conftest.
$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 #if STDC_HEADERS || HAVE_STDLIB_H
14044 # include <stdlib.h>
14052 exit (malloc (0) ? 0 : 1);
14057 rm -f conftest
$ac_exeext
14058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059 (eval $ac_link) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_func_malloc_0_nonnull
=yes
14070 echo "$as_me: program exited with status $ac_status" >&5
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.
$ac_ext >&5
14074 ( exit $ac_status )
14075 ac_cv_func_malloc_0_nonnull
=no
14077 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14081 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14082 if test $ac_cv_func_malloc_0_nonnull = yes; then
14084 cat >>confdefs.h
<<\_ACEOF
14085 #define HAVE_MALLOC 1
14089 cat >>confdefs.h
<<\_ACEOF
14090 #define HAVE_MALLOC 0
14094 "malloc.$ac_objext" | \
14095 *" malloc.$ac_objext" | \
14096 "malloc.$ac_objext "* | \
14097 *" malloc.$ac_objext "* ) ;;
14098 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
14102 cat >>confdefs.h
<<\_ACEOF
14103 #define malloc rpl_malloc
14111 for ac_header
in stdlib.h
14113 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14115 echo "$as_me:$LINENO: checking for $ac_header" >&5
14116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14123 # Is the header compilable?
14124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14126 cat >conftest.
$ac_ext <<_ACEOF
14129 cat confdefs.h
>>conftest.
$ac_ext
14130 cat >>conftest.
$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 $ac_includes_default
14133 #include <$ac_header>
14135 rm -f conftest.
$ac_objext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137 (eval $ac_compile) 2>conftest.er1
14139 grep -v '^ *+' conftest.er1
>conftest.err
14141 cat conftest.err
>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try
='test -z "$ac_c_werror_flag"
14145 || test ! -s conftest.err'
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try
='test -s conftest.$ac_objext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_header_compiler
=yes
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.
$ac_ext >&5
14162 ac_header_compiler
=no
14164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14166 echo "${ECHO_T}$ac_header_compiler" >&6
14168 # Is the header present?
14169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14171 cat >conftest.
$ac_ext <<_ACEOF
14174 cat confdefs.h
>>conftest.
$ac_ext
14175 cat >>conftest.
$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 #include <$ac_header>
14179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14182 grep -v '^ *+' conftest.er1
>conftest.err
14184 cat conftest.err
>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } >/dev
/null
; then
14187 if test -s conftest.err
; then
14188 ac_cpp_err
=$ac_c_preproc_warn_flag
14189 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14196 if test -z "$ac_cpp_err"; then
14197 ac_header_preproc
=yes
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.
$ac_ext >&5
14202 ac_header_preproc
=no
14204 rm -f conftest.err conftest.
$ac_ext
14205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14206 echo "${ECHO_T}$ac_header_preproc" >&6
14208 # So? What about this header?
14209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14215 ac_header_preproc
=yes
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14232 ## ------------------------------ ##
14233 ## Report this to admin@amule.org ##
14234 ## ------------------------------ ##
14237 sed "s/^/$as_me: WARNING: /" >&2
14240 echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 eval "$as_ac_Header=\$ac_header_preproc"
14247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14252 cat >>confdefs.h
<<_ACEOF
14253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14260 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14261 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14262 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 if test "$cross_compiling" = yes; then
14266 ac_cv_func_realloc_0_nonnull
=no
14268 cat >conftest.
$ac_ext <<_ACEOF
14271 cat confdefs.h
>>conftest.
$ac_ext
14272 cat >>conftest.
$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #if STDC_HEADERS || HAVE_STDLIB_H
14275 # include <stdlib.h>
14283 exit (realloc (0, 0) ? 0 : 1);
14288 rm -f conftest
$ac_exeext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14290 (eval $ac_link) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_func_realloc_0_nonnull
=yes
14301 echo "$as_me: program exited with status $ac_status" >&5
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.
$ac_ext >&5
14305 ( exit $ac_status )
14306 ac_cv_func_realloc_0_nonnull
=no
14308 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14311 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14312 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14313 if test $ac_cv_func_realloc_0_nonnull = yes; then
14315 cat >>confdefs.h
<<\_ACEOF
14316 #define HAVE_REALLOC 1
14320 cat >>confdefs.h
<<\_ACEOF
14321 #define HAVE_REALLOC 0
14325 "realloc.$ac_objext" | \
14326 *" realloc.$ac_objext" | \
14327 "realloc.$ac_objext "* | \
14328 *" realloc.$ac_objext "* ) ;;
14329 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
14333 cat >>confdefs.h
<<\_ACEOF
14334 #define realloc rpl_realloc
14376 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 munmap nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul mmap sigaction
14378 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14379 echo "$as_me:$LINENO: checking for $ac_func" >&5
14380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14381 if eval "test \"\${$as_ac_var+set}\" = set"; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 cat >conftest.
$ac_ext <<_ACEOF
14387 cat confdefs.h
>>conftest.
$ac_ext
14388 cat >>conftest.
$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14392 #define $ac_func innocuous_$ac_func
14394 /* System header to define __stub macros and hopefully few prototypes,
14395 which can conflict with char $ac_func (); below.
14396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14397 <limits.h> exists even on freestanding compilers. */
14400 # include <limits.h>
14402 # include <assert.h>
14407 /* Override any gcc2 internal prototype to avoid an error. */
14412 /* We use char because int might match the return type of a gcc2
14413 builtin and then its argument prototype would still apply. */
14415 /* The GNU C library defines this for functions which it implements
14416 to always fail with ENOSYS. Some functions are actually named
14417 something starting with __ and the normal name is an alias. */
14418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14421 char (*f) () = $ac_func;
14430 return f != $ac_func;
14435 rm -f conftest.
$ac_objext conftest
$ac_exeext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14437 (eval $ac_link) 2>conftest.er1
14439 grep -v '^ *+' conftest.er1
>conftest.err
14441 cat conftest.err
>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try
='test -z "$ac_c_werror_flag"
14445 || test ! -s conftest.err'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try
='test -s conftest$ac_exeext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 eval "$as_ac_var=yes"
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.
$ac_ext >&5
14462 eval "$as_ac_var=no"
14464 rm -f conftest.err conftest.
$ac_objext \
14465 conftest
$ac_exeext conftest.
$ac_ext
14467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14469 if test `eval echo '${'$as_ac_var'}'` = yes; then
14470 cat >>confdefs.h
<<_ACEOF
14471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14477 #-------------------------------------------------------------------------------
14478 # End of autoscan stuff
14479 #-------------------------------------------------------------------------------
14485 for ac_func
in mkdir getrlimit setrlimit getopt_long
14487 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14488 echo "$as_me:$LINENO: checking for $ac_func" >&5
14489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14490 if eval "test \"\${$as_ac_var+set}\" = set"; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 cat >conftest.
$ac_ext <<_ACEOF
14496 cat confdefs.h
>>conftest.
$ac_ext
14497 cat >>conftest.
$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14501 #define $ac_func innocuous_$ac_func
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below.
14505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14506 <limits.h> exists even on freestanding compilers. */
14509 # include <limits.h>
14511 # include <assert.h>
14516 /* Override any gcc2 internal prototype to avoid an error. */
14521 /* We use char because int might match the return type of a gcc2
14522 builtin and then its argument prototype would still apply. */
14524 /* The GNU C library defines this for functions which it implements
14525 to always fail with ENOSYS. Some functions are actually named
14526 something starting with __ and the normal name is an alias. */
14527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14530 char (*f) () = $ac_func;
14539 return f != $ac_func;
14544 rm -f conftest.
$ac_objext conftest
$ac_exeext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14546 (eval $ac_link) 2>conftest.er1
14548 grep -v '^ *+' conftest.er1
>conftest.err
14550 cat conftest.err
>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try
='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try
='test -s conftest$ac_exeext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 eval "$as_ac_var=yes"
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.
$ac_ext >&5
14571 eval "$as_ac_var=no"
14573 rm -f conftest.err conftest.
$ac_objext \
14574 conftest
$ac_exeext conftest.
$ac_ext
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579 cat >>confdefs.h
<<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14587 mule_backup_CPPFLAGS
="$CPPFLAGS"
14588 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14589 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14590 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14591 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 cat >conftest.
$ac_ext <<_ACEOF
14597 cat confdefs.h
>>conftest.
$ac_ext
14598 cat >>conftest.
$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 $ac_includes_default
14605 char *p = (char *) strerror_r;
14612 rm -f conftest.
$ac_objext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614 (eval $ac_compile) 2>conftest.er1
14616 grep -v '^ *+' conftest.er1
>conftest.err
14618 cat conftest.err
>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try
='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try
='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_cv_have_decl_strerror_r
=yes
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.
$ac_ext >&5
14639 ac_cv_have_decl_strerror_r
=no
14641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14644 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14645 if test $ac_cv_have_decl_strerror_r = yes; then
14647 cat >>confdefs.h
<<_ACEOF
14648 #define HAVE_DECL_STRERROR_R 1
14653 cat >>confdefs.h
<<_ACEOF
14654 #define HAVE_DECL_STRERROR_R 0
14662 for ac_func
in strerror_r
14664 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14665 echo "$as_me:$LINENO: checking for $ac_func" >&5
14666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14667 if eval "test \"\${$as_ac_var+set}\" = set"; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 cat >conftest.
$ac_ext <<_ACEOF
14673 cat confdefs.h
>>conftest.
$ac_ext
14674 cat >>conftest.
$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14678 #define $ac_func innocuous_$ac_func
14680 /* System header to define __stub macros and hopefully few prototypes,
14681 which can conflict with char $ac_func (); below.
14682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14683 <limits.h> exists even on freestanding compilers. */
14686 # include <limits.h>
14688 # include <assert.h>
14693 /* Override any gcc2 internal prototype to avoid an error. */
14698 /* We use char because int might match the return type of a gcc2
14699 builtin and then its argument prototype would still apply. */
14701 /* The GNU C library defines this for functions which it implements
14702 to always fail with ENOSYS. Some functions are actually named
14703 something starting with __ and the normal name is an alias. */
14704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14707 char (*f) () = $ac_func;
14716 return f != $ac_func;
14721 rm -f conftest.
$ac_objext conftest
$ac_exeext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14723 (eval $ac_link) 2>conftest.er1
14725 grep -v '^ *+' conftest.er1
>conftest.err
14727 cat conftest.err
>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try
='test -z "$ac_c_werror_flag"
14731 || test ! -s conftest.err'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try
='test -s conftest$ac_exeext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 eval "$as_ac_var=yes"
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.
$ac_ext >&5
14748 eval "$as_ac_var=no"
14750 rm -f conftest.err conftest.
$ac_objext \
14751 conftest
$ac_exeext conftest.
$ac_ext
14753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14755 if test `eval echo '${'$as_ac_var'}'` = yes; then
14756 cat >>confdefs.h
<<_ACEOF
14757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14763 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14764 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14765 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_cv_func_strerror_r_char_p
=no
14770 if test $ac_cv_have_decl_strerror_r = yes; then
14771 cat >conftest.
$ac_ext <<_ACEOF
14774 cat confdefs.h
>>conftest.
$ac_ext
14775 cat >>conftest.
$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 $ac_includes_default
14783 char x = *strerror_r (0, buf, sizeof buf);
14784 char *p = strerror_r (0, buf, sizeof buf);
14790 rm -f conftest.
$ac_objext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14792 (eval $ac_compile) 2>conftest.er1
14794 grep -v '^ *+' conftest.er1
>conftest.err
14796 cat conftest.err
>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try
='test -z "$ac_c_werror_flag"
14800 || test ! -s conftest.err'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; } &&
14806 { ac_try
='test -s conftest.$ac_objext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_func_strerror_r_char_p
=yes
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.
$ac_ext >&5
14818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14820 # strerror_r is not declared. Choose between
14821 # systems that have relatively inaccessible declarations for the
14822 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14823 # former has a strerror_r that returns char*, while the latter
14824 # has a strerror_r that returns `int'.
14825 # This test should segfault on the DEC system.
14826 if test "$cross_compiling" = yes; then
14829 cat >conftest.
$ac_ext <<_ACEOF
14832 cat confdefs.h
>>conftest.
$ac_ext
14833 cat >>conftest.
$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14836 extern char *strerror_r ();
14841 char x = *strerror_r (0, buf, sizeof buf);
14842 exit (!isalpha (x));
14847 rm -f conftest
$ac_exeext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14849 (eval $ac_link) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; }; then
14858 ac_cv_func_strerror_r_char_p
=yes
14860 echo "$as_me: program exited with status $ac_status" >&5
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.
$ac_ext >&5
14865 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14870 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14871 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14872 if test $ac_cv_func_strerror_r_char_p = yes; then
14874 cat >>confdefs.h
<<\_ACEOF
14875 #define STRERROR_R_CHAR_P 1
14880 CPPFLAGS
="$mule_backup_CPPFLAGS"
14882 # Look for a way to preallocate disk space for files.
14884 echo "$as_me:$LINENO: checking for fallocate" >&5
14885 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14886 cat >conftest.
$ac_ext <<_ACEOF
14890 cat confdefs.h
>>conftest.
$ac_ext
14891 cat >>conftest.
$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 #include <linux/falloc.h>
14900 fallocate(0, 0, 0, 0);
14907 rm -f conftest.
$ac_objext conftest
$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>conftest.er1
14911 grep -v '^ *+' conftest.er1
>conftest.err
14913 cat conftest.err
>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try
='test -z "$ac_c_werror_flag"
14917 || test ! -s conftest.err'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try
='test -s conftest$ac_exeext'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14932 cat >>confdefs.h
<<\_ACEOF
14933 #define HAVE_FALLOCATE 1
14936 echo "$as_me:$LINENO: result: yes" >&5
14937 echo "${ECHO_T}yes" >&6
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.
$ac_ext >&5
14944 echo "$as_me:$LINENO: result: no" >&5
14945 echo "${ECHO_T}no" >&6
14948 rm -f conftest.err conftest.
$ac_objext \
14949 conftest
$ac_exeext conftest.
$ac_ext
14952 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14953 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14954 cat >conftest.
$ac_ext <<_ACEOF
14958 cat confdefs.h
>>conftest.
$ac_ext
14959 cat >>conftest.
$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14962 #include <sys/sycall.h>
14963 #include <sys/types.h>
14964 #include <unistd.h>
14970 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
14977 rm -f conftest.
$ac_objext conftest
$ac_exeext
14978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14979 (eval $ac_link) 2>conftest.er1
14981 grep -v '^ *+' conftest.er1
>conftest.err
14983 cat conftest.err
>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try
='test -z "$ac_c_werror_flag"
14987 || test ! -s conftest.err'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; } &&
14993 { ac_try
='test -s conftest$ac_exeext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
15002 cat >>confdefs.h
<<\_ACEOF
15003 #define HAVE_SYS_FALLOCATE 1
15006 echo "$as_me:$LINENO: result: yes" >&5
15007 echo "${ECHO_T}yes" >&6
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.
$ac_ext >&5
15014 echo "$as_me:$LINENO: result: no" >&5
15015 echo "${ECHO_T}no" >&6
15018 rm -f conftest.err conftest.
$ac_objext \
15019 conftest
$ac_exeext conftest.
$ac_ext
15021 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15022 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15023 cat >conftest.
$ac_ext <<_ACEOF
15027 cat confdefs.h
>>conftest.
$ac_ext
15028 cat >>conftest.
$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15031 #define _XOPEN_SOURCE 600
15032 #include <stdlib.h>
15033 #ifdef HAVE_FCNTL_H
15034 # include <fcntl.h>
15041 posix_fallocate(0, 0, 0);
15048 rm -f conftest.
$ac_objext conftest
$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>conftest.er1
15052 grep -v '^ *+' conftest.er1
>conftest.err
15054 cat conftest.err
>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try
='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try
='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15073 cat >>confdefs.h
<<\_ACEOF
15074 #define HAVE_POSIX_FALLOCATE 1
15077 echo "$as_me:$LINENO: result: yes" >&5
15078 echo "${ECHO_T}yes" >&6
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.
$ac_ext >&5
15085 echo "$as_me:$LINENO: result: no" >&5
15086 echo "${ECHO_T}no" >&6
15089 rm -f conftest.err conftest.
$ac_objext \
15090 conftest
$ac_exeext conftest.
$ac_ext
15093 # Checking Native Language Support
15097 if test -n "$ac_aux_dir"; then
15098 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15100 if test -z "$MKINSTALLDIRS"; then
15101 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15108 # Extract the first word of "msgfmt", so it can be a program name with args.
15109 set dummy msgfmt
; ac_word
=$2
15110 echo "$as_me:$LINENO: checking for $ac_word" >&5
15111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15112 if test "${ac_cv_path_MSGFMT+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15120 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15121 for ac_dir
in $PATH; do
15122 test -z "$ac_dir" && ac_dir
=.
15123 if test -f $ac_dir/$ac_word; then
15124 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15125 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15126 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15132 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15136 MSGFMT
="$ac_cv_path_MSGFMT"
15137 if test "$MSGFMT" != ":"; then
15138 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15139 echo "${ECHO_T}$MSGFMT" >&6
15141 echo "$as_me:$LINENO: result: no" >&5
15142 echo "${ECHO_T}no" >&6
15145 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15146 set dummy gmsgfmt
; ac_word
=$2
15147 echo "$as_me:$LINENO: checking for $ac_word" >&5
15148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15149 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15158 for as_dir
in $PATH
15161 test -z "$as_dir" && as_dir
=.
15162 for ac_exec_ext
in '' $ac_executable_extensions; do
15163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15171 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15175 GMSGFMT
=$ac_cv_path_GMSGFMT
15177 if test -n "$GMSGFMT"; then
15178 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15179 echo "${ECHO_T}$GMSGFMT" >&6
15181 echo "$as_me:$LINENO: result: no" >&5
15182 echo "${ECHO_T}no" >&6
15186 # Extract the first word of "xgettext", so it can be a program name with args.
15187 set dummy xgettext
; ac_word
=$2
15188 echo "$as_me:$LINENO: checking for $ac_word" >&5
15189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15190 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 case "$XGETTEXT" in
15195 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15198 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15199 for ac_dir
in $PATH; do
15200 test -z "$ac_dir" && ac_dir
=.
15201 if test -f $ac_dir/$ac_word; then
15202 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15203 (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
15204 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15210 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15214 XGETTEXT
="$ac_cv_path_XGETTEXT"
15215 if test "$XGETTEXT" != ":"; then
15216 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15217 echo "${ECHO_T}$XGETTEXT" >&6
15219 echo "$as_me:$LINENO: result: no" >&5
15220 echo "${ECHO_T}no" >&6
15225 # Extract the first word of "msgmerge", so it can be a program name with args.
15226 set dummy msgmerge
; ac_word
=$2
15227 echo "$as_me:$LINENO: checking for $ac_word" >&5
15228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15229 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 case "$MSGMERGE" in
15234 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15237 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15238 for ac_dir
in $PATH; do
15239 test -z "$ac_dir" && ac_dir
=.
15240 if test -f $ac_dir/$ac_word; then
15241 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15242 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15248 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15252 MSGMERGE
="$ac_cv_path_MSGMERGE"
15253 if test "$MSGMERGE" != ":"; then
15254 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15255 echo "${ECHO_T}$MSGMERGE" >&6
15257 echo "$as_me:$LINENO: result: no" >&5
15258 echo "${ECHO_T}no" >&6
15262 if test "$GMSGFMT" != ":"; then
15263 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15264 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15267 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15268 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15269 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15274 if test "$XGETTEXT" != ":"; then
15275 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15276 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15279 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15280 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15286 ac_config_commands
="$ac_config_commands default-1"
15289 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15290 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15291 if test "${ac_cv_search_strerror+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 ac_func_search_save_LIBS
=$LIBS
15295 ac_cv_search_strerror
=no
15296 cat >conftest.
$ac_ext <<_ACEOF
15299 cat confdefs.h
>>conftest.
$ac_ext
15300 cat >>conftest.
$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15303 /* Override any gcc2 internal prototype to avoid an error. */
15307 /* We use char because int might match the return type of a gcc2
15308 builtin and then its argument prototype would still apply. */
15318 rm -f conftest.
$ac_objext conftest
$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>conftest.er1
15322 grep -v '^ *+' conftest.er1
>conftest.err
15324 cat conftest.err
>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try
='test -z "$ac_c_werror_flag"
15328 || test ! -s conftest.err'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try
='test -s conftest$ac_exeext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_cv_search_strerror
="none required"
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.
$ac_ext >&5
15346 rm -f conftest.err conftest.
$ac_objext \
15347 conftest
$ac_exeext conftest.
$ac_ext
15348 if test "$ac_cv_search_strerror" = no
; then
15349 for ac_lib
in cposix
; do
15350 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15351 cat >conftest.
$ac_ext <<_ACEOF
15354 cat confdefs.h
>>conftest.
$ac_ext
15355 cat >>conftest.
$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15358 /* Override any gcc2 internal prototype to avoid an error. */
15362 /* We use char because int might match the return type of a gcc2
15363 builtin and then its argument prototype would still apply. */
15373 rm -f conftest.
$ac_objext conftest
$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>conftest.er1
15377 grep -v '^ *+' conftest.er1
>conftest.err
15379 cat conftest.err
>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try
='test -z "$ac_c_werror_flag"
15383 || test ! -s conftest.err'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; } &&
15389 { ac_try
='test -s conftest$ac_exeext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395 ac_cv_search_strerror
="-l$ac_lib"
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.
$ac_ext >&5
15402 rm -f conftest.err conftest.
$ac_objext \
15403 conftest
$ac_exeext conftest.
$ac_ext
15406 LIBS
=$ac_func_search_save_LIBS
15408 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15409 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15410 if test "$ac_cv_search_strerror" != no
; then
15411 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15416 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15417 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15418 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 cat >conftest.
$ac_ext <<_ACEOF
15424 cat confdefs.h
>>conftest.
$ac_ext
15425 cat >>conftest.
$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15428 #include <features.h>
15429 #ifdef __GNU_LIBRARY__
15430 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15437 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15438 ac_cv_gnu_library_2_1
=yes
15440 ac_cv_gnu_library_2_1
=no
15447 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15448 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15450 GLIBC21
="$ac_cv_gnu_library_2_1"
15455 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15456 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15457 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 if test "$cross_compiling" = yes; then
15463 # Guess based on the CPU.
15464 case "$host_cpu" in
15465 alpha
* | i3456786 | m68k | s390
*)
15466 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15468 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15472 cat >conftest.
$ac_ext <<_ACEOF
15475 cat confdefs.h
>>conftest.
$ac_ext
15476 cat >>conftest.
$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15479 #include <stdlib.h>
15480 #include <signal.h>
15484 sigfpe_handler (int sig)
15486 sigfpe_handler (sig) int sig;
15489 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15490 exit (sig != SIGFPE);
15500 signal (SIGFPE, sigfpe_handler);
15501 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15502 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15503 signal (SIGTRAP, sigfpe_handler);
15505 /* Linux/SPARC yields signal SIGILL. */
15506 #if defined (__sparc__) && defined (__linux__)
15507 signal (SIGILL, sigfpe_handler);
15516 rm -f conftest
$ac_exeext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15518 (eval $ac_link) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 gt_cv_int_divbyzero_sigfpe
=yes
15529 echo "$as_me: program exited with status $ac_status" >&5
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.
$ac_ext >&5
15533 ( exit $ac_status )
15534 gt_cv_int_divbyzero_sigfpe
=no
15536 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15540 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15541 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15542 case "$gt_cv_int_divbyzero_sigfpe" in
15547 cat >>confdefs.h
<<_ACEOF
15548 #define INTDIV0_RAISES_SIGFPE $value
15553 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15554 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15555 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 cat >conftest.
$ac_ext <<_ACEOF
15561 cat confdefs.h
>>conftest.
$ac_ext
15562 cat >>conftest.
$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 #include <sys/types.h>
15565 #include <inttypes.h>
15569 uintmax_t i = (uintmax_t) -1;
15574 rm -f conftest.
$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>conftest.er1
15578 grep -v '^ *+' conftest.er1
>conftest.err
15580 cat conftest.err
>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try
='test -z "$ac_c_werror_flag"
15584 || test ! -s conftest.err'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try
='test -s conftest.$ac_objext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 jm_ac_cv_header_inttypes_h
=yes
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.
$ac_ext >&5
15601 jm_ac_cv_header_inttypes_h
=no
15603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15605 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15606 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15607 if test $jm_ac_cv_header_inttypes_h = yes; then
15609 cat >>confdefs.h
<<_ACEOF
15610 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15616 echo "$as_me:$LINENO: checking for stdint.h" >&5
15617 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15618 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 #include <sys/types.h>
15628 #include <stdint.h>
15632 uintmax_t i = (uintmax_t) -1;
15637 rm -f conftest.
$ac_objext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639 (eval $ac_compile) 2>conftest.er1
15641 grep -v '^ *+' conftest.er1
>conftest.err
15643 cat conftest.err
>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try
='test -z "$ac_c_werror_flag"
15647 || test ! -s conftest.err'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; } &&
15653 { ac_try
='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 jm_ac_cv_header_stdint_h
=yes
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.
$ac_ext >&5
15664 jm_ac_cv_header_stdint_h
=no
15666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15668 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15669 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15670 if test $jm_ac_cv_header_stdint_h = yes; then
15672 cat >>confdefs.h
<<_ACEOF
15673 #define HAVE_STDINT_H_WITH_UINTMAX 1
15679 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15680 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15681 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 cat >conftest.
$ac_ext <<_ACEOF
15687 cat confdefs.h
>>conftest.
$ac_ext
15688 cat >>conftest.
$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 unsigned long long ull = 1; int i = 63;
15694 unsigned long long ullmax = (unsigned long long) -1;
15695 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15700 rm -f conftest.
$ac_objext conftest
$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15704 grep -v '^ *+' conftest.er1
>conftest.err
15706 cat conftest.err
>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try
='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try
='test -s conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_type_unsigned_long_long
=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.
$ac_ext >&5
15727 ac_cv_type_unsigned_long_long
=no
15729 rm -f conftest.err conftest.
$ac_objext \
15730 conftest
$ac_exeext conftest.
$ac_ext
15732 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15733 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15734 if test $ac_cv_type_unsigned_long_long = yes; then
15736 cat >>confdefs.h
<<\_ACEOF
15737 #define HAVE_UNSIGNED_LONG_LONG 1
15745 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
15747 test $ac_cv_type_unsigned_long_long = yes \
15748 && ac_type
='unsigned long long' \
15749 || ac_type
='unsigned long'
15751 cat >>confdefs.h
<<_ACEOF
15752 #define uintmax_t $ac_type
15758 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15759 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15760 if test "${gt_cv_header_inttypes_h+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 cat >conftest.
$ac_ext <<_ACEOF
15767 cat confdefs.h
>>conftest.
$ac_ext
15768 cat >>conftest.
$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15770 #include <sys/types.h>
15771 #include <inttypes.h>
15780 rm -f conftest.
$ac_objext
15781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15782 (eval $ac_compile) 2>conftest.er1
15784 grep -v '^ *+' conftest.er1
>conftest.err
15786 cat conftest.err
>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try
='test -z "$ac_c_werror_flag"
15790 || test ! -s conftest.err'
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); }; } &&
15796 { ac_try
='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 gt_cv_header_inttypes_h
=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.
$ac_ext >&5
15807 gt_cv_header_inttypes_h
=no
15809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15812 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15813 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15814 if test $gt_cv_header_inttypes_h = yes; then
15816 cat >>confdefs.h
<<_ACEOF
15817 #define HAVE_INTTYPES_H 1
15824 if test $gt_cv_header_inttypes_h = yes; then
15825 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15826 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15827 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 cat >conftest.
$ac_ext <<_ACEOF
15834 cat confdefs.h
>>conftest.
$ac_ext
15835 cat >>conftest.
$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 #include <inttypes.h>
15850 rm -f conftest.
$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852 (eval $ac_compile) 2>conftest.er1
15854 grep -v '^ *+' conftest.er1
>conftest.err
15856 cat conftest.err
>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try
='test -z "$ac_c_werror_flag"
15860 || test ! -s conftest.err'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; } &&
15866 { ac_try
='test -s conftest.$ac_objext'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 gt_cv_inttypes_pri_broken
=no
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.
$ac_ext >&5
15877 gt_cv_inttypes_pri_broken
=yes
15879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15882 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15883 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15885 if test "$gt_cv_inttypes_pri_broken" = yes; then
15887 cat >>confdefs.h
<<_ACEOF
15888 #define PRI_MACROS_BROKEN 1
15894 if test "X$prefix" = "XNONE"; then
15895 acl_final_prefix
="$ac_default_prefix"
15897 acl_final_prefix
="$prefix"
15899 if test "X$exec_prefix" = "XNONE"; then
15900 acl_final_exec_prefix
='${prefix}'
15902 acl_final_exec_prefix
="$exec_prefix"
15904 acl_save_prefix
="$prefix"
15905 prefix
="$acl_final_prefix"
15906 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
15907 prefix
="$acl_save_prefix"
15910 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15911 if test "${with_gnu_ld+set}" = set; then
15912 withval
="$with_gnu_ld"
15913 test "$withval" = no || with_gnu_ld
=yes
15918 if test "$GCC" = yes; then
15919 # Check if gcc -print-prog-name=ld gives a path.
15920 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15921 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15924 # gcc leaves a trailing carriage return which upsets mingw
15925 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15927 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15930 # Accept absolute paths.
15931 [\\/]* |
[A-Za-z
]:[\\/]*)
15932 re_direlt
='/[^/][^/]*/\.\./'
15933 # Canonicalize the path of ld
15934 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
15935 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
15936 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
15938 test -z "$LD" && LD
="$ac_prog"
15941 # If it fails, then pretend we aren't using GCC.
15945 # If it is relative, then search for the first ld in PATH.
15946 with_gnu_ld
=unknown
15949 elif test "$with_gnu_ld" = yes; then
15950 echo "$as_me:$LINENO: checking for GNU ld" >&5
15951 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15953 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15954 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15956 if test "${acl_cv_path_LD+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 if test -z "$LD"; then
15960 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15961 for ac_dir
in $PATH; do
15962 test -z "$ac_dir" && ac_dir
=.
15963 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15964 acl_cv_path_LD
="$ac_dir/$ac_prog"
15965 # Check to see if the program is GNU ld. I'd rather use --version,
15966 # but apparently some GNU ld's only accept -v.
15967 # Break only if it was the GNU/non-GNU ld that we prefer.
15968 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
15969 test "$with_gnu_ld" != no
&& break
15971 test "$with_gnu_ld" != yes && break
15977 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
15981 LD
="$acl_cv_path_LD"
15982 if test -n "$LD"; then
15983 echo "$as_me:$LINENO: result: $LD" >&5
15984 echo "${ECHO_T}$LD" >&6
15986 echo "$as_me:$LINENO: result: no" >&5
15987 echo "${ECHO_T}no" >&6
15989 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15990 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15991 { (exit 1); exit 1; }; }
15992 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15993 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15994 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15998 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
15999 acl_cv_prog_gnu_ld
=yes
16001 acl_cv_prog_gnu_ld
=no
16004 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16005 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16006 with_gnu_ld
=$acl_cv_prog_gnu_ld
16010 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16011 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16012 if test "${acl_cv_rpath+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16017 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16019 rm -f .
/conftest.sh
16023 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16024 echo "${ECHO_T}$acl_cv_rpath" >&6
16026 libext
="$acl_cv_libext"
16027 shlibext
="$acl_cv_shlibext"
16028 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16029 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16030 hardcode_direct
="$acl_cv_hardcode_direct"
16031 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16032 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16033 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16034 # Check whether --enable-rpath or --disable-rpath was given.
16035 if test "${enable_rpath+set}" = set; then
16036 enableval
="$enable_rpath"
16050 acl_save_prefix
="$prefix"
16051 prefix
="$acl_final_prefix"
16052 acl_save_exec_prefix
="$exec_prefix"
16053 exec_prefix
="$acl_final_exec_prefix"
16055 eval additional_includedir
=\"$includedir\"
16056 eval additional_libdir
=\"$libdir\"
16058 exec_prefix
="$acl_save_exec_prefix"
16059 prefix
="$acl_save_prefix"
16062 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16063 if test "${with_libiconv_prefix+set}" = set; then
16064 withval
="$with_libiconv_prefix"
16066 if test "X$withval" = "Xno"; then
16069 if test "X$withval" = "X"; then
16071 acl_save_prefix
="$prefix"
16072 prefix
="$acl_final_prefix"
16073 acl_save_exec_prefix
="$exec_prefix"
16074 exec_prefix
="$acl_final_exec_prefix"
16076 eval additional_includedir
=\"$includedir\"
16077 eval additional_libdir
=\"$libdir\"
16079 exec_prefix
="$acl_save_exec_prefix"
16080 prefix
="$acl_save_prefix"
16083 additional_includedir
="$withval/include"
16084 additional_libdir
="$withval/lib"
16094 names_already_handled
=
16095 names_next_round
='iconv '
16096 while test -n "$names_next_round"; do
16097 names_this_round
="$names_next_round"
16099 for name
in $names_this_round; do
16101 for n
in $names_already_handled; do
16102 if test "$n" = "$name"; then
16103 already_handled
=yes
16107 if test -z "$already_handled"; then
16108 names_already_handled
="$names_already_handled $name"
16109 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16110 eval value
=\"\
$HAVE_LIB$uppername\"
16111 if test -n "$value"; then
16112 if test "$value" = yes; then
16113 eval value
=\"\
$LIB$uppername\"
16114 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16115 eval value
=\"\
$LTLIB$uppername\"
16116 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16125 if test $use_additional = yes; then
16126 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16127 found_dir
="$additional_libdir"
16128 found_so
="$additional_libdir/lib$name.$shlibext"
16129 if test -f "$additional_libdir/lib$name.la"; then
16130 found_la
="$additional_libdir/lib$name.la"
16133 if test -f "$additional_libdir/lib$name.$libext"; then
16134 found_dir
="$additional_libdir"
16135 found_a
="$additional_libdir/lib$name.$libext"
16136 if test -f "$additional_libdir/lib$name.la"; then
16137 found_la
="$additional_libdir/lib$name.la"
16142 if test "X$found_dir" = "X"; then
16143 for x
in $LDFLAGS $LTLIBICONV; do
16145 acl_save_prefix
="$prefix"
16146 prefix
="$acl_final_prefix"
16147 acl_save_exec_prefix
="$exec_prefix"
16148 exec_prefix
="$acl_final_exec_prefix"
16150 exec_prefix
="$acl_save_exec_prefix"
16151 prefix
="$acl_save_prefix"
16155 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16156 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16158 found_so
="$dir/lib$name.$shlibext"
16159 if test -f "$dir/lib$name.la"; then
16160 found_la
="$dir/lib$name.la"
16163 if test -f "$dir/lib$name.$libext"; then
16165 found_a
="$dir/lib$name.$libext"
16166 if test -f "$dir/lib$name.la"; then
16167 found_la
="$dir/lib$name.la"
16173 if test "X$found_dir" != "X"; then
16178 if test "X$found_dir" != "X"; then
16179 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16180 if test "X$found_so" != "X"; then
16181 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16182 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16185 for x
in $ltrpathdirs; do
16186 if test "X$x" = "X$found_dir"; then
16191 if test -z "$haveit"; then
16192 ltrpathdirs
="$ltrpathdirs $found_dir"
16194 if test "$hardcode_direct" = yes; then
16195 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16197 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16198 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16200 for x
in $rpathdirs; do
16201 if test "X$x" = "X$found_dir"; then
16206 if test -z "$haveit"; then
16207 rpathdirs
="$rpathdirs $found_dir"
16211 for x
in $LDFLAGS $LIBICONV; do
16213 acl_save_prefix
="$prefix"
16214 prefix
="$acl_final_prefix"
16215 acl_save_exec_prefix
="$exec_prefix"
16216 exec_prefix
="$acl_final_exec_prefix"
16218 exec_prefix
="$acl_save_exec_prefix"
16219 prefix
="$acl_save_prefix"
16221 if test "X$x" = "X-L$found_dir"; then
16226 if test -z "$haveit"; then
16227 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16229 if test "$hardcode_minus_L" != no
; then
16230 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16232 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16238 if test "X$found_a" != "X"; then
16239 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16241 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16244 additional_includedir
=
16245 case "$found_dir" in
16247 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16248 additional_includedir
="$basedir/include"
16251 if test "X$additional_includedir" != "X"; then
16252 if test "X$additional_includedir" != "X/usr/include"; then
16254 if test "X$additional_includedir" = "X/usr/local/include"; then
16255 if test -n "$GCC"; then
16257 linux
*) haveit
=yes;;
16261 if test -z "$haveit"; then
16262 for x
in $CPPFLAGS $INCICONV; do
16264 acl_save_prefix
="$prefix"
16265 prefix
="$acl_final_prefix"
16266 acl_save_exec_prefix
="$exec_prefix"
16267 exec_prefix
="$acl_final_exec_prefix"
16269 exec_prefix
="$acl_save_exec_prefix"
16270 prefix
="$acl_save_prefix"
16272 if test "X$x" = "X-I$additional_includedir"; then
16277 if test -z "$haveit"; then
16278 if test -d "$additional_includedir"; then
16279 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16285 if test -n "$found_la"; then
16286 save_libdir
="$libdir"
16287 case "$found_la" in
16288 */* |
*\\*) .
"$found_la" ;;
16289 *) .
"./$found_la" ;;
16291 libdir
="$save_libdir"
16292 for dep
in $dependency_libs; do
16295 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16296 if test "X$additional_libdir" != "X/usr/lib"; then
16298 if test "X$additional_libdir" = "X/usr/local/lib"; then
16299 if test -n "$GCC"; then
16301 linux
*) haveit
=yes;;
16305 if test -z "$haveit"; then
16307 for x
in $LDFLAGS $LIBICONV; do
16309 acl_save_prefix
="$prefix"
16310 prefix
="$acl_final_prefix"
16311 acl_save_exec_prefix
="$exec_prefix"
16312 exec_prefix
="$acl_final_exec_prefix"
16314 exec_prefix
="$acl_save_exec_prefix"
16315 prefix
="$acl_save_prefix"
16317 if test "X$x" = "X-L$additional_libdir"; then
16322 if test -z "$haveit"; then
16323 if test -d "$additional_libdir"; then
16324 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16328 for x
in $LDFLAGS $LTLIBICONV; do
16330 acl_save_prefix
="$prefix"
16331 prefix
="$acl_final_prefix"
16332 acl_save_exec_prefix
="$exec_prefix"
16333 exec_prefix
="$acl_final_exec_prefix"
16335 exec_prefix
="$acl_save_exec_prefix"
16336 prefix
="$acl_save_prefix"
16338 if test "X$x" = "X-L$additional_libdir"; then
16343 if test -z "$haveit"; then
16344 if test -d "$additional_libdir"; then
16345 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16352 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16353 if test "$enable_rpath" != no
; then
16355 for x
in $rpathdirs; do
16356 if test "X$x" = "X$dir"; then
16361 if test -z "$haveit"; then
16362 rpathdirs
="$rpathdirs $dir"
16365 for x
in $ltrpathdirs; do
16366 if test "X$x" = "X$dir"; then
16371 if test -z "$haveit"; then
16372 ltrpathdirs
="$ltrpathdirs $dir"
16377 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16380 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16383 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16384 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16390 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16391 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16397 if test "X$rpathdirs" != "X"; then
16398 if test -n "$hardcode_libdir_separator"; then
16400 for found_dir
in $rpathdirs; do
16401 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16403 acl_save_libdir
="$libdir"
16405 eval flag
=\"$hardcode_libdir_flag_spec\"
16406 libdir
="$acl_save_libdir"
16407 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16409 for found_dir
in $rpathdirs; do
16410 acl_save_libdir
="$libdir"
16411 libdir
="$found_dir"
16412 eval flag
=\"$hardcode_libdir_flag_spec\"
16413 libdir
="$acl_save_libdir"
16414 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16418 if test "X$ltrpathdirs" != "X"; then
16419 for found_dir
in $ltrpathdirs; do
16420 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16437 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16438 stdlib.h string.h unistd.h sys
/param.h
16440 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16442 echo "$as_me:$LINENO: checking for $ac_header" >&5
16443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16450 # Is the header compilable?
16451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16453 cat >conftest.
$ac_ext <<_ACEOF
16456 cat confdefs.h
>>conftest.
$ac_ext
16457 cat >>conftest.
$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 $ac_includes_default
16460 #include <$ac_header>
16462 rm -f conftest.
$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464 (eval $ac_compile) 2>conftest.er1
16466 grep -v '^ *+' conftest.er1
>conftest.err
16468 cat conftest.err
>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try
='test -z "$ac_c_werror_flag"
16472 || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try
='test -s conftest.$ac_objext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_header_compiler
=yes
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.
$ac_ext >&5
16489 ac_header_compiler
=no
16491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16493 echo "${ECHO_T}$ac_header_compiler" >&6
16495 # Is the header present?
16496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16498 cat >conftest.
$ac_ext <<_ACEOF
16501 cat confdefs.h
>>conftest.
$ac_ext
16502 cat >>conftest.
$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16504 #include <$ac_header>
16506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16507 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16509 grep -v '^ *+' conftest.er1
>conftest.err
16511 cat conftest.err
>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } >/dev
/null
; then
16514 if test -s conftest.err
; then
16515 ac_cpp_err
=$ac_c_preproc_warn_flag
16516 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16523 if test -z "$ac_cpp_err"; then
16524 ac_header_preproc
=yes
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.
$ac_ext >&5
16529 ac_header_preproc
=no
16531 rm -f conftest.err conftest.
$ac_ext
16532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16533 echo "${ECHO_T}$ac_header_preproc" >&6
16535 # So? What about this header?
16536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16542 ac_header_preproc
=yes
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16559 ## ------------------------------ ##
16560 ## Report this to admin@amule.org ##
16561 ## ------------------------------ ##
16564 sed "s/^/$as_me: WARNING: /" >&2
16567 echo "$as_me:$LINENO: checking for $ac_header" >&5
16568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 eval "$as_ac_Header=\$ac_header_preproc"
16574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16579 cat >>confdefs.h
<<_ACEOF
16580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16608 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16609 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16610 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16612 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16613 echo "$as_me:$LINENO: checking for $ac_func" >&5
16614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16615 if eval "test \"\${$as_ac_var+set}\" = set"; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 cat >conftest.
$ac_ext <<_ACEOF
16621 cat confdefs.h
>>conftest.
$ac_ext
16622 cat >>conftest.
$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16626 #define $ac_func innocuous_$ac_func
16628 /* System header to define __stub macros and hopefully few prototypes,
16629 which can conflict with char $ac_func (); below.
16630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16631 <limits.h> exists even on freestanding compilers. */
16634 # include <limits.h>
16636 # include <assert.h>
16641 /* Override any gcc2 internal prototype to avoid an error. */
16646 /* We use char because int might match the return type of a gcc2
16647 builtin and then its argument prototype would still apply. */
16649 /* The GNU C library defines this for functions which it implements
16650 to always fail with ENOSYS. Some functions are actually named
16651 something starting with __ and the normal name is an alias. */
16652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16655 char (*f) () = $ac_func;
16664 return f != $ac_func;
16669 rm -f conftest.
$ac_objext conftest
$ac_exeext
16670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16671 (eval $ac_link) 2>conftest.er1
16673 grep -v '^ *+' conftest.er1
>conftest.err
16675 cat conftest.err
>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try
='test -z "$ac_c_werror_flag"
16679 || test ! -s conftest.err'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try
='test -s conftest$ac_exeext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 eval "$as_ac_var=yes"
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.
$ac_ext >&5
16696 eval "$as_ac_var=no"
16698 rm -f conftest.err conftest.
$ac_objext \
16699 conftest
$ac_exeext conftest.
$ac_ext
16701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16703 if test `eval echo '${'$as_ac_var'}'` = yes; then
16704 cat >>confdefs.h
<<_ACEOF
16705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16717 am_save_CPPFLAGS
="$CPPFLAGS"
16719 for element
in $INCICONV; do
16721 for x
in $CPPFLAGS; do
16723 acl_save_prefix
="$prefix"
16724 prefix
="$acl_final_prefix"
16725 acl_save_exec_prefix
="$exec_prefix"
16726 exec_prefix
="$acl_final_exec_prefix"
16728 exec_prefix
="$acl_save_exec_prefix"
16729 prefix
="$acl_save_prefix"
16731 if test "X$x" = "X$element"; then
16736 if test -z "$haveit"; then
16737 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16742 echo "$as_me:$LINENO: checking for iconv" >&5
16743 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16744 if test "${am_cv_func_iconv+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 am_cv_func_iconv
="no, consider installing GNU libiconv"
16750 cat >conftest.
$ac_ext <<_ACEOF
16753 cat confdefs.h
>>conftest.
$ac_ext
16754 cat >>conftest.
$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 #include <stdlib.h>
16761 iconv_t cd = iconv_open("","");
16762 iconv(cd,NULL,NULL,NULL,NULL);
16768 rm -f conftest.
$ac_objext conftest
$ac_exeext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16770 (eval $ac_link) 2>conftest.er1
16772 grep -v '^ *+' conftest.er1
>conftest.err
16774 cat conftest.err
>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try
='test -z "$ac_c_werror_flag"
16778 || test ! -s conftest.err'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try
='test -s conftest$ac_exeext'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
16790 am_cv_func_iconv
=yes
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.
$ac_ext >&5
16796 rm -f conftest.err conftest.
$ac_objext \
16797 conftest
$ac_exeext conftest.
$ac_ext
16798 if test "$am_cv_func_iconv" != yes; then
16799 am_save_LIBS
="$LIBS"
16800 LIBS
="$LIBS $LIBICONV"
16801 cat >conftest.
$ac_ext <<_ACEOF
16804 cat confdefs.h
>>conftest.
$ac_ext
16805 cat >>conftest.
$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 #include <stdlib.h>
16812 iconv_t cd = iconv_open("","");
16813 iconv(cd,NULL,NULL,NULL,NULL);
16819 rm -f conftest.
$ac_objext conftest
$ac_exeext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16821 (eval $ac_link) 2>conftest.er1
16823 grep -v '^ *+' conftest.er1
>conftest.err
16825 cat conftest.err
>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try
='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try
='test -s conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 am_cv_lib_iconv
=yes
16842 am_cv_func_iconv
=yes
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.
$ac_ext >&5
16848 rm -f conftest.err conftest.
$ac_objext \
16849 conftest
$ac_exeext conftest.
$ac_ext
16850 LIBS
="$am_save_LIBS"
16854 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16855 echo "${ECHO_T}$am_cv_func_iconv" >&6
16856 if test "$am_cv_func_iconv" = yes; then
16858 cat >>confdefs.h
<<\_ACEOF
16859 #define HAVE_ICONV 1
16863 if test "$am_cv_lib_iconv" = yes; then
16864 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16865 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16866 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16867 echo "${ECHO_T}$LIBICONV" >&6
16869 CPPFLAGS
="$am_save_CPPFLAGS"
16876 if test "$am_cv_func_iconv" = yes; then
16877 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16878 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16879 if test "${am_cv_proto_iconv+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 cat >conftest.
$ac_ext <<_ACEOF
16886 cat confdefs.h
>>conftest.
$ac_ext
16887 cat >>conftest.
$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16890 #include <stdlib.h>
16896 #if defined(__STDC__) || defined(__cplusplus)
16897 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16910 rm -f conftest.
$ac_objext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16912 (eval $ac_compile) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1
>conftest.err
16916 cat conftest.err
>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try
='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try
='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 am_cv_proto_iconv_arg1
=""
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.
$ac_ext >&5
16937 am_cv_proto_iconv_arg1
="const"
16939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16940 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);"
16943 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16944 echo "$as_me:$LINENO: result: ${ac_t:-
16945 }$am_cv_proto_iconv" >&5
16946 echo "${ECHO_T}${ac_t:-
16947 }$am_cv_proto_iconv" >&6
16949 cat >>confdefs.h
<<_ACEOF
16950 #define ICONV_CONST $am_cv_proto_iconv_arg1
16956 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16957 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16958 if test "${am_cv_langinfo_codeset+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 cat >conftest.
$ac_ext <<_ACEOF
16964 cat confdefs.h
>>conftest.
$ac_ext
16965 cat >>conftest.
$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 #include <langinfo.h>
16971 char* cs = nl_langinfo(CODESET);
16976 rm -f conftest.
$ac_objext conftest
$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978 (eval $ac_link) 2>conftest.er1
16980 grep -v '^ *+' conftest.er1
>conftest.err
16982 cat conftest.err
>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try
='test -z "$ac_c_werror_flag"
16986 || test ! -s conftest.err'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try
='test -s conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 am_cv_langinfo_codeset
=yes
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.
$ac_ext >&5
17003 am_cv_langinfo_codeset
=no
17005 rm -f conftest.err conftest.
$ac_objext \
17006 conftest
$ac_exeext conftest.
$ac_ext
17009 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17010 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17011 if test $am_cv_langinfo_codeset = yes; then
17013 cat >>confdefs.h
<<\_ACEOF
17014 #define HAVE_LANGINFO_CODESET 1
17019 if test $ac_cv_header_locale_h = yes; then
17021 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17022 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17023 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.
$ac_ext <<_ACEOF
17029 cat confdefs.h
>>conftest.
$ac_ext
17030 cat >>conftest.
$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 #include <locale.h>
17041 rm -f conftest.
$ac_objext conftest
$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043 (eval $ac_link) 2>conftest.er1
17045 grep -v '^ *+' conftest.er1
>conftest.err
17047 cat conftest.err
>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try
='test -z "$ac_c_werror_flag"
17051 || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try
='test -s conftest$ac_exeext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 am_cv_val_LC_MESSAGES
=yes
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.
$ac_ext >&5
17068 am_cv_val_LC_MESSAGES
=no
17070 rm -f conftest.err conftest.
$ac_objext \
17071 conftest
$ac_exeext conftest.
$ac_ext
17073 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17074 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17075 if test $am_cv_val_LC_MESSAGES = yes; then
17077 cat >>confdefs.h
<<\_ACEOF
17078 #define HAVE_LC_MESSAGES 1
17085 for ac_prog
in bison
17087 # Extract the first word of "$ac_prog", so it can be a program name with args.
17088 set dummy
$ac_prog; ac_word
=$2
17089 echo "$as_me:$LINENO: checking for $ac_word" >&5
17090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17091 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 if test -n "$INTLBISON"; then
17095 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17098 for as_dir
in $PATH
17101 test -z "$as_dir" && as_dir
=.
17102 for ac_exec_ext
in '' $ac_executable_extensions; do
17103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17104 ac_cv_prog_INTLBISON
="$ac_prog"
17105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17113 INTLBISON
=$ac_cv_prog_INTLBISON
17114 if test -n "$INTLBISON"; then
17115 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17116 echo "${ECHO_T}$INTLBISON" >&6
17118 echo "$as_me:$LINENO: result: no" >&5
17119 echo "${ECHO_T}no" >&6
17122 test -n "$INTLBISON" && break
17125 if test -z "$INTLBISON"; then
17128 echo "$as_me:$LINENO: checking version of bison" >&5
17129 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17130 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17131 case $ac_prog_version in
17132 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17133 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17134 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17135 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17137 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17138 echo "${ECHO_T}$ac_prog_version" >&6
17140 if test $ac_verc_fail = yes; then
17146 # Check whether --with-language or --without-language was given.
17147 if test "${with_language+set}" = set; then
17148 withval
="$with_language"
17149 if test "$withval" = "all"; then
17152 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17171 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17172 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17173 # Check whether --enable-nls or --disable-nls was given.
17174 if test "${enable_nls+set}" = set; then
17175 enableval
="$enable_nls"
17180 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17181 echo "${ECHO_T}$USE_NLS" >&6
17185 BUILD_INCLUDED_LIBINTL
=no
17186 USE_INCLUDED_LIBINTL
=no
17192 if test "$USE_NLS" = "yes"; then
17193 gt_use_preinstalled_gnugettext
=no
17195 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17196 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17198 # Check whether --with-included-gettext or --without-included-gettext was given.
17199 if test "${with_included_gettext+set}" = set; then
17200 withval
="$with_included_gettext"
17201 nls_cv_force_use_gnu_gettext
=$withval
17203 nls_cv_force_use_gnu_gettext
=no
17205 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17206 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17208 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17209 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17216 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17217 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17218 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 cat >conftest.
$ac_ext <<_ACEOF
17224 cat confdefs.h
>>conftest.
$ac_ext
17225 cat >>conftest.
$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17227 #include <libintl.h>
17228 extern int _nl_msg_cat_cntr;
17229 extern int *_nl_domain_bindings;
17233 bindtextdomain ("", "");
17234 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17239 rm -f conftest.
$ac_objext conftest
$ac_exeext
17240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>conftest.er1
17243 grep -v '^ *+' conftest.er1
>conftest.err
17245 cat conftest.err
>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try
='test -z "$ac_c_werror_flag"
17249 || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
17261 gt_cv_func_gnugettext2_libc
=yes
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.
$ac_ext >&5
17266 gt_cv_func_gnugettext2_libc
=no
17268 rm -f conftest.err conftest.
$ac_objext \
17269 conftest
$ac_exeext conftest.
$ac_ext
17271 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17272 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17274 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17280 acl_save_prefix
="$prefix"
17281 prefix
="$acl_final_prefix"
17282 acl_save_exec_prefix
="$exec_prefix"
17283 exec_prefix
="$acl_final_exec_prefix"
17285 eval additional_includedir
=\"$includedir\"
17286 eval additional_libdir
=\"$libdir\"
17288 exec_prefix
="$acl_save_exec_prefix"
17289 prefix
="$acl_save_prefix"
17292 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17293 if test "${with_libintl_prefix+set}" = set; then
17294 withval
="$with_libintl_prefix"
17296 if test "X$withval" = "Xno"; then
17299 if test "X$withval" = "X"; then
17301 acl_save_prefix
="$prefix"
17302 prefix
="$acl_final_prefix"
17303 acl_save_exec_prefix
="$exec_prefix"
17304 exec_prefix
="$acl_final_exec_prefix"
17306 eval additional_includedir
=\"$includedir\"
17307 eval additional_libdir
=\"$libdir\"
17309 exec_prefix
="$acl_save_exec_prefix"
17310 prefix
="$acl_save_prefix"
17313 additional_includedir
="$withval/include"
17314 additional_libdir
="$withval/lib"
17324 names_already_handled
=
17325 names_next_round
='intl '
17326 while test -n "$names_next_round"; do
17327 names_this_round
="$names_next_round"
17329 for name
in $names_this_round; do
17331 for n
in $names_already_handled; do
17332 if test "$n" = "$name"; then
17333 already_handled
=yes
17337 if test -z "$already_handled"; then
17338 names_already_handled
="$names_already_handled $name"
17339 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17340 eval value
=\"\
$HAVE_LIB$uppername\"
17341 if test -n "$value"; then
17342 if test "$value" = yes; then
17343 eval value
=\"\
$LIB$uppername\"
17344 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17345 eval value
=\"\
$LTLIB$uppername\"
17346 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17355 if test $use_additional = yes; then
17356 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17357 found_dir
="$additional_libdir"
17358 found_so
="$additional_libdir/lib$name.$shlibext"
17359 if test -f "$additional_libdir/lib$name.la"; then
17360 found_la
="$additional_libdir/lib$name.la"
17363 if test -f "$additional_libdir/lib$name.$libext"; then
17364 found_dir
="$additional_libdir"
17365 found_a
="$additional_libdir/lib$name.$libext"
17366 if test -f "$additional_libdir/lib$name.la"; then
17367 found_la
="$additional_libdir/lib$name.la"
17372 if test "X$found_dir" = "X"; then
17373 for x
in $LDFLAGS $LTLIBINTL; do
17375 acl_save_prefix
="$prefix"
17376 prefix
="$acl_final_prefix"
17377 acl_save_exec_prefix
="$exec_prefix"
17378 exec_prefix
="$acl_final_exec_prefix"
17380 exec_prefix
="$acl_save_exec_prefix"
17381 prefix
="$acl_save_prefix"
17385 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17386 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17388 found_so
="$dir/lib$name.$shlibext"
17389 if test -f "$dir/lib$name.la"; then
17390 found_la
="$dir/lib$name.la"
17393 if test -f "$dir/lib$name.$libext"; then
17395 found_a
="$dir/lib$name.$libext"
17396 if test -f "$dir/lib$name.la"; then
17397 found_la
="$dir/lib$name.la"
17403 if test "X$found_dir" != "X"; then
17408 if test "X$found_dir" != "X"; then
17409 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17410 if test "X$found_so" != "X"; then
17411 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17412 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17415 for x
in $ltrpathdirs; do
17416 if test "X$x" = "X$found_dir"; then
17421 if test -z "$haveit"; then
17422 ltrpathdirs
="$ltrpathdirs $found_dir"
17424 if test "$hardcode_direct" = yes; then
17425 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17427 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17428 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17430 for x
in $rpathdirs; do
17431 if test "X$x" = "X$found_dir"; then
17436 if test -z "$haveit"; then
17437 rpathdirs
="$rpathdirs $found_dir"
17441 for x
in $LDFLAGS $LIBINTL; do
17443 acl_save_prefix
="$prefix"
17444 prefix
="$acl_final_prefix"
17445 acl_save_exec_prefix
="$exec_prefix"
17446 exec_prefix
="$acl_final_exec_prefix"
17448 exec_prefix
="$acl_save_exec_prefix"
17449 prefix
="$acl_save_prefix"
17451 if test "X$x" = "X-L$found_dir"; then
17456 if test -z "$haveit"; then
17457 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17459 if test "$hardcode_minus_L" != no
; then
17460 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17462 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17468 if test "X$found_a" != "X"; then
17469 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17471 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17474 additional_includedir
=
17475 case "$found_dir" in
17477 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17478 additional_includedir
="$basedir/include"
17481 if test "X$additional_includedir" != "X"; then
17482 if test "X$additional_includedir" != "X/usr/include"; then
17484 if test "X$additional_includedir" = "X/usr/local/include"; then
17485 if test -n "$GCC"; then
17487 linux
*) haveit
=yes;;
17491 if test -z "$haveit"; then
17492 for x
in $CPPFLAGS $INCINTL; do
17494 acl_save_prefix
="$prefix"
17495 prefix
="$acl_final_prefix"
17496 acl_save_exec_prefix
="$exec_prefix"
17497 exec_prefix
="$acl_final_exec_prefix"
17499 exec_prefix
="$acl_save_exec_prefix"
17500 prefix
="$acl_save_prefix"
17502 if test "X$x" = "X-I$additional_includedir"; then
17507 if test -z "$haveit"; then
17508 if test -d "$additional_includedir"; then
17509 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17515 if test -n "$found_la"; then
17516 save_libdir
="$libdir"
17517 case "$found_la" in
17518 */* |
*\\*) .
"$found_la" ;;
17519 *) .
"./$found_la" ;;
17521 libdir
="$save_libdir"
17522 for dep
in $dependency_libs; do
17525 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17526 if test "X$additional_libdir" != "X/usr/lib"; then
17528 if test "X$additional_libdir" = "X/usr/local/lib"; then
17529 if test -n "$GCC"; then
17531 linux
*) haveit
=yes;;
17535 if test -z "$haveit"; then
17537 for x
in $LDFLAGS $LIBINTL; do
17539 acl_save_prefix
="$prefix"
17540 prefix
="$acl_final_prefix"
17541 acl_save_exec_prefix
="$exec_prefix"
17542 exec_prefix
="$acl_final_exec_prefix"
17544 exec_prefix
="$acl_save_exec_prefix"
17545 prefix
="$acl_save_prefix"
17547 if test "X$x" = "X-L$additional_libdir"; then
17552 if test -z "$haveit"; then
17553 if test -d "$additional_libdir"; then
17554 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17558 for x
in $LDFLAGS $LTLIBINTL; do
17560 acl_save_prefix
="$prefix"
17561 prefix
="$acl_final_prefix"
17562 acl_save_exec_prefix
="$exec_prefix"
17563 exec_prefix
="$acl_final_exec_prefix"
17565 exec_prefix
="$acl_save_exec_prefix"
17566 prefix
="$acl_save_prefix"
17568 if test "X$x" = "X-L$additional_libdir"; then
17573 if test -z "$haveit"; then
17574 if test -d "$additional_libdir"; then
17575 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17582 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17583 if test "$enable_rpath" != no
; then
17585 for x
in $rpathdirs; do
17586 if test "X$x" = "X$dir"; then
17591 if test -z "$haveit"; then
17592 rpathdirs
="$rpathdirs $dir"
17595 for x
in $ltrpathdirs; do
17596 if test "X$x" = "X$dir"; then
17601 if test -z "$haveit"; then
17602 ltrpathdirs
="$ltrpathdirs $dir"
17607 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17610 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17613 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17614 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17620 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17621 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17627 if test "X$rpathdirs" != "X"; then
17628 if test -n "$hardcode_libdir_separator"; then
17630 for found_dir
in $rpathdirs; do
17631 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17633 acl_save_libdir
="$libdir"
17635 eval flag
=\"$hardcode_libdir_flag_spec\"
17636 libdir
="$acl_save_libdir"
17637 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17639 for found_dir
in $rpathdirs; do
17640 acl_save_libdir
="$libdir"
17641 libdir
="$found_dir"
17642 eval flag
=\"$hardcode_libdir_flag_spec\"
17643 libdir
="$acl_save_libdir"
17644 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17648 if test "X$ltrpathdirs" != "X"; then
17649 for found_dir
in $ltrpathdirs; do
17650 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17654 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17655 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17656 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 gt_save_CPPFLAGS
="$CPPFLAGS"
17660 CPPFLAGS
="$CPPFLAGS $INCINTL"
17661 gt_save_LIBS
="$LIBS"
17662 LIBS
="$LIBS $LIBINTL"
17663 cat >conftest.
$ac_ext <<_ACEOF
17666 cat confdefs.h
>>conftest.
$ac_ext
17667 cat >>conftest.
$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 #include <libintl.h>
17670 extern int _nl_msg_cat_cntr;
17675 const char *_nl_expand_alias ();
17679 bindtextdomain ("", "");
17680 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17685 rm -f conftest.
$ac_objext conftest
$ac_exeext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687 (eval $ac_link) 2>conftest.er1
17689 grep -v '^ *+' conftest.er1
>conftest.err
17691 cat conftest.err
>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try
='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try
='test -s conftest$ac_exeext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 gt_cv_func_gnugettext2_libintl
=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.
$ac_ext >&5
17712 gt_cv_func_gnugettext2_libintl
=no
17714 rm -f conftest.err conftest.
$ac_objext \
17715 conftest
$ac_exeext conftest.
$ac_ext
17716 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17717 LIBS
="$LIBS $LIBICONV"
17718 cat >conftest.
$ac_ext <<_ACEOF
17721 cat confdefs.h
>>conftest.
$ac_ext
17722 cat >>conftest.
$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17724 #include <libintl.h>
17725 extern int _nl_msg_cat_cntr;
17730 const char *_nl_expand_alias ();
17734 bindtextdomain ("", "");
17735 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17740 rm -f conftest.
$ac_objext conftest
$ac_exeext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17742 (eval $ac_link) 2>conftest.er1
17744 grep -v '^ *+' conftest.er1
>conftest.err
17746 cat conftest.err
>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try
='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try
='test -s conftest$ac_exeext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 LIBINTL
="$LIBINTL $LIBICONV"
17763 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17764 gt_cv_func_gnugettext2_libintl
=yes
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.
$ac_ext >&5
17771 rm -f conftest.err conftest.
$ac_objext \
17772 conftest
$ac_exeext conftest.
$ac_ext
17774 CPPFLAGS
="$gt_save_CPPFLAGS"
17775 LIBS
="$gt_save_LIBS"
17777 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17778 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17781 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17782 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17783 && test "$PACKAGE" != gettext; }; then
17784 gt_use_preinstalled_gnugettext
=yes
17792 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17793 nls_cv_use_gnu_gettext
=yes
17797 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17798 INTLOBJS
="\$(GETTOBJS)"
17799 BUILD_INCLUDED_LIBINTL
=yes
17800 USE_INCLUDED_LIBINTL
=yes
17801 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
17802 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17803 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17806 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17807 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17812 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17813 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17815 cat >>confdefs.h
<<\_ACEOF
17816 #define ENABLE_NLS 1
17824 if test "$USE_NLS" = "yes"; then
17826 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17827 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17828 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17829 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17830 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17831 echo "${ECHO_T}$LIBINTL" >&6
17833 for element
in $INCINTL; do
17835 for x
in $CPPFLAGS; do
17837 acl_save_prefix
="$prefix"
17838 prefix
="$acl_final_prefix"
17839 acl_save_exec_prefix
="$exec_prefix"
17840 exec_prefix
="$acl_final_exec_prefix"
17842 exec_prefix
="$acl_save_exec_prefix"
17843 prefix
="$acl_save_prefix"
17845 if test "X$x" = "X$element"; then
17850 if test -z "$haveit"; then
17851 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17858 cat >>confdefs.h
<<\_ACEOF
17859 #define HAVE_GETTEXT 1
17863 cat >>confdefs.h
<<\_ACEOF
17864 #define HAVE_DCGETTEXT 1
17873 if test "$PACKAGE" = gettext; then
17874 BUILD_INCLUDED_LIBINTL
=yes
17882 nls_cv_header_intl
=
17883 nls_cv_header_libgt
=
17894 INTL_LIBTOOL_SUFFIX_PREFIX
=
17898 INTLLIBS
="$LIBINTL"
17905 if test $USE_INCLUDED_LIBINTL = yes; then
17906 INCINTL
=-I\
${top_builddir}/intl
17910 if test x
$USE_NLS = xyes
; then
17912 echo "$as_me:$LINENO: checking for autopoint" >&5
17913 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17914 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17915 if test -n "$autopoint_version"; then
17917 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17918 echo "${ECHO_T}yes ($autopoint_version)" >&6
17923 echo "$as_me:$LINENO: result: no" >&5
17924 echo "${ECHO_T}no" >&6
17932 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
17933 { echo "$as_me:$LINENO: WARNING:
17934 You need to install GNU gettext/gettext-tools to compile aMule with
17936 echo "$as_me: WARNING:
17937 You need to install GNU gettext/gettext-tools to compile aMule with
17938 i18n support." >&2;}
17939 _mule_warning_9
=yes
17940 _mule_has_warnings
=yes
17945 if test ${USE_NLS:-no} = yes; then
17947 echo "$as_me:$LINENO: checking for requested languages" >&5
17948 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17949 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17951 if test "$AMULE_DAEMON" = "yes"; then
17953 if test -z "$LINGUAS"; then
17954 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17957 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17958 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17962 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17965 AMULE_DAEMON_MANPAGES
=
17971 if test "$AMULECMD" = "yes"; then
17973 if test -z "$LINGUAS"; then
17974 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17977 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17978 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17982 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17991 if test "$WEB" = "yes"; then
17993 if test -z "$LINGUAS"; then
17994 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17997 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17998 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18002 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
18011 if test "$AMULE_GUI" = "yes"; then
18013 if test -z "$LINGUAS"; then
18014 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18017 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18018 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18022 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18025 AMULE_GUI_MANPAGES
=
18031 if test "$CAS" = "yes"; then
18033 if test -z "$LINGUAS"; then
18034 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18037 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18038 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18042 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18051 if test "$WXCAS" = "yes"; then
18053 if test -z "$LINGUAS"; then
18054 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18057 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18058 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18062 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18071 if test "$ED2K" = "yes"; then
18073 if test -z "$LINGUAS"; then
18074 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18077 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18078 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18082 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18091 if test "$ALC" = "yes"; then
18093 if test -z "$LINGUAS"; then
18094 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18097 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18098 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18102 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18111 if test "$ALCC" = "yes"; then
18113 if test -z "$LINGUAS"; then
18114 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18117 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18118 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18122 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18131 if test "$MONOLITHIC" = "yes"; then
18133 if test -z "$LINGUAS"; then
18134 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18137 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18138 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18142 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18145 MONOLITHIC_MANPAGES
=
18150 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18151 echo "${ECHO_T}${LINGUAS:-all}" >&6
18158 # Check for bfd.h (to have proper backtraces without using wxExecute)
18160 echo "$as_me:$LINENO: checking for bfd" >&5
18161 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18163 for bfd_ldadd
in "" "${LIBINTL}"; do
18164 mule_backup_LIBS
="$LIBS"
18165 mule_backup_LDFLAGS
="$LDFLAGS"
18166 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18167 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
18168 cat >conftest.
$ac_ext <<_ACEOF
18172 cat confdefs.h
>>conftest.
$ac_ext
18173 cat >>conftest.
$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18176 #include <ansidecl.h>
18183 char *dummy = bfd_errmsg(bfd_get_error());
18190 rm -f conftest.
$ac_objext conftest
$ac_exeext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18192 (eval $ac_link) 2>conftest.er1
18194 grep -v '^ *+' conftest.er1
>conftest.err
18196 cat conftest.err
>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try
='test -z "$ac_c_werror_flag"
18200 || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try
='test -s conftest$ac_exeext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18214 BFD_CPPFLAGS
="-DHAVE_BFD"
18215 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
18216 LIBS
="$mule_backup_LIBS"
18217 LDFLAGS
="$mule_backup_LDFLAGS"
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.
$ac_ext >&5
18225 rm -f conftest.err conftest.
$ac_objext \
18226 conftest
$ac_exeext conftest.
$ac_ext
18227 LIBS
="$mule_backup_LIBS"
18228 LDFLAGS
="$mule_backup_LDFLAGS"
18231 echo "$as_me:$LINENO: result: $result" >&5
18232 echo "${ECHO_T}$result" >&6
18234 if test $result = no
; then
18235 { echo "$as_me:$LINENO: WARNING:
18236 bfd.h not found or unusable, please install binutils development
18237 package if you are a developer or want to help testing aMule" >&5
18238 echo "$as_me: WARNING:
18239 bfd.h not found or unusable, please install binutils development
18240 package if you are a developer or want to help testing aMule" >&2;}
18241 _mule_warning_10
=yes
18242 _mule_has_warnings
=yes
18249 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18250 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18251 cat >conftest.
$ac_ext <<_ACEOF
18255 cat confdefs.h
>>conftest.
$ac_ext
18256 cat >>conftest.
$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18259 #include <execinfo.h>
18266 int n = backtrace(&bt, 1);
18267 const char **bt_syms = backtrace_symbols(bt, n);
18274 rm -f conftest.
$ac_objext conftest
$ac_exeext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276 (eval $ac_link) 2>conftest.er1
18278 grep -v '^ *+' conftest.er1
>conftest.err
18280 cat conftest.err
>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try
='test -z "$ac_c_werror_flag"
18284 || test ! -s conftest.err'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try
='test -s conftest$ac_exeext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18299 cat >>confdefs.h
<<\_ACEOF
18300 #define HAVE_EXECINFO 1
18303 echo "$as_me:$LINENO: result: yes" >&5
18304 echo "${ECHO_T}yes" >&6
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.
$ac_ext >&5
18311 echo "$as_me:$LINENO: result: no" >&5
18312 echo "${ECHO_T}no" >&6
18315 rm -f conftest.err conftest.
$ac_objext \
18316 conftest
$ac_exeext conftest.
$ac_ext
18319 # Flush standard test results for speeding cache
18320 cat >confcache
<<\_ACEOF
18321 # This file is a shell script that caches the results of configure
18322 # tests run on this system so they can be shared between configure
18323 # scripts and configure runs, see configure's option --config-cache.
18324 # It is not useful on other systems. If it contains results you don't
18325 # want to keep, you may remove or edit it.
18327 # config.status only pays attention to the cache file if you give it
18328 # the --recheck option to rerun configure.
18330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18332 # following values.
18336 # The following way of writing the cache mishandles newlines in values,
18337 # but we know of no workaround that is simple, portable, and efficient.
18338 # So, don't put newlines in cache variables' values.
18339 # Ultrix sh set writes to stderr and can't be redirected directly,
18340 # and sets the high bit in the cache file unless we assign to the vars.
18343 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18345 # `set' does not quote correctly, so add quotes (double-quote
18346 # substitution turns \\\\ into \\, and sed turns \\ into \).
18349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18352 # `set' quotes correctly as required by POSIX, so do not add quotes.
18354 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18363 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18365 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18366 if test -w $cache_file; then
18367 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18368 cat confcache
>$cache_file
18370 echo "not updating unwritable cache $cache_file"
18379 # Check whether --enable-debug or --disable-debug was given.
18380 if test "${enable_debug+set}" = set; then
18381 enableval
="$enable_debug"
18382 USE_DEBUG
=${enableval:-yes}
18387 if test $USE_DEBUG = yes; then
18389 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18391 MULECFLAGS
="$MULECFLAGS -g"
18392 MULECXXFLAGS
="$MULECXXFLAGS -g"
18394 if test ${GLIBCXX:-no} = yes; then
18395 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18398 if test ${GCC:-no} = yes; then
18400 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18401 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18405 if test ${SYS:-unknown} = win32
; then
18406 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18412 if test ${GCC:-no} = yes; then
18414 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18415 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18424 # Check whether --enable-optimize or --disable-optimize was given.
18425 if test "${enable_optimize+set}" = set; then
18426 enableval
="$enable_optimize"
18427 USE_OPTIMIZE
=${enableval:-no}
18432 if test $USE_OPTIMIZE = yes; then
18434 MULECFLAGS
="$MULECFLAGS -O2"
18435 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18441 # Check whether --enable-profile or --disable-profile was given.
18442 if test "${enable_profile+set}" = set; then
18443 enableval
="$enable_profile"
18444 USE_PROFILE
=${enableval:-no}
18449 if test $USE_PROFILE = yes; then
18452 MULECFLAGS
="$MULECFLAGS -pg"
18453 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18455 MULELDFLAGS
="$MULELDFLAGS -pg"
18461 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18462 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18463 # Check whether --enable-static or --disable-static was given.
18464 if test "${enable_static+set}" = set; then
18465 enableval
="$enable_static"
18466 if test ${enableval:-no} = yes; then
18467 MULELDFLAGS
="$MULELDFLAGS -static"
18471 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18472 echo "${ECHO_T}${enableval:-no}" >&6
18474 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18477 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18478 echo "$as_me:$LINENO: checking for docdir" >&5
18479 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18480 if test -z "$docdir"; then
18481 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18484 echo "$as_me:$LINENO: result: $docdir" >&5
18485 echo "${ECHO_T}$docdir" >&6
18487 # Try to set the SVN checkout-date
18488 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18489 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18490 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18492 svndate
="rev. `cat $srcdir/.svn-revision`"
18493 elif test -d $srcdir/.svn
# SVNDATE for svn
18495 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18497 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18498 echo "${ECHO_T}${svndate:-None required}" >&6
18499 if test -n "$svndate"; then
18502 cat >>confdefs.h
<<_ACEOF
18503 #define SVNDATE "$svndate"
18506 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18514 # Check whether --with-denoise-level or --without-denoise-level was given.
18515 if test "${with_denoise_level+set}" = set; then
18516 withval
="$with_denoise_level"
18520 echo "$as_me:$LINENO: checking denoising level" >&5
18521 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18522 if test ${with_denoise_level:-5} = yes; then
18523 with_denoise_level
=5
18526 if test ${with_denoise_level:-5} = no
; then
18527 with_denoise_level
=0
18530 if test ${with_denoise_level:-5} -gt 4; then
18531 if test "${svndate:+set}" = "set"; then
18532 with_denoise_level
=0
18534 with_denoise_level
=4
18539 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18540 echo "${ECHO_T}$with_denoise_level" >&6
18542 ac_config_commands
="$ac_config_commands denoiser"
18548 if test x
$WEB = xyes
; then
18558 if test x
$ED2K = xyes
; then
18568 if test x
$CAS = xyes
; then
18578 if test x
$WXCAS = xyes
; then
18588 if test x
$ALC = xyes
; then
18598 if test x
$ALCC = xyes
; then
18608 if test x
$AMULE_GUI = xyes
; then
18610 AMULE_GUI_FALSE
='#'
18618 if test x
$AMULE_DAEMON = xyes
; then
18620 AMULE_DAEMON_FALSE
='#'
18622 AMULE_DAEMON_TRUE
='#'
18623 AMULE_DAEMON_FALSE
=
18628 if test x
$AMULECMD = xyes
; then
18630 COMPILE_CMD_FALSE
='#'
18632 COMPILE_CMD_TRUE
='#'
18638 if test x
$MONOLITHIC = xyes
; then
18640 MONOLITHIC_FALSE
='#'
18642 MONOLITHIC_TRUE
='#'
18648 if test x
$XAS = xyes
; then
18658 if test x
$ENABLE_UPNP = xyes
; then
18660 ENABLE_UPNP_FALSE
='#'
18662 ENABLE_UPNP_TRUE
='#'
18668 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18669 ENABLE_IP2COUNTRY_TRUE
=
18670 ENABLE_IP2COUNTRY_FALSE
='#'
18672 ENABLE_IP2COUNTRY_TRUE
='#'
18673 ENABLE_IP2COUNTRY_FALSE
=
18678 if test x
$SYS = xwin32
; then
18680 SYS_WIN32_FALSE
='#'
18688 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18698 if test x
$SYS = xdarwin
; then
18699 NEED_CORESERVICES_TRUE
=
18700 NEED_CORESERVICES_FALSE
='#'
18702 NEED_CORESERVICES_TRUE
='#'
18703 NEED_CORESERVICES_FALSE
=
18708 if test x
$USE_NLS = xyes
; then
18710 COMPILE_NLS_FALSE
='#'
18712 COMPILE_NLS_TRUE
='#'
18718 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18719 GENERATE_FLEX_HEADER_TRUE
=
18720 GENERATE_FLEX_HEADER_FALSE
='#'
18722 GENERATE_FLEX_HEADER_TRUE
='#'
18723 GENERATE_FLEX_HEADER_FALSE
=
18728 if test x
$INSTALL_SKINS = xyes
; then
18729 INSTALL_SKINS_TRUE
=
18730 INSTALL_SKINS_FALSE
='#'
18732 INSTALL_SKINS_TRUE
='#'
18733 INSTALL_SKINS_FALSE
=
18737 # Check for readline library
18738 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18740 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18741 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18742 if test "${vl_cv_lib_readline+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 for readline_lib
in readline edit editline
; do
18748 for termcap_lib
in "" termcap curses ncurses
; do
18749 if test -z "$termcap_lib"; then
18750 TRY_LIB
="-l$readline_lib"
18752 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18754 LIBS
="$ORIG_LIBS $TRY_LIB"
18755 cat >conftest.
$ac_ext <<_ACEOF
18758 cat confdefs.h
>>conftest.
$ac_ext
18759 cat >>conftest.
$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18762 /* Override any gcc2 internal prototype to avoid an error. */
18766 /* We use char because int might match the return type of a gcc2
18767 builtin and then its argument prototype would still apply. */
18777 rm -f conftest.
$ac_objext conftest
$ac_exeext
18778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18779 (eval $ac_link) 2>conftest.er1
18781 grep -v '^ *+' conftest.er1
>conftest.err
18783 cat conftest.err
>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try
='test -z "$ac_c_werror_flag"
18787 || test ! -s conftest.err'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try
='test -s conftest$ac_exeext'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 vl_cv_lib_readline
="$TRY_LIB"
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.
$ac_ext >&5
18805 rm -f conftest.err conftest.
$ac_objext \
18806 conftest
$ac_exeext conftest.
$ac_ext
18807 if test -n "$vl_cv_lib_readline"; then
18811 if test -n "$vl_cv_lib_readline"; then
18815 if test -z "$vl_cv_lib_readline"; then
18816 vl_cv_lib_readline
="no"
18820 READLINE_LIBS
="$vl_cv_lib_readline"
18824 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18825 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18827 if test "$vl_cv_lib_readline" != "no"; then
18829 cat >>confdefs.h
<<\_ACEOF
18830 #define HAVE_LIBREADLINE 1
18835 for ac_header
in readline.h readline
/readline.h
18837 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18839 echo "$as_me:$LINENO: checking for $ac_header" >&5
18840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18847 # Is the header compilable?
18848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18850 cat >conftest.
$ac_ext <<_ACEOF
18853 cat confdefs.h
>>conftest.
$ac_ext
18854 cat >>conftest.
$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18856 $ac_includes_default
18857 #include <$ac_header>
18859 rm -f conftest.
$ac_objext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18861 (eval $ac_compile) 2>conftest.er1
18863 grep -v '^ *+' conftest.er1
>conftest.err
18865 cat conftest.err
>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try
='test -z "$ac_c_werror_flag"
18869 || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try
='test -s conftest.$ac_objext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_header_compiler
=yes
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.
$ac_ext >&5
18886 ac_header_compiler
=no
18888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18890 echo "${ECHO_T}$ac_header_compiler" >&6
18892 # Is the header present?
18893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18895 cat >conftest.
$ac_ext <<_ACEOF
18898 cat confdefs.h
>>conftest.
$ac_ext
18899 cat >>conftest.
$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 #include <$ac_header>
18903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18904 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18906 grep -v '^ *+' conftest.er1
>conftest.err
18908 cat conftest.err
>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } >/dev
/null
; then
18911 if test -s conftest.err
; then
18912 ac_cpp_err
=$ac_c_preproc_warn_flag
18913 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18920 if test -z "$ac_cpp_err"; then
18921 ac_header_preproc
=yes
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.
$ac_ext >&5
18926 ac_header_preproc
=no
18928 rm -f conftest.err conftest.
$ac_ext
18929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18930 echo "${ECHO_T}$ac_header_preproc" >&6
18932 # So? What about this header?
18933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18939 ac_header_preproc
=yes
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18956 ## ------------------------------ ##
18957 ## Report this to admin@amule.org ##
18958 ## ------------------------------ ##
18961 sed "s/^/$as_me: WARNING: /" >&2
18964 echo "$as_me:$LINENO: checking for $ac_header" >&5
18965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 eval "$as_ac_Header=\$ac_header_preproc"
18971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18976 cat >>confdefs.h
<<_ACEOF
18977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18984 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18985 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18986 if test "${vl_cv_lib_readline_history+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 vl_cv_lib_readline_history
="no"
18991 cat >conftest.
$ac_ext <<_ACEOF
18994 cat confdefs.h
>>conftest.
$ac_ext
18995 cat >>conftest.
$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18998 /* Override any gcc2 internal prototype to avoid an error. */
19002 /* We use char because int might match the return type of a gcc2
19003 builtin and then its argument prototype would still apply. */
19004 char add_history ();
19013 rm -f conftest.
$ac_objext conftest
$ac_exeext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19015 (eval $ac_link) 2>conftest.er1
19017 grep -v '^ *+' conftest.er1
>conftest.err
19019 cat conftest.err
>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try
='test -z "$ac_c_werror_flag"
19023 || test ! -s conftest.err'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try
='test -s conftest$ac_exeext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 vl_cv_lib_readline_history
="yes"
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.
$ac_ext >&5
19041 rm -f conftest.err conftest.
$ac_objext \
19042 conftest
$ac_exeext conftest.
$ac_ext
19045 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19046 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19047 if test "$vl_cv_lib_readline_history" = "yes"; then
19049 cat >>confdefs.h
<<\_ACEOF
19050 #define HAVE_READLINE_HISTORY 1
19055 for ac_header
in history.h readline
/history.h
19057 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo "$as_me:$LINENO: checking for $ac_header" >&5
19060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19067 # Is the header compilable?
19068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19070 cat >conftest.
$ac_ext <<_ACEOF
19073 cat confdefs.h
>>conftest.
$ac_ext
19074 cat >>conftest.
$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 $ac_includes_default
19077 #include <$ac_header>
19079 rm -f conftest.
$ac_objext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19081 (eval $ac_compile) 2>conftest.er1
19083 grep -v '^ *+' conftest.er1
>conftest.err
19085 cat conftest.err
>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try
='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try
='test -s conftest.$ac_objext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_header_compiler
=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.
$ac_ext >&5
19106 ac_header_compiler
=no
19108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110 echo "${ECHO_T}$ac_header_compiler" >&6
19112 # Is the header present?
19113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19115 cat >conftest.
$ac_ext <<_ACEOF
19118 cat confdefs.h
>>conftest.
$ac_ext
19119 cat >>conftest.
$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 #include <$ac_header>
19123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19126 grep -v '^ *+' conftest.er1
>conftest.err
19128 cat conftest.err
>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } >/dev
/null
; then
19131 if test -s conftest.err
; then
19132 ac_cpp_err
=$ac_c_preproc_warn_flag
19133 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19140 if test -z "$ac_cpp_err"; then
19141 ac_header_preproc
=yes
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.
$ac_ext >&5
19146 ac_header_preproc
=no
19148 rm -f conftest.err conftest.
$ac_ext
19149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19150 echo "${ECHO_T}$ac_header_preproc" >&6
19152 # So? What about this header?
19153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19159 ac_header_preproc
=yes
19162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19176 ## ------------------------------ ##
19177 ## Report this to admin@amule.org ##
19178 ## ------------------------------ ##
19181 sed "s/^/$as_me: WARNING: /" >&2
19184 echo "$as_me:$LINENO: checking for $ac_header" >&5
19185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 eval "$as_ac_Header=\$ac_header_preproc"
19191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19196 cat >>confdefs.h
<<_ACEOF
19197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19211 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19214 # Check whether --enable-ccache or --disable-ccache was given.
19215 if test "${enable_ccache+set}" = set; then
19216 enableval
="$enable_ccache"
19221 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19222 if test "${with_ccache_prefix+set}" = set; then
19223 withval
="$with_ccache_prefix"
19227 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19228 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19229 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19230 echo "${ECHO_T}${enable_ccache:-no}" >&6
19232 if test ${enable_ccache:-no} = yes; then
19234 echo "$as_me:$LINENO: checking for ccache presence" >&5
19235 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19236 if test -z "$with_ccache_prefix"; then
19238 ccache_full
=`which ccache`
19239 with_ccache_prefix
=`dirname ${ccache_full}`
19243 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19245 echo "$as_me:$LINENO: result: yes" >&5
19246 echo "${ECHO_T}yes" >&6
19247 CC
="$with_ccache_prefix/ccache $CC"
19248 CXX
="$with_ccache_prefix/ccache $CXX"
19249 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19254 echo "$as_me:$LINENO: result: no" >&5
19255 echo "${ECHO_T}no" >&6
19264 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"
19266 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19268 if test x
$SYS = xwin32
; then
19269 ac_config_files
="$ac_config_files version.rc"
19273 cat >confcache
<<\_ACEOF
19274 # This file is a shell script that caches the results of configure
19275 # tests run on this system so they can be shared between configure
19276 # scripts and configure runs, see configure's option --config-cache.
19277 # It is not useful on other systems. If it contains results you don't
19278 # want to keep, you may remove or edit it.
19280 # config.status only pays attention to the cache file if you give it
19281 # the --recheck option to rerun configure.
19283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19285 # following values.
19289 # The following way of writing the cache mishandles newlines in values,
19290 # but we know of no workaround that is simple, portable, and efficient.
19291 # So, don't put newlines in cache variables' values.
19292 # Ultrix sh set writes to stderr and can't be redirected directly,
19293 # and sets the high bit in the cache file unless we assign to the vars.
19296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19298 # `set' does not quote correctly, so add quotes (double-quote
19299 # substitution turns \\\\ into \\, and sed turns \\ into \).
19302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19305 # `set' quotes correctly as required by POSIX, so do not add quotes.
19307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19316 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19318 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19319 if test -w $cache_file; then
19320 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19321 cat confcache
>$cache_file
19323 echo "not updating unwritable cache $cache_file"
19328 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19329 # Let make expand exec_prefix.
19330 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19334 # trailing colons and then remove the whole line if VPATH becomes empty
19335 # (actually we leave an empty line to preserve line numbers).
19336 if test "x$srcdir" = x.
; then
19337 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19338 s/:*\$(srcdir):*/:/;
19339 s/:*\${srcdir}:*/:/;
19341 s/^\([^=]*=[ ]*\):*/\1/;
19347 DEFS
=-DHAVE_CONFIG_H
19351 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19352 # 1. Remove the extension, and $U if already installed.
19353 ac_i
=`echo "$ac_i" |
19354 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19356 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19357 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19359 LIBOBJS
=$ac_libobjs
19361 LTLIBOBJS
=$ac_ltlibobjs
19364 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19365 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19366 Usually this means the macro was only invoked conditionally." >&5
19367 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19368 Usually this means the macro was only invoked conditionally." >&2;}
19369 { (exit 1); exit 1; }; }
19371 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19372 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19373 Usually this means the macro was only invoked conditionally." >&5
19374 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19375 Usually this means the macro was only invoked conditionally." >&2;}
19376 { (exit 1); exit 1; }; }
19378 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19379 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19380 Usually this means the macro was only invoked conditionally." >&5
19381 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19382 Usually this means the macro was only invoked conditionally." >&2;}
19383 { (exit 1); exit 1; }; }
19385 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19386 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19387 Usually this means the macro was only invoked conditionally." >&5
19388 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19389 Usually this means the macro was only invoked conditionally." >&2;}
19390 { (exit 1); exit 1; }; }
19392 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19393 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19394 Usually this means the macro was only invoked conditionally." >&5
19395 echo "$as_me: error: conditional \"WEB\" was never defined.
19396 Usually this means the macro was only invoked conditionally." >&2;}
19397 { (exit 1); exit 1; }; }
19399 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19400 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19401 Usually this means the macro was only invoked conditionally." >&5
19402 echo "$as_me: error: conditional \"ED2K\" was never defined.
19403 Usually this means the macro was only invoked conditionally." >&2;}
19404 { (exit 1); exit 1; }; }
19406 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19407 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19408 Usually this means the macro was only invoked conditionally." >&5
19409 echo "$as_me: error: conditional \"CAS\" was never defined.
19410 Usually this means the macro was only invoked conditionally." >&2;}
19411 { (exit 1); exit 1; }; }
19413 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19414 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19415 Usually this means the macro was only invoked conditionally." >&5
19416 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19417 Usually this means the macro was only invoked conditionally." >&2;}
19418 { (exit 1); exit 1; }; }
19420 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19421 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19422 Usually this means the macro was only invoked conditionally." >&5
19423 echo "$as_me: error: conditional \"ALC\" was never defined.
19424 Usually this means the macro was only invoked conditionally." >&2;}
19425 { (exit 1); exit 1; }; }
19427 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19428 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19429 Usually this means the macro was only invoked conditionally." >&5
19430 echo "$as_me: error: conditional \"ALCC\" was never defined.
19431 Usually this means the macro was only invoked conditionally." >&2;}
19432 { (exit 1); exit 1; }; }
19434 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19435 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19436 Usually this means the macro was only invoked conditionally." >&5
19437 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19438 Usually this means the macro was only invoked conditionally." >&2;}
19439 { (exit 1); exit 1; }; }
19441 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19442 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19443 Usually this means the macro was only invoked conditionally." >&5
19444 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19445 Usually this means the macro was only invoked conditionally." >&2;}
19446 { (exit 1); exit 1; }; }
19448 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19449 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19450 Usually this means the macro was only invoked conditionally." >&5
19451 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19452 Usually this means the macro was only invoked conditionally." >&2;}
19453 { (exit 1); exit 1; }; }
19455 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19456 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19457 Usually this means the macro was only invoked conditionally." >&5
19458 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19459 Usually this means the macro was only invoked conditionally." >&2;}
19460 { (exit 1); exit 1; }; }
19462 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19463 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19464 Usually this means the macro was only invoked conditionally." >&5
19465 echo "$as_me: error: conditional \"XAS\" was never defined.
19466 Usually this means the macro was only invoked conditionally." >&2;}
19467 { (exit 1); exit 1; }; }
19469 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19470 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19471 Usually this means the macro was only invoked conditionally." >&5
19472 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19473 Usually this means the macro was only invoked conditionally." >&2;}
19474 { (exit 1); exit 1; }; }
19476 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19477 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19478 Usually this means the macro was only invoked conditionally." >&5
19479 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19480 Usually this means the macro was only invoked conditionally." >&2;}
19481 { (exit 1); exit 1; }; }
19483 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19484 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19485 Usually this means the macro was only invoked conditionally." >&5
19486 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19487 Usually this means the macro was only invoked conditionally." >&2;}
19488 { (exit 1); exit 1; }; }
19490 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19491 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19492 Usually this means the macro was only invoked conditionally." >&5
19493 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19494 Usually this means the macro was only invoked conditionally." >&2;}
19495 { (exit 1); exit 1; }; }
19497 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19498 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19499 Usually this means the macro was only invoked conditionally." >&5
19500 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19501 Usually this means the macro was only invoked conditionally." >&2;}
19502 { (exit 1); exit 1; }; }
19504 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19505 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19506 Usually this means the macro was only invoked conditionally." >&5
19507 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19508 Usually this means the macro was only invoked conditionally." >&2;}
19509 { (exit 1); exit 1; }; }
19511 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19512 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19513 Usually this means the macro was only invoked conditionally." >&5
19514 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19515 Usually this means the macro was only invoked conditionally." >&2;}
19516 { (exit 1); exit 1; }; }
19518 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19519 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19520 Usually this means the macro was only invoked conditionally." >&5
19521 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19522 Usually this means the macro was only invoked conditionally." >&2;}
19523 { (exit 1); exit 1; }; }
19526 : ${CONFIG_STATUS=./config.status}
19527 ac_clean_files_save
=$ac_clean_files
19528 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19529 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19530 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19531 cat >$CONFIG_STATUS <<_ACEOF
19533 # Generated by $as_me.
19534 # Run this file to recreate the current configuration.
19535 # Compiler output produced by configure, useful for debugging
19536 # configure, is in config.log if it exists.
19539 ac_cs_recheck=false
19541 SHELL=\${CONFIG_SHELL-$SHELL}
19544 cat >>$CONFIG_STATUS <<\_ACEOF
19545 ## --------------------- ##
19546 ## M4sh Initialization. ##
19547 ## --------------------- ##
19549 # Be Bourne compatible
19550 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19553 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19554 # is contrary to our usage. Disable this feature.
19555 alias -g '${1+"$@"}'='"$@"'
19556 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19559 DUALCASE
=1; export DUALCASE
# for MKS sh
19561 # Support unset when possible.
19562 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19569 # Work around bugs in pre-3.0 UWIN ksh.
19570 $as_unset ENV MAIL MAILPATH
19577 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19578 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19579 LC_TELEPHONE LC_TIME
19581 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19582 eval $as_var=C
; export $as_var
19588 # Required to use basename.
19589 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19595 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19596 as_basename
=basename
19602 # Name of the executable.
19603 as_me
=`$as_basename "$0" ||
19604 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19605 X"$0" : 'X\(//\)$' \| \
19606 X"$0" : 'X\(/\)$' \| \
19607 . : '\(.\)' 2>/dev/null ||
19609 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19610 /^X\/\(\/\/\)$/{ s//\1/; q; }
19611 /^X\/\(\/\).*/{ s//\1/; q; }
19615 # PATH needs CR, and LINENO needs CR and PATH.
19616 # Avoid depending upon Character Ranges.
19617 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19618 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19619 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19620 as_cr_digits
='0123456789'
19621 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19623 # The user is always right.
19624 if test "${PATH_SEPARATOR+set}" != set; then
19625 echo "#! /bin/sh" >conf$$.sh
19626 echo "exit 0" >>conf$$.sh
19628 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19637 as_lineno_1
=$LINENO
19638 as_lineno_2
=$LINENO
19639 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19640 test "x$as_lineno_1" != "x$as_lineno_2" &&
19641 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19642 # Find who we are. Look in the path if we contain no path at all
19645 *[\\/]* ) as_myself
=$0 ;;
19646 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19647 for as_dir
in $PATH
19650 test -z "$as_dir" && as_dir
=.
19651 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19656 # We did not find ourselves, most probably we were run as `sh COMMAND'
19657 # in which case we are not to be found in the path.
19658 if test "x$as_myself" = x
; then
19661 if test ! -f "$as_myself"; then
19662 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19663 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19664 { (exit 1); exit 1; }; }
19666 case $CONFIG_SHELL in
19668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19669 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19672 test -z "$as_dir" && as_dir
=.
19673 for as_base
in sh bash ksh sh5
; do
19676 if ("$as_dir/$as_base" -c '
19677 as_lineno_1=$LINENO
19678 as_lineno_2=$LINENO
19679 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19680 test "x$as_lineno_1" != "x$as_lineno_2" &&
19681 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19682 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19683 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19684 CONFIG_SHELL
=$as_dir/$as_base
19685 export CONFIG_SHELL
19686 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19694 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19695 # uniformly replaced by the line number. The first 'sed' inserts a
19696 # line-number line before each line; the second 'sed' does the real
19697 # work. The second script uses 'N' to pair each line-number line
19698 # with the numbered line, and appends trailing '-' during
19699 # substitution so that $LINENO is not a special case at line end.
19700 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19701 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19702 sed '=' <$as_myself |
19707 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19710 s,^['$as_cr_digits']*\n,,
19711 ' >$as_me.lineno
&&
19712 chmod +x
$as_me.lineno ||
19713 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19714 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19715 { (exit 1); exit 1; }; }
19717 # Don't try to exec as it changes $[0], causing all sort of problems
19718 # (the dirname of $[0] is not the place where we might find the
19719 # original and so on. Autoconf is especially sensible to this).
19721 # Exit status is that of the last command.
19726 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19727 *c
*,-n*) ECHO_N
= ECHO_C
='
19729 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19730 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19733 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19739 rm -f conf$$ conf$$.exe conf$$.
file
19741 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19742 # We could just check for DJGPP; but this test a) works b) is more generic
19743 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19744 if test -f conf$$.exe
; then
19745 # Don't use ln at all; we don't have any links
19750 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19755 rm -f conf$$ conf$$.exe conf$$.
file
19757 if mkdir
-p .
2>/dev
/null
; then
19760 test -d .
/-p && rmdir .
/-p
19764 as_executable_p
="test -f"
19766 # Sed expression to map a string onto a valid CPP name.
19767 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19769 # Sed expression to map a string onto a valid variable name.
19770 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19774 # We need space, tab and new line, in precisely that order.
19784 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19785 # report actual input values of CONFIG_FILES etc. instead of their
19786 # values after options handling. Logging --version etc. is OK.
19790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19791 ## Running $as_me. ##
19796 This file was extended by aMule $as_me SVN, which was
19797 generated by GNU Autoconf 2.59. Invocation command line was
19799 CONFIG_FILES = $CONFIG_FILES
19800 CONFIG_HEADERS = $CONFIG_HEADERS
19801 CONFIG_LINKS = $CONFIG_LINKS
19802 CONFIG_COMMANDS = $CONFIG_COMMANDS
19806 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19810 # Files that config.status was made for.
19811 if test -n "$ac_config_files"; then
19812 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19815 if test -n "$ac_config_headers"; then
19816 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19819 if test -n "$ac_config_links"; then
19820 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19823 if test -n "$ac_config_commands"; then
19824 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19827 cat >>$CONFIG_STATUS <<\_ACEOF
19830 \`$as_me' instantiates files from templates according to the
19831 current configuration.
19833 Usage: $0 [OPTIONS] [FILE]...
19835 -h, --help print this help, then exit
19836 -V, --version print version number, then exit
19837 -q, --quiet do not print progress messages
19838 -d, --debug don't remove temporary files
19839 --recheck update $as_me by reconfiguring in the same conditions
19840 --file=FILE[:TEMPLATE]
19841 instantiate the configuration file FILE
19842 --header=FILE[:TEMPLATE]
19843 instantiate the configuration header FILE
19845 Configuration files:
19848 Configuration headers:
19851 Configuration commands:
19854 Report bugs to <bug-autoconf@gnu.org>."
19857 cat >>$CONFIG_STATUS <<_ACEOF
19859 aMule config.status SVN
19860 configured by $0, generated by GNU Autoconf 2.59,
19861 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19863 Copyright (C) 2003 Free Software Foundation, Inc.
19864 This config.status script is free software; the Free Software Foundation
19865 gives unlimited permission to copy, distribute and modify it."
19870 cat >>$CONFIG_STATUS <<\_ACEOF
19871 # If no file are specified by the user, then we need to provide default
19872 # value. By we need to know if files were specified by the user.
19878 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19879 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19887 *) # This is not an option, so the user has probably given explicit
19890 ac_need_defaults
=false
;;
19894 # Handling of the options.
19896 cat >>$CONFIG_STATUS <<\_ACEOF
19897 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19899 --version |
--vers* |
-V )
19900 echo "$ac_cs_version"; exit 0 ;;
19902 # Conflict between --help and --header
19903 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19904 Try \`$0 --help' for more information." >&5
19905 echo "$as_me: error: ambiguous option: $1
19906 Try \`$0 --help' for more information." >&2;}
19907 { (exit 1); exit 1; }; };;
19908 --help |
--hel |
-h )
19909 echo "$ac_cs_usage"; exit 0 ;;
19910 --debug |
--d* |
-d )
19912 --file |
--fil |
--fi |
--f )
19914 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19915 ac_need_defaults
=false
;;
19916 --header |
--heade |
--head |
--hea )
19918 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19919 ac_need_defaults
=false
;;
19920 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19921 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19924 # This is an error.
19925 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19926 Try \`$0 --help' for more information." >&5
19927 echo "$as_me: error: unrecognized option: $1
19928 Try \`$0 --help' for more information." >&2;}
19929 { (exit 1); exit 1; }; } ;;
19931 *) ac_config_targets
="$ac_config_targets $1" ;;
19937 ac_configure_extra_args
=
19939 if $ac_cs_silent; then
19941 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19945 cat >>$CONFIG_STATUS <<_ACEOF
19946 if \$ac_cs_recheck; then
19947 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19948 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19953 cat >>$CONFIG_STATUS <<_ACEOF
19955 # INIT-COMMANDS section.
19958 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19959 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19960 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19962 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19963 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19964 LINGUAS="${LINGUAS-%UNSET%}"
19966 denoiserlevel=$with_denoise_level
19972 cat >>$CONFIG_STATUS <<\_ACEOF
19973 for ac_config_target
in $ac_config_targets
19975 case "$ac_config_target" in
19976 # Handling of arguments.
19977 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19978 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
19979 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
19980 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
19981 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19982 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
19983 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19984 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
19985 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
19986 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19987 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
19988 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
19989 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19990 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19991 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19992 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
19993 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19994 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19995 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19996 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19997 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19998 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
19999 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20000 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20001 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
20002 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
20003 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
20004 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
20005 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
20006 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20007 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20008 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20009 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20010 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20011 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20012 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20013 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20014 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20015 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20017 { (exit 1); exit 1; }; };;
20021 # If the user did not use the arguments to specify the items to instantiate,
20022 # then the envvar interface is used. Set only those that are not.
20023 # We use the long form for the default assignment because of an extremely
20024 # bizarre bug on SunOS 4.1.3.
20025 if $ac_need_defaults; then
20026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20031 # Have a temporary directory for convenience. Make it in the build tree
20032 # simply because there is no reason to put it here, and in addition,
20033 # creating and moving files from /tmp can sometimes cause problems.
20034 # Create a temporary directory, and hook for its removal unless debugging.
20037 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20038 trap '{ (exit 1); exit 1; }' 1 2 13 15
20041 # Create a (secure) tmp directory for tmp files.
20044 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20045 test -n "$tmp" && test -d "$tmp"
20048 tmp
=.
/confstat$$
-$RANDOM
20049 (umask 077 && mkdir
$tmp)
20052 echo "$me: cannot create a temporary directory in ." >&2
20053 { (exit 1); exit 1; }
20058 cat >>$CONFIG_STATUS <<_ACEOF
20061 # CONFIG_FILES section.
20064 # No need to generate the scripts if there are no CONFIG_FILES.
20065 # This happens for instance when ./config.status config.h
20066 if test -n "\$CONFIG_FILES"; then
20067 # Protect against being on the right side of a sed subst in config.status.
20068 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20069 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20070 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20071 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20072 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20073 s,@SHELL@,$SHELL,;t t
20074 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20075 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20076 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20077 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20078 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20079 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20080 s,@exec_prefix@,$exec_prefix,;t t
20081 s,@prefix@,$prefix,;t t
20082 s,@program_transform_name@,$program_transform_name,;t t
20083 s,@bindir@,$bindir,;t t
20084 s,@sbindir@,$sbindir,;t t
20085 s,@libexecdir@,$libexecdir,;t t
20086 s,@datadir@,$datadir,;t t
20087 s,@sysconfdir@,$sysconfdir,;t t
20088 s,@sharedstatedir@,$sharedstatedir,;t t
20089 s,@localstatedir@,$localstatedir,;t t
20090 s,@libdir@,$libdir,;t t
20091 s,@includedir@,$includedir,;t t
20092 s,@oldincludedir@,$oldincludedir,;t t
20093 s,@infodir@,$infodir,;t t
20094 s,@mandir@,$mandir,;t t
20095 s,@build_alias@,$build_alias,;t t
20096 s,@host_alias@,$host_alias,;t t
20097 s,@target_alias@,$target_alias,;t t
20098 s,@DEFS@,$DEFS,;t t
20099 s,@ECHO_C@,$ECHO_C,;t t
20100 s,@ECHO_N@,$ECHO_N,;t t
20101 s,@ECHO_T@,$ECHO_T,;t t
20102 s,@LIBS@,$LIBS,;t t
20103 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20104 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20105 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20106 s,@CYGPATH_W@,$CYGPATH_W,;t t
20107 s,@PACKAGE@,$PACKAGE,;t t
20108 s,@VERSION@,$VERSION,;t t
20109 s,@ACLOCAL@,$ACLOCAL,;t t
20110 s,@AUTOCONF@,$AUTOCONF,;t t
20111 s,@AUTOMAKE@,$AUTOMAKE,;t t
20112 s,@AUTOHEADER@,$AUTOHEADER,;t t
20113 s,@MAKEINFO@,$MAKEINFO,;t t
20114 s,@install_sh@,$install_sh,;t t
20115 s,@STRIP@,$STRIP,;t t
20116 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20117 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20118 s,@mkdir_p@,$mkdir_p,;t t
20120 s,@SET_MAKE@,$SET_MAKE,;t t
20121 s,@am__leading_dot@,$am__leading_dot,;t t
20122 s,@AMTAR@,$AMTAR,;t t
20123 s,@am__tar@,$am__tar,;t t
20124 s,@am__untar@,$am__untar,;t t
20125 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20126 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20127 s,@MAINT@,$MAINT,;t t
20128 s,@build@,$build,;t t
20129 s,@build_cpu@,$build_cpu,;t t
20130 s,@build_vendor@,$build_vendor,;t t
20131 s,@build_os@,$build_os,;t t
20132 s,@host@,$host,;t t
20133 s,@host_cpu@,$host_cpu,;t t
20134 s,@host_vendor@,$host_vendor,;t t
20135 s,@host_os@,$host_os,;t t
20136 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20137 s,@X11LIBS@,$X11LIBS,;t t
20138 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20139 s,@MULECFLAGS@,$MULECFLAGS,;t t
20140 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20141 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20142 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20144 s,@CXXFLAGS@,$CXXFLAGS,;t t
20145 s,@LDFLAGS@,$LDFLAGS,;t t
20146 s,@CPPFLAGS@,$CPPFLAGS,;t t
20147 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20148 s,@EXEEXT@,$EXEEXT,;t t
20149 s,@OBJEXT@,$OBJEXT,;t t
20150 s,@DEPDIR@,$DEPDIR,;t t
20151 s,@am__include@,$am__include,;t t
20152 s,@am__quote@,$am__quote,;t t
20153 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20154 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20155 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20156 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20157 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20158 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20159 s,@CXXCPP@,$CXXCPP,;t t
20161 s,@CFLAGS@,$CFLAGS,;t t
20162 s,@ac_ct_CC@,$ac_ct_CC,;t t
20163 s,@CCDEPMODE@,$CCDEPMODE,;t t
20164 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20165 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20167 s,@BUILD_CC@,$BUILD_CC,;t t
20168 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20169 s,@EXEEXT@,$EXEEXT,;t t
20170 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20171 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20172 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20173 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20174 s,@EGREP@,$EGREP,;t t
20176 s,@LEXLIB@,$LEXLIB,;t t
20177 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20178 s,@RANLIB@,$RANLIB,;t t
20179 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20180 s,@YACC@,$YACC,;t t
20182 s,@ac_ct_AR@,$ac_ct_AR,;t t
20184 s,@ac_ct_LD@,$ac_ct_LD,;t t
20185 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20186 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20187 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20188 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20189 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20190 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20191 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20192 s,@CAS_DEFS@,$CAS_DEFS,;t t
20193 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20194 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20195 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20196 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20197 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20198 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20199 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20200 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20201 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20202 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20203 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20204 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20205 s,@WX_LIBS@,$WX_LIBS,;t t
20206 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20207 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20208 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20209 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20210 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20211 s,@WX_UNICODE@,$WX_UNICODE,;t t
20212 s,@WX_DEBUG@,$WX_DEBUG,;t t
20213 s,@WX_SHARED@,$WX_SHARED,;t t
20214 s,@WX_PORT@,$WX_PORT,;t t
20215 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20216 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20218 s,@RCFLAGS@,$RCFLAGS,;t t
20219 s,@ac_ct_RC@,$ac_ct_RC,;t t
20220 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20221 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20222 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20223 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20224 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20225 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20226 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20227 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20228 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20229 s,@ALLOCA@,$ALLOCA,;t t
20230 s,@LIBOBJS@,$LIBOBJS,;t t
20231 s,@POW_LIB@,$POW_LIB,;t t
20232 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20233 s,@MSGFMT@,$MSGFMT,;t t
20234 s,@GMSGFMT@,$GMSGFMT,;t t
20235 s,@XGETTEXT@,$XGETTEXT,;t t
20236 s,@MSGMERGE@,$MSGMERGE,;t t
20237 s,@GLIBC21@,$GLIBC21,;t t
20238 s,@LIBICONV@,$LIBICONV,;t t
20239 s,@LTLIBICONV@,$LTLIBICONV,;t t
20240 s,@INTLBISON@,$INTLBISON,;t t
20241 s,@USE_NLS@,$USE_NLS,;t t
20242 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20243 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20244 s,@CATOBJEXT@,$CATOBJEXT,;t t
20245 s,@INTLOBJS@,$INTLOBJS,;t t
20246 s,@DATADIRNAME@,$DATADIRNAME,;t t
20247 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20248 s,@GENCAT@,$GENCAT,;t t
20249 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20250 s,@INTLLIBS@,$INTLLIBS,;t t
20251 s,@LIBINTL@,$LIBINTL,;t t
20252 s,@LTLIBINTL@,$LTLIBINTL,;t t
20253 s,@POSUB@,$POSUB,;t t
20254 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20255 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20256 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20257 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20258 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20259 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20260 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20261 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20262 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20263 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20264 s,@INCINTL@,$INCINTL,;t t
20265 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20266 s,@BFD_LIBS@,$BFD_LIBS,;t t
20267 s,@docdir@,$docdir,;t t
20268 s,@SVNDATE@,$SVNDATE,;t t
20269 s,@WEB_TRUE@,$WEB_TRUE,;t t
20270 s,@WEB_FALSE@,$WEB_FALSE,;t t
20271 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20272 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20273 s,@CAS_TRUE@,$CAS_TRUE,;t t
20274 s,@CAS_FALSE@,$CAS_FALSE,;t t
20275 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20276 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20277 s,@ALC_TRUE@,$ALC_TRUE,;t t
20278 s,@ALC_FALSE@,$ALC_FALSE,;t t
20279 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20280 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20281 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20282 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20283 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20284 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20285 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20286 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20287 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20288 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20289 s,@XAS_TRUE@,$XAS_TRUE,;t t
20290 s,@XAS_FALSE@,$XAS_FALSE,;t t
20291 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20292 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20293 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20294 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20295 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20296 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20297 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20298 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20299 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20300 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20301 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20302 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20303 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20304 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20305 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20306 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20307 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20308 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20313 cat >>$CONFIG_STATUS <<\_ACEOF
20314 # Split the substitutions into bite-sized pieces for seds with
20315 # small command number limits, like on Digital OSF/1 and HP-UX.
20316 ac_max_sed_lines
=48
20317 ac_sed_frag
=1 # Number of current file.
20318 ac_beg
=1 # First line for current file.
20319 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20322 while $ac_more_lines; do
20323 if test $ac_beg -gt 1; then
20324 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20326 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20328 if test ! -s $tmp/subs.frag
; then
20329 ac_more_lines
=false
20331 # The purpose of the label and of the branching condition is to
20332 # speed up the sed processing (if there are no `@' at all, there
20333 # is no need to browse any of the substitutions).
20334 # These are the two extra sed commands mentioned above.
20336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20337 if test -z "$ac_sed_cmds"; then
20338 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20340 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20342 ac_sed_frag
=`expr $ac_sed_frag + 1`
20344 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20347 if test -z "$ac_sed_cmds"; then
20350 fi # test -n "$CONFIG_FILES"
20353 cat >>$CONFIG_STATUS <<\_ACEOF
20354 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20357 - |
*:- |
*:-:* ) # input from stdin
20359 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20360 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20361 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20362 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20363 * ) ac_file_in
=$ac_file.
in ;;
20366 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20367 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20369 X"$ac_file" : 'X\(//\)[^/]' \| \
20370 X"$ac_file" : 'X\(//\)$' \| \
20371 X"$ac_file" : 'X\(/\)' \| \
20372 . : '\(.\)' 2>/dev/null ||
20374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20376 /^X\(\/\/\)$/{ s//\1/; q; }
20377 /^X\(\/\).*/{ s//\1/; q; }
20379 { if $as_mkdir_p; then
20384 while test ! -d "$as_dir"; do
20385 as_dirs
="$as_dir $as_dirs"
20386 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20388 X"$as_dir" : 'X\(//\)[^/]' \| \
20389 X"$as_dir" : 'X\(//\)$' \| \
20390 X"$as_dir" : 'X\(/\)' \| \
20391 . : '\(.\)' 2>/dev/null ||
20393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20395 /^X\(\/\/\)$/{ s//\1/; q; }
20396 /^X\(\/\).*/{ s//\1/; q; }
20399 test ! -n "$as_dirs" || mkdir
$as_dirs
20400 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20401 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20402 { (exit 1); exit 1; }; }; }
20406 if test "$ac_dir" != .
; then
20407 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20408 # A "../" for each directory in $ac_dir_suffix.
20409 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20411 ac_dir_suffix
= ac_top_builddir
=
20415 .
) # No --srcdir option. We are building in place.
20417 if test -z "$ac_top_builddir"; then
20420 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20422 [\\/]* | ?
:[\\/]* ) # Absolute path.
20423 ac_srcdir
=$srcdir$ac_dir_suffix;
20424 ac_top_srcdir
=$srcdir ;;
20425 *) # Relative path.
20426 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20427 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20430 # Do not use `cd foo && pwd` to compute absolute paths, because
20431 # the directories may not exist.
20433 .
) ac_abs_builddir
="$ac_dir";;
20436 .
) ac_abs_builddir
=`pwd`;;
20437 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20438 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20441 case $ac_abs_builddir in
20442 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20444 case ${ac_top_builddir}.
in
20445 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20446 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20447 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20450 case $ac_abs_builddir in
20451 .
) ac_abs_srcdir
=$ac_srcdir;;
20454 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20455 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20456 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20459 case $ac_abs_builddir in
20460 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20462 case $ac_top_srcdir in
20463 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20464 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20465 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20471 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20472 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20475 if test x
"$ac_file" != x-
; then
20476 { echo "$as_me:$LINENO: creating $ac_file" >&5
20477 echo "$as_me: creating $ac_file" >&6;}
20480 # Let's still pretend it is `configure' which instantiates (i.e., don't
20481 # use $as_me), people would be surprised to read:
20482 # /* config.h. Generated by config.status. */
20483 if test x
"$ac_file" = x-
; then
20486 configure_input
="$ac_file. "
20488 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20489 sed 's,.*/,,'` by configure."
20491 # First look for the input files in the build tree, otherwise in the
20493 ac_file_inputs
=`IFS=:
20494 for f in $ac_file_in; do
20496 -) echo $tmp/stdin ;;
20498 # Absolute (can't be DOS-style, as IFS=:)
20499 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20500 echo "$as_me: error: cannot find input file: $f" >&2;}
20501 { (exit 1); exit 1; }; }
20504 if test -f "$f"; then
20507 elif test -f "$srcdir/$f"; then
20512 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20513 echo "$as_me: error: cannot find input file: $f" >&2;}
20514 { (exit 1); exit 1; }; }
20517 done` ||
{ (exit 1); exit 1; }
20519 cat >>$CONFIG_STATUS <<_ACEOF
20523 cat >>$CONFIG_STATUS <<\_ACEOF
20525 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20526 s
,@configure_input@
,$configure_input,;t t
20527 s
,@srcdir@
,$ac_srcdir,;t t
20528 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20529 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20530 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20531 s
,@builddir@
,$ac_builddir,;t t
20532 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20533 s
,@top_builddir@
,$ac_top_builddir,;t t
20534 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20535 s
,@INSTALL@
,$ac_INSTALL,;t t
20536 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20538 if test x"$ac_file" != x-; then
20539 mv $tmp/out $ac_file
20547 cat >>$CONFIG_STATUS <<\_ACEOF
20550 # CONFIG_HEADER section.
20553 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20554 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20556 # ac_d sets the value in "#define NAME VALUE" lines.
20557 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20558 ac_dB
='[ ].*$,\1#\2'
20561 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20562 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20563 ac_uB
='$,\1#\2define\3'
20567 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20568 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20570 - |
*:- |
*:-:* ) # input from stdin
20572 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20573 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20574 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20575 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20576 * ) ac_file_in
=$ac_file.
in ;;
20579 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20580 echo "$as_me: creating $ac_file" >&6;}
20582 # First look for the input files in the build tree, otherwise in the
20584 ac_file_inputs
=`IFS=:
20585 for f in $ac_file_in; do
20587 -) echo $tmp/stdin ;;
20589 # Absolute (can't be DOS-style, as IFS=:)
20590 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20591 echo "$as_me: error: cannot find input file: $f" >&2;}
20592 { (exit 1); exit 1; }; }
20593 # Do quote $f, to prevent DOS paths from being IFS'd.
20596 if test -f "$f"; then
20599 elif test -f "$srcdir/$f"; then
20604 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20605 echo "$as_me: error: cannot find input file: $f" >&2;}
20606 { (exit 1); exit 1; }; }
20609 done` ||
{ (exit 1); exit 1; }
20610 # Remove the trailing spaces.
20611 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20615 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20616 # `conftest.undefs', that substitutes the proper values into
20617 # config.h.in to produce config.h. The first handles `#define'
20618 # templates, and the second `#undef' templates.
20619 # And first: Protect against being on the right side of a sed subst in
20620 # config.status. Protect against being in an unquoted here document
20621 # in config.status.
20622 rm -f conftest.defines conftest.undefs
20623 # Using a here document instead of a string reduces the quoting nightmare.
20624 # Putting comments in sed scripts is not portable.
20626 # `end' is used to avoid that the second main sed command (meant for
20627 # 0-ary CPP macros) applies to n-ary macro definitions.
20628 # See the Autoconf documentation for `clear'.
20629 cat >confdef2sed.
sed <<\_ACEOF
20634 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20636 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20639 # If some macros were called several times there might be several times
20640 # the same #defines, which is useless. Nevertheless, we may not want to
20641 # sort them, since we want the *last* AC-DEFINE to be honored.
20642 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20643 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20644 rm -f confdef2sed.sed
20646 # This sed command replaces #undef with comments. This is necessary, for
20647 # example, in the case of _POSIX_SOURCE, which is predefined and required
20648 # on some systems where configure will not decide to define it.
20649 cat >>conftest.undefs <<\_ACEOF
20650 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20653 # Break up conftest.defines because some shells have a limit on the size
20654 # of here documents, and old seds have small limits too (100 cmds).
20655 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20656 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20657 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20658 echo ' :' >>$CONFIG_STATUS
20659 rm -f conftest.tail
20660 while grep . conftest.defines >/dev/null
20662 # Write a limited-size here document to $tmp/defines.sed.
20663 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20664 # Speed up: don't consider the non `#define' lines.
20665 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20666 # Work around the forget-to-reset-the-flag bug.
20667 echo 't clr' >>$CONFIG_STATUS
20668 echo ': clr' >>$CONFIG_STATUS
20669 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20671 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20673 mv $tmp/out $tmp/in
20675 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20676 rm -f conftest.defines
20677 mv conftest.
tail conftest.defines
20679 rm -f conftest.defines
20680 echo ' fi # grep' >>$CONFIG_STATUS
20681 echo >>$CONFIG_STATUS
20683 # Break up conftest.undefs because some shells have a limit on the size
20684 # of here documents, and old seds have small limits too (100 cmds).
20685 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20686 rm -f conftest.
tail
20687 while grep . conftest.undefs
>/dev
/null
20689 # Write a limited-size here document to $tmp/undefs.sed.
20690 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20691 # Speed up: don't consider the non
`#undef'
20692 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20693 # Work around the forget-to-reset-the-flag bug.
20694 echo 't clr' >>$CONFIG_STATUS
20695 echo ': clr' >>$CONFIG_STATUS
20696 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20698 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20700 mv $tmp/out $tmp/in
20702 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20703 rm -f conftest.undefs
20704 mv conftest.tail conftest.undefs
20706 rm -f conftest.undefs
20708 cat >>$CONFIG_STATUS <<\_ACEOF
20709 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20710 # use $as_me), people would be surprised to read:
20711 # /* config.h. Generated by config.status. */
20712 if test x
"$ac_file" = x-
; then
20713 echo "/* Generated by configure. */" >$tmp/config.h
20715 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20717 cat $tmp/in >>$tmp/config.h
20719 if test x
"$ac_file" != x-
; then
20720 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20721 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20722 echo "$as_me: $ac_file is unchanged" >&6;}
20724 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20726 X"$ac_file" : 'X\(//\)[^/]' \| \
20727 X"$ac_file" : 'X\(//\)$' \| \
20728 X"$ac_file" : 'X\(/\)' \| \
20729 . : '\(.\)' 2>/dev/null ||
20731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20733 /^X\(\/\/\)$/{ s//\1/; q; }
20734 /^X\(\/\).*/{ s//\1/; q; }
20736 { if $as_mkdir_p; then
20741 while test ! -d "$as_dir"; do
20742 as_dirs
="$as_dir $as_dirs"
20743 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20745 X"$as_dir" : 'X\(//\)[^/]' \| \
20746 X"$as_dir" : 'X\(//\)$' \| \
20747 X"$as_dir" : 'X\(/\)' \| \
20748 . : '\(.\)' 2>/dev/null ||
20750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20752 /^X\(\/\/\)$/{ s//\1/; q; }
20753 /^X\(\/\).*/{ s//\1/; q; }
20756 test ! -n "$as_dirs" || mkdir
$as_dirs
20757 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20758 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20759 { (exit 1); exit 1; }; }; }
20762 mv $tmp/config.h
$ac_file
20766 rm -f $tmp/config.h
20768 # Compute $ac_file's index in $config_headers.
20770 for _am_header
in $config_headers :; do
20771 case $_am_header in
20772 $ac_file |
$ac_file:* )
20775 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20778 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20779 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20780 X$ac_file : 'X\(//\)[^/]' \| \
20781 X$ac_file : 'X\(//\)$' \| \
20782 X$ac_file : 'X\(/\)' \| \
20783 . : '\(.\)' 2>/dev/null ||
20785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20787 /^X\(\/\/\)$/{ s//\1/; q; }
20788 /^X\(\/\).*/{ s//\1/; q; }
20789 s/.*/./; q'`/stamp-h
$_am_stamp_count
20792 cat >>$CONFIG_STATUS <<\_ACEOF
20795 # CONFIG_COMMANDS section.
20797 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20798 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20799 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20800 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20801 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20802 X"$ac_dest" : 'X\(//\)[^/]' \| \
20803 X"$ac_dest" : 'X\(//\)$' \| \
20804 X"$ac_dest" : 'X\(/\)' \| \
20805 . : '\(.\)' 2>/dev/null ||
20807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20809 /^X\(\/\/\)$/{ s//\1/; q; }
20810 /^X\(\/\).*/{ s//\1/; q; }
20812 { if $as_mkdir_p; then
20817 while test ! -d "$as_dir"; do
20818 as_dirs
="$as_dir $as_dirs"
20819 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20821 X"$as_dir" : 'X\(//\)[^/]' \| \
20822 X"$as_dir" : 'X\(//\)$' \| \
20823 X"$as_dir" : 'X\(/\)' \| \
20824 . : '\(.\)' 2>/dev/null ||
20826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20828 /^X\(\/\/\)$/{ s//\1/; q; }
20829 /^X\(\/\).*/{ s//\1/; q; }
20832 test ! -n "$as_dirs" || mkdir
$as_dirs
20833 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20834 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20835 { (exit 1); exit 1; }; }; }
20839 if test "$ac_dir" != .
; then
20840 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20841 # A "../" for each directory in $ac_dir_suffix.
20842 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20844 ac_dir_suffix
= ac_top_builddir
=
20848 .
) # No --srcdir option. We are building in place.
20850 if test -z "$ac_top_builddir"; then
20853 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20855 [\\/]* | ?
:[\\/]* ) # Absolute path.
20856 ac_srcdir
=$srcdir$ac_dir_suffix;
20857 ac_top_srcdir
=$srcdir ;;
20858 *) # Relative path.
20859 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20860 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20863 # Do not use `cd foo && pwd` to compute absolute paths, because
20864 # the directories may not exist.
20866 .
) ac_abs_builddir
="$ac_dir";;
20869 .
) ac_abs_builddir
=`pwd`;;
20870 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20871 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20874 case $ac_abs_builddir in
20875 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20877 case ${ac_top_builddir}.
in
20878 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20879 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20880 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20883 case $ac_abs_builddir in
20884 .
) ac_abs_srcdir
=$ac_srcdir;;
20887 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20888 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20889 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20892 case $ac_abs_builddir in
20893 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20895 case $ac_top_srcdir in
20896 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20897 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20898 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20903 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20904 echo "$as_me: executing $ac_dest commands" >&6;}
20906 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20907 # Strip MF so we end up with the name of the file.
20908 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20909 # Check whether this is an Automake generated Makefile or not.
20910 # We used to match only the files named `Makefile.in', but
20911 # some people rename them; so instead we look at the file content.
20912 # Grep'ing the first line is not enough: some people post-process
20913 # each Makefile.in and add a new line on top of each file to say so.
20914 # So let's grep whole file.
20915 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
20916 dirpart
=`(dirname "$mf") 2>/dev/null ||
20917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20918 X"$mf" : 'X\(//\)[^/]' \| \
20919 X"$mf" : 'X\(//\)$' \| \
20920 X"$mf" : 'X\(/\)' \| \
20921 . : '\(.\)' 2>/dev/null ||
20923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20925 /^X\(\/\/\)$/{ s//\1/; q; }
20926 /^X\(\/\).*/{ s//\1/; q; }
20931 # Extract the definition of DEPDIR, am__include, and am__quote
20932 # from the Makefile without running `make'.
20933 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20934 test -z "$DEPDIR" && continue
20935 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20936 test -z "am__include" && continue
20937 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20938 # When using ansi2knr, U may be empty or an underscore; expand it
20939 U
=`sed -n 's/^U = //p' < "$mf"`
20940 # Find all dependency output files, they are included files with
20941 # $(DEPDIR) in their names. We invoke sed twice because it is the
20942 # simplest approach to changing $(DEPDIR) to its actual value in the
20944 for file in `sed -n "
20945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20947 # Make sure the directory exists.
20948 test -f "$dirpart/$file" && continue
20949 fdir
=`(dirname "$file") 2>/dev/null ||
20950 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20951 X"$file" : 'X\(//\)[^/]' \| \
20952 X"$file" : 'X\(//\)$' \| \
20953 X"$file" : 'X\(/\)' \| \
20954 . : '\(.\)' 2>/dev/null ||
20956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20958 /^X\(\/\/\)$/{ s//\1/; q; }
20959 /^X\(\/\).*/{ s//\1/; q; }
20961 { if $as_mkdir_p; then
20962 mkdir
-p $dirpart/$fdir
20964 as_dir
=$dirpart/$fdir
20966 while test ! -d "$as_dir"; do
20967 as_dirs
="$as_dir $as_dirs"
20968 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20970 X"$as_dir" : 'X\(//\)[^/]' \| \
20971 X"$as_dir" : 'X\(//\)$' \| \
20972 X"$as_dir" : 'X\(/\)' \| \
20973 . : '\(.\)' 2>/dev/null ||
20975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20977 /^X\(\/\/\)$/{ s//\1/; q; }
20978 /^X\(\/\).*/{ s//\1/; q; }
20981 test ! -n "$as_dirs" || mkdir
$as_dirs
20982 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20983 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20984 { (exit 1); exit 1; }; }; }
20986 # echo "creating $dirpart/$file"
20987 echo '# dummy' > "$dirpart/$file"
20992 for ac_file
in $CONFIG_FILES; do
20993 # Support "outfile[:infile[:infile...]]"
20995 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
20997 # PO directories have a Makefile.in generated from Makefile.in.in.
20998 case "$ac_file" in */Makefile.
in)
20999 # Adjust a relative srcdir.
21000 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21001 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
21002 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21003 # In autoconf-2.13 it is called $ac_given_srcdir.
21004 # In autoconf-2.50 it is called $srcdir.
21005 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
21006 case "$ac_given_srcdir" in
21007 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
21008 /*) top_srcdir
="$ac_given_srcdir" ;;
21009 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21011 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21012 rm -f "$ac_dir/POTFILES"
21013 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21014 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21015 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21016 # on $ac_dir but don't depend on user-specified configuration
21018 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21019 # The LINGUAS file contains the set of available languages.
21020 if test -n "$ALL_LINGUAS"; then
21021 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21023 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21024 # Hide the ALL_LINGUAS assigment from automake.
21025 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21027 case "$ac_given_srcdir" in
21029 *) srcdirpre
='$(srcdir)/' ;;
21035 for lang
in $ALL_LINGUAS; do
21036 POFILES
="$POFILES $srcdirpre$lang.po"
21037 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21038 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21039 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21041 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21042 # environment variable.
21044 if test -n "$ALL_LINGUAS"; then
21045 for presentlang
in $ALL_LINGUAS; do
21047 if test "%UNSET%" != "$LINGUAS"; then
21048 desiredlanguages
="$LINGUAS"
21050 desiredlanguages
="$ALL_LINGUAS"
21052 for desiredlang
in $desiredlanguages; do
21053 # Use the presentlang catalog if desiredlang is
21054 # a. equal to presentlang, or
21055 # b. a variant of presentlang (because in this case,
21056 # presentlang can be used as a fallback for messages
21057 # which are not translated in the desiredlang catalog).
21058 case "$desiredlang" in
21059 "$presentlang"*) useit
=yes;;
21062 if test $useit = yes; then
21063 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21068 if test -n "$INST_LINGUAS"; then
21069 for lang
in $INST_LINGUAS; do
21070 CATALOGS
="$CATALOGS $lang.gmo"
21073 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21074 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"
21075 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21076 if test -f "$f"; then
21078 *.orig |
*.bak |
*~
) ;;
21079 *) cat "$f" >> "$ac_dir/Makefile" ;;
21087 denoiser
) if test $denoiserlevel -gt 0; then
21088 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21089 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" \
21090 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21091 for i
in `find . -name 'Makefile' -print`; do
21092 if test -n "`head -n 1 $i | grep '^#'`"; then
21093 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21101 cat >>$CONFIG_STATUS <<\_ACEOF
21103 { (exit 0); exit 0; }
21105 chmod +x
$CONFIG_STATUS
21106 ac_clean_files
=$ac_clean_files_save
21109 # configure is writing to config.log, and then calls config.status.
21110 # config.status does its own redirection, appending to config.log.
21111 # Unfortunately, on DOS this fails, as config.log is still kept open
21112 # by configure, so config.status won't be able to write to it; its
21113 # output is simply discarded. So we exec the FD to /dev/null,
21114 # effectively closing config.log, so it can be properly (re)opened and
21115 # appended to by config.status. When coming back to configure, we
21116 # need to make the FD available again.
21117 if test "$no_create" != yes; then
21119 ac_config_status_args
=
21120 test "$silent" = yes &&
21121 ac_config_status_args
="$ac_config_status_args --quiet"
21123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21126 # would make configure fail if this is the last instruction.
21127 $ac_cs_success ||
{ (exit 1); exit 1; }
21131 if test -n "$svndate"; then
21132 SVN_REVISION
=" ($svndate)"
21140 echo " Configure script has finished system check."
21142 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21144 echo " aMule enabled options:"
21146 echo " **** aMule Core ****"
21147 echo " Prefix where aMule should be installed? ${prefix:-none}"
21148 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21149 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21150 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21151 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21152 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21153 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21154 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21155 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21156 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21157 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21160 echo " **** aMule TextClient ****"
21161 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21163 echo " **** aMule WebServer ****"
21164 echo " Should aMule WebServer be built? ${WEB:-no}"
21166 echo " **** aMule ED2K Links Handler ****"
21167 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21169 echo " **** aMuleLinkCreator ****"
21170 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21171 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21173 echo " **** aMule Statistics ****"
21174 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21175 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21176 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21179 echo " **** General Libraries and Tools ****"
21180 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21181 echo " Libraries aMule will use to build:"
21183 if test $WX_DEBUG -eq 1; then
21184 wxinfo
="$wxinfo,debug"
21187 if test $WX_SHARED -eq 1; then
21188 wxinfo
="$wxinfo,shared"
21190 wxinfo
="$wxinfo,static"
21193 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21194 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21195 if test -n "$with_libupnp_prefix"; then
21196 libupnp_place
=" (in $with_libupnp_prefix)"
21199 if test x
${ENABLE_UPNP} = xyes
; then
21200 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21203 if test x
${WEB:-no} != xno
; then
21204 if test $regex_found = no
; then
21205 regex_found
="Not detected"
21207 if test -z "$REGEX_LIB"; then
21210 regex_found
="standalone (in $REGEX_LIB)"
21215 echo " regex $regex_found"
21217 if test ${enable_nls:-yes} = yes; then
21218 if test x
$USE_NLS = xno
; then
21219 libintl_found
="Not detected"
21221 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21222 libintl_found
="included"
21224 libintl_found
="system"
21229 echo " libintl $libintl_found"
21231 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21237 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21238 echo " libGeoIP ${geoip_style}"
21241 if test x
$LIBPNG_VERSION != xnot_needed
; then
21242 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21244 if test x
$GDLIB_VERSION != xnot_needed
; then
21245 echo " libgd ${GDLIB_VERSION:-Not detected}"
21247 echo " zlib ${ZLIB_VERSION:-Not detected}"
21248 if test ${_mule_has_warnings:-no} = yes; then
21251 echo " *** Warnings during configuration ***"
21253 if test ${_mule_warning_0:-no} = yes; then
21256 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21257 Please check that gdlib-config is in your default path, check out
21258 LD_LIBRARY_PATH or equivalent variable.
21259 Or this might also be that your gdlib-config has other name.
21260 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21261 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21262 If you use compiled packages check if you have devel pack installed.
21263 To download the latest version check http://www.boutell.com/gd for sources.
21266 if test ${_mule_warning_1:-no} = yes; then
21269 * amuleweb has been disabled because configure could not find a POSIX
21270 compliant regex library.
21273 if test ${_mule_warning_2:-no} = yes; then
21276 * libpng >= 1.2.0 not found.
21277 amuleweb will be compiled but file download progress bar images will NOT be
21281 if test ${_mule_warning_3:-no} = yes; then
21284 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21287 if test ${_mule_warning_4:-no} = yes; then
21290 * GeoIP support has been disabled because the GeoIP libraries were not found
21293 if test ${_mule_warning_5:-no} = yes; then
21296 * GeoIP support has been disabled because the GeoIP header files were not
21300 if test ${_mule_warning_6:-no} = yes; then
21303 * UPnP code has been disabled because ${libupnp_error}.
21306 if test ${_mule_warning_7:-no} = yes; then
21309 * Cross-compilation detected, so exception handling cannot be tested.
21310 Note that broken exception handling in your compiler may lead to unexpected
21314 if test ${_mule_warning_8:-no} = yes; then
21317 * configure cannot check whether malloc() and realloc() are GNU libc
21318 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21319 configure with the --without-gnu-malloc switch.
21322 if test ${_mule_warning_9:-no} = yes; then
21325 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21329 if test ${_mule_warning_10:-no} = yes; then
21332 * bfd.h not found or unusable, please install binutils development package if
21333 you are a developer or want to help testing aMule