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 LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CXX_set
=${CXX+set}
756 ac_env_CXX_value
=$CXX
757 ac_cv_env_CXX_set
=${CXX+set}
758 ac_cv_env_CXX_value
=$CXX
759 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value
=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CXXCPP_set
=${CXXCPP+set}
772 ac_env_CXXCPP_value
=$CXXCPP
773 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value
=$CXXCPP
775 ac_env_CC_set
=${CC+set}
777 ac_cv_env_CC_set
=${CC+set}
778 ac_cv_env_CC_value
=$CC
779 ac_env_CFLAGS_set
=${CFLAGS+set}
780 ac_env_CFLAGS_value
=$CFLAGS
781 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value
=$CFLAGS
783 ac_env_CPP_set
=${CPP+set}
784 ac_env_CPP_value
=$CPP
785 ac_cv_env_CPP_set
=${CPP+set}
786 ac_cv_env_CPP_value
=$CPP
787 ac_env_RC_set
=${RC+set}
789 ac_cv_env_RC_set
=${RC+set}
790 ac_cv_env_RC_value
=$RC
791 ac_env_RCFLAGS_set
=${RCFLAGS+set}
792 ac_env_RCFLAGS_value
=$RCFLAGS
793 ac_cv_env_RCFLAGS_set
=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value
=$RCFLAGS
795 ac_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value
=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value
=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
866 --x-includes=DIR X include files are
in DIR
867 --x-libraries=DIR X library files are
in DIR
870 --build=BUILD configure
for building on BUILD
[guessed
]
871 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive
) echo "Configuration of aMule SVN:";;
882 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
883 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing
) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule
command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI
(EXPERIMENTAL
)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don
't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-optimize enable code optimization
906 --enable-profile enable code profiling
907 --enable-static produce a statically linked executable
908 --enable-ccache enable ccache support for fast recompilation
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --without-gnu-malloc Don't assume that we use GNU libc compatible
914 malloc
/realloc when cross-compiling
915 --with-zlib=PREFIX use zlib
in PREFIX
916 --with-gdlib-prefix=PREFIX
917 prefix where gdlib is installed
(optional
)
918 --with-gdlib-config=CONFIG
919 gdlib-config
script to use
(optional
)
920 --with-libpng-prefix=PREFIX
921 prefix where libpng is installed
(optional
)
922 --with-libpng-config=CONFIG
923 libpng-config
script to use
(optional
)
924 --with-geoip-headers=DIR
925 GeoIP include files location
926 --with-geoip-lib=DIR GeoIP library location
927 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
929 --with-wx-config=CONFIG wx-config
script to use
(optional
)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed
(optional
)
933 --with-toolkit Build against a specific wxWidgets toolkit
(default
935 --with-wxshared Force building against a shared build of wxWidgets
,
936 even
if --disable-shared is given
(default is auto
)
937 --with-wxdebug Force building against a debug build of wxWidgets
,
938 even
if --disable-debug is given
(default is auto
)
939 --with-wxversion Build against a specific version of wxWidgets
941 --with-libupnp-prefix=PREFIX
942 UPnP library location
943 --with-crypto-prefix=PREFIX
944 prefix where crypto
++ is installed
945 --with-x use the X Window System
946 --with-language=<langs
> Specify a comma-separated list of languages you want
947 to have installed. See po
/LINGUAS
for available
949 --with-gnu-ld assume the C compiler uses GNU ld default
=no
950 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
951 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search
for libintl
in includedir and libdir
955 --with-denoise-level=<level
>
956 Specifies denoising level
(0-4):
958 4 - Suppress all normal output
959 (for more information see
960 src
/utils
/scripts
/denoiser.rules
)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables
:
966 CXX C
++ compiler
command
967 CXXFLAGS C
++ compiler flags
968 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
969 nonstandard directory
<lib dir
>
970 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
971 headers
in a nonstandard directory
<include dir
>
972 CXXCPP C
++ preprocessor
973 CC C compiler
command
974 CFLAGS C compiler flags
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by
`configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
999 ac_dir_suffix= ac_top_builddir=
1003 .) # No --srcdir option. We are building in place.
1005 if test -z "$ac_top_builddir"; then
1008 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1018 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1019 # the directories may not exist.
1021 .) ac_abs_builddir="$ac_dir";;
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1068 $ac_configure --help
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1105 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1106 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1107 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1108 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1109 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1111 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1112 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1114 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1115 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1116 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1117 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1118 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1119 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1120 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1153 ac_must_keep_next=false
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1182 -* ) ac_must_keep_next=true ;;
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close
' the trap.
1200 trap 'exit_status
=$?
1201 # Save into config.log some information that might help in debugging.
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1211 # The following way of writing the cache mishandles newlines in values,
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1234 for ac_var
in $ac_subst_vars
1236 eval ac_val
=$
`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1241 if test -n "$ac_subst_files"; then
1248 for ac_var
in $ac_subst_files
1250 eval ac_val
=$
`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1256 if test -s confdefs.h
; then
1263 sed "/^$/d" confdefs.h |
sort
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1270 rm -f core
*.core
&&
1271 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's
/^
/|
/' "$ac_site_file" >&5
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1346 # Check that the precious variables saved in the cache have kept the same
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1359 ac_cache_corrupted=: ;;
1361 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1368 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1393 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1400 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if test -f $ac_dir/install-sh; then
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1436 elif test -f $ac_dir/install.sh; then
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1440 elif test -f $ac_dir/shtool; then
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 # Account for people who put trailing slashes in PATH elements.
1481 .
/ | .
// |
/cC
/* | \
1482 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1483 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1489 for ac_prog
in ginstall scoinst
install; do
1490 for ac_exec_ext
in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1501 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL
=$ac_cv_path_install
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL
=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1538 echo timestamp
> conftest.
file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1545 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1548 set X
`ls -t $srcdir/configure conftest.file`
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.
file
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE
&&
1580 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE
&&
1583 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF
>conftest.
sed
1587 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1589 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir
=`cd $ac_aux_dir && pwd`
1595 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run
="$MISSING --run "
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p
='mkdir -p --'
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1626 for d
in .
/-p .
/--version;
1628 test -d $d && rmdir $d
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p
='$(mkinstalldirs)'
1634 mkdir_p
='$(install_sh) -d'
1638 for ac_prog
in gawk mawk nawk
awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy
$ac_prog; ac_word
=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir
=.
1655 for ac_exec_ext
in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK
="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 cat >conftest.
make <<\_ACEOF
1686 @
echo 'ac_maketemp="$(MAKE)"'
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_
${ac_make}_set
=yes
1693 eval ac_cv_prog_make_
${ac_make}_set
=no
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE
="MAKE=${MAKE-make}"
1707 rm -rf .tst
2>/dev
/null
1708 mkdir .tst
2>/dev
/null
1709 if test -d .tst
; then
1714 rmdir .tst
2>/dev
/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status
; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1727 CYGPATH_W
='cygpath -w'
1734 # Define the identity of the package.
1739 cat >>confdefs.h
<<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1744 cat >>confdefs.h
<<_ACEOF
1745 #define VERSION "$VERSION"
1748 # Some tools Automake needs.
1750 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no
; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 STRIP
=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP
="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1837 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1848 STRIP
="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1860 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1868 ac_config_headers
="$ac_config_headers config.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval
="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE
=$enableval
1877 USE_MAINTAINER_MODE
=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE
=
1885 MAINTAINER_MODE_FALSE
='#'
1887 MAINTAINER_MODE_TRUE
='#'
1888 MAINTAINER_MODE_FALSE
=
1891 MAINT
=$MAINTAINER_MODE_TRUE
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 ac_cv_build_alias
=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias
=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1922 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 ac_cv_host_alias
=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias
=$ac_cv_build_alias
1935 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1944 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 case "${host_os}" in
1953 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1954 MULELDFLAGS
="-bind_at_load"
1955 touch src
/Scanner.cpp
1959 LIBS
="$LIBS -L/usr/local/lib"
1960 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1961 MULECPPFLAGS
="-D__OPENBSD__"
1963 *cygwin
* |
*mingw32
*)
1965 MULECPPFLAGS
="-DNOMINMAX"
1969 RESOLV_LIB
="-lresolv -lnsl"
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1983 MULECPPFLAGS
="-D__IRIX__"
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32
; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS
="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2003 MULELDFLAGS
="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS
="$CFLAGS"
2016 mule_backup_CXXFLAGS
="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2019 ac_cpp
='$CXXCPP $CPPFLAGS'
2020 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir
=.
2041 for ac_exec_ext
in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2064 if test -z "$CXX"; then
2066 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy
$ac_prog; ac_word
=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir
=.
2083 for ac_exec_ext
in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2105 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler
=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 ac_clean_files_save
=$ac_clean_files
2147 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 # b.out is created by i960 compilers.
2167 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2169 test -f "$ac_file" ||
continue
2171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2174 # This is the source file.
2177 # We found the default executable, but exeext='' is most
2181 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.
$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext
=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try
='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2221 if test "$cross_compiling" = maybe
; then
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2238 ac_clean_files
=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 for ac_file
in conftest.exe conftest conftest.
*; do
2258 test -f "$ac_file" ||
continue
2260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2261 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest
$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.
$ac_ext
2280 EXEEXT
=$ac_cv_exeext
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.
$ac_ext <<_ACEOF
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2311 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.
$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT
=$ac_cv_objext
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 cat >conftest.
$ac_ext <<_ACEOF
2340 cat confdefs.h
>>conftest.
$ac_ext
2341 cat >>conftest.
$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2355 rm -f conftest.
$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1
>conftest.err
2361 cat conftest.err
>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try
='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS
=$CXXFLAGS
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.
$ac_ext <<_ACEOF
2402 cat confdefs.h
>>conftest.
$ac_ext
2403 cat >>conftest.
$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.
$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1
>conftest.err
2420 cat conftest.err
>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try
='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try
='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g
=yes
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.
$ac_ext >&5
2443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS
=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2456 if test "$GXX" = yes; then
2462 for ac_declaration
in \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2470 cat >conftest.
$ac_ext <<_ACEOF
2473 cat confdefs.h
>>conftest.
$ac_ext
2474 cat >>conftest.
$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2486 rm -f conftest.
$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1
>conftest.err
2492 cat conftest.err
>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try
='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try
='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.
$ac_ext >&5
2515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2516 cat >conftest.
$ac_ext <<_ACEOF
2519 cat confdefs.h
>>conftest.
$ac_ext
2520 cat >>conftest.
$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.
$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1
>conftest.err
2537 cat conftest.err
>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try
='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try
='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 DEPDIR
="${am__leading_dot}deps"
2575 ac_config_commands
="$ac_config_commands depfiles"
2578 am_make
=${MAKE-make}
2579 cat > confinc
<< 'END'
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include
=.include
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval
="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno
; then
2623 am_depcomp
="$ac_aux_dir/depcomp"
2628 if test "x$enable_dependency_tracking" != xno; then
2639 depcc
="$CXX" am_compiler_list
=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2665 am_cv_CXX_dependencies_compiler_type
=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode
in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2678 for i
in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub
/conftst
$i.h
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes
; then
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode
=$depmode \
2702 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2703 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2704 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2705 >/dev
/null
2>conftest.err
&&
2706 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2707 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2708 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type
=$depmode
2727 am_cv_CXX_dependencies_compiler_type
=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2740 am__fastdepCXX_TRUE
=
2741 am__fastdepCXX_FALSE
='#'
2743 am__fastdepCXX_TRUE
='#'
2744 am__fastdepCXX_FALSE
=
2749 ac_cpp
='$CXXCPP $CPPFLAGS'
2750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP
in "$CXX -E" "/lib/cpp"
2763 for ac_cxx_preproc_warn_flag
in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.
$ac_ext <<_ACEOF
2774 cat confdefs.h
>>conftest.
$ac_ext
2775 cat >>conftest.
$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2778 # include <limits.h>
2780 # include <assert.h>
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev
/null
; then
2792 if test -s conftest.err
; then
2793 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2801 if test -z "$ac_cpp_err"; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2807 # Broken: fails on valid input.
2810 rm -f conftest.err conftest.
$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.
$ac_ext <<_ACEOF
2817 cat confdefs.h
>>conftest.
$ac_ext
2818 cat >>conftest.
$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1
>conftest.err
2827 cat conftest.err
>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev
/null
; then
2830 if test -s conftest.err
; then
2831 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.
$ac_ext >&5
2846 # Passes both tests.
2850 rm -f conftest.err conftest.
$ac_ext
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.
$ac_ext
2855 if $ac_preproc_ok; then
2860 ac_cv_prog_CXXCPP
=$CXXCPP
2863 CXXCPP
=$ac_cv_prog_CXXCPP
2865 ac_cv_prog_CXXCPP
=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2870 for ac_cxx_preproc_warn_flag
in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2885 # include <limits.h>
2887 # include <assert.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2914 # Broken: fails on valid input.
2917 rm -f conftest.err conftest.
$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev
/null
; then
2937 if test -s conftest.err
; then
2938 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Passes both tests.
2957 rm -f conftest.err conftest.
$ac_ext
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.
$ac_ext
2962 if $ac_preproc_ok; then
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2973 ac_cpp
='$CPP $CPPFLAGS'
2974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2979 ac_cpp
='$CPP $CPPFLAGS'
2980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC
="$CC" # Let the user override the test.
2994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir
=.
2999 for ac_exec_ext
in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc
; ac_word
=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 for ac_exec_ext
in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC
="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC
="$CC" # Let the user override the test.
3074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir
=.
3079 for ac_exec_ext
in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc
; ac_word
=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC
="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc
; ac_word
=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected
=yes
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy
$ac_cv_prog_CC
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3182 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC
="$CC" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3239 if test -z "$CC"; then
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy
$ac_prog; ac_word
=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC
="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler
=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 cat >conftest.
$ac_ext <<_ACEOF
3321 cat confdefs.h
>>conftest.
$ac_ext
3322 cat >>conftest.
$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3366 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS
=${CFLAGS+set}
3373 ac_save_CFLAGS
=$CFLAGS
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try
='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.
$ac_ext >&5
3424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS
=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3437 if test "$GCC" = yes; then
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_prog_cc_stdc
=no
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3474 s = g (p, va_arg (v,int));
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC
="$ac_save_CC $ac_arg"
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc
=$ac_arg
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3541 rm -f conftest.err conftest.
$ac_objext
3543 rm -f conftest.
$ac_ext conftest.
$ac_objext
3548 case "x$ac_cv_prog_cc_stdc" in
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.
$ac_ext <<_ACEOF
3567 rm -f conftest.
$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1
>conftest.err
3573 cat conftest.err
>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try
='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try
='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration
in \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3597 cat >conftest.
$ac_ext <<_ACEOF
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3613 rm -f conftest.
$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try
='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try
='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1
>conftest.err
3664 cat conftest.err
>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try
='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try
='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.
$ac_ext >&5
3700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 ac_cpp
='$CPP $CPPFLAGS'
3703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3707 depcc
="$CC" am_compiler_list
=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3733 am_cv_CC_dependencies_compiler_type
=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode
in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3746 for i
in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub
/conftst
$i.h
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes
; then
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode
=$depmode \
3770 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3771 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3772 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3773 >/dev
/null
2>conftest.err
&&
3774 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3775 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3776 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type
=$depmode
3795 am_cv_CC_dependencies_compiler_type
=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3809 am__fastdepCC_FALSE
='#'
3811 am__fastdepCC_TRUE
='#'
3812 am__fastdepCC_FALSE
=
3817 ac_cpp
='$CPP $CPPFLAGS'
3818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # Double quotes because CPP needs to be expanded
3832 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3835 for ac_c_preproc_warn_flag
in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev
/null
; then
3864 if test -s conftest.err
; then
3865 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.
$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3942 for ac_c_preproc_warn_flag
in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.
$ac_ext <<_ACEOF
3953 cat confdefs.h
>>conftest.
$ac_ext
3954 cat >>conftest.
$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3957 # include <limits.h>
3959 # include <assert.h>
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1
>conftest.err
3968 cat conftest.err
>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev
/null
; then
3971 if test -s conftest.err
; then
3972 ac_cpp_err
=$ac_c_preproc_warn_flag
3973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3980 if test -z "$ac_cpp_err"; then
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.
$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1
>conftest.err
4006 cat conftest.err
>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev
/null
; then
4009 if test -s conftest.err
; then
4010 ac_cpp_err
=$ac_c_preproc_warn_flag
4011 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.
$ac_ext >&5
4025 # Passes both tests.
4029 rm -f conftest.err conftest.
$ac_ext
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.
$ac_ext
4034 if $ac_preproc_ok; then
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cpp
='$CPP $CPPFLAGS'
4046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4052 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross
=$cross_compiling
4061 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4062 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 BUILD_CC
=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC
=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir
=.
4119 for ac_exec_ext
in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC
=$ac_ct_BUILD_CC
4141 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 BUILD_CC
=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC
=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc
; ac_word
=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC
=$ac_ct_BUILD_CC
4221 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc
; ac_word
=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected
=yes
4248 ac_cv_prog_BUILD_CC
="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy
$ac_cv_prog_BUILD_CC
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4264 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC
=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 BUILD_CC
=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC
=$BUILD_CC
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy
$ac_prog; ac_word
=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4363 BUILD_CC
=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler
=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4385 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.
$ac_ext <<_ACEOF
4398 cat confdefs.h
>>conftest.
$ac_ext
4399 cat >>conftest.
$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4410 ac_clean_files_save
=$ac_clean_files
4411 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4430 # b.out is created by i960 compilers.
4431 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4433 test -f "$ac_file" ||
continue
4435 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4438 # This is the source file.
4441 # We found the default executable, but exeext='' is most
4445 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext
=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try
='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4485 if test "$cross_compiling" = maybe
; then
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4502 ac_clean_files
=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 for ac_file
in conftest.exe conftest conftest.
*; do
4522 test -f "$ac_file" ||
continue
4524 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4525 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest
$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.
$ac_ext
4544 BUILD_EXEEXT
=$ac_cv_build_exeext
4545 ac_build_exeext
=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling
=$saved_cross
4552 ac_cpp
='$CPP $CPPFLAGS'
4553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4558 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4561 CFLAGS
="$mule_backup_CFLAGS"
4562 CXXFLAGS
="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog
in gawk mawk nawk
awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy
$ac_prog; ac_word
=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK
="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4610 then ac_cv_prog_egrep
='grep -E'
4611 else ac_cv_prog_egrep
='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP
=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.
make <<\_ACEOF
4627 @
echo 'ac_maketemp="$(MAKE)"'
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_
${ac_make}_set
=yes
4634 eval ac_cv_prog_make_
${ac_make}_set
=no
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE
="MAKE=${MAKE-make}"
4649 for ac_prog
in flex
lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy
$ac_prog; ac_word
=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX
="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4688 test -n "$LEX" || LEX
=":"
4690 if test -z "$LEXLIB"
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_check_lib_save_LIBS
=$LIBS
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4721 rm -f conftest.
$ac_objext conftest
$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1
>conftest.err
4727 cat conftest.err
>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try
='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try
='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap
=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4748 ac_cv_lib_fl_yywrap
=no
4750 rm -f conftest.err conftest.
$ac_objext \
4751 conftest
$ac_exeext conftest.
$ac_ext
4752 LIBS
=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_check_lib_save_LIBS
=$LIBS
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4788 rm -f conftest.
$ac_objext conftest
$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1
>conftest.err
4794 cat conftest.err
>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try
='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try
='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap
=yes
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.
$ac_ext >&5
4815 ac_cv_lib_l_yywrap
=no
4817 rm -f conftest.err conftest.
$ac_objext \
4818 conftest
$ac_exeext conftest.
$ac_ext
4819 LIBS
=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l
<<_ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l
) 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c
; then
4849 ac_cv_prog_lex_root
=lex.yy
4850 elif test -f lexyy.c
; then
4851 ac_cv_prog_lex_root
=lexyy
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4861 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer
=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4874 LIBS
="$LIBS $LEXLIB"
4875 cat >conftest.
$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4878 rm -f conftest.
$ac_objext conftest
$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1
>conftest.err
4884 cat conftest.err
>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try
='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try
='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer
=yes
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f conftest.err conftest.
$ac_objext \
4907 conftest
$ac_exeext conftest.
$ac_ext
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h
<<\_ACEOF
4917 #define YYTEXT_POINTER 1
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir
=.
4947 # Account for people who put trailing slashes in PATH elements.
4949 .
/ | .
// |
/cC
/* | \
4950 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4951 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4957 for ac_prog
in ginstall scoinst
install; do
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL
=$ac_cv_path_install
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL
=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir
=.
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB
=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib
; ac_word
=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5068 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB
=$ac_ct_RANLIB
5079 RANLIB
="$ac_cv_prog_RANLIB"
5082 for ac_prog
in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy
$ac_prog; ac_word
=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir
=.
5099 for ac_exec_ext
in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC
="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 YACC
=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5121 test -n "$YACC" || YACC
="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 RANLIB
=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB
=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib
; ac_word
=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB
=$ac_ct_RANLIB
5200 RANLIB
="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 STRIP
=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip
; ac_word
=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP
="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5279 STRIP
="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR
="$AR" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy
ar; ac_word
=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR
="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD
="$LD" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld
; ac_word
=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD
="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval
="$enable_monolithic"
5444 MONOLITHIC
=$enableval
5449 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5450 if test "${enable_amule_daemon+set}" = set; then
5451 enableval
="$enable_amule_daemon"
5452 AMULE_DAEMON
=$enableval
5457 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5458 if test "${enable_amulecmd+set}" = set; then
5459 enableval
="$enable_amulecmd"
5465 # Check whether --enable-webserver or --disable-webserver was given.
5466 if test "${enable_webserver+set}" = set; then
5467 enableval
="$enable_webserver"
5473 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5474 if test "${enable_amule_gui+set}" = set; then
5475 enableval
="$enable_amule_gui"
5476 AMULE_GUI
=$enableval
5481 # Check whether --enable-cas or --disable-cas was given.
5482 if test "${enable_cas+set}" = set; then
5483 enableval
="$enable_cas"
5489 # Check whether --enable-wxcas or --disable-wxcas was given.
5490 if test "${enable_wxcas+set}" = set; then
5491 enableval
="$enable_wxcas"
5497 # Check whether --enable-ed2k or --disable-ed2k was given.
5498 if test "${enable_ed2k+set}" = set; then
5499 enableval
="$enable_ed2k"
5505 # Check whether --enable-alc or --disable-alc was given.
5506 if test "${enable_alc+set}" = set; then
5507 enableval
="$enable_alc"
5513 # Check whether --enable-alcc or --disable-alcc was given.
5514 if test "${enable_alcc+set}" = set; then
5515 enableval
="$enable_alcc"
5521 # Check whether --enable-monolithic or --disable-monolithic was given.
5522 if test "${enable_monolithic+set}" = set; then
5523 enableval
="$enable_monolithic"
5524 MONOLITHIC
=$enableval
5529 # Check whether --enable-upnp or --disable-upnp was given.
5530 if test "${enable_upnp+set}" = set; then
5531 enableval
="$enable_upnp"
5532 ENABLE_UPNP
=$enableval
5537 # Check whether --enable-xas or --disable-xas was given.
5538 if test "${enable_xas+set}" = set; then
5539 enableval
="$enable_xas"
5545 # Default is yes, because they're most likely compatible.
5546 # However, this is only used when cross-compiling.
5548 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5549 if test "${with_gnu_malloc+set}" = set; then
5550 withval
="$with_gnu_malloc"
5557 # Checking for libs before all other stuff to break
5558 # configure as soon as possible in case of a missing one
5559 # to avoid losing too much time
5564 # Check whether --with-zlib or --without-zlib was given.
5565 if test "${with_zlib+set}" = set; then
5566 withval
="$with_zlib"
5570 case "${with_zlib:-yes}" in
5572 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5573 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5574 { (exit 1); exit 1; }; }
5579 zlib_prefix
="$with_zlib"
5582 mule_backup_CPPFLAGS
="$CPPFLAGS"
5583 mule_backup_LDFLAGS
="$LDFLAGS"
5584 mule_backup_LIBS
="$LIBS"
5585 if test -n "$zlib_prefix"; then
5587 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5588 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5589 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5590 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5600 LIBS
="$ZLIB_LIBS $LIBS"
5602 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5603 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5604 if test "$cross_compiling" = yes; then
5608 cat >conftest.
$ac_ext <<_ACEOF
5612 cat confdefs.h
>>conftest.
$ac_ext
5613 cat >>conftest.
$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5623 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5631 rm -f conftest.
$ac_objext conftest
$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1
>conftest.err
5637 cat conftest.err
>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try
='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try
='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5654 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5655 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5656 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5657 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5658 if test "$cross_zver_max" -gt "1"; then
5660 elif test "$cross_zver_max" -eq "1"; then
5662 if test "$cross_zver_mid" -gt "1"; then
5664 elif test "$cross_zver_mid" -eq "1"; then
5665 if test "$cross_zver_min" -ge "4"; then
5674 if test ${result:-no} = yes; then
5675 z_version
=" (version $ZLIB_VERSION)"
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.
$ac_ext >&5
5684 rm -f conftest.err conftest.
$ac_objext \
5685 conftest
$ac_exeext conftest.
$ac_ext
5686 echo "$as_me:$LINENO: result: $result$z_version" >&5
5687 echo "${ECHO_T}$result$z_version" >&6
5690 cat >conftest.
$ac_ext <<_ACEOF
5694 cat confdefs.h
>>conftest.
$ac_ext
5695 cat >>conftest.
$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5704 char *zver = zlibVersion();
5705 FILE *f=fopen("conftestval", "w");
5712 zver[4] >= '4'))) ? "yes" : "no");
5714 f=fopen("conftestver", "w");
5716 fprintf(f, "%s", ZLIB_VERSION);
5725 rm -f conftest
$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5737 if test -f conftestval
; then
5738 result
=`cat conftestval`
5743 if test ${result:-no} = yes; then
5745 if test -f conftestver
; then
5747 ZLIB_VERSION
=`cat conftestver`
5748 z_version
=" (version $ZLIB_VERSION)"
5757 echo "$as_me:$LINENO: result: $result$z_version" >&5
5758 echo "${ECHO_T}$result$z_version" >&6
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.
$ac_ext >&5
5768 echo "$as_me:$LINENO: result: $result" >&5
5769 echo "${ECHO_T}$result" >&6
5772 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5775 CPPFLAGS
="$mule_backup_CPPFLAGS"
5776 LDFLAGS
="$mule_backup_LDFLAGS"
5777 LIBS
="$mule_backup_LIBS"
5779 if test ${result:-no} = no
; then
5784 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5785 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5786 { (exit 1); exit 1; }; }
5793 if test x
$CAS = xyes
; then
5797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5799 if test "${ac_cv_header_stdc+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 cat >conftest.
$ac_ext <<_ACEOF
5805 cat confdefs.h
>>conftest.
$ac_ext
5806 cat >>conftest.
$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try
='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try
='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_header_stdc
=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 ac_cv_header_stdc
=no
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 if test $ac_cv_header_stdc = yes; then
5853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5854 cat >conftest.
$ac_ext <<_ACEOF
5857 cat confdefs.h
>>conftest.
$ac_ext
5858 cat >>conftest.
$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864 $EGREP "memchr" >/dev
/null
2>&1; then
5867 ac_cv_header_stdc
=no
5873 if test $ac_cv_header_stdc = yes; then
5874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "free" >/dev
/null
2>&1; then
5888 ac_cv_header_stdc
=no
5894 if test $ac_cv_header_stdc = yes; then
5895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896 if test "$cross_compiling" = yes; then
5899 cat >conftest.
$ac_ext <<_ACEOF
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5929 rm -f conftest
$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5942 echo "$as_me: program exited with status $ac_status" >&5
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5947 ac_cv_header_stdc
=no
5949 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5955 if test $ac_cv_header_stdc = yes; then
5957 cat >>confdefs.h
<<\_ACEOF
5958 #define STDC_HEADERS 1
5963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5973 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5974 inttypes.h stdint.h unistd.h
5976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5990 #include <$ac_header>
5992 rm -f conftest.
$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1
>conftest.err
5998 cat conftest.err
>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try
='test -z "$ac_c_werror_flag"
6002 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try
='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 eval "$as_ac_Header=yes"
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6019 eval "$as_ac_Header=no"
6021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026 cat >>confdefs.h
<<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6038 if test "${with_gdlib_prefix+set}" = set; then
6039 withval
="$with_gdlib_prefix"
6043 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6044 if test "${with_gdlib_config+set}" = set; then
6045 withval
="$with_gdlib_config"
6051 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6052 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6053 GDLIB_CONFIG_NAME
=gdlib-config
6056 if test -n "$with_gdlib_config"; then
6057 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6061 # deal with optional prefix
6062 if test -n "$with_gdlib_prefix"; then
6063 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6067 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6068 if test -x "$GDLIB_CONFIG_NAME"; then
6070 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6071 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6072 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6073 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6074 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6077 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6078 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6079 echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 case $GDLIB_CONFIG_PATH in
6086 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6090 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6091 for as_dir
in $as_dummy
6094 test -z "$as_dir" && as_dir
=.
6095 for ac_exec_ext
in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6108 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6110 if test -n "$GDLIB_CONFIG_PATH"; then
6111 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6112 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6121 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6123 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6124 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6125 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6127 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6128 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6129 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6130 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6133 if test $gdlib_config_major_version -gt 2; then
6135 elif test $gdlib_config_major_version -eq 2; then
6137 if test $gdlib_config_minor_version -gt 0; then
6139 elif test $gdlib_config_minor_version -eq 0; then
6140 if test $gdlib_config_micro_version -ge 0; then
6150 if test -z "$gdlib_ver_ok"; then
6152 if test -z "$GDLIB_VERSION"; then
6153 echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6157 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6158 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6166 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6167 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6168 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6169 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6170 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6171 mule_backup_CFLAGS
="$CFLAGS"
6172 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6173 if test "${ac_cv_header_gd_h+set}" = set; then
6174 echo "$as_me:$LINENO: checking for gd.h" >&5
6175 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6176 if test "${ac_cv_header_gd_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6182 # Is the header compilable?
6183 echo "$as_me:$LINENO: checking gd.h usability" >&5
6184 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try
='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try
='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_header_compiler
=yes
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6221 ac_header_compiler
=no
6223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225 echo "${ECHO_T}$ac_header_compiler" >&6
6227 # Is the header present?
6228 echo "$as_me:$LINENO: checking gd.h presence" >&5
6229 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6233 cat confdefs.h
>>conftest.
$ac_ext
6234 cat >>conftest.
$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1
>conftest.err
6243 cat conftest.err
>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev
/null
; then
6246 if test -s conftest.err
; then
6247 ac_cpp_err
=$ac_c_preproc_warn_flag
6248 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6255 if test -z "$ac_cpp_err"; then
6256 ac_header_preproc
=yes
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.
$ac_ext >&5
6261 ac_header_preproc
=no
6263 rm -f conftest.err conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc
=yes
6277 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6291 ## ------------------------------ ##
6292 ## Report this to admin@amule.org ##
6293 ## ------------------------------ ##
6296 sed "s/^/$as_me: WARNING: /" >&2
6299 echo "$as_me:$LINENO: checking for gd.h" >&5
6300 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6301 if test "${ac_cv_header_gd_h+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_header_gd_h
=$ac_header_preproc
6306 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6307 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6310 if test $ac_cv_header_gd_h = yes; then
6317 CFLAGS
="$mule_backup_CFLAGS"
6325 if test -n "$GDLIB_VERSION"; then
6328 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6337 if test -z "$CAS_DEFS"; then
6338 { echo "$as_me:$LINENO: WARNING:
6339 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6340 Please check that gdlib-config is in your default path, check out
6341 LD_LIBRARY_PATH or equivalent variable.
6342 Or this might also be that your gdlib-config has other name.
6343 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6344 (replace /usr/bin/gdlib-config with a valid path to your
6346 If you use compiled packages check if you have devel pack installed.
6347 To download the latest version check http://www.boutell.com/gd for
6349 echo "$as_me: WARNING:
6350 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd for
6361 _mule_has_warnings
=yes
6367 GDLIB_VERSION
="not_needed"
6372 if test x
$WEB = xyes
; then
6375 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6376 if test "${with_libpng_prefix+set}" = set; then
6377 withval
="$with_libpng_prefix"
6381 # Check whether --with-libpng-config or --without-libpng-config was given.
6382 if test "${with_libpng_config+set}" = set; then
6383 withval
="$with_libpng_config"
6389 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6390 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6391 LIBPNG_CONFIG_NAME
=libpng-config
6394 if test -n "$with_libpng_config"; then
6395 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6399 # deal with optional prefix
6400 if test -n "$with_libpng_prefix"; then
6401 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6405 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6406 if test -x "$LIBPNG_CONFIG_NAME"; then
6408 echo "$as_me:$LINENO: checking for libpng-config" >&5
6409 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6410 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6411 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6412 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6415 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6416 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6417 echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6419 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 case $LIBPNG_CONFIG_PATH in
6424 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6428 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6429 for as_dir
in $as_dummy
6432 test -z "$as_dir" && as_dir
=.
6433 for ac_exec_ext
in '' $ac_executable_extensions; do
6434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6446 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6448 if test -n "$LIBPNG_CONFIG_PATH"; then
6449 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6450 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6452 echo "$as_me:$LINENO: result: no" >&5
6453 echo "${ECHO_T}no" >&6
6459 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6461 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6462 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6464 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6466 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6467 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6468 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6469 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6472 if test $libpng_config_major_version -gt 1; then
6474 elif test $libpng_config_major_version -eq 1; then
6476 if test $libpng_config_minor_version -gt 2; then
6478 elif test $libpng_config_minor_version -eq 2; then
6479 if test $libpng_config_micro_version -ge 0; then
6489 if test -z "$libpng_ver_ok"; then
6491 if test -z "$LIBPNG_VERSION"; then
6492 echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6496 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6497 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6505 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6506 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6507 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6508 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6509 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6517 if test -n "$LIBPNG_VERSION"; then
6518 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6521 { echo "$as_me:$LINENO: WARNING:
6522 libpng >= 1.2.0 not found.
6523 amuleweb will be compiled but file download progress bar images will
6524 NOT be generated." >&5
6525 echo "$as_me: WARNING:
6526 libpng >= 1.2.0 not found.
6527 amuleweb will be compiled but file download progress bar images will
6528 NOT be generated." >&2;}
6530 _mule_has_warnings
=yes
6540 LIBPNG_VERSION
="not_needed"
6545 # Check for perl File::Copy
6546 echo "$as_me:$LINENO: checking for File::Copy" >&5
6547 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6548 if perl
-e "require File::Copy" 2>/dev
/null
; then
6549 echo "$as_me:$LINENO: result: ok" >&5
6550 echo "${ECHO_T}ok" >&6
6552 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6553 echo "$as_me: error: File::Copy perl module is required" >&2;}
6554 { (exit 1); exit 1; }; }
6559 # Check if we need the GUI
6560 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6561 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6562 if test x
$MONOLITHIC = xyes
; then
6566 if test x
$WXCAS = xyes
; then
6570 if test x
$ALC = xyes
; then
6574 if test x
$AMULE_GUI = xyes
; then
6578 if test x
${need_gui:+set} != xset
; then
6582 echo "$as_me:$LINENO: result: $need_gui" >&5
6583 echo "${ECHO_T}$need_gui" >&6
6585 # Check if we need to install skins
6586 if test x
$MONOLITHIC = xyes
; then
6590 if test x
$AMULE_GUI = xyes
; then
6594 if test x
${INSTALL_SKINS:+set} != xset
; then
6599 # Check for GeoIP (required for IP2Country capability)
6601 # Check whether --enable-geoip or --disable-geoip was given.
6602 if test "${enable_geoip+set}" = set; then
6603 enableval
="$enable_geoip"
6604 ENABLE_IP2COUNTRY
=$enableval
6606 ENABLE_IP2COUNTRY
=no
6609 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6612 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6613 if test "${with_geoip_headers+set}" = set; then
6614 withval
="$with_geoip_headers"
6615 GEOIP_CPPFLAGS
="-I$withval"
6618 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6619 if test "${with_geoip_lib+set}" = set; then
6620 withval
="$with_geoip_lib"
6621 GEOIP_LDFLAGS
="-L$withval"
6624 mule_backup_CPPFLAGS
="$CPPFLAGS"
6625 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6626 mule_backup_LDFLAGS
="$LDFLAGS"
6627 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
6629 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6630 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6631 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6632 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6636 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6638 # Is the header compilable?
6639 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6640 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6641 cat >conftest.
$ac_ext <<_ACEOF
6644 cat confdefs.h
>>conftest.
$ac_ext
6645 cat >>conftest.
$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6650 rm -f conftest.
$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6654 grep -v '^ *+' conftest.er1
>conftest.err
6656 cat conftest.err
>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try
='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try
='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_header_compiler
=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.
$ac_ext >&5
6677 ac_header_compiler
=no
6679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 echo "${ECHO_T}$ac_header_compiler" >&6
6683 # Is the header present?
6684 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6685 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev
/null
; then
6702 if test -s conftest.err
; then
6703 ac_cpp_err
=$ac_c_preproc_warn_flag
6704 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6711 if test -z "$ac_cpp_err"; then
6712 ac_header_preproc
=yes
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.
$ac_ext >&5
6717 ac_header_preproc
=no
6719 rm -f conftest.err conftest.
$ac_ext
6720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 echo "${ECHO_T}$ac_header_preproc" >&6
6723 # So? What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6726 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6727 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6729 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6730 ac_header_preproc
=yes
6733 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6734 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6736 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6738 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6740 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6742 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6744 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6747 ## ------------------------------ ##
6748 ## Report this to admin@amule.org ##
6749 ## ------------------------------ ##
6752 sed "s/^/$as_me: WARNING: /" >&2
6755 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6756 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6757 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_header_GeoIP_h
=$ac_header_preproc
6762 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6763 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6766 if test $ac_cv_header_GeoIP_h = yes; then
6768 if test x
$SYS = xwin32
; then
6770 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6771 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6772 # Actually, we might not need any if GeoIP is linked as a .dll
6773 # - but that's even harder to check for
6774 cat >conftest.
$ac_ext <<_ACEOF
6778 cat confdefs.h
>>conftest.
$ac_ext
6779 cat >>conftest.
$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6784 I do know it's not the best approach, but at least works with MinGW stock headers.
6785 (tested with w32api-3.12)
6797 rm -f conftest.
$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1
>conftest.err
6803 cat conftest.err
>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try
='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try
='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6820 GEOIP_WINSOCK_LIB
="-lwsock32"
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.
$ac_ext >&5
6827 GEOIP_WINSOCK_LIB
="-lws2_32"
6830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6831 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6832 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6836 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6837 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6838 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 ac_check_lib_save_LIBS
=$LIBS
6842 LIBS
="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6843 cat >conftest.
$ac_ext <<_ACEOF
6846 cat confdefs.h
>>conftest.
$ac_ext
6847 cat >>conftest.
$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6865 rm -f conftest.
$ac_objext conftest
$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867 (eval $ac_link) 2>conftest.er1
6869 grep -v '^ *+' conftest.er1
>conftest.err
6871 cat conftest.err
>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try
='test -z "$ac_c_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try
='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_lib_GeoIP_GeoIP_open
=yes
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.
$ac_ext >&5
6892 ac_cv_lib_GeoIP_GeoIP_open
=no
6894 rm -f conftest.err conftest.
$ac_objext \
6895 conftest
$ac_exeext conftest.
$ac_ext
6896 LIBS
=$ac_check_lib_save_LIBS
6898 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
6899 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
6900 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
6903 cat >>confdefs.h
<<\_ACEOF
6904 #define SUPPORT_GEOIP 1
6907 GEOIP_LIBS
="-lGeoIP"
6908 if test x
$SYS = xwin32
; then
6909 GEOIP_LIBS
="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
6912 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6914 # Check whether --with-geoip-static or --without-geoip-static was given.
6915 if test "${with_geoip_static+set}" = set; then
6916 withval
="$with_geoip_static"
6918 if test "$withval" != "no" -a ${enable_static:-no} = no
; then
6920 mule_backup_LIBS
="$LIBS"
6921 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
6922 cat >conftest.
$ac_ext <<_ACEOF
6926 cat confdefs.h
>>conftest.
$ac_ext
6927 cat >>conftest.
$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6936 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
6943 rm -f conftest.
$ac_objext conftest
$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6947 grep -v '^ *+' conftest.er1
>conftest.err
6949 cat conftest.err
>&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try
='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try
='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6966 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.
$ac_ext >&5
6973 { echo "$as_me:$LINENO: WARNING:
6974 Cannot link GeoIP statically, because your linker ($LD) does not
6976 echo "$as_me: WARNING:
6977 Cannot link GeoIP statically, because your linker ($LD) does not
6980 _mule_has_warnings
=yes
6984 rm -f conftest.err conftest.
$ac_objext \
6985 conftest
$ac_exeext conftest.
$ac_ext
6986 LIBS
="$mule_backup_LIBS"
6995 ENABLE_IP2COUNTRY
=disabled
6996 { echo "$as_me:$LINENO: WARNING:
6997 GeoIP support has been disabled because the GeoIP libraries were not
6999 echo "$as_me: WARNING:
7000 GeoIP support has been disabled because the GeoIP libraries were not
7003 _mule_has_warnings
=yes
7011 ENABLE_IP2COUNTRY
=disabled
7012 { echo "$as_me:$LINENO: WARNING:
7013 GeoIP support has been disabled because the GeoIP header files were
7015 echo "$as_me: WARNING:
7016 GeoIP support has been disabled because the GeoIP header files were
7019 _mule_has_warnings
=yes
7026 CPPFLAGS
="$mule_backup_CPPFLAGS"
7027 LDFLAGS
="$mule_backup_LDFLAGS"
7036 # Check whether --with-wxdir or --without-wxdir was given.
7037 if test "${with_wxdir+set}" = set; then
7038 withval
="$with_wxdir"
7039 wx_config_name
="$withval/wx-config"
7040 wx_config_args
="--inplace"
7043 # Check whether --with-wx-config or --without-wx-config was given.
7044 if test "${with_wx_config+set}" = set; then
7045 withval
="$with_wx_config"
7046 wx_config_name
="$withval"
7049 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7050 if test "${with_wx_prefix+set}" = set; then
7051 withval
="$with_wx_prefix"
7052 wx_config_prefix
="$withval"
7057 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7058 if test "${with_wx_exec_prefix+set}" = set; then
7059 withval
="$with_wx_exec_prefix"
7060 wx_config_exec_prefix
="$withval"
7062 wx_config_exec_prefix
=""
7076 # Check whether --with-toolkit or --without-toolkit was given.
7077 if test "${with_toolkit+set}" = set; then
7078 withval
="$with_toolkit"
7084 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7085 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7086 if test "$withval" = "auto" ; then
7087 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7088 echo "${ECHO_T}will be automatically detected" >&6
7093 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7094 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7095 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7096 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7097 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7098 { { echo "$as_me:$LINENO: error:
7099 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7101 echo "$as_me: error:
7102 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7104 { (exit 1); exit 1; }; }
7107 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7108 echo "${ECHO_T}$TOOLKIT" >&6
7115 # Check whether --with-wxshared or --without-wxshared was given.
7116 if test "${with_wxshared+set}" = set; then
7117 withval
="$with_wxshared"
7123 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7124 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7125 if test "$withval" = "yes" ; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127 echo "${ECHO_T}yes" >&6
7130 elif test "1" = "1" -a "$withval" = "no" ; then
7131 echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7134 elif test "$withval" = "auto" ; then
7135 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7136 echo "${ECHO_T}will be automatically detected" >&6
7139 { { echo "$as_me:$LINENO: error:
7140 Unrecognized option value (allowed values: yes, auto)
7142 echo "$as_me: error:
7143 Unrecognized option value (allowed values: yes, auto)
7145 { (exit 1); exit 1; }; }
7152 # Check whether --with-wxdebug or --without-wxdebug was given.
7153 if test "${with_wxdebug+set}" = set; then
7154 withval
="$with_wxdebug"
7160 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7161 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7162 if test "$withval" = "yes" ; then
7163 echo "$as_me:$LINENO: result: yes" >&5
7164 echo "${ECHO_T}yes" >&6
7167 elif test "1" = "1" -a "$withval" = "no" ; then
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7171 elif test "$withval" = "auto" ; then
7172 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7173 echo "${ECHO_T}will be automatically detected" >&6
7176 { { echo "$as_me:$LINENO: error:
7177 Unrecognized option value (allowed values: yes, auto)
7179 echo "$as_me: error:
7180 Unrecognized option value (allowed values: yes, auto)
7182 { (exit 1); exit 1; }; }
7189 # Check whether --with-wxversion or --without-wxversion was given.
7190 if test "${with_wxversion+set}" = set; then
7191 withval
="$with_wxversion"
7197 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7198 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7199 if test "$withval" = "auto" ; then
7200 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7201 echo "${ECHO_T}will be automatically detected" >&6
7205 wx_requested_major_version
=`echo $withval | \
7206 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7207 wx_requested_minor_version
=`echo $withval | \
7208 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7210 if test "${#wx_requested_major_version}" != "1" -o \
7211 "${#wx_requested_minor_version}" != "1" ; then
7212 { { echo "$as_me:$LINENO: error:
7213 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7215 echo "$as_me: error:
7216 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7218 { (exit 1); exit 1; }; }
7221 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7222 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7223 echo "${ECHO_T}$WX_VERSION" >&6
7227 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7228 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7229 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7230 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7231 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7232 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7235 # Force using a static wxWidgets library if the executable is to be linked statically.
7236 if test ${enable_static:-no} = yes; then
7240 # Force using a unicode build of the library
7244 if test "$WX_SHARED" = "1" ; then
7245 WXCONFIG_FLAGS
="--static=no "
7246 elif test "$WX_SHARED" = "0" ; then
7247 WXCONFIG_FLAGS
="--static=yes "
7250 if test "$WX_DEBUG" = "1" ; then
7251 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7252 elif test "$WX_DEBUG" = "0" ; then
7253 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7256 if test "$WX_UNICODE" = "1" ; then
7257 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7258 elif test "$WX_UNICODE" = "0" ; then
7259 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7262 if test "$TOOLKIT" != "auto" ; then
7263 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7266 if test "$WX_VERSION" != "auto" ; then
7267 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7270 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7272 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7273 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7277 if test x
${WX_CONFIG_NAME+set} != xset
; then
7278 WX_CONFIG_NAME
=wx-config
7281 if test "x$wx_config_name" != x
; then
7282 WX_CONFIG_NAME
="$wx_config_name"
7285 if test x
$wx_config_exec_prefix != x
; then
7286 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7287 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7289 if test x
$wx_config_prefix != x
; then
7290 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7291 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7293 if test "$cross_compiling" = "yes"; then
7294 wx_config_args
="$wx_config_args --host=$host_alias"
7297 if test -x "$WX_CONFIG_NAME" ; then
7298 echo "$as_me:$LINENO: checking for wx-config" >&5
7299 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7300 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7301 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7302 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7304 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7305 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 case $WX_CONFIG_PATH in
7313 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7317 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7318 for as_dir
in $as_dummy
7321 test -z "$as_dir" && as_dir
=.
7322 for ac_exec_ext
in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7335 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7337 if test -n "$WX_CONFIG_PATH"; then
7338 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7339 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7341 echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6
7347 if test "$WX_CONFIG_PATH" != "no" ; then
7350 min_wx_version
=2.8.0
7351 if test -z "$WXCONFIG_FLAGS" ; then
7352 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7353 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7355 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7356 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7359 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7361 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7362 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7363 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7364 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7365 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7366 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7367 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7369 wx_requested_major_version
=`echo $min_wx_version | \
7370 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7371 wx_requested_minor_version
=`echo $min_wx_version | \
7372 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7373 wx_requested_micro_version
=`echo $min_wx_version | \
7374 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7378 if test "x$WX_VERSION_FULL" != x
; then
7379 if test $wx_config_major_version -gt $wx_requested_major_version; then
7382 if test $wx_config_major_version -eq $wx_requested_major_version; then
7383 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7386 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7387 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7397 if test -n "$wx_ver_ok"; then
7399 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7400 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7401 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7403 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7404 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7405 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7406 if test "x$WX_LIBS_STATIC" = "x"; then
7407 echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6
7410 echo "$as_me:$LINENO: result: yes" >&5
7411 echo "${ECHO_T}yes" >&6
7415 if test $wx_config_major_version -gt 2; then
7418 if test $wx_config_major_version -eq 2; then
7419 if test $wx_config_minor_version -gt 2; then
7422 if test $wx_config_minor_version -eq 2; then
7423 if test $wx_config_micro_version -ge 6; then
7432 if test $wx_config_major_version -gt 2; then
7435 if test $wx_config_major_version -eq 2; then
7436 if test $wx_config_minor_version -ge 7; then
7441 if test "x$wx_has_rescomp" = x
; then
7444 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7447 if test "x$wx_has_cppflags" = x
; then
7448 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7449 WX_CPPFLAGS
=$WX_CFLAGS
7450 WX_CXXFLAGS
=$WX_CFLAGS
7452 WX_CFLAGS_ONLY
=$WX_CFLAGS
7453 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7455 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7456 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7457 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7459 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7460 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7467 if test "x$WX_VERSION_FULL" = x
; then
7468 echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7471 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7472 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7482 if test ! -z "$WXCONFIG_FLAGS"; then
7485 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7486 build with the following settings:
7488 but such build is not available.
7490 To see the wxWidgets builds available on this system, please use
7491 'wx-config --list' command. To use the default build, returned by
7492 'wx-config --selected-config', use the options with their 'auto'
7498 The requested wxWidgets build couldn't be found.
7501 If you still get this error, then check that 'wx-config' is
7502 in path, the directory where wxWidgets libraries are installed
7503 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7504 or equivalent variable and wxWidgets version is 2.8.0 or above."
7506 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7507 echo "$as_me: error: $wx_error_message" >&2;}
7508 { (exit 1); exit 1; }; }
7534 WX_VERSION_MAJOR
="$wx_config_major_version"
7535 WX_VERSION_MINOR
="$wx_config_minor_version"
7539 if test "$wxWin" != 1; then
7540 { { echo "$as_me:$LINENO: error:
7541 wxWidgets must be installed on your system but wx-config
7542 script couldn't be found. Please check that wx-config is
7543 in path or specified by --with-wx-config=path flag, the
7544 directory where wxWidgets libraries are installed (returned
7545 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7546 equivalent variable and wxWidgets version is 2.8.0 or above.
7548 echo "$as_me: error:
7549 wxWidgets must be installed on your system but wx-config
7550 script couldn't be found. Please check that wx-config is
7551 in path or specified by --with-wx-config=path flag, the
7552 directory where wxWidgets libraries are installed (returned
7553 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7554 equivalent variable and wxWidgets version is 2.8.0 or above.
7556 { (exit 1); exit 1; }; }
7559 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7560 if test $WX_VERSION -lt 26 ; then
7562 { { echo "$as_me:$LINENO: error:
7563 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7564 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7565 version of wxWidgets.
7567 echo "$as_me: error:
7568 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7569 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7570 version of wxWidgets.
7572 { (exit 1); exit 1; }; }
7575 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7577 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7578 echo "[dbg] Using wx-config --selected-config"
7579 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7583 if test $WX_SHARED = "1"; then
7585 elif test $WX_SHARED = "0"; then
7587 elif test $WX_SHARED = "auto"; then
7592 if test "$UNICODE" = "auto" ; then
7594 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7595 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7597 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7599 if test "$WX_UNICODE" != "0"; then
7601 echo "$as_me:$LINENO: result: yes" >&5
7602 echo "${ECHO_T}yes" >&6
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7616 if test "$DEBUG" = "auto" ; then
7618 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7619 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7621 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7623 if test "$WX_DEBUG" != "0"; then
7625 echo "$as_me:$LINENO: result: yes" >&5
7626 echo "${ECHO_T}yes" >&6
7630 echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6
7640 if test "$STATIC" = "auto" ; then
7642 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7643 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7645 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7647 if test "$WX_STATIC" != "0"; then
7649 echo "$as_me:$LINENO: result: yes" >&5
7650 echo "${ECHO_T}yes" >&6
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7664 if test "$WX_STATIC" != "0"; then
7674 if test "$TOOLKIT" = "auto" ; then
7676 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7677 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7679 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7680 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7681 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7682 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7683 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7684 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7685 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7686 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7687 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7688 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7691 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7692 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7693 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7694 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7695 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7696 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7697 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7698 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7699 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7700 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
7703 if test "$WX_PORT" = "unknown" ; then
7704 { { echo "$as_me:$LINENO: error:
7705 Cannot detect the currently installed wxWidgets port !
7706 Please check your 'wx-config --cxxflags'...
7708 echo "$as_me: error:
7709 Cannot detect the currently installed wxWidgets port !
7710 Please check your 'wx-config --cxxflags'...
7712 { (exit 1); exit 1; }; }
7715 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7716 echo "${ECHO_T}$WX_PORT" >&6
7719 if test -z "$TOOLKIT" ; then
7728 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7729 echo "[dbg] Values of all WX_* options after final detection:"
7730 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7731 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7732 echo "[dbg] WX_SHARED: $WX_SHARED"
7733 echo "[dbg] WX_VERSION: $WX_VERSION"
7734 echo "[dbg] WX_PORT: $WX_PORT"
7737 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7738 { { echo "$as_me:$LINENO: error:
7739 Cannot build shared library against a static build of wxWidgets !
7740 This error happens because the wxWidgets build which was selected
7741 has been detected as static while you asked to build $PACKAGE_NAME
7742 as shared library and this is not possible.
7743 Use the '--disable-shared' option to build $PACKAGE_NAME
7744 as static library or '--with-wxshared' to use wxWidgets as shared library.
7746 echo "$as_me: error:
7747 Cannot build shared library against a static build of wxWidgets !
7748 This error happens because the wxWidgets build which was selected
7749 has been detected as static while you asked to build $PACKAGE_NAME
7750 as shared library and this is not possible.
7751 Use the '--disable-shared' option to build $PACKAGE_NAME
7752 as static library or '--with-wxshared' to use wxWidgets as shared library.
7754 { (exit 1); exit 1; }; }
7757 if test "$DEBUG" = "auto"; then
7760 if test "$DEBUG" = "1"; then
7762 elif test "$DEBUG" = ""; then
7766 if test "$UNICODE" = "auto"; then
7769 if test "$SHARED" = "auto"; then
7772 if test "$TOOLKIT" = "auto"; then
7778 # We also need wxBase
7779 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7780 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
7781 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
7785 if test ${SYS:-unknown} = win32
; then
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7789 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7790 echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792 if test "${ac_cv_prog_RC+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 if test -n "$RC"; then
7796 ac_cv_prog_RC
="$RC" # Let the user override the test.
7798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir
=.
7803 for ac_exec_ext
in '' $ac_executable_extensions; do
7804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_RC
="${ac_tool_prefix}windres"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 if test -n "$RC"; then
7816 echo "$as_me:$LINENO: result: $RC" >&5
7817 echo "${ECHO_T}$RC" >&6
7819 echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6
7824 if test -z "$ac_cv_prog_RC"; then
7826 # Extract the first word of "windres", so it can be a program name with args.
7827 set dummy windres
; ac_word
=$2
7828 echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7830 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 if test -n "$ac_ct_RC"; then
7834 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
7836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir
=.
7841 for ac_exec_ext
in '' $ac_executable_extensions; do
7842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_ac_ct_RC
="windres"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
7853 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
7854 if test -n "$ac_ct_RC"; then
7855 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7856 echo "${ECHO_T}$ac_ct_RC" >&6
7858 echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6
7867 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7874 if test "${ENABLE_UPNP:-yes}" = yes; then
7878 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7879 if test -n "$ac_tool_prefix"; then
7880 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7881 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7882 echo "$as_me:$LINENO: checking for $ac_word" >&5
7883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7884 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7896 test -z "$as_dir" && as_dir
=.
7897 for ac_exec_ext
in '' $ac_executable_extensions; do
7898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7911 if test -n "$PKG_CONFIG"; then
7912 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7913 echo "${ECHO_T}$PKG_CONFIG" >&6
7915 echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6
7920 if test -z "$ac_cv_path_PKG_CONFIG"; then
7921 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7922 # Extract the first word of "pkg-config", so it can be a program name with args.
7923 set dummy pkg-config
; ac_word
=$2
7924 echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7926 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 case $ac_pt_PKG_CONFIG in
7931 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir
=.
7939 for ac_exec_ext
in '' $ac_executable_extensions; do
7940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7953 if test -n "$ac_pt_PKG_CONFIG"; then
7954 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7955 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7957 echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6
7961 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7963 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7967 if test -n "$PKG_CONFIG"; then
7968 _pkg_min_version
=0.9.0
7969 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7970 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7971 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7972 echo "$as_me:$LINENO: result: yes" >&5
7973 echo "${ECHO_T}yes" >&6
7975 echo "$as_me:$LINENO: result: no" >&5
7976 echo "${ECHO_T}no" >&6
7983 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
7984 if test "${with_libupnp_prefix+set}" = set; then
7985 withval
="$with_libupnp_prefix"
7986 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
7989 if test $cross_compiling = no
; then
7990 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
7991 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
7992 if test -n "$PKG_CONFIG"; then
7993 if $PKG_CONFIG libupnp
--exists; then
7994 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
7995 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
7997 resultstr
=" (version $LIBUPNP_VERSION)"
7998 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
7999 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8000 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8001 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8002 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8006 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8012 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8018 resultstr
=" (pkg-config not found)"
8021 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8022 echo "${ECHO_T}$result$resultstr" >&6
8023 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8027 libupnp_error
="cross compiling"
8031 if test ${result:-no} = yes; then
8032 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8034 ENABLE_UPNP
=disabled
8035 { echo "$as_me:$LINENO: WARNING:
8036 UPnP code has been disabled because ${libupnp_error}." >&5
8037 echo "$as_me: WARNING:
8038 UPnP code has been disabled because ${libupnp_error}." >&2;}
8040 _mule_has_warnings
=yes
8051 # Check for Crypto++
8054 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8055 if test "${with_crypto_prefix+set}" = set; then
8056 withval
="$with_crypto_prefix"
8060 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8061 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8063 cryptopp_file_with_version
="cryptlib.h"
8065 CRYPTOPP_STYLE
="unknown"
8066 CRYPTOPP_LIB_NAME
="unknown"
8067 cryptopp_includedir
="unknown"
8068 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8069 cryptopp_libdir
="unknown"
8071 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8072 if test -z "$CRYPTOPP_PREFIX"; then
8077 # Find the Cryptopp header
8078 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8080 CRYPTOPP_STYLE
="sources"
8081 CRYPTOPP_LIB_NAME
="cryptopp"
8082 cryptopp_includedir
=
8083 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8087 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8089 CRYPTOPP_STYLE
="installed"
8090 CRYPTOPP_LIB_NAME
="cryptopp"
8091 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8092 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8093 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8096 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8098 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8099 CRYPTOPP_STYLE
="gentoo_debian"
8100 CRYPTOPP_LIB_NAME
="crypto++"
8101 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8102 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8103 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8110 if test $CRYPTOPP_STYLE = "unknown"; then
8111 result
=no
; resultstr
=""
8114 # Find out the crypto++ version and check against the minimum required
8115 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8116 CRYPTOPP_VERSION_STRING
=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8117 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8118 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8120 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8123 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8124 if test -n "$cryptopp_includedir"; then
8125 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8130 if test -n "$cryptopp_libdir"; then
8132 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8133 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8138 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8144 cat >>confdefs.h
<<_ACEOF
8145 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8152 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8160 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8161 echo "${ECHO_T}$result$resultstr" >&6
8163 if test ${result:-no} = yes; then
8165 # Check for CryptoPP >= 5.5
8166 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8167 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8173 { { echo "$as_me:$LINENO: error:
8174 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8175 Please try again with --with-crypto-prefix=/my_crypto_prefix
8176 (replace /my_crypto_prefix with a valid path to your crypto++
8177 installation directory)." >&5
8178 echo "$as_me: error:
8179 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8180 Please try again with --with-crypto-prefix=/my_crypto_prefix
8181 (replace /my_crypto_prefix with a valid path to your crypto++
8182 installation directory)." >&2;}
8183 { (exit 1); exit 1; }; }
8191 ac_cpp
='$CXXCPP $CPPFLAGS'
8192 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8199 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8200 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8201 cat >conftest.
$ac_ext <<_ACEOF
8205 cat confdefs.h
>>conftest.
$ac_ext
8206 cat >>conftest.
$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8211 #error Non-GNU C++ library found.
8216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8219 grep -v '^ *+' conftest.er1
>conftest.err
8221 cat conftest.err
>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } >/dev
/null
; then
8224 if test -s conftest.err
; then
8225 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8226 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8233 if test -z "$ac_cpp_err"; then
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.
$ac_ext >&5
8241 rm -f conftest.err conftest.
$ac_ext
8242 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8243 echo "${ECHO_T}$GLIBCXX" >&6
8246 mule_backup_CPPFLAGS
="$CPPFLAGS"
8247 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8249 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8250 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8251 cat >conftest.
$ac_ext <<_ACEOF
8255 cat confdefs.h
>>conftest.
$ac_ext
8256 cat >>conftest.
$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8260 #include <wx/filefn.h>
8261 #ifndef wxHAS_LARGE_FILES
8262 #error No LargeFile support!
8267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8270 grep -v '^ *+' conftest.er1
>conftest.err
8272 cat conftest.err
>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } >/dev
/null
; then
8275 if test -s conftest.err
; then
8276 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8277 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8284 if test -z "$ac_cpp_err"; then
8286 echo "$as_me:$LINENO: result: yes" >&5
8287 echo "${ECHO_T}yes" >&6
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.
$ac_ext >&5
8294 echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8296 { { echo "$as_me:$LINENO: error:
8297 Support for large files in wxWidgets is required by aMule.
8298 To continue you must recompile wxWidgets with support for
8299 large files enabled." >&5
8300 echo "$as_me: error:
8301 Support for large files in wxWidgets is required by aMule.
8302 To continue you must recompile wxWidgets with support for
8303 large files enabled." >&2;}
8304 { (exit 1); exit 1; }; }
8307 rm -f conftest.err conftest.
$ac_ext
8309 CPPFLAGS
="$mule_backup_CPPFLAGS"
8312 # Check if the compiler is broken, wrt. exceptions.
8314 echo "$as_me:$LINENO: checking for exception-handling" >&5
8315 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8316 if test "$cross_compiling" = yes; then
8318 echo "$as_me:$LINENO: result: undeterminable" >&5
8319 echo "${ECHO_T}undeterminable" >&6
8320 { echo "$as_me:$LINENO: WARNING:
8321 Cross-compilation detected, so exception handling cannot be tested.
8322 Note that broken exception handling in your compiler may lead to
8323 unexpected crashes." >&5
8324 echo "$as_me: WARNING:
8325 Cross-compilation detected, so exception handling cannot be tested.
8326 Note that broken exception handling in your compiler may lead to
8327 unexpected crashes." >&2;}
8329 _mule_has_warnings
=yes
8333 cat >conftest.
$ac_ext <<_ACEOF
8337 cat confdefs.h
>>conftest.
$ac_ext
8338 cat >>conftest.
$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8357 rm -f conftest
$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8369 echo "$as_me:$LINENO: result: yes" >&5
8370 echo "${ECHO_T}yes" >&6
8373 echo "$as_me: program exited with status $ac_status" >&5
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.
$ac_ext >&5
8379 echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6
8381 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8382 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8383 { (exit 1); exit 1; }; }
8386 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8391 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8392 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8393 cat >conftest.
$ac_ext <<_ACEOF
8397 cat confdefs.h
>>conftest.
$ac_ext
8398 cat >>conftest.
$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8408 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8409 std::type_info *ti = abi::__cxa_current_exception_type();
8416 rm -f conftest.
$ac_objext conftest
$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>conftest.er1
8420 grep -v '^ *+' conftest.er1
>conftest.err
8422 cat conftest.err
>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try
='test -z "$ac_cxx_werror_flag"
8426 || test ! -s conftest.err'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try
='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8441 cat >>confdefs.h
<<\_ACEOF
8442 #define HAVE_CXXABI 1
8445 echo "$as_me:$LINENO: result: yes" >&5
8446 echo "${ECHO_T}yes" >&6
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8457 rm -f conftest.err conftest.
$ac_objext \
8458 conftest
$ac_exeext conftest.
$ac_ext
8461 ac_cpp
='$CPP $CPPFLAGS'
8462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8467 # Ok, we have all needed libs, now checking for other stuff
8468 if test "$LEX" = "flex"; then
8470 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8471 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8473 extended_flex
=`flex --help | grep header-file`
8474 if test -n "$extended_flex"; then
8475 HAVE_FLEX_EXTENDED
=yes
8477 HAVE_FLEX_EXTENDED
=no
8480 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8481 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8483 if test $HAVE_FLEX_EXTENDED = no
; then
8484 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8485 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8490 HAVE_FLEX_EXTENDED
=no
8494 # Flush standard test results for speeding cache
8495 cat >confcache
<<\_ACEOF
8496 # This file is a shell script that caches the results of configure
8497 # tests run on this system so they can be shared between configure
8498 # scripts and configure runs, see configure's option --config-cache.
8499 # It is not useful on other systems. If it contains results you don't
8500 # want to keep, you may remove or edit it.
8502 # config.status only pays attention to the cache file if you give it
8503 # the --recheck option to rerun configure.
8505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8511 # The following way of writing the cache mishandles newlines in values,
8512 # but we know of no workaround that is simple, portable, and efficient.
8513 # So, don't put newlines in cache variables' values.
8514 # Ultrix sh set writes to stderr and can't be redirected directly,
8515 # and sets the high bit in the cache file unless we assign to the vars.
8518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8520 # `set' does not quote correctly, so add quotes (double-quote
8521 # substitution turns \\\\ into \\, and sed turns \\ into \).
8524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8527 # `set' quotes correctly as required by POSIX, so do not add quotes.
8529 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8538 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8540 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8541 if test -w $cache_file; then
8542 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8543 cat confcache
>$cache_file
8545 echo "not updating unwritable cache $cache_file"
8550 # Checks for header files.
8551 echo "$as_me:$LINENO: checking for X" >&5
8552 echo $ECHO_N "checking for X... $ECHO_C" >&6
8555 # Check whether --with-x or --without-x was given.
8556 if test "${with_x+set}" = set; then
8560 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8561 if test "x$with_x" = xno
; then
8562 # The user explicitly disabled X.
8565 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8566 # Both variables are already set.
8569 if test "${ac_cv_have_x+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 # One or both of the vars are not set, and there is no cached value.
8573 ac_x_includes
=no ac_x_libraries
=no
8575 if mkdir conftest.dir
; then
8577 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8578 cat >Imakefile
<<'_ACEOF'
8580 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8582 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8584 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8585 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8586 for ac_extension
in a so sl
; do
8587 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8588 test -f $ac_im_libdir/libX11.
$ac_extension; then
8589 ac_im_usrlibdir
=$ac_im_libdir; break
8592 # Screen out bogus values from the imake configuration. They are
8593 # bogus both because they are the default anyway, and because
8594 # using them would break gcc on systems where it needs fixed includes.
8595 case $ac_im_incroot in
8597 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8599 case $ac_im_usrlibdir in
8601 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8608 # Standard set of common directories for X headers.
8609 # Check X11 before X11Rn because it is often a symlink to the current release.
8621 /usr/local/X11/include
8622 /usr/local/X11R6/include
8623 /usr/local/X11R5/include
8624 /usr/local/X11R4/include
8626 /usr/local/include/X11
8627 /usr/local/include/X11R6
8628 /usr/local/include/X11R5
8629 /usr/local/include/X11R4
8633 /usr/XFree86/include/X11
8637 /usr/unsupported/include
8639 /usr/local/x11r5/include
8640 /usr/lpp/Xamples/include
8642 /usr/openwin/include
8643 /usr/openwin/share/include'
8645 if test "$ac_x_includes" = no
; then
8646 # Guess where to find include files, by looking for Intrinsic.h.
8647 # First, try using that file with no special directory specified.
8648 cat >conftest.
$ac_ext <<_ACEOF
8651 cat confdefs.h
>>conftest.
$ac_ext
8652 cat >>conftest.
$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 #include <X11/Intrinsic.h>
8656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8657 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8659 grep -v '^ *+' conftest.er1
>conftest.err
8661 cat conftest.err
>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } >/dev
/null
; then
8664 if test -s conftest.err
; then
8665 ac_cpp_err
=$ac_c_preproc_warn_flag
8666 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8673 if test -z "$ac_cpp_err"; then
8674 # We can compile using X headers with no special include directory.
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.
$ac_ext >&5
8680 for ac_dir
in $ac_x_header_dirs; do
8681 if test -r "$ac_dir/X11/Intrinsic.h"; then
8682 ac_x_includes
=$ac_dir
8687 rm -f conftest.err conftest.
$ac_ext
8688 fi # $ac_x_includes = no
8690 if test "$ac_x_libraries" = no
; then
8691 # Check for the libraries.
8692 # See if we find them without any special options.
8693 # Don't add to $LIBS permanently.
8696 cat >conftest.
$ac_ext <<_ACEOF
8699 cat confdefs.h
>>conftest.
$ac_ext
8700 cat >>conftest.
$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 #include <X11/Intrinsic.h>
8711 rm -f conftest.
$ac_objext conftest
$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1
>conftest.err
8717 cat conftest.err
>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try
='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try
='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8734 # We can link X programs with no special library path.
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.
$ac_ext >&5
8741 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8743 # Don't even attempt the hair of trying to link an X program!
8744 for ac_extension
in a so sl
; do
8745 if test -r $ac_dir/libXt.
$ac_extension; then
8746 ac_x_libraries
=$ac_dir
8752 rm -f conftest.err conftest.
$ac_objext \
8753 conftest
$ac_exeext conftest.
$ac_ext
8754 fi # $ac_x_libraries = no
8756 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8757 # Didn't find X anywhere. Cache the known absence of X.
8758 ac_cv_have_x
="have_x=no"
8760 # Record where we found X for the cache.
8761 ac_cv_have_x
="have_x=yes \
8762 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8767 eval "$ac_cv_have_x"
8770 if test "$have_x" != yes; then
8771 echo "$as_me:$LINENO: result: $have_x" >&5
8772 echo "${ECHO_T}$have_x" >&6
8775 # If each of the values was on the command line, it overrides each guess.
8776 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8777 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8778 # Update the cache value to reflect the command line values.
8779 ac_cv_have_x
="have_x=yes \
8780 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8781 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8782 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8785 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8786 # for constant arguments. Useless!
8787 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8788 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8789 if test "${ac_cv_working_alloca_h+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 cat >conftest.
$ac_ext <<_ACEOF
8795 cat confdefs.h
>>conftest.
$ac_ext
8796 cat >>conftest.
$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8802 char *p = (char *) alloca (2 * sizeof (int));
8807 rm -f conftest.
$ac_objext conftest
$ac_exeext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809 (eval $ac_link) 2>conftest.er1
8811 grep -v '^ *+' conftest.er1
>conftest.err
8813 cat conftest.err
>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try
='test -z "$ac_c_werror_flag"
8817 || test ! -s conftest.err'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try
='test -s conftest$ac_exeext'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 ac_cv_working_alloca_h
=yes
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.
$ac_ext >&5
8834 ac_cv_working_alloca_h
=no
8836 rm -f conftest.err conftest.
$ac_objext \
8837 conftest
$ac_exeext conftest.
$ac_ext
8839 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8840 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8841 if test $ac_cv_working_alloca_h = yes; then
8843 cat >>confdefs.h
<<\_ACEOF
8844 #define HAVE_ALLOCA_H 1
8849 echo "$as_me:$LINENO: checking for alloca" >&5
8850 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8851 if test "${ac_cv_func_alloca_works+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 cat >conftest.
$ac_ext <<_ACEOF
8857 cat confdefs.h
>>conftest.
$ac_ext
8858 cat >>conftest.
$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8861 # define alloca __builtin_alloca
8864 # include <malloc.h>
8865 # define alloca _alloca
8868 # include <alloca.h>
8873 # ifndef alloca /* predefined by HP cc +Olibcalls */
8884 char *p = (char *) alloca (1);
8889 rm -f conftest.
$ac_objext conftest
$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8893 grep -v '^ *+' conftest.er1
>conftest.err
8895 cat conftest.err
>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try
='test -z "$ac_c_werror_flag"
8899 || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try
='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_func_alloca_works
=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.
$ac_ext >&5
8916 ac_cv_func_alloca_works
=no
8918 rm -f conftest.err conftest.
$ac_objext \
8919 conftest
$ac_exeext conftest.
$ac_ext
8921 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8922 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8924 if test $ac_cv_func_alloca_works = yes; then
8926 cat >>confdefs.h
<<\_ACEOF
8927 #define HAVE_ALLOCA 1
8931 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8932 # that cause trouble. Some versions do not even contain alloca or
8933 # contain a buggy version. If you still want to use their alloca,
8934 # use ar to extract alloca.o from them instead of compiling alloca.c.
8936 ALLOCA
=alloca.
$ac_objext
8938 cat >>confdefs.h
<<\_ACEOF
8943 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8944 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8945 if test "${ac_cv_os_cray+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 cat >conftest.
$ac_ext <<_ACEOF
8951 cat confdefs.h
>>conftest.
$ac_ext
8952 cat >>conftest.
$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #if defined(CRAY) && ! defined(CRAY2)
8961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8962 $EGREP "webecray" >/dev
/null
2>&1; then
8970 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8971 echo "${ECHO_T}$ac_cv_os_cray" >&6
8972 if test $ac_cv_os_cray = yes; then
8973 for ac_func
in _getb67 GETB67 getb67
; do
8974 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8975 echo "$as_me:$LINENO: checking for $ac_func" >&5
8976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8977 if eval "test \"\${$as_ac_var+set}\" = set"; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 cat >conftest.
$ac_ext <<_ACEOF
8983 cat confdefs.h
>>conftest.
$ac_ext
8984 cat >>conftest.
$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8988 #define $ac_func innocuous_$ac_func
8990 /* System header to define __stub macros and hopefully few prototypes,
8991 which can conflict with char $ac_func (); below.
8992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8993 <limits.h> exists even on freestanding compilers. */
8996 # include <limits.h>
8998 # include <assert.h>
9003 /* Override any gcc2 internal prototype to avoid an error. */
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9011 /* The GNU C library defines this for functions which it implements
9012 to always fail with ENOSYS. Some functions are actually named
9013 something starting with __ and the normal name is an alias. */
9014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9017 char (*f) () = $ac_func;
9026 return f != $ac_func;
9031 rm -f conftest.
$ac_objext conftest
$ac_exeext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>conftest.er1
9035 grep -v '^ *+' conftest.er1
>conftest.err
9037 cat conftest.err
>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try
='test -z "$ac_c_werror_flag"
9041 || test ! -s conftest.err'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; } &&
9047 { ac_try
='test -s conftest$ac_exeext'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 eval "$as_ac_var=yes"
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.
$ac_ext >&5
9058 eval "$as_ac_var=no"
9060 rm -f conftest.err conftest.
$ac_objext \
9061 conftest
$ac_exeext conftest.
$ac_ext
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9065 if test `eval echo '${'$as_ac_var'}'` = yes; then
9067 cat >>confdefs.h
<<_ACEOF
9068 #define CRAY_STACKSEG_END $ac_func
9077 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9078 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9079 if test "${ac_cv_c_stack_direction+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 if test "$cross_compiling" = yes; then
9083 ac_cv_c_stack_direction
=0
9085 cat >conftest.
$ac_ext <<_ACEOF
9088 cat confdefs.h
>>conftest.
$ac_ext
9089 cat >>conftest.
$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9092 find_stack_direction ()
9094 static char *addr = 0;
9099 return find_stack_direction ();
9102 return (&dummy > addr) ? 1 : -1;
9108 exit (find_stack_direction () < 0);
9111 rm -f conftest
$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_c_stack_direction
=1
9124 echo "$as_me: program exited with status $ac_status" >&5
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.
$ac_ext >&5
9129 ac_cv_c_stack_direction
=-1
9131 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9135 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9137 cat >>confdefs.h
<<_ACEOF
9138 #define STACK_DIRECTION $ac_cv_c_stack_direction
9150 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9151 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9152 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9153 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 cat >conftest.
$ac_ext <<_ACEOF
9160 cat confdefs.h
>>conftest.
$ac_ext
9161 cat >>conftest.
$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #include <sys/types.h>
9175 rm -f conftest.
$ac_objext
9176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177 (eval $ac_compile) 2>conftest.er1
9179 grep -v '^ *+' conftest.er1
>conftest.err
9181 cat conftest.err
>&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } &&
9184 { ac_try
='test -z "$ac_c_werror_flag"
9185 || test ! -s conftest.err'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try
='test -s conftest.$ac_objext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 eval "$as_ac_Header=yes"
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.
$ac_ext >&5
9202 eval "$as_ac_Header=no"
9204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9209 cat >>confdefs.h
<<_ACEOF
9210 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9213 ac_header_dirent
=$ac_hdr; break
9217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9218 if test $ac_header_dirent = dirent.h
; then
9219 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9220 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9221 if test "${ac_cv_search_opendir+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 ac_func_search_save_LIBS
=$LIBS
9225 ac_cv_search_opendir
=no
9226 cat >conftest.
$ac_ext <<_ACEOF
9229 cat confdefs.h
>>conftest.
$ac_ext
9230 cat >>conftest.
$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9233 /* Override any gcc2 internal prototype to avoid an error. */
9237 /* We use char because int might match the return type of a gcc2
9238 builtin and then its argument prototype would still apply. */
9248 rm -f conftest.
$ac_objext conftest
$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9252 grep -v '^ *+' conftest.er1
>conftest.err
9254 cat conftest.err
>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try
='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try
='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_search_opendir
="none required"
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.
$ac_ext >&5
9276 rm -f conftest.err conftest.
$ac_objext \
9277 conftest
$ac_exeext conftest.
$ac_ext
9278 if test "$ac_cv_search_opendir" = no
; then
9279 for ac_lib
in dir
; do
9280 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9281 cat >conftest.
$ac_ext <<_ACEOF
9284 cat confdefs.h
>>conftest.
$ac_ext
9285 cat >>conftest.
$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 /* Override any gcc2 internal prototype to avoid an error. */
9292 /* We use char because int might match the return type of a gcc2
9293 builtin and then its argument prototype would still apply. */
9303 rm -f conftest.
$ac_objext conftest
$ac_exeext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305 (eval $ac_link) 2>conftest.er1
9307 grep -v '^ *+' conftest.er1
>conftest.err
9309 cat conftest.err
>&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try
='test -z "$ac_c_werror_flag"
9313 || test ! -s conftest.err'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try
='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_search_opendir
="-l$ac_lib"
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.
$ac_ext >&5
9332 rm -f conftest.err conftest.
$ac_objext \
9333 conftest
$ac_exeext conftest.
$ac_ext
9336 LIBS
=$ac_func_search_save_LIBS
9338 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9339 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9340 if test "$ac_cv_search_opendir" != no
; then
9341 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9346 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9348 if test "${ac_cv_search_opendir+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 ac_func_search_save_LIBS
=$LIBS
9352 ac_cv_search_opendir
=no
9353 cat >conftest.
$ac_ext <<_ACEOF
9356 cat confdefs.h
>>conftest.
$ac_ext
9357 cat >>conftest.
$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9360 /* Override any gcc2 internal prototype to avoid an error. */
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9375 rm -f conftest.
$ac_objext conftest
$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9379 grep -v '^ *+' conftest.er1
>conftest.err
9381 cat conftest.err
>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try
='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try
='test -s conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 ac_cv_search_opendir
="none required"
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.
$ac_ext >&5
9403 rm -f conftest.err conftest.
$ac_objext \
9404 conftest
$ac_exeext conftest.
$ac_ext
9405 if test "$ac_cv_search_opendir" = no
; then
9407 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9408 cat >conftest.
$ac_ext <<_ACEOF
9411 cat confdefs.h
>>conftest.
$ac_ext
9412 cat >>conftest.
$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9415 /* Override any gcc2 internal prototype to avoid an error. */
9419 /* We use char because int might match the return type of a gcc2
9420 builtin and then its argument prototype would still apply. */
9430 rm -f conftest.
$ac_objext conftest
$ac_exeext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432 (eval $ac_link) 2>conftest.er1
9434 grep -v '^ *+' conftest.er1
>conftest.err
9436 cat conftest.err
>&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try
='test -z "$ac_c_werror_flag"
9440 || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try
='test -s conftest$ac_exeext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_cv_search_opendir
="-l$ac_lib"
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.
$ac_ext >&5
9459 rm -f conftest.err conftest.
$ac_objext \
9460 conftest
$ac_exeext conftest.
$ac_ext
9463 LIBS
=$ac_func_search_save_LIBS
9465 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9466 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9467 if test "$ac_cv_search_opendir" != no
; then
9468 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9474 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9476 if test "${ac_cv_header_stdc+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.
$ac_ext <<_ACEOF
9482 cat confdefs.h
>>conftest.
$ac_ext
9483 cat >>conftest.
$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9498 rm -f conftest.
$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500 (eval $ac_compile) 2>conftest.er1
9502 grep -v '^ *+' conftest.er1
>conftest.err
9504 cat conftest.err
>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try
='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try
='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_header_stdc
=yes
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.
$ac_ext >&5
9525 ac_cv_header_stdc
=no
9527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9529 if test $ac_cv_header_stdc = yes; then
9530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9531 cat >conftest.
$ac_ext <<_ACEOF
9534 cat confdefs.h
>>conftest.
$ac_ext
9535 cat >>conftest.
$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9541 $EGREP "memchr" >/dev
/null
2>&1; then
9544 ac_cv_header_stdc
=no
9550 if test $ac_cv_header_stdc = yes; then
9551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9552 cat >conftest.
$ac_ext <<_ACEOF
9555 cat confdefs.h
>>conftest.
$ac_ext
9556 cat >>conftest.
$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9562 $EGREP "free" >/dev
/null
2>&1; then
9565 ac_cv_header_stdc
=no
9571 if test $ac_cv_header_stdc = yes; then
9572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9573 if test "$cross_compiling" = yes; then
9576 cat >conftest.
$ac_ext <<_ACEOF
9579 cat confdefs.h
>>conftest.
$ac_ext
9580 cat >>conftest.
$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9583 #if ((' ' & 0x0FF) == 0x020)
9584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9587 # define ISLOWER(c) \
9588 (('a' <= (c) && (c) <= 'i') \
9589 || ('j' <= (c) && (c) <= 'r') \
9590 || ('s' <= (c) && (c) <= 'z'))
9591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9599 for (i = 0; i < 256; i++)
9600 if (XOR (islower (i), ISLOWER (i))
9601 || toupper (i) != TOUPPER (i))
9606 rm -f conftest
$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9619 echo "$as_me: program exited with status $ac_status" >&5
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.
$ac_ext >&5
9624 ac_cv_header_stdc
=no
9626 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9630 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9631 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9632 if test $ac_cv_header_stdc = yes; then
9634 cat >>confdefs.h
<<\_ACEOF
9635 #define STDC_HEADERS 1
9674 for ac_header
in argz.h arpa
/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet
/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h errno.h signal.h
9676 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9678 echo "$as_me:$LINENO: checking for $ac_header" >&5
9679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9686 # Is the header compilable?
9687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9689 cat >conftest.
$ac_ext <<_ACEOF
9692 cat confdefs.h
>>conftest.
$ac_ext
9693 cat >>conftest.
$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 $ac_includes_default
9696 #include <$ac_header>
9698 rm -f conftest.
$ac_objext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9700 (eval $ac_compile) 2>conftest.er1
9702 grep -v '^ *+' conftest.er1
>conftest.err
9704 cat conftest.err
>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try
='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try
='test -s conftest.$ac_objext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_header_compiler
=yes
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.
$ac_ext >&5
9725 ac_header_compiler
=no
9727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9729 echo "${ECHO_T}$ac_header_compiler" >&6
9731 # Is the header present?
9732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9734 cat >conftest.
$ac_ext <<_ACEOF
9737 cat confdefs.h
>>conftest.
$ac_ext
9738 cat >>conftest.
$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 #include <$ac_header>
9742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9743 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
9750 if test -s conftest.err
; then
9751 ac_cpp_err
=$ac_c_preproc_warn_flag
9752 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9759 if test -z "$ac_cpp_err"; then
9760 ac_header_preproc
=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.
$ac_ext >&5
9765 ac_header_preproc
=no
9767 rm -f conftest.err conftest.
$ac_ext
9768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9769 echo "${ECHO_T}$ac_header_preproc" >&6
9771 # So? What about this header?
9772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9778 ac_header_preproc
=yes
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9795 ## ------------------------------ ##
9796 ## Report this to admin@amule.org ##
9797 ## ------------------------------ ##
9800 sed "s/^/$as_me: WARNING: /" >&2
9803 echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 eval "$as_ac_Header=\$ac_header_preproc"
9810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9815 cat >>confdefs.h
<<_ACEOF
9816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9823 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9824 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9825 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 cat >conftest.
$ac_ext <<_ACEOF
9831 cat confdefs.h
>>conftest.
$ac_ext
9832 cat >>conftest.
$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <sys/types.h>
9835 #include <sys/wait.h>
9837 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9853 rm -f conftest.
$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1
>conftest.err
9859 cat conftest.err
>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try
='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try
='test -s conftest.$ac_objext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_header_sys_wait_h
=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.
$ac_ext >&5
9880 ac_cv_header_sys_wait_h
=no
9882 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9885 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9886 if test $ac_cv_header_sys_wait_h = yes; then
9888 cat >>confdefs.h
<<\_ACEOF
9889 #define HAVE_SYS_WAIT_H 1
9895 # Checks for typedefs, structures, and compiler characteristics.
9896 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9897 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9898 if test "${ac_cv_header_stdbool_h+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 cat >conftest.
$ac_ext <<_ACEOF
9904 cat confdefs.h
>>conftest.
$ac_ext
9905 cat >>conftest.
$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 #include <stdbool.h>
9910 # error bool is not defined
9913 # error false is not defined
9916 # error false is not 0
9919 # error true is not defined
9922 # error true is not 1
9924 #ifndef __bool_true_false_are_defined
9925 # error __bool_true_false_are_defined is not defined
9928 struct s { _Bool s: 1; _Bool t; } s;
9930 char a[true == 1 ? 1 : -1];
9931 char b[false == 0 ? 1 : -1];
9932 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9933 char d[(bool) -0.5 == true ? 1 : -1];
9935 char f[(_Bool) -0.0 == false ? 1 : -1];
9937 char h[sizeof (_Bool)];
9943 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9948 rm -f conftest.
$ac_objext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9950 (eval $ac_compile) 2>conftest.er1
9952 grep -v '^ *+' conftest.er1
>conftest.err
9954 cat conftest.err
>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try
='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try
='test -s conftest.$ac_objext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_cv_header_stdbool_h
=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.
$ac_ext >&5
9975 ac_cv_header_stdbool_h
=no
9977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9979 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9980 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9981 echo "$as_me:$LINENO: checking for _Bool" >&5
9982 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9983 if test "${ac_cv_type__Bool+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 cat >conftest.
$ac_ext <<_ACEOF
9989 cat confdefs.h
>>conftest.
$ac_ext
9990 cat >>conftest.
$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
10004 rm -f conftest.
$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>conftest.er1
10008 grep -v '^ *+' conftest.er1
>conftest.err
10010 cat conftest.err
>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try
='test -z "$ac_c_werror_flag"
10014 || test ! -s conftest.err'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try
='test -s conftest.$ac_objext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_cv_type__Bool
=yes
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.
$ac_ext >&5
10031 ac_cv_type__Bool
=no
10033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10035 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10036 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10037 if test $ac_cv_type__Bool = yes; then
10039 cat >>confdefs.h
<<_ACEOF
10040 #define HAVE__BOOL 1
10046 if test $ac_cv_header_stdbool_h = yes; then
10048 cat >>confdefs.h
<<\_ACEOF
10049 #define HAVE_STDBOOL_H 1
10054 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10055 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10056 if test "${ac_cv_c_const+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 cat >conftest.
$ac_ext <<_ACEOF
10062 cat confdefs.h
>>conftest.
$ac_ext
10063 cat >>conftest.
$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10069 /* FIXME: Include the comments suggested by Paul. */
10070 #ifndef __cplusplus
10071 /* Ultrix mips cc rejects this. */
10072 typedef int charset[2];
10074 /* SunOS 4.1.1 cc rejects this. */
10075 char const *const *ccp;
10077 /* NEC SVR4.0.2 mips cc rejects this. */
10078 struct point {int x, y;};
10079 static struct point const zero = {0,0};
10080 /* AIX XL C 1.02.0.0 rejects this.
10081 It does not let you subtract one const X* pointer from another in
10082 an arm of an if-expression whose if-part is not a constant
10084 const char *g = "string";
10085 ccp = &g + (g ? g-g : 0);
10086 /* HPUX 7.0 cc rejects these. */
10089 ccp = (char const *const *) p;
10090 { /* SCO 3.2v4 cc rejects this. */
10092 char const *s = 0 ? (char *) 0 : (char const *) 0;
10096 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10097 int x[] = {25, 17};
10098 const int *foo = &x[0];
10101 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10102 typedef const int *iptr;
10106 { /* AIX XL C 1.02.0.0 rejects this saying
10107 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10108 struct s { int j; const int *ap[3]; };
10109 struct s *b; b->j = 5;
10111 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10112 const int foo = 10;
10120 rm -f conftest.
$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>conftest.er1
10124 grep -v '^ *+' conftest.er1
>conftest.err
10126 cat conftest.err
>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try
='test -z "$ac_c_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try
='test -s conftest.$ac_objext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.
$ac_ext >&5
10149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10151 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10152 echo "${ECHO_T}$ac_cv_c_const" >&6
10153 if test $ac_cv_c_const = no
; then
10155 cat >>confdefs.h
<<\_ACEOF
10161 echo "$as_me:$LINENO: checking for inline" >&5
10162 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10163 if test "${ac_cv_c_inline+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 for ac_kw
in inline __inline__ __inline
; do
10168 cat >conftest.
$ac_ext <<_ACEOF
10171 cat confdefs.h
>>conftest.
$ac_ext
10172 cat >>conftest.
$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 #ifndef __cplusplus
10176 static $ac_kw foo_t static_foo () {return 0; }
10177 $ac_kw foo_t foo () {return 0; }
10181 rm -f conftest.
$ac_objext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>conftest.er1
10185 grep -v '^ *+' conftest.er1
>conftest.err
10187 cat conftest.err
>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try
='test -z "$ac_c_werror_flag"
10191 || test ! -s conftest.err'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; } &&
10197 { ac_try
='test -s conftest.$ac_objext'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_c_inline
=$ac_kw; break
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.
$ac_ext >&5
10209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10213 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10214 echo "${ECHO_T}$ac_cv_c_inline" >&6
10217 case $ac_cv_c_inline in
10220 case $ac_cv_c_inline in
10222 *) ac_val
=$ac_cv_c_inline;;
10224 cat >>confdefs.h
<<_ACEOF
10225 #ifndef __cplusplus
10226 #define inline $ac_val
10232 echo "$as_me:$LINENO: checking for mode_t" >&5
10233 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10234 if test "${ac_cv_type_mode_t+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 cat >conftest.
$ac_ext <<_ACEOF
10240 cat confdefs.h
>>conftest.
$ac_ext
10241 cat >>conftest.
$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 $ac_includes_default
10249 if (sizeof (mode_t))
10255 rm -f conftest.
$ac_objext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>conftest.er1
10259 grep -v '^ *+' conftest.er1
>conftest.err
10261 cat conftest.err
>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try
='test -z "$ac_c_werror_flag"
10265 || test ! -s conftest.err'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try
='test -s conftest.$ac_objext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_type_mode_t
=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.
$ac_ext >&5
10282 ac_cv_type_mode_t
=no
10284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10286 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10287 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10288 if test $ac_cv_type_mode_t = yes; then
10292 cat >>confdefs.h
<<_ACEOF
10298 echo "$as_me:$LINENO: checking for off_t" >&5
10299 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10300 if test "${ac_cv_type_off_t+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. */
10309 $ac_includes_default
10315 if (sizeof (off_t))
10321 rm -f conftest.
$ac_objext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10323 (eval $ac_compile) 2>conftest.er1
10325 grep -v '^ *+' conftest.er1
>conftest.err
10327 cat conftest.err
>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try
='test -z "$ac_c_werror_flag"
10331 || test ! -s conftest.err'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; } &&
10337 { ac_try
='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_cv_type_off_t
=yes
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.
$ac_ext >&5
10348 ac_cv_type_off_t
=no
10350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10352 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10353 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10354 if test $ac_cv_type_off_t = yes; then
10358 cat >>confdefs.h
<<_ACEOF
10364 echo "$as_me:$LINENO: checking for size_t" >&5
10365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10366 if test "${ac_cv_type_size_t+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 cat >conftest.
$ac_ext <<_ACEOF
10372 cat confdefs.h
>>conftest.
$ac_ext
10373 cat >>conftest.
$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10381 if (sizeof (size_t))
10387 rm -f conftest.
$ac_objext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>conftest.er1
10391 grep -v '^ *+' conftest.er1
>conftest.err
10393 cat conftest.err
>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try
='test -z "$ac_c_werror_flag"
10397 || test ! -s conftest.err'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try
='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_type_size_t
=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.
$ac_ext >&5
10414 ac_cv_type_size_t
=no
10416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10418 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10419 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10420 if test $ac_cv_type_size_t = yes; then
10424 cat >>confdefs.h
<<_ACEOF
10425 #define size_t unsigned
10430 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10431 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10432 if test "${ac_cv_header_time+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 cat >conftest.
$ac_ext <<_ACEOF
10438 cat confdefs.h
>>conftest.
$ac_ext
10439 cat >>conftest.
$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/types.h>
10442 #include <sys/time.h>
10448 if ((struct tm *) 0)
10454 rm -f conftest.
$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>conftest.er1
10458 grep -v '^ *+' conftest.er1
>conftest.err
10460 cat conftest.err
>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try
='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try
='test -s conftest.$ac_objext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_header_time
=yes
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.
$ac_ext >&5
10481 ac_cv_header_time
=no
10483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10485 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10486 echo "${ECHO_T}$ac_cv_header_time" >&6
10487 if test $ac_cv_header_time = yes; then
10489 cat >>confdefs.h
<<\_ACEOF
10490 #define TIME_WITH_SYS_TIME 1
10495 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10496 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10497 if test "${ac_cv_struct_tm+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 cat >conftest.
$ac_ext <<_ACEOF
10503 cat confdefs.h
>>conftest.
$ac_ext
10504 cat >>conftest.
$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 #include <sys/types.h>
10512 struct tm *tp; tp->tm_sec;
10517 rm -f conftest.
$ac_objext
10518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>conftest.er1
10521 grep -v '^ *+' conftest.er1
>conftest.err
10523 cat conftest.err
>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try
='test -z "$ac_c_werror_flag"
10527 || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try
='test -s conftest.$ac_objext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_struct_tm
=time.h
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.
$ac_ext >&5
10544 ac_cv_struct_tm
=sys
/time.h
10546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10548 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10549 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10550 if test $ac_cv_struct_tm = sys
/time.h
; then
10552 cat >>confdefs.h
<<\_ACEOF
10553 #define TM_IN_SYS_TIME 1
10558 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10559 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10560 if test "${ac_cv_type_uid_t+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 cat >conftest.
$ac_ext <<_ACEOF
10566 cat confdefs.h
>>conftest.
$ac_ext
10567 cat >>conftest.
$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 #include <sys/types.h>
10572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10573 $EGREP "uid_t" >/dev
/null
2>&1; then
10574 ac_cv_type_uid_t
=yes
10576 ac_cv_type_uid_t
=no
10581 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10582 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10583 if test $ac_cv_type_uid_t = no
; then
10585 cat >>confdefs.h
<<\_ACEOF
10590 cat >>confdefs.h
<<\_ACEOF
10596 echo "$as_me:$LINENO: checking for working volatile" >&5
10597 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10598 if test "${ac_cv_c_volatile+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 cat >conftest.
$ac_ext <<_ACEOF
10604 cat confdefs.h
>>conftest.
$ac_ext
10605 cat >>conftest.
$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10618 rm -f conftest.
$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10622 grep -v '^ *+' conftest.er1
>conftest.err
10624 cat conftest.err
>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try
='test -z "$ac_c_werror_flag"
10628 || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try
='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_c_volatile
=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.
$ac_ext >&5
10645 ac_cv_c_volatile
=no
10647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10649 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10650 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10651 if test $ac_cv_c_volatile = no
; then
10653 cat >>confdefs.h
<<\_ACEOF
10659 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10660 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10661 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 cat >conftest.
$ac_ext <<_ACEOF
10667 cat confdefs.h
>>conftest.
$ac_ext
10668 cat >>conftest.
$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 $ac_includes_default
10674 if ((ptrdiff_t *) 0)
10676 if (sizeof (ptrdiff_t))
10682 rm -f conftest.
$ac_objext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10686 grep -v '^ *+' conftest.er1
>conftest.err
10688 cat conftest.err
>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try
='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try
='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_type_ptrdiff_t
=yes
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.
$ac_ext >&5
10709 ac_cv_type_ptrdiff_t
=no
10711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10713 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10714 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10715 if test $ac_cv_type_ptrdiff_t = yes; then
10717 cat >>confdefs.h
<<_ACEOF
10718 #define HAVE_PTRDIFF_T 1
10725 # Checks for library functions.
10726 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10727 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10728 if test "${ac_cv_func_closedir_void+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 if test "$cross_compiling" = yes; then
10732 ac_cv_func_closedir_void
=yes
10734 cat >conftest.
$ac_ext <<_ACEOF
10737 cat confdefs.h
>>conftest.
$ac_ext
10738 cat >>conftest.
$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 $ac_includes_default
10741 #include <$ac_header_dirent>
10742 #ifndef __cplusplus
10749 exit (closedir (opendir (".")) != 0);
10754 rm -f conftest
$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_func_closedir_void
=no
10767 echo "$as_me: program exited with status $ac_status" >&5
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.
$ac_ext >&5
10771 ( exit $ac_status )
10772 ac_cv_func_closedir_void
=yes
10774 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10777 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10778 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10779 if test $ac_cv_func_closedir_void = yes; then
10781 cat >>confdefs.h
<<\_ACEOF
10782 #define CLOSEDIR_VOID 1
10787 if test $ac_cv_c_compiler_gnu = yes; then
10788 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10789 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10790 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 ac_pattern
="Autoconf.*'x'"
10794 cat >conftest.
$ac_ext <<_ACEOF
10797 cat confdefs.h
>>conftest.
$ac_ext
10798 cat >>conftest.
$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10804 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10805 ac_cv_prog_gcc_traditional
=yes
10807 ac_cv_prog_gcc_traditional
=no
10812 if test $ac_cv_prog_gcc_traditional = no
; then
10813 cat >conftest.
$ac_ext <<_ACEOF
10816 cat confdefs.h
>>conftest.
$ac_ext
10817 cat >>conftest.
$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <termio.h>
10822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10823 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10824 ac_cv_prog_gcc_traditional
=yes
10830 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10831 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10832 if test $ac_cv_prog_gcc_traditional = yes; then
10833 CC
="$CC -traditional"
10837 echo "$as_me:$LINENO: checking for pid_t" >&5
10838 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10839 if test "${ac_cv_type_pid_t+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 cat >conftest.
$ac_ext <<_ACEOF
10845 cat confdefs.h
>>conftest.
$ac_ext
10846 cat >>conftest.
$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 $ac_includes_default
10854 if (sizeof (pid_t))
10860 rm -f conftest.
$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>conftest.er1
10864 grep -v '^ *+' conftest.er1
>conftest.err
10866 cat conftest.err
>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try
='test -z "$ac_c_werror_flag"
10870 || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try
='test -s conftest.$ac_objext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_cv_type_pid_t
=yes
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.
$ac_ext >&5
10887 ac_cv_type_pid_t
=no
10889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10891 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10892 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10893 if test $ac_cv_type_pid_t = yes; then
10897 cat >>confdefs.h
<<_ACEOF
10905 for ac_header
in unistd.h vfork.h
10907 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10909 echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10917 # Is the header compilable?
10918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10920 cat >conftest.
$ac_ext <<_ACEOF
10923 cat confdefs.h
>>conftest.
$ac_ext
10924 cat >>conftest.
$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 #include <$ac_header>
10929 rm -f conftest.
$ac_objext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>conftest.er1
10933 grep -v '^ *+' conftest.er1
>conftest.err
10935 cat conftest.err
>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try
='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try
='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_header_compiler
=yes
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.
$ac_ext >&5
10956 ac_header_compiler
=no
10958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960 echo "${ECHO_T}$ac_header_compiler" >&6
10962 # Is the header present?
10963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10965 cat >conftest.
$ac_ext <<_ACEOF
10968 cat confdefs.h
>>conftest.
$ac_ext
10969 cat >>conftest.
$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 #include <$ac_header>
10973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10974 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10976 grep -v '^ *+' conftest.er1
>conftest.err
10978 cat conftest.err
>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev
/null
; then
10981 if test -s conftest.err
; then
10982 ac_cpp_err
=$ac_c_preproc_warn_flag
10983 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10990 if test -z "$ac_cpp_err"; then
10991 ac_header_preproc
=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.
$ac_ext >&5
10996 ac_header_preproc
=no
10998 rm -f conftest.err conftest.
$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11000 echo "${ECHO_T}$ac_header_preproc" >&6
11002 # So? What about this header?
11003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11009 ac_header_preproc
=yes
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11026 ## ------------------------------ ##
11027 ## Report this to admin@amule.org ##
11028 ## ------------------------------ ##
11031 sed "s/^/$as_me: WARNING: /" >&2
11034 echo "$as_me:$LINENO: checking for $ac_header" >&5
11035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 eval "$as_ac_Header=\$ac_header_preproc"
11041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11046 cat >>confdefs.h
<<_ACEOF
11047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11056 for ac_func
in fork vfork
11058 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11059 echo "$as_me:$LINENO: checking for $ac_func" >&5
11060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11061 if eval "test \"\${$as_ac_var+set}\" = set"; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11072 #define $ac_func innocuous_$ac_func
11074 /* System header to define __stub macros and hopefully few prototypes,
11075 which can conflict with char $ac_func (); below.
11076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11077 <limits.h> exists even on freestanding compilers. */
11080 # include <limits.h>
11082 # include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error. */
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11101 char (*f) () = $ac_func;
11110 return f != $ac_func;
11115 rm -f conftest.
$ac_objext conftest
$ac_exeext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>conftest.er1
11119 grep -v '^ *+' conftest.er1
>conftest.err
11121 cat conftest.err
>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try
='test -z "$ac_c_werror_flag"
11125 || test ! -s conftest.err'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; } &&
11131 { ac_try
='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 eval "$as_ac_var=yes"
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.
$ac_ext >&5
11142 eval "$as_ac_var=no"
11144 rm -f conftest.err conftest.
$ac_objext \
11145 conftest
$ac_exeext conftest.
$ac_ext
11147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11149 if test `eval echo '${'$as_ac_var'}'` = yes; then
11150 cat >>confdefs.h
<<_ACEOF
11151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11157 if test "x$ac_cv_func_fork" = xyes
; then
11158 echo "$as_me:$LINENO: checking for working fork" >&5
11159 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11160 if test "${ac_cv_func_fork_works+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 if test "$cross_compiling" = yes; then
11164 ac_cv_func_fork_works
=cross
11166 cat >conftest.
$ac_ext <<_ACEOF
11167 /* By Ruediger Kuhlmann. */
11168 #include <sys/types.h>
11170 # include <unistd.h>
11172 /* Some systems only have a dummy stub for fork() */
11180 rm -f conftest
$ac_exeext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182 (eval $ac_link) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_func_fork_works
=yes
11193 echo "$as_me: program exited with status $ac_status" >&5
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.
$ac_ext >&5
11197 ( exit $ac_status )
11198 ac_cv_func_fork_works
=no
11200 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11204 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11207 ac_cv_func_fork_works
=$ac_cv_func_fork
11209 if test "x$ac_cv_func_fork_works" = xcross
; then
11211 *-*-amigaos* |
*-*-msdosdjgpp*)
11212 # Override, as these systems have only a dummy fork() stub
11213 ac_cv_func_fork_works
=no
11216 ac_cv_func_fork_works
=yes
11219 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11220 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11222 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11223 if test "x$ac_cv_func_vfork" = xyes
; then
11224 echo "$as_me:$LINENO: checking for working vfork" >&5
11225 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11226 if test "${ac_cv_func_vfork_works+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 if test "$cross_compiling" = yes; then
11230 ac_cv_func_vfork_works
=cross
11232 cat >conftest.
$ac_ext <<_ACEOF
11235 cat confdefs.h
>>conftest.
$ac_ext
11236 cat >>conftest.
$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 /* Thanks to Paul Eggert for this test. */
11240 #include <stdlib.h>
11241 #include <sys/types.h>
11242 #include <sys/stat.h>
11243 #include <sys/wait.h>
11245 # include <unistd.h>
11248 # include <vfork.h>
11250 /* On some sparc systems, changes by the child to local and incoming
11251 argument registers are propagated back to the parent. The compiler
11252 is told about this with #include <vfork.h>, but some compilers
11253 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11254 static variable whose address is put into a register that is
11255 clobbered by the vfork. */
11258 sparc_address_test (int arg)
11260 sparc_address_test (arg) int arg;
11263 static pid_t child;
11281 pid_t parent = getpid ();
11284 sparc_address_test (0);
11289 /* Here is another test for sparc vfork register problems. This
11290 test uses lots of local variables, at least as many local
11291 variables as main has allocated so far including compiler
11292 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11293 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11294 reuse the register of parent for one of the local variables,
11295 since it will think that parent can't possibly be used any more
11296 in this routine. Assigning to the local variable will thus
11297 munge parent in the parent process. */
11299 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11300 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11301 /* Convince the compiler that p..p7 are live; otherwise, it might
11302 use the same hardware register for all 8 local variables. */
11303 if (p != p1 || p != p2 || p != p3 || p != p4
11304 || p != p5 || p != p6 || p != p7)
11307 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11308 from child file descriptors. If the child closes a descriptor
11309 before it execs or exits, this munges the parent's descriptor
11310 as well. Test for this by closing stdout in the child. */
11311 _exit(close(fileno(stdout)) != 0);
11316 while (wait(&status) != child)
11319 /* Was there some problem with vforking? */
11322 /* Did the child fail? (This shouldn't happen.) */
11325 /* Did the vfork/compiler bug occur? */
11326 || parent != getpid()
11328 /* Did the file descriptor bug occur? */
11329 || fstat(fileno(stdout), &st) != 0
11334 rm -f conftest
$ac_exeext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11336 (eval $ac_link) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_func_vfork_works
=yes
11347 echo "$as_me: program exited with status $ac_status" >&5
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.
$ac_ext >&5
11351 ( exit $ac_status )
11352 ac_cv_func_vfork_works
=no
11354 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11357 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11358 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11361 if test "x$ac_cv_func_fork_works" = xcross
; then
11362 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11363 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11364 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11367 if test "x$ac_cv_func_vfork_works" = xyes
; then
11369 cat >>confdefs.h
<<\_ACEOF
11370 #define HAVE_WORKING_VFORK 1
11375 cat >>confdefs.h
<<\_ACEOF
11380 if test "x$ac_cv_func_fork_works" = xyes
; then
11382 cat >>confdefs.h
<<\_ACEOF
11383 #define HAVE_WORKING_FORK 1
11388 if test x
$SYS != xwin32
; then
11390 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11391 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11392 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11393 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 ac_check_lib_save_LIBS
=$LIBS
11398 cat >conftest.
$ac_ext <<_ACEOF
11401 cat confdefs.h
>>conftest.
$ac_ext
11402 cat >>conftest.
$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11405 /* Override any gcc2 internal prototype to avoid an error. */
11409 /* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11420 rm -f conftest.
$ac_objext conftest
$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>conftest.er1
11424 grep -v '^ *+' conftest.er1
>conftest.err
11426 cat conftest.err
>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try
='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try
='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_lib_sun_getmntent
=yes
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.
$ac_ext >&5
11447 ac_cv_lib_sun_getmntent
=no
11449 rm -f conftest.err conftest.
$ac_objext \
11450 conftest
$ac_exeext conftest.
$ac_ext
11451 LIBS
=$ac_check_lib_save_LIBS
11453 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11454 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11455 if test $ac_cv_lib_sun_getmntent = yes; then
11458 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11459 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11460 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 ac_check_lib_save_LIBS
=$LIBS
11465 cat >conftest.
$ac_ext <<_ACEOF
11468 cat confdefs.h
>>conftest.
$ac_ext
11469 cat >>conftest.
$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11472 /* Override any gcc2 internal prototype to avoid an error. */
11476 /* We use char because int might match the return type of a gcc2
11477 builtin and then its argument prototype would still apply. */
11487 rm -f conftest.
$ac_objext conftest
$ac_exeext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11489 (eval $ac_link) 2>conftest.er1
11491 grep -v '^ *+' conftest.er1
>conftest.err
11493 cat conftest.err
>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try
='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try
='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_lib_seq_getmntent
=yes
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.
$ac_ext >&5
11514 ac_cv_lib_seq_getmntent
=no
11516 rm -f conftest.err conftest.
$ac_objext \
11517 conftest
$ac_exeext conftest.
$ac_ext
11518 LIBS
=$ac_check_lib_save_LIBS
11520 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11521 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11522 if test $ac_cv_lib_seq_getmntent = yes; then
11525 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11526 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11527 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 ac_check_lib_save_LIBS
=$LIBS
11532 cat >conftest.
$ac_ext <<_ACEOF
11535 cat confdefs.h
>>conftest.
$ac_ext
11536 cat >>conftest.
$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 /* Override any gcc2 internal prototype to avoid an error. */
11543 /* We use char because int might match the return type of a gcc2
11544 builtin and then its argument prototype would still apply. */
11554 rm -f conftest.
$ac_objext conftest
$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>conftest.er1
11558 grep -v '^ *+' conftest.er1
>conftest.err
11560 cat conftest.err
>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try
='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try
='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_lib_gen_getmntent
=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.
$ac_ext >&5
11581 ac_cv_lib_gen_getmntent
=no
11583 rm -f conftest.err conftest.
$ac_objext \
11584 conftest
$ac_exeext conftest.
$ac_ext
11585 LIBS
=$ac_check_lib_save_LIBS
11587 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11588 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11589 if test $ac_cv_lib_gen_getmntent = yes; then
11598 for ac_func
in getmntent
11600 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601 echo "$as_me:$LINENO: checking for $ac_func" >&5
11602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11603 if eval "test \"\${$as_ac_var+set}\" = set"; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 cat >conftest.
$ac_ext <<_ACEOF
11609 cat confdefs.h
>>conftest.
$ac_ext
11610 cat >>conftest.
$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11614 #define $ac_func innocuous_$ac_func
11616 /* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func (); below.
11618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 <limits.h> exists even on freestanding compilers. */
11622 # include <limits.h>
11624 # include <assert.h>
11629 /* Override any gcc2 internal prototype to avoid an error. */
11634 /* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11637 /* The GNU C library defines this for functions which it implements
11638 to always fail with ENOSYS. Some functions are actually named
11639 something starting with __ and the normal name is an alias. */
11640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11643 char (*f) () = $ac_func;
11652 return f != $ac_func;
11657 rm -f conftest.
$ac_objext conftest
$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>conftest.er1
11661 grep -v '^ *+' conftest.er1
>conftest.err
11663 cat conftest.err
>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try
='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try
='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.
$ac_ext >&5
11684 eval "$as_ac_var=no"
11686 rm -f conftest.err conftest.
$ac_objext \
11687 conftest
$ac_exeext conftest.
$ac_ext
11689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11691 if test `eval echo '${'$as_ac_var'}'` = yes; then
11692 cat >>confdefs.h
<<_ACEOF
11693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11701 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11702 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 rm -f conftest.sym conftest.
file
11706 echo >conftest.
file
11707 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11708 if test "$cross_compiling" = yes; then
11709 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11711 cat >conftest.
$ac_ext <<_ACEOF
11714 cat confdefs.h
>>conftest.
$ac_ext
11715 cat >>conftest.
$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11722 /* Linux will dereference the symlink and fail.
11723 That is better in the sense that it means we will not
11724 have to compile and use the lstat wrapper. */
11725 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11730 rm -f conftest
$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11743 echo "$as_me: program exited with status $ac_status" >&5
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.
$ac_ext >&5
11747 ( exit $ac_status )
11748 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11750 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11753 # If the `ln -s' command failed, then we probably don't even
11754 # have an lstat function.
11755 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11757 rm -f conftest.sym conftest.
file
11760 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11761 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11763 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11765 cat >>confdefs.h
<<_ACEOF
11766 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11770 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11772 "lstat.$ac_objext" | \
11773 *" lstat.$ac_objext" | \
11774 "lstat.$ac_objext "* | \
11775 *" lstat.$ac_objext "* ) ;;
11776 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11781 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11782 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11783 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 if test "$cross_compiling" = yes; then
11787 ac_cv_func_lstat_empty_string_bug
=yes
11789 cat >conftest.
$ac_ext <<_ACEOF
11792 cat confdefs.h
>>conftest.
$ac_ext
11793 cat >>conftest.
$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11800 exit (lstat ("", &sbuf) ? 1 : 0);
11805 rm -f conftest
$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_func_lstat_empty_string_bug
=yes
11818 echo "$as_me: program exited with status $ac_status" >&5
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.
$ac_ext >&5
11822 ( exit $ac_status )
11823 ac_cv_func_lstat_empty_string_bug
=no
11825 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11828 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11829 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11830 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11832 "lstat.$ac_objext" | \
11833 *" lstat.$ac_objext" | \
11834 "lstat.$ac_objext "* | \
11835 *" lstat.$ac_objext "* ) ;;
11836 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11840 cat >>confdefs.h
<<_ACEOF
11841 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11846 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11847 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11848 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 rm -f conftest.sym conftest.
file
11852 echo >conftest.
file
11853 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11854 if test "$cross_compiling" = yes; then
11855 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11857 cat >conftest.
$ac_ext <<_ACEOF
11860 cat confdefs.h
>>conftest.
$ac_ext
11861 cat >>conftest.
$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11868 /* Linux will dereference the symlink and fail.
11869 That is better in the sense that it means we will not
11870 have to compile and use the lstat wrapper. */
11871 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11876 rm -f conftest
$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11889 echo "$as_me: program exited with status $ac_status" >&5
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.
$ac_ext >&5
11893 ( exit $ac_status )
11894 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11896 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11899 # If the `ln -s' command failed, then we probably don't even
11900 # have an lstat function.
11901 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11903 rm -f conftest.sym conftest.
file
11906 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11907 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11909 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11911 cat >>confdefs.h
<<_ACEOF
11912 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11916 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11918 "lstat.$ac_objext" | \
11919 *" lstat.$ac_objext" | \
11920 "lstat.$ac_objext "* | \
11921 *" lstat.$ac_objext "* ) ;;
11922 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11930 echo "$as_me:$LINENO: checking for working memcmp" >&5
11931 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11932 if test "${ac_cv_func_memcmp_working+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 if test "$cross_compiling" = yes; then
11936 ac_cv_func_memcmp_working
=no
11938 cat >conftest.
$ac_ext <<_ACEOF
11941 cat confdefs.h
>>conftest.
$ac_ext
11942 cat >>conftest.
$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11949 /* Some versions of memcmp are not 8-bit clean. */
11950 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11951 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11954 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11955 or more and with at least one buffer not starting on a 4-byte boundary.
11956 William Lewis provided this test program. */
11961 for (i = 0; i < 4; i++)
11965 strcpy (a, "--------01111111");
11966 strcpy (b, "--------10000000");
11967 if (memcmp (a, b, 16) >= 0)
11977 rm -f conftest
$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_cv_func_memcmp_working
=yes
11990 echo "$as_me: program exited with status $ac_status" >&5
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.
$ac_ext >&5
11994 ( exit $ac_status )
11995 ac_cv_func_memcmp_working
=no
11997 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12000 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12001 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12002 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12003 "memcmp.$ac_objext" | \
12004 *" memcmp.$ac_objext" | \
12005 "memcmp.$ac_objext "* | \
12006 *" memcmp.$ac_objext "* ) ;;
12007 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12013 for ac_header
in sys
/select.h sys
/socket.h
12015 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12017 echo "$as_me:$LINENO: checking for $ac_header" >&5
12018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12025 # Is the header compilable?
12026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12028 cat >conftest.
$ac_ext <<_ACEOF
12031 cat confdefs.h
>>conftest.
$ac_ext
12032 cat >>conftest.
$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12035 #include <$ac_header>
12037 rm -f conftest.
$ac_objext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1
>conftest.err
12043 cat conftest.err
>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try
='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try
='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_header_compiler
=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.
$ac_ext >&5
12064 ac_header_compiler
=no
12066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12068 echo "${ECHO_T}$ac_header_compiler" >&6
12070 # Is the header present?
12071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12073 cat >conftest.
$ac_ext <<_ACEOF
12076 cat confdefs.h
>>conftest.
$ac_ext
12077 cat >>conftest.
$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 #include <$ac_header>
12081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12084 grep -v '^ *+' conftest.er1
>conftest.err
12086 cat conftest.err
>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } >/dev
/null
; then
12089 if test -s conftest.err
; then
12090 ac_cpp_err
=$ac_c_preproc_warn_flag
12091 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12098 if test -z "$ac_cpp_err"; then
12099 ac_header_preproc
=yes
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.
$ac_ext >&5
12104 ac_header_preproc
=no
12106 rm -f conftest.err conftest.
$ac_ext
12107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12108 echo "${ECHO_T}$ac_header_preproc" >&6
12110 # So? What about this header?
12111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12117 ac_header_preproc
=yes
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12134 ## ------------------------------ ##
12135 ## Report this to admin@amule.org ##
12136 ## ------------------------------ ##
12139 sed "s/^/$as_me: WARNING: /" >&2
12142 echo "$as_me:$LINENO: checking for $ac_header" >&5
12143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 eval "$as_ac_Header=\$ac_header_preproc"
12149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12154 cat >>confdefs.h
<<_ACEOF
12155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12162 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12163 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12164 if test "${ac_cv_func_select_args+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12168 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12169 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12170 cat >conftest.
$ac_ext <<_ACEOF
12173 cat confdefs.h
>>conftest.
$ac_ext
12174 cat >>conftest.
$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 $ac_includes_default
12177 #if HAVE_SYS_SELECT_H
12178 # include <sys/select.h>
12180 #if HAVE_SYS_SOCKET_H
12181 # include <sys/socket.h>
12187 extern int select ($ac_arg1,
12188 $ac_arg234, $ac_arg234, $ac_arg234,
12194 rm -f conftest.
$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>conftest.er1
12198 grep -v '^ *+' conftest.er1
>conftest.err
12200 cat conftest.err
>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try
='test -z "$ac_c_werror_flag"
12204 || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try
='test -s conftest.$ac_objext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.
$ac_ext >&5
12222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12226 # Provide a safe default value.
12227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12230 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12231 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12232 ac_save_IFS
=$IFS; IFS
=','
12233 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12237 cat >>confdefs.h
<<_ACEOF
12238 #define SELECT_TYPE_ARG1 $1
12242 cat >>confdefs.h
<<_ACEOF
12243 #define SELECT_TYPE_ARG234 ($2)
12247 cat >>confdefs.h
<<_ACEOF
12248 #define SELECT_TYPE_ARG5 ($3)
12253 echo "$as_me:$LINENO: checking for function prototypes" >&5
12254 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12255 if test "$ac_cv_prog_cc_stdc" != no
; then
12256 echo "$as_me:$LINENO: result: yes" >&5
12257 echo "${ECHO_T}yes" >&6
12259 cat >>confdefs.h
<<\_ACEOF
12260 #define PROTOTYPES 1
12264 cat >>confdefs.h
<<\_ACEOF
12265 #define __PROTOTYPES 1
12269 echo "$as_me:$LINENO: result: no" >&5
12270 echo "${ECHO_T}no" >&6
12273 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12274 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12275 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 ac_cv_func_setvbuf_reversed
=no
12279 cat >conftest.
$ac_ext <<_ACEOF
12282 cat confdefs.h
>>conftest.
$ac_ext
12283 cat >>conftest.
$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12287 int (setvbuf) (FILE *, int, char *, size_t);
12292 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12297 rm -f conftest.
$ac_objext conftest
$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>conftest.er1
12301 grep -v '^ *+' conftest.er1
>conftest.err
12303 cat conftest.err
>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try
='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try
='test -s conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 cat >conftest.
$ac_ext <<_ACEOF
12322 cat confdefs.h
>>conftest.
$ac_ext
12323 cat >>conftest.
$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12327 int (setvbuf) (FILE *, int, char *, size_t);
12332 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12337 rm -f conftest.
$ac_objext conftest
$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>conftest.er1
12341 grep -v '^ *+' conftest.er1
>conftest.err
12343 cat conftest.err
>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try
='test -z "$ac_c_werror_flag"
12347 || test ! -s conftest.err'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try
='test -s conftest$ac_exeext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 # It compiles and links either way, so it must not be declared
12360 # with a prototype and most likely this is a K&R C compiler.
12362 if test "$cross_compiling" = yes; then
12363 : # Assume setvbuf is not reversed when cross-compiling.
12365 cat >conftest.
$ac_ext <<_ACEOF
12368 cat confdefs.h
>>conftest.
$ac_ext
12369 cat >>conftest.
$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12375 /* This call has the arguments reversed.
12376 A reversed system may check and see that the address of buf
12377 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12379 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12382 exit (0); /* Non-reversed systems SEGV here. */
12387 rm -f conftest
$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389 (eval $ac_link) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_func_setvbuf_reversed
=yes
12400 echo "$as_me: program exited with status $ac_status" >&5
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.
$ac_ext >&5
12404 ( exit $ac_status )
12407 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12409 ac_cv_func_setvbuf_reversed
=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.
$ac_ext >&5
12415 rm -f conftest.err conftest.
$ac_objext \
12416 conftest
$ac_exeext conftest.
$ac_ext
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.
$ac_ext >&5
12422 rm -f conftest.err conftest.
$ac_objext \
12423 conftest
$ac_exeext conftest.
$ac_ext
12425 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12426 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12427 if test $ac_cv_func_setvbuf_reversed = yes; then
12429 cat >>confdefs.h
<<\_ACEOF
12430 #define SETVBUF_REVERSED 1
12435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12437 if test "${ac_cv_type_signal+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 cat >conftest.
$ac_ext <<_ACEOF
12443 cat confdefs.h
>>conftest.
$ac_ext
12444 cat >>conftest.
$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #include <sys/types.h>
12447 #include <signal.h>
12452 extern "C" void (*signal (int, void (*)(int)))(int);
12454 void (*signal ()) ();
12465 rm -f conftest.
$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>conftest.er1
12469 grep -v '^ *+' conftest.er1
>conftest.err
12471 cat conftest.err
>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try
='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try
='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_cv_type_signal
=void
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.
$ac_ext >&5
12492 ac_cv_type_signal
=int
12494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12497 echo "${ECHO_T}$ac_cv_type_signal" >&6
12499 cat >>confdefs.h
<<_ACEOF
12500 #define RETSIGTYPE $ac_cv_type_signal
12504 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12505 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12506 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 if test "$cross_compiling" = yes; then
12510 ac_cv_func_stat_empty_string_bug
=yes
12512 cat >conftest.
$ac_ext <<_ACEOF
12515 cat confdefs.h
>>conftest.
$ac_ext
12516 cat >>conftest.
$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12523 exit (stat ("", &sbuf) ? 1 : 0);
12528 rm -f conftest
$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_func_stat_empty_string_bug
=yes
12541 echo "$as_me: program exited with status $ac_status" >&5
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.
$ac_ext >&5
12545 ( exit $ac_status )
12546 ac_cv_func_stat_empty_string_bug
=no
12548 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12551 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12552 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12553 if test $ac_cv_func_stat_empty_string_bug = yes; then
12555 "stat.$ac_objext" | \
12556 *" stat.$ac_objext" | \
12557 "stat.$ac_objext "* | \
12558 *" stat.$ac_objext "* ) ;;
12559 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
12563 cat >>confdefs.h
<<_ACEOF
12564 #define HAVE_STAT_EMPTY_STRING_BUG 1
12570 for ac_func
in strftime
12572 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12575 if eval "test \"\${$as_ac_var+set}\" = set"; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 cat >conftest.
$ac_ext <<_ACEOF
12581 cat confdefs.h
>>conftest.
$ac_ext
12582 cat >>conftest.
$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586 #define $ac_func innocuous_$ac_func
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12594 # include <limits.h>
12596 # include <assert.h>
12601 /* Override any gcc2 internal prototype to avoid an error. */
12606 /* We use char because int might match the return type of a gcc2
12607 builtin and then its argument prototype would still apply. */
12609 /* The GNU C library defines this for functions which it implements
12610 to always fail with ENOSYS. Some functions are actually named
12611 something starting with __ and the normal name is an alias. */
12612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12615 char (*f) () = $ac_func;
12624 return f != $ac_func;
12629 rm -f conftest.
$ac_objext conftest
$ac_exeext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>conftest.er1
12633 grep -v '^ *+' conftest.er1
>conftest.err
12635 cat conftest.err
>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try
='test -z "$ac_c_werror_flag"
12639 || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try
='test -s conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 eval "$as_ac_var=yes"
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.
$ac_ext >&5
12656 eval "$as_ac_var=no"
12658 rm -f conftest.err conftest.
$ac_objext \
12659 conftest
$ac_exeext conftest.
$ac_ext
12661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12663 if test `eval echo '${'$as_ac_var'}'` = yes; then
12664 cat >>confdefs.h
<<_ACEOF
12665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12669 # strftime is in -lintl on SCO UNIX.
12670 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12671 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12672 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 ac_check_lib_save_LIBS
=$LIBS
12676 LIBS
="-lintl $LIBS"
12677 cat >conftest.
$ac_ext <<_ACEOF
12680 cat confdefs.h
>>conftest.
$ac_ext
12681 cat >>conftest.
$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12684 /* Override any gcc2 internal prototype to avoid an error. */
12688 /* We use char because int might match the return type of a gcc2
12689 builtin and then its argument prototype would still apply. */
12699 rm -f conftest.
$ac_objext conftest
$ac_exeext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>conftest.er1
12703 grep -v '^ *+' conftest.er1
>conftest.err
12705 cat conftest.err
>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try
='test -z "$ac_c_werror_flag"
12709 || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try
='test -s conftest$ac_exeext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_lib_intl_strftime
=yes
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.
$ac_ext >&5
12726 ac_cv_lib_intl_strftime
=no
12728 rm -f conftest.err conftest.
$ac_objext \
12729 conftest
$ac_exeext conftest.
$ac_ext
12730 LIBS
=$ac_check_lib_save_LIBS
12732 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12733 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12734 if test $ac_cv_lib_intl_strftime = yes; then
12735 cat >>confdefs.h
<<\_ACEOF
12736 #define HAVE_STRFTIME 1
12739 LIBS
="-lintl $LIBS"
12745 echo "$as_me:$LINENO: checking for working strtod" >&5
12746 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12747 if test "${ac_cv_func_strtod+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 if test "$cross_compiling" = yes; then
12751 ac_cv_func_strtod
=no
12753 cat >conftest.
$ac_ext <<_ACEOF
12756 cat confdefs.h
>>conftest.
$ac_ext
12757 cat >>conftest.
$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12765 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12766 char *string = " +69";
12769 value = strtod (string, &term);
12770 if (value != 69 || term != (string + 4))
12775 /* Under Solaris 2.4, strtod returns the wrong value for the
12776 terminating character under some conditions. */
12777 char *string = "NaN";
12779 strtod (string, &term);
12780 if (term != string && *(term - 1) == 0)
12787 rm -f conftest
$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_func_strtod
=yes
12800 echo "$as_me: program exited with status $ac_status" >&5
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.
$ac_ext >&5
12804 ( exit $ac_status )
12805 ac_cv_func_strtod
=no
12807 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12810 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12811 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12812 if test $ac_cv_func_strtod = no
; then
12814 "strtod.$ac_objext" | \
12815 *" strtod.$ac_objext" | \
12816 "strtod.$ac_objext "* | \
12817 *" strtod.$ac_objext "* ) ;;
12818 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
12821 echo "$as_me:$LINENO: checking for pow" >&5
12822 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12823 if test "${ac_cv_func_pow+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 cat >conftest.
$ac_ext <<_ACEOF
12829 cat confdefs.h
>>conftest.
$ac_ext
12830 cat >>conftest.
$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12834 #define pow innocuous_pow
12836 /* System header to define __stub macros and hopefully few prototypes,
12837 which can conflict with char pow (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12842 # include <limits.h>
12844 # include <assert.h>
12849 /* Override any gcc2 internal prototype to avoid an error. */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12857 /* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined (__stub_pow) || defined (__stub___pow)
12863 char (*f) () = pow;
12877 rm -f conftest.
$ac_objext conftest
$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12881 grep -v '^ *+' conftest.er1
>conftest.err
12883 cat conftest.err
>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try
='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try
='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.
$ac_ext >&5
12906 rm -f conftest.err conftest.
$ac_objext \
12907 conftest
$ac_exeext conftest.
$ac_ext
12909 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12910 echo "${ECHO_T}$ac_cv_func_pow" >&6
12912 if test $ac_cv_func_pow = no
; then
12913 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12914 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12915 if test "${ac_cv_lib_m_pow+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 ac_check_lib_save_LIBS
=$LIBS
12920 cat >conftest.
$ac_ext <<_ACEOF
12923 cat confdefs.h
>>conftest.
$ac_ext
12924 cat >>conftest.
$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12927 /* Override any gcc2 internal prototype to avoid an error. */
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12942 rm -f conftest.
$ac_objext conftest
$ac_exeext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12944 (eval $ac_link) 2>conftest.er1
12946 grep -v '^ *+' conftest.er1
>conftest.err
12948 cat conftest.err
>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try
='test -z "$ac_c_werror_flag"
12952 || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try
='test -s conftest$ac_exeext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_cv_lib_m_pow
=yes
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.
$ac_ext >&5
12971 rm -f conftest.err conftest.
$ac_objext \
12972 conftest
$ac_exeext conftest.
$ac_ext
12973 LIBS
=$ac_check_lib_save_LIBS
12975 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12976 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
12977 if test $ac_cv_lib_m_pow = yes; then
12980 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12981 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12989 for ac_func
in vprintf
12991 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12992 echo "$as_me:$LINENO: checking for $ac_func" >&5
12993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12994 if eval "test \"\${$as_ac_var+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 cat >conftest.
$ac_ext <<_ACEOF
13000 cat confdefs.h
>>conftest.
$ac_ext
13001 cat >>conftest.
$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13005 #define $ac_func innocuous_$ac_func
13007 /* System header to define __stub macros and hopefully few prototypes,
13008 which can conflict with char $ac_func (); below.
13009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13010 <limits.h> exists even on freestanding compilers. */
13013 # include <limits.h>
13015 # include <assert.h>
13020 /* Override any gcc2 internal prototype to avoid an error. */
13025 /* We use char because int might match the return type of a gcc2
13026 builtin and then its argument prototype would still apply. */
13028 /* The GNU C library defines this for functions which it implements
13029 to always fail with ENOSYS. Some functions are actually named
13030 something starting with __ and the normal name is an alias. */
13031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13034 char (*f) () = $ac_func;
13043 return f != $ac_func;
13048 rm -f conftest.
$ac_objext conftest
$ac_exeext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>conftest.er1
13052 grep -v '^ *+' conftest.er1
>conftest.err
13054 cat conftest.err
>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try
='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try
='test -s 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 eval "$as_ac_var=yes"
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.
$ac_ext >&5
13075 eval "$as_ac_var=no"
13077 rm -f conftest.err conftest.
$ac_objext \
13078 conftest
$ac_exeext conftest.
$ac_ext
13080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13082 if test `eval echo '${'$as_ac_var'}'` = yes; then
13083 cat >>confdefs.h
<<_ACEOF
13084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13087 echo "$as_me:$LINENO: checking for _doprnt" >&5
13088 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13089 if test "${ac_cv_func__doprnt+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 cat >conftest.
$ac_ext <<_ACEOF
13095 cat confdefs.h
>>conftest.
$ac_ext
13096 cat >>conftest.
$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13100 #define _doprnt innocuous__doprnt
13102 /* System header to define __stub macros and hopefully few prototypes,
13103 which can conflict with char _doprnt (); below.
13104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13105 <limits.h> exists even on freestanding compilers. */
13108 # include <limits.h>
13110 # include <assert.h>
13115 /* Override any gcc2 internal prototype to avoid an error. */
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13123 /* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13129 char (*f) () = _doprnt;
13138 return f != _doprnt;
13143 rm -f conftest.
$ac_objext conftest
$ac_exeext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145 (eval $ac_link) 2>conftest.er1
13147 grep -v '^ *+' conftest.er1
>conftest.err
13149 cat conftest.err
>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try
='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
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); }; } &&
13159 { ac_try
='test -s conftest$ac_exeext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_cv_func__doprnt
=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.
$ac_ext >&5
13170 ac_cv_func__doprnt
=no
13172 rm -f conftest.err conftest.
$ac_objext \
13173 conftest
$ac_exeext conftest.
$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13176 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13177 if test $ac_cv_func__doprnt = yes; then
13179 cat >>confdefs.h
<<\_ACEOF
13180 #define HAVE_DOPRNT 1
13189 if test $cross_compiling = yes -a $gnumalloc = yes; then
13191 { echo "$as_me:$LINENO: WARNING:
13192 configure cannot check whether malloc() and realloc() are GNU libc
13193 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13194 run configure with the --without-gnu-malloc switch." >&5
13195 echo "$as_me: WARNING:
13196 configure cannot check whether malloc() and realloc() are GNU libc
13197 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13198 run configure with the --without-gnu-malloc switch." >&2;}
13199 _mule_warning_7
=yes
13200 _mule_has_warnings
=yes
13202 ac_cv_func_malloc_0_nonnull
=yes
13203 ac_cv_func_realloc_0_nonnull
=yes
13208 for ac_header
in stdlib.h
13210 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo "$as_me:$LINENO: checking for $ac_header" >&5
13213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13220 # Is the header compilable?
13221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13223 cat >conftest.
$ac_ext <<_ACEOF
13226 cat confdefs.h
>>conftest.
$ac_ext
13227 cat >>conftest.
$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 $ac_includes_default
13230 #include <$ac_header>
13232 rm -f conftest.
$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13236 grep -v '^ *+' conftest.er1
>conftest.err
13238 cat conftest.err
>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try
='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try
='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_header_compiler
=yes
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.
$ac_ext >&5
13259 ac_header_compiler
=no
13261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263 echo "${ECHO_T}$ac_header_compiler" >&6
13265 # Is the header present?
13266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13268 cat >conftest.
$ac_ext <<_ACEOF
13271 cat confdefs.h
>>conftest.
$ac_ext
13272 cat >>conftest.
$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <$ac_header>
13276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13279 grep -v '^ *+' conftest.er1
>conftest.err
13281 cat conftest.err
>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } >/dev
/null
; then
13284 if test -s conftest.err
; then
13285 ac_cpp_err
=$ac_c_preproc_warn_flag
13286 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13293 if test -z "$ac_cpp_err"; then
13294 ac_header_preproc
=yes
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.
$ac_ext >&5
13299 ac_header_preproc
=no
13301 rm -f conftest.err conftest.
$ac_ext
13302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303 echo "${ECHO_T}$ac_header_preproc" >&6
13305 # So? What about this header?
13306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13312 ac_header_preproc
=yes
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13329 ## ------------------------------ ##
13330 ## Report this to admin@amule.org ##
13331 ## ------------------------------ ##
13334 sed "s/^/$as_me: WARNING: /" >&2
13337 echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 eval "$as_ac_Header=\$ac_header_preproc"
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13349 cat >>confdefs.h
<<_ACEOF
13350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13357 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13358 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13359 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 if test "$cross_compiling" = yes; then
13363 ac_cv_func_malloc_0_nonnull
=no
13365 cat >conftest.
$ac_ext <<_ACEOF
13368 cat confdefs.h
>>conftest.
$ac_ext
13369 cat >>conftest.
$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #if STDC_HEADERS || HAVE_STDLIB_H
13372 # include <stdlib.h>
13380 exit (malloc (0) ? 0 : 1);
13385 rm -f conftest
$ac_exeext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_func_malloc_0_nonnull
=yes
13398 echo "$as_me: program exited with status $ac_status" >&5
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.
$ac_ext >&5
13402 ( exit $ac_status )
13403 ac_cv_func_malloc_0_nonnull
=no
13405 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13408 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13409 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13410 if test $ac_cv_func_malloc_0_nonnull = yes; then
13412 cat >>confdefs.h
<<\_ACEOF
13413 #define HAVE_MALLOC 1
13417 cat >>confdefs.h
<<\_ACEOF
13418 #define HAVE_MALLOC 0
13422 "malloc.$ac_objext" | \
13423 *" malloc.$ac_objext" | \
13424 "malloc.$ac_objext "* | \
13425 *" malloc.$ac_objext "* ) ;;
13426 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
13430 cat >>confdefs.h
<<\_ACEOF
13431 #define malloc rpl_malloc
13439 for ac_header
in stdlib.h
13441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13443 echo "$as_me:$LINENO: checking for $ac_header" >&5
13444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13451 # Is the header compilable?
13452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13454 cat >conftest.
$ac_ext <<_ACEOF
13457 cat confdefs.h
>>conftest.
$ac_ext
13458 cat >>conftest.
$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13461 #include <$ac_header>
13463 rm -f conftest.
$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>conftest.er1
13467 grep -v '^ *+' conftest.er1
>conftest.err
13469 cat conftest.err
>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try
='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try
='test -s conftest.$ac_objext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_header_compiler
=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.
$ac_ext >&5
13490 ac_header_compiler
=no
13492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13494 echo "${ECHO_T}$ac_header_compiler" >&6
13496 # Is the header present?
13497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13499 cat >conftest.
$ac_ext <<_ACEOF
13502 cat confdefs.h
>>conftest.
$ac_ext
13503 cat >>conftest.
$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 #include <$ac_header>
13507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13508 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13510 grep -v '^ *+' conftest.er1
>conftest.err
13512 cat conftest.err
>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } >/dev
/null
; then
13515 if test -s conftest.err
; then
13516 ac_cpp_err
=$ac_c_preproc_warn_flag
13517 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13524 if test -z "$ac_cpp_err"; then
13525 ac_header_preproc
=yes
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.
$ac_ext >&5
13530 ac_header_preproc
=no
13532 rm -f conftest.err conftest.
$ac_ext
13533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13534 echo "${ECHO_T}$ac_header_preproc" >&6
13536 # So? What about this header?
13537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13543 ac_header_preproc
=yes
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13560 ## ------------------------------ ##
13561 ## Report this to admin@amule.org ##
13562 ## ------------------------------ ##
13565 sed "s/^/$as_me: WARNING: /" >&2
13568 echo "$as_me:$LINENO: checking for $ac_header" >&5
13569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 eval "$as_ac_Header=\$ac_header_preproc"
13575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13580 cat >>confdefs.h
<<_ACEOF
13581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13588 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13589 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13590 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 if test "$cross_compiling" = yes; then
13594 ac_cv_func_realloc_0_nonnull
=no
13596 cat >conftest.
$ac_ext <<_ACEOF
13599 cat confdefs.h
>>conftest.
$ac_ext
13600 cat >>conftest.
$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #if STDC_HEADERS || HAVE_STDLIB_H
13603 # include <stdlib.h>
13611 exit (realloc (0, 0) ? 0 : 1);
13616 rm -f conftest
$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_func_realloc_0_nonnull
=yes
13629 echo "$as_me: program exited with status $ac_status" >&5
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.
$ac_ext >&5
13633 ( exit $ac_status )
13634 ac_cv_func_realloc_0_nonnull
=no
13636 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13639 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13640 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13641 if test $ac_cv_func_realloc_0_nonnull = yes; then
13643 cat >>confdefs.h
<<\_ACEOF
13644 #define HAVE_REALLOC 1
13648 cat >>confdefs.h
<<\_ACEOF
13649 #define HAVE_REALLOC 0
13653 "realloc.$ac_objext" | \
13654 *" realloc.$ac_objext" | \
13655 "realloc.$ac_objext "* | \
13656 *" realloc.$ac_objext "* ) ;;
13657 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
13661 cat >>confdefs.h
<<\_ACEOF
13662 #define realloc rpl_realloc
13702 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13704 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13705 echo "$as_me:$LINENO: checking for $ac_func" >&5
13706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13707 if eval "test \"\${$as_ac_var+set}\" = set"; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.
$ac_ext <<_ACEOF
13713 cat confdefs.h
>>conftest.
$ac_ext
13714 cat >>conftest.
$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13718 #define $ac_func innocuous_$ac_func
13720 /* System header to define __stub macros and hopefully few prototypes,
13721 which can conflict with char $ac_func (); below.
13722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13723 <limits.h> exists even on freestanding compilers. */
13726 # include <limits.h>
13728 # include <assert.h>
13733 /* Override any gcc2 internal prototype to avoid an error. */
13738 /* We use char because int might match the return type of a gcc2
13739 builtin and then its argument prototype would still apply. */
13741 /* The GNU C library defines this for functions which it implements
13742 to always fail with ENOSYS. Some functions are actually named
13743 something starting with __ and the normal name is an alias. */
13744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13747 char (*f) () = $ac_func;
13756 return f != $ac_func;
13761 rm -f conftest.
$ac_objext conftest
$ac_exeext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13763 (eval $ac_link) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1
>conftest.err
13767 cat conftest.err
>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try
='test -z "$ac_c_werror_flag"
13771 || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try
='test -s conftest$ac_exeext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 eval "$as_ac_var=yes"
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.
$ac_ext >&5
13788 eval "$as_ac_var=no"
13790 rm -f conftest.err conftest.
$ac_objext \
13791 conftest
$ac_exeext conftest.
$ac_ext
13793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13795 if test `eval echo '${'$as_ac_var'}'` = yes; then
13796 cat >>confdefs.h
<<_ACEOF
13797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13803 #-------------------------------------------------------------------------------
13804 # End of autoscan stuff
13805 #-------------------------------------------------------------------------------
13811 for ac_func
in mkdir getrlimit setrlimit getopt_long
13813 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814 echo "$as_me:$LINENO: checking for $ac_func" >&5
13815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13816 if eval "test \"\${$as_ac_var+set}\" = set"; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 cat >conftest.
$ac_ext <<_ACEOF
13822 cat confdefs.h
>>conftest.
$ac_ext
13823 cat >>conftest.
$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13827 #define $ac_func innocuous_$ac_func
13829 /* System header to define __stub macros and hopefully few prototypes,
13830 which can conflict with char $ac_func (); below.
13831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13832 <limits.h> exists even on freestanding compilers. */
13835 # include <limits.h>
13837 # include <assert.h>
13842 /* Override any gcc2 internal prototype to avoid an error. */
13847 /* We use char because int might match the return type of a gcc2
13848 builtin and then its argument prototype would still apply. */
13850 /* The GNU C library defines this for functions which it implements
13851 to always fail with ENOSYS. Some functions are actually named
13852 something starting with __ and the normal name is an alias. */
13853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13856 char (*f) () = $ac_func;
13865 return f != $ac_func;
13870 rm -f conftest.
$ac_objext conftest
$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>conftest.er1
13874 grep -v '^ *+' conftest.er1
>conftest.err
13876 cat conftest.err
>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try
='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try
='test -s conftest$ac_exeext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 eval "$as_ac_var=yes"
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.
$ac_ext >&5
13897 eval "$as_ac_var=no"
13899 rm -f conftest.err conftest.
$ac_objext \
13900 conftest
$ac_exeext conftest.
$ac_ext
13902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13904 if test `eval echo '${'$as_ac_var'}'` = yes; then
13905 cat >>confdefs.h
<<_ACEOF
13906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13913 # Check whether --enable-mmap or --disable-mmap was given.
13914 if test "${enable_mmap+set}" = set; then
13915 enableval
="$enable_mmap"
13919 if test ${enable_mmap:-no} = yes; then
13922 for ac_header
in sys
/mman.h
13924 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926 echo "$as_me:$LINENO: checking for $ac_header" >&5
13927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13934 # Is the header compilable?
13935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13937 cat >conftest.
$ac_ext <<_ACEOF
13940 cat confdefs.h
>>conftest.
$ac_ext
13941 cat >>conftest.
$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <$ac_header>
13946 rm -f conftest.
$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13950 grep -v '^ *+' conftest.er1
>conftest.err
13952 cat conftest.err
>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try
='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try
='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_header_compiler
=yes
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.
$ac_ext >&5
13973 ac_header_compiler
=no
13975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13977 echo "${ECHO_T}$ac_header_compiler" >&6
13979 # Is the header present?
13980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13982 cat >conftest.
$ac_ext <<_ACEOF
13985 cat confdefs.h
>>conftest.
$ac_ext
13986 cat >>conftest.
$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <$ac_header>
13990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13991 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13993 grep -v '^ *+' conftest.er1
>conftest.err
13995 cat conftest.err
>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } >/dev
/null
; then
13998 if test -s conftest.err
; then
13999 ac_cpp_err
=$ac_c_preproc_warn_flag
14000 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14007 if test -z "$ac_cpp_err"; then
14008 ac_header_preproc
=yes
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.
$ac_ext >&5
14013 ac_header_preproc
=no
14015 rm -f conftest.err conftest.
$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14017 echo "${ECHO_T}$ac_header_preproc" >&6
14019 # So? What about this header?
14020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14026 ac_header_preproc
=yes
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14043 ## ------------------------------ ##
14044 ## Report this to admin@amule.org ##
14045 ## ------------------------------ ##
14048 sed "s/^/$as_me: WARNING: /" >&2
14051 echo "$as_me:$LINENO: checking for $ac_header" >&5
14052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 eval "$as_ac_Header=\$ac_header_preproc"
14058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14063 cat >>confdefs.h
<<_ACEOF
14064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14073 for ac_header
in stdlib.h unistd.h
14075 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14077 echo "$as_me:$LINENO: checking for $ac_header" >&5
14078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14085 # Is the header compilable?
14086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14088 cat >conftest.
$ac_ext <<_ACEOF
14091 cat confdefs.h
>>conftest.
$ac_ext
14092 cat >>conftest.
$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 $ac_includes_default
14095 #include <$ac_header>
14097 rm -f conftest.
$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>conftest.er1
14101 grep -v '^ *+' conftest.er1
>conftest.err
14103 cat conftest.err
>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try
='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try
='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_header_compiler
=yes
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.
$ac_ext >&5
14124 ac_header_compiler
=no
14126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14128 echo "${ECHO_T}$ac_header_compiler" >&6
14130 # Is the header present?
14131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14133 cat >conftest.
$ac_ext <<_ACEOF
14136 cat confdefs.h
>>conftest.
$ac_ext
14137 cat >>conftest.
$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <$ac_header>
14141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14144 grep -v '^ *+' conftest.er1
>conftest.err
14146 cat conftest.err
>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } >/dev
/null
; then
14149 if test -s conftest.err
; then
14150 ac_cpp_err
=$ac_c_preproc_warn_flag
14151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14158 if test -z "$ac_cpp_err"; then
14159 ac_header_preproc
=yes
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.
$ac_ext >&5
14164 ac_header_preproc
=no
14166 rm -f conftest.err conftest.
$ac_ext
14167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14168 echo "${ECHO_T}$ac_header_preproc" >&6
14170 # So? What about this header?
14171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14177 ac_header_preproc
=yes
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14194 ## ------------------------------ ##
14195 ## Report this to admin@amule.org ##
14196 ## ------------------------------ ##
14199 sed "s/^/$as_me: WARNING: /" >&2
14202 echo "$as_me:$LINENO: checking for $ac_header" >&5
14203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 eval "$as_ac_Header=\$ac_header_preproc"
14209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14214 cat >>confdefs.h
<<_ACEOF
14215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14223 for ac_func
in getpagesize
14225 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14226 echo "$as_me:$LINENO: checking for $ac_func" >&5
14227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14228 if eval "test \"\${$as_ac_var+set}\" = set"; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.
$ac_ext <<_ACEOF
14234 cat confdefs.h
>>conftest.
$ac_ext
14235 cat >>conftest.
$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14239 #define $ac_func innocuous_$ac_func
14241 /* System header to define __stub macros and hopefully few prototypes,
14242 which can conflict with char $ac_func (); below.
14243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14244 <limits.h> exists even on freestanding compilers. */
14247 # include <limits.h>
14249 # include <assert.h>
14254 /* Override any gcc2 internal prototype to avoid an error. */
14259 /* We use char because int might match the return type of a gcc2
14260 builtin and then its argument prototype would still apply. */
14262 /* The GNU C library defines this for functions which it implements
14263 to always fail with ENOSYS. Some functions are actually named
14264 something starting with __ and the normal name is an alias. */
14265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14268 char (*f) () = $ac_func;
14277 return f != $ac_func;
14282 rm -f conftest.
$ac_objext conftest
$ac_exeext
14283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284 (eval $ac_link) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1
>conftest.err
14288 cat conftest.err
>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try
='test -z "$ac_c_werror_flag"
14292 || test ! -s conftest.err'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try
='test -s conftest$ac_exeext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 eval "$as_ac_var=yes"
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.
$ac_ext >&5
14309 eval "$as_ac_var=no"
14311 rm -f conftest.err conftest.
$ac_objext \
14312 conftest
$ac_exeext conftest.
$ac_ext
14314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14316 if test `eval echo '${'$as_ac_var'}'` = yes; then
14317 cat >>confdefs.h
<<_ACEOF
14318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14324 echo "$as_me:$LINENO: checking for working mmap" >&5
14325 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14326 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 if test "$cross_compiling" = yes; then
14330 ac_cv_func_mmap_fixed_mapped
=no
14332 cat >conftest.
$ac_ext <<_ACEOF
14335 cat confdefs.h
>>conftest.
$ac_ext
14336 cat >>conftest.
$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 $ac_includes_default
14339 /* malloc might have been renamed as rpl_malloc. */
14342 /* Thanks to Mike Haertel and Jim Avera for this test.
14343 Here is a matrix of mmap possibilities:
14344 mmap private not fixed
14345 mmap private fixed at somewhere currently unmapped
14346 mmap private fixed at somewhere already mapped
14347 mmap shared not fixed
14348 mmap shared fixed at somewhere currently unmapped
14349 mmap shared fixed at somewhere already mapped
14350 For private mappings, we should verify that changes cannot be read()
14351 back from the file, nor mmap's back from the file at a different
14352 address. (There have been systems where private was not correctly
14353 implemented like the infamous i386 svr4.0, and systems where the
14354 VM page cache was not coherent with the file system buffer cache
14355 like early versions of FreeBSD and possibly contemporary NetBSD.)
14356 For shared mappings, we should conversely verify that changes get
14357 propagated back to all the places they're supposed to be.
14359 Grep wants private fixed already mapped.
14360 The main things grep needs to know about mmap are:
14361 * does it exist and is it safe to write into the mmap'd area
14362 * how to use it (BSD variants) */
14365 #include <sys/mman.h>
14367 #if !STDC_HEADERS && !HAVE_STDLIB_H
14371 /* This mess was copied from the GNU getpagesize.h. */
14372 #if !HAVE_GETPAGESIZE
14373 /* Assume that all systems that can run configure have sys/param.h. */
14374 # if !HAVE_SYS_PARAM_H
14375 # define HAVE_SYS_PARAM_H 1
14378 # ifdef _SC_PAGESIZE
14379 # define getpagesize() sysconf(_SC_PAGESIZE)
14380 # else /* no _SC_PAGESIZE */
14381 # if HAVE_SYS_PARAM_H
14382 # include <sys/param.h>
14383 # ifdef EXEC_PAGESIZE
14384 # define getpagesize() EXEC_PAGESIZE
14385 # else /* no EXEC_PAGESIZE */
14387 # define getpagesize() NBPG * CLSIZE
14390 # endif /* no CLSIZE */
14391 # else /* no NBPG */
14393 # define getpagesize() NBPC
14394 # else /* no NBPC */
14396 # define getpagesize() PAGESIZE
14397 # endif /* PAGESIZE */
14398 # endif /* no NBPC */
14399 # endif /* no NBPG */
14400 # endif /* no EXEC_PAGESIZE */
14401 # else /* no HAVE_SYS_PARAM_H */
14402 # define getpagesize() 8192 /* punt totally */
14403 # endif /* no HAVE_SYS_PARAM_H */
14404 # endif /* no _SC_PAGESIZE */
14406 #endif /* no HAVE_GETPAGESIZE */
14411 char *data, *data2, *data3;
14415 pagesize = getpagesize ();
14417 /* First, make a file with some known garbage in it. */
14418 data = (char *) malloc (pagesize);
14421 for (i = 0; i < pagesize; ++i)
14422 *(data + i) = rand ();
14424 fd = creat ("conftest.mmap", 0600);
14427 if (write (fd, data, pagesize) != pagesize)
14431 /* Next, try to mmap the file at a fixed address which already has
14432 something else allocated at it. If we can, also make sure that
14433 we see the same garbage. */
14434 fd = open ("conftest.mmap", O_RDWR);
14437 data2 = (char *) malloc (2 * pagesize);
14440 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14441 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14442 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14444 for (i = 0; i < pagesize; ++i)
14445 if (*(data + i) != *(data2 + i))
14448 /* Finally, make sure that changes to the mapped area do not
14449 percolate back to the file as seen by read(). (This is a bug on
14450 some variants of i386 svr4.0.) */
14451 for (i = 0; i < pagesize; ++i)
14452 *(data2 + i) = *(data2 + i) + 1;
14453 data3 = (char *) malloc (pagesize);
14456 if (read (fd, data3, pagesize) != pagesize)
14458 for (i = 0; i < pagesize; ++i)
14459 if (*(data + i) != *(data3 + i))
14465 rm -f conftest
$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_func_mmap_fixed_mapped
=yes
14478 echo "$as_me: program exited with status $ac_status" >&5
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.
$ac_ext >&5
14482 ( exit $ac_status )
14483 ac_cv_func_mmap_fixed_mapped
=no
14485 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14488 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14489 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14490 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14492 cat >>confdefs.h
<<\_ACEOF
14493 #define HAVE_MMAP 1
14497 rm -f conftest.mmap
14500 for ac_func
in munmap
14502 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14503 echo "$as_me:$LINENO: checking for $ac_func" >&5
14504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14505 if eval "test \"\${$as_ac_var+set}\" = set"; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 cat >conftest.
$ac_ext <<_ACEOF
14511 cat confdefs.h
>>conftest.
$ac_ext
14512 cat >>conftest.
$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14516 #define $ac_func innocuous_$ac_func
14518 /* System header to define __stub macros and hopefully few prototypes,
14519 which can conflict with char $ac_func (); below.
14520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521 <limits.h> exists even on freestanding compilers. */
14524 # include <limits.h>
14526 # include <assert.h>
14531 /* Override any gcc2 internal prototype to avoid an error. */
14536 /* We use char because int might match the return type of a gcc2
14537 builtin and then its argument prototype would still apply. */
14539 /* The GNU C library defines this for functions which it implements
14540 to always fail with ENOSYS. Some functions are actually named
14541 something starting with __ and the normal name is an alias. */
14542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14545 char (*f) () = $ac_func;
14554 return f != $ac_func;
14559 rm -f conftest.
$ac_objext conftest
$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>conftest.er1
14563 grep -v '^ *+' conftest.er1
>conftest.err
14565 cat conftest.err
>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try
='test -z "$ac_c_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try
='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 eval "$as_ac_var=yes"
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.
$ac_ext >&5
14586 eval "$as_ac_var=no"
14588 rm -f conftest.err conftest.
$ac_objext \
14589 conftest
$ac_exeext conftest.
$ac_ext
14591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14593 if test `eval echo '${'$as_ac_var'}'` = yes; then
14594 cat >>confdefs.h
<<_ACEOF
14595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14604 # fake the result of the test for munmap() for the gettext macros
14605 ac_cv_func_munmap
=no
14611 mule_backup_CPPFLAGS
="$CPPFLAGS"
14612 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14613 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14614 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14615 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 cat >conftest.
$ac_ext <<_ACEOF
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14629 char *p = (char *) strerror_r;
14636 rm -f conftest.
$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>conftest.er1
14640 grep -v '^ *+' conftest.er1
>conftest.err
14642 cat conftest.err
>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try
='test -z "$ac_c_werror_flag"
14646 || test ! -s conftest.err'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try
='test -s conftest.$ac_objext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_cv_have_decl_strerror_r
=yes
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.
$ac_ext >&5
14663 ac_cv_have_decl_strerror_r
=no
14665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14667 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14668 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14669 if test $ac_cv_have_decl_strerror_r = yes; then
14671 cat >>confdefs.h
<<_ACEOF
14672 #define HAVE_DECL_STRERROR_R 1
14677 cat >>confdefs.h
<<_ACEOF
14678 #define HAVE_DECL_STRERROR_R 0
14686 for ac_func
in strerror_r
14688 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14689 echo "$as_me:$LINENO: checking for $ac_func" >&5
14690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14691 if eval "test \"\${$as_ac_var+set}\" = set"; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
14694 cat >conftest.
$ac_ext <<_ACEOF
14697 cat confdefs.h
>>conftest.
$ac_ext
14698 cat >>conftest.
$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14702 #define $ac_func innocuous_$ac_func
14704 /* System header to define __stub macros and hopefully few prototypes,
14705 which can conflict with char $ac_func (); below.
14706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14707 <limits.h> exists even on freestanding compilers. */
14710 # include <limits.h>
14712 # include <assert.h>
14717 /* Override any gcc2 internal prototype to avoid an error. */
14722 /* We use char because int might match the return type of a gcc2
14723 builtin and then its argument prototype would still apply. */
14725 /* The GNU C library defines this for functions which it implements
14726 to always fail with ENOSYS. Some functions are actually named
14727 something starting with __ and the normal name is an alias. */
14728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14731 char (*f) () = $ac_func;
14740 return f != $ac_func;
14745 rm -f conftest.
$ac_objext conftest
$ac_exeext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14747 (eval $ac_link) 2>conftest.er1
14749 grep -v '^ *+' conftest.er1
>conftest.err
14751 cat conftest.err
>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try
='test -z "$ac_c_werror_flag"
14755 || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try
='test -s conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 eval "$as_ac_var=yes"
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.
$ac_ext >&5
14772 eval "$as_ac_var=no"
14774 rm -f conftest.err conftest.
$ac_objext \
14775 conftest
$ac_exeext conftest.
$ac_ext
14777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14779 if test `eval echo '${'$as_ac_var'}'` = yes; then
14780 cat >>confdefs.h
<<_ACEOF
14781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14787 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14788 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14789 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 ac_cv_func_strerror_r_char_p
=no
14794 if test $ac_cv_have_decl_strerror_r = yes; then
14795 cat >conftest.
$ac_ext <<_ACEOF
14798 cat confdefs.h
>>conftest.
$ac_ext
14799 cat >>conftest.
$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 $ac_includes_default
14807 char x = *strerror_r (0, buf, sizeof buf);
14808 char *p = strerror_r (0, buf, sizeof buf);
14814 rm -f conftest.
$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14818 grep -v '^ *+' conftest.er1
>conftest.err
14820 cat conftest.err
>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try
='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try
='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_func_strerror_r_char_p
=yes
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.
$ac_ext >&5
14842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14844 # strerror_r is not declared. Choose between
14845 # systems that have relatively inaccessible declarations for the
14846 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14847 # former has a strerror_r that returns char*, while the latter
14848 # has a strerror_r that returns `int'.
14849 # This test should segfault on the DEC system.
14850 if test "$cross_compiling" = yes; then
14853 cat >conftest.
$ac_ext <<_ACEOF
14856 cat confdefs.h
>>conftest.
$ac_ext
14857 cat >>conftest.
$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 $ac_includes_default
14860 extern char *strerror_r ();
14865 char x = *strerror_r (0, buf, sizeof buf);
14866 exit (!isalpha (x));
14871 rm -f conftest
$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873 (eval $ac_link) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_func_strerror_r_char_p
=yes
14884 echo "$as_me: program exited with status $ac_status" >&5
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.
$ac_ext >&5
14889 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14894 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14895 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14896 if test $ac_cv_func_strerror_r_char_p = yes; then
14898 cat >>confdefs.h
<<\_ACEOF
14899 #define STRERROR_R_CHAR_P 1
14904 CPPFLAGS
="$mule_backup_CPPFLAGS"
14906 # Look for a way to preallocate disk space for files.
14908 echo "$as_me:$LINENO: checking for fallocate" >&5
14909 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14910 mule_backup_CPPFLAGS
="$CPPFLAGS"
14911 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
14912 cat >conftest.
$ac_ext <<_ACEOF
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 #define _GNU_SOURCE
14921 #ifdef HAVE_FCNTL_H
14922 # include <fcntl.h>
14924 #include <linux/falloc.h>
14930 fallocate(0, 0, 0, 0);
14937 rm -f conftest.
$ac_objext conftest
$ac_exeext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>conftest.er1
14941 grep -v '^ *+' conftest.er1
>conftest.err
14943 cat conftest.err
>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try
='test -z "$ac_c_werror_flag"
14947 || test ! -s conftest.err'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; } &&
14953 { ac_try
='test -s conftest$ac_exeext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14962 cat >>confdefs.h
<<\_ACEOF
14963 #define HAVE_FALLOCATE 1
14966 echo "$as_me:$LINENO: result: yes" >&5
14967 echo "${ECHO_T}yes" >&6
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.
$ac_ext >&5
14974 echo "$as_me:$LINENO: result: no" >&5
14975 echo "${ECHO_T}no" >&6
14978 rm -f conftest.err conftest.
$ac_objext \
14979 conftest
$ac_exeext conftest.
$ac_ext
14980 CPPFLAGS
="$mule_backup_CPPFLAGS"
14983 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14984 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14985 cat >conftest.
$ac_ext <<_ACEOF
14989 cat confdefs.h
>>conftest.
$ac_ext
14990 cat >>conftest.
$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14993 #include <sys/syscall.h>
14994 #include <sys/types.h>
14995 #include <unistd.h>
15001 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15008 rm -f conftest.
$ac_objext conftest
$ac_exeext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>conftest.er1
15012 grep -v '^ *+' conftest.er1
>conftest.err
15014 cat conftest.err
>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try
='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try
='test -s conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15033 cat >>confdefs.h
<<\_ACEOF
15034 #define HAVE_SYS_FALLOCATE 1
15037 echo "$as_me:$LINENO: result: yes" >&5
15038 echo "${ECHO_T}yes" >&6
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.
$ac_ext >&5
15045 echo "$as_me:$LINENO: result: no" >&5
15046 echo "${ECHO_T}no" >&6
15049 rm -f conftest.err conftest.
$ac_objext \
15050 conftest
$ac_exeext conftest.
$ac_ext
15052 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15053 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15054 cat >conftest.
$ac_ext <<_ACEOF
15058 cat confdefs.h
>>conftest.
$ac_ext
15059 cat >>conftest.
$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15062 #define _XOPEN_SOURCE 600
15063 #include <stdlib.h>
15064 #ifdef HAVE_FCNTL_H
15065 # include <fcntl.h>
15072 posix_fallocate(0, 0, 0);
15079 rm -f conftest.
$ac_objext conftest
$ac_exeext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>conftest.er1
15083 grep -v '^ *+' conftest.er1
>conftest.err
15085 cat conftest.err
>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try
='test -z "$ac_c_werror_flag"
15089 || test ! -s conftest.err'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try
='test -s conftest$ac_exeext'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15104 cat >>confdefs.h
<<\_ACEOF
15105 #define HAVE_POSIX_FALLOCATE 1
15108 echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.
$ac_ext >&5
15116 echo "$as_me:$LINENO: result: no" >&5
15117 echo "${ECHO_T}no" >&6
15120 rm -f conftest.err conftest.
$ac_objext \
15121 conftest
$ac_exeext conftest.
$ac_ext
15124 # Checking Native Language Support
15128 if test -n "$ac_aux_dir"; then
15129 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15131 if test -z "$MKINSTALLDIRS"; then
15132 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15139 # Extract the first word of "msgfmt", so it can be a program name with args.
15140 set dummy msgfmt
; ac_word
=$2
15141 echo "$as_me:$LINENO: checking for $ac_word" >&5
15142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15143 if test "${ac_cv_path_MSGFMT+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15152 for ac_dir
in $PATH; do
15153 test -z "$ac_dir" && ac_dir
=.
15154 if test -f $ac_dir/$ac_word; then
15155 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15156 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15157 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15163 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15167 MSGFMT
="$ac_cv_path_MSGFMT"
15168 if test "$MSGFMT" != ":"; then
15169 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15170 echo "${ECHO_T}$MSGFMT" >&6
15172 echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6
15176 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15177 set dummy gmsgfmt
; ac_word
=$2
15178 echo "$as_me:$LINENO: checking for $ac_word" >&5
15179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15180 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15189 for as_dir
in $PATH
15192 test -z "$as_dir" && as_dir
=.
15193 for ac_exec_ext
in '' $ac_executable_extensions; do
15194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15202 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15206 GMSGFMT
=$ac_cv_path_GMSGFMT
15208 if test -n "$GMSGFMT"; then
15209 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15210 echo "${ECHO_T}$GMSGFMT" >&6
15212 echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15217 # Extract the first word of "xgettext", so it can be a program name with args.
15218 set dummy xgettext
; ac_word
=$2
15219 echo "$as_me:$LINENO: checking for $ac_word" >&5
15220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15221 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 case "$XGETTEXT" in
15226 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15230 for ac_dir
in $PATH; do
15231 test -z "$ac_dir" && ac_dir
=.
15232 if test -f $ac_dir/$ac_word; then
15233 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15234 (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
15235 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15241 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15245 XGETTEXT
="$ac_cv_path_XGETTEXT"
15246 if test "$XGETTEXT" != ":"; then
15247 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15248 echo "${ECHO_T}$XGETTEXT" >&6
15250 echo "$as_me:$LINENO: result: no" >&5
15251 echo "${ECHO_T}no" >&6
15256 # Extract the first word of "msgmerge", so it can be a program name with args.
15257 set dummy msgmerge
; ac_word
=$2
15258 echo "$as_me:$LINENO: checking for $ac_word" >&5
15259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15260 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 case "$MSGMERGE" in
15265 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15268 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15269 for ac_dir
in $PATH; do
15270 test -z "$ac_dir" && ac_dir
=.
15271 if test -f $ac_dir/$ac_word; then
15272 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15273 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15279 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15283 MSGMERGE
="$ac_cv_path_MSGMERGE"
15284 if test "$MSGMERGE" != ":"; then
15285 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15286 echo "${ECHO_T}$MSGMERGE" >&6
15288 echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6
15293 if test "$GMSGFMT" != ":"; then
15294 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15295 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15298 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15299 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15300 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15305 if test "$XGETTEXT" != ":"; then
15306 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15307 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15310 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15311 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15317 ac_config_commands
="$ac_config_commands default-1"
15320 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15321 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15322 if test "${ac_cv_search_strerror+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 ac_func_search_save_LIBS
=$LIBS
15326 ac_cv_search_strerror
=no
15327 cat >conftest.
$ac_ext <<_ACEOF
15330 cat confdefs.h
>>conftest.
$ac_ext
15331 cat >>conftest.
$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15334 /* Override any gcc2 internal prototype to avoid an error. */
15338 /* We use char because int might match the return type of a gcc2
15339 builtin and then its argument prototype would still apply. */
15349 rm -f conftest.
$ac_objext conftest
$ac_exeext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351 (eval $ac_link) 2>conftest.er1
15353 grep -v '^ *+' conftest.er1
>conftest.err
15355 cat conftest.err
>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try
='test -z "$ac_c_werror_flag"
15359 || test ! -s conftest.err'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try
='test -s conftest$ac_exeext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_search_strerror
="none required"
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.
$ac_ext >&5
15377 rm -f conftest.err conftest.
$ac_objext \
15378 conftest
$ac_exeext conftest.
$ac_ext
15379 if test "$ac_cv_search_strerror" = no
; then
15380 for ac_lib
in cposix
; do
15381 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15382 cat >conftest.
$ac_ext <<_ACEOF
15385 cat confdefs.h
>>conftest.
$ac_ext
15386 cat >>conftest.
$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15389 /* Override any gcc2 internal prototype to avoid an error. */
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15404 rm -f conftest.
$ac_objext conftest
$ac_exeext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406 (eval $ac_link) 2>conftest.er1
15408 grep -v '^ *+' conftest.er1
>conftest.err
15410 cat conftest.err
>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try
='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try
='test -s conftest$ac_exeext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_cv_search_strerror
="-l$ac_lib"
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.
$ac_ext >&5
15433 rm -f conftest.err conftest.
$ac_objext \
15434 conftest
$ac_exeext conftest.
$ac_ext
15437 LIBS
=$ac_func_search_save_LIBS
15439 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15440 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15441 if test "$ac_cv_search_strerror" != no
; then
15442 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15447 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15448 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15449 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 cat >conftest.
$ac_ext <<_ACEOF
15455 cat confdefs.h
>>conftest.
$ac_ext
15456 cat >>conftest.
$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15459 #include <features.h>
15460 #ifdef __GNU_LIBRARY__
15461 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15468 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15469 ac_cv_gnu_library_2_1
=yes
15471 ac_cv_gnu_library_2_1
=no
15478 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15479 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15481 GLIBC21
="$ac_cv_gnu_library_2_1"
15486 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15487 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15488 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 if test "$cross_compiling" = yes; then
15494 # Guess based on the CPU.
15495 case "$host_cpu" in
15496 alpha
* | i3456786 | m68k | s390
*)
15497 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15499 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15503 cat >conftest.
$ac_ext <<_ACEOF
15506 cat confdefs.h
>>conftest.
$ac_ext
15507 cat >>conftest.
$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15510 #include <stdlib.h>
15511 #include <signal.h>
15515 sigfpe_handler (int sig)
15517 sigfpe_handler (sig) int sig;
15520 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15521 exit (sig != SIGFPE);
15531 signal (SIGFPE, sigfpe_handler);
15532 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15533 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15534 signal (SIGTRAP, sigfpe_handler);
15536 /* Linux/SPARC yields signal SIGILL. */
15537 #if defined (__sparc__) && defined (__linux__)
15538 signal (SIGILL, sigfpe_handler);
15547 rm -f conftest
$ac_exeext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549 (eval $ac_link) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 gt_cv_int_divbyzero_sigfpe
=yes
15560 echo "$as_me: program exited with status $ac_status" >&5
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.
$ac_ext >&5
15564 ( exit $ac_status )
15565 gt_cv_int_divbyzero_sigfpe
=no
15567 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15571 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15572 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15573 case "$gt_cv_int_divbyzero_sigfpe" in
15578 cat >>confdefs.h
<<_ACEOF
15579 #define INTDIV0_RAISES_SIGFPE $value
15584 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15585 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15586 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 cat >conftest.
$ac_ext <<_ACEOF
15592 cat confdefs.h
>>conftest.
$ac_ext
15593 cat >>conftest.
$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15595 #include <sys/types.h>
15596 #include <inttypes.h>
15600 uintmax_t i = (uintmax_t) -1;
15605 rm -f conftest.
$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15609 grep -v '^ *+' conftest.er1
>conftest.err
15611 cat conftest.err
>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try
='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try
='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 jm_ac_cv_header_inttypes_h
=yes
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.
$ac_ext >&5
15632 jm_ac_cv_header_inttypes_h
=no
15634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15636 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15637 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15638 if test $jm_ac_cv_header_inttypes_h = yes; then
15640 cat >>confdefs.h
<<_ACEOF
15641 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15647 echo "$as_me:$LINENO: checking for stdint.h" >&5
15648 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15649 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 cat >conftest.
$ac_ext <<_ACEOF
15655 cat confdefs.h
>>conftest.
$ac_ext
15656 cat >>conftest.
$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 #include <sys/types.h>
15659 #include <stdint.h>
15663 uintmax_t i = (uintmax_t) -1;
15668 rm -f conftest.
$ac_objext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15670 (eval $ac_compile) 2>conftest.er1
15672 grep -v '^ *+' conftest.er1
>conftest.err
15674 cat conftest.err
>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try
='test -z "$ac_c_werror_flag"
15678 || test ! -s conftest.err'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try
='test -s conftest.$ac_objext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 jm_ac_cv_header_stdint_h
=yes
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.
$ac_ext >&5
15695 jm_ac_cv_header_stdint_h
=no
15697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15699 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15700 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15701 if test $jm_ac_cv_header_stdint_h = yes; then
15703 cat >>confdefs.h
<<_ACEOF
15704 #define HAVE_STDINT_H_WITH_UINTMAX 1
15710 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15711 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15712 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 cat >conftest.
$ac_ext <<_ACEOF
15718 cat confdefs.h
>>conftest.
$ac_ext
15719 cat >>conftest.
$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 unsigned long long ull = 1; int i = 63;
15725 unsigned long long ullmax = (unsigned long long) -1;
15726 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15731 rm -f conftest.
$ac_objext conftest
$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>conftest.er1
15735 grep -v '^ *+' conftest.er1
>conftest.err
15737 cat conftest.err
>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try
='test -z "$ac_c_werror_flag"
15741 || test ! -s conftest.err'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try
='test -s conftest$ac_exeext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_cv_type_unsigned_long_long
=yes
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.
$ac_ext >&5
15758 ac_cv_type_unsigned_long_long
=no
15760 rm -f conftest.err conftest.
$ac_objext \
15761 conftest
$ac_exeext conftest.
$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15764 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15765 if test $ac_cv_type_unsigned_long_long = yes; then
15767 cat >>confdefs.h
<<\_ACEOF
15768 #define HAVE_UNSIGNED_LONG_LONG 1
15776 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
15778 test $ac_cv_type_unsigned_long_long = yes \
15779 && ac_type
='unsigned long long' \
15780 || ac_type
='unsigned long'
15782 cat >>confdefs.h
<<_ACEOF
15783 #define uintmax_t $ac_type
15789 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15790 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15791 if test "${gt_cv_header_inttypes_h+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 cat >conftest.
$ac_ext <<_ACEOF
15798 cat confdefs.h
>>conftest.
$ac_ext
15799 cat >>conftest.
$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #include <sys/types.h>
15802 #include <inttypes.h>
15811 rm -f conftest.
$ac_objext
15812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15813 (eval $ac_compile) 2>conftest.er1
15815 grep -v '^ *+' conftest.er1
>conftest.err
15817 cat conftest.err
>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
15820 { ac_try
='test -z "$ac_c_werror_flag"
15821 || test ! -s conftest.err'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; } &&
15827 { ac_try
='test -s conftest.$ac_objext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 gt_cv_header_inttypes_h
=yes
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.
$ac_ext >&5
15838 gt_cv_header_inttypes_h
=no
15840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15843 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15844 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15845 if test $gt_cv_header_inttypes_h = yes; then
15847 cat >>confdefs.h
<<_ACEOF
15848 #define HAVE_INTTYPES_H 1
15855 if test $gt_cv_header_inttypes_h = yes; then
15856 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15857 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15858 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 cat >conftest.
$ac_ext <<_ACEOF
15865 cat confdefs.h
>>conftest.
$ac_ext
15866 cat >>conftest.
$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 #include <inttypes.h>
15881 rm -f conftest.
$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15885 grep -v '^ *+' conftest.er1
>conftest.err
15887 cat conftest.err
>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try
='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try
='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 gt_cv_inttypes_pri_broken
=no
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.
$ac_ext >&5
15908 gt_cv_inttypes_pri_broken
=yes
15910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15913 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15914 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15916 if test "$gt_cv_inttypes_pri_broken" = yes; then
15918 cat >>confdefs.h
<<_ACEOF
15919 #define PRI_MACROS_BROKEN 1
15925 if test "X$prefix" = "XNONE"; then
15926 acl_final_prefix
="$ac_default_prefix"
15928 acl_final_prefix
="$prefix"
15930 if test "X$exec_prefix" = "XNONE"; then
15931 acl_final_exec_prefix
='${prefix}'
15933 acl_final_exec_prefix
="$exec_prefix"
15935 acl_save_prefix
="$prefix"
15936 prefix
="$acl_final_prefix"
15937 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
15938 prefix
="$acl_save_prefix"
15941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15942 if test "${with_gnu_ld+set}" = set; then
15943 withval
="$with_gnu_ld"
15944 test "$withval" = no || with_gnu_ld
=yes
15949 if test "$GCC" = yes; then
15950 # Check if gcc -print-prog-name=ld gives a path.
15951 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15952 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15955 # gcc leaves a trailing carriage return which upsets mingw
15956 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15958 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15961 # Accept absolute paths.
15962 [\\/]* |
[A-Za-z
]:[\\/]*)
15963 re_direlt
='/[^/][^/]*/\.\./'
15964 # Canonicalize the path of ld
15965 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
15966 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
15967 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
15969 test -z "$LD" && LD
="$ac_prog"
15972 # If it fails, then pretend we aren't using GCC.
15976 # If it is relative, then search for the first ld in PATH.
15977 with_gnu_ld
=unknown
15980 elif test "$with_gnu_ld" = yes; then
15981 echo "$as_me:$LINENO: checking for GNU ld" >&5
15982 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15984 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15985 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15987 if test "${acl_cv_path_LD+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 if test -z "$LD"; then
15991 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15992 for ac_dir
in $PATH; do
15993 test -z "$ac_dir" && ac_dir
=.
15994 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15995 acl_cv_path_LD
="$ac_dir/$ac_prog"
15996 # Check to see if the program is GNU ld. I'd rather use --version,
15997 # but apparently some GNU ld's only accept -v.
15998 # Break only if it was the GNU/non-GNU ld that we prefer.
15999 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
16000 test "$with_gnu_ld" != no
&& break
16002 test "$with_gnu_ld" != yes && break
16008 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16012 LD
="$acl_cv_path_LD"
16013 if test -n "$LD"; then
16014 echo "$as_me:$LINENO: result: $LD" >&5
16015 echo "${ECHO_T}$LD" >&6
16017 echo "$as_me:$LINENO: result: no" >&5
16018 echo "${ECHO_T}no" >&6
16020 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16021 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16022 { (exit 1); exit 1; }; }
16023 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16024 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16025 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16029 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
16030 acl_cv_prog_gnu_ld
=yes
16032 acl_cv_prog_gnu_ld
=no
16035 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16036 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16037 with_gnu_ld
=$acl_cv_prog_gnu_ld
16041 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16042 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16043 if test "${acl_cv_rpath+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16048 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16050 rm -f .
/conftest.sh
16054 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16055 echo "${ECHO_T}$acl_cv_rpath" >&6
16057 libext
="$acl_cv_libext"
16058 shlibext
="$acl_cv_shlibext"
16059 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16060 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16061 hardcode_direct
="$acl_cv_hardcode_direct"
16062 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16063 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16064 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16065 # Check whether --enable-rpath or --disable-rpath was given.
16066 if test "${enable_rpath+set}" = set; then
16067 enableval
="$enable_rpath"
16081 acl_save_prefix
="$prefix"
16082 prefix
="$acl_final_prefix"
16083 acl_save_exec_prefix
="$exec_prefix"
16084 exec_prefix
="$acl_final_exec_prefix"
16086 eval additional_includedir
=\"$includedir\"
16087 eval additional_libdir
=\"$libdir\"
16089 exec_prefix
="$acl_save_exec_prefix"
16090 prefix
="$acl_save_prefix"
16093 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16094 if test "${with_libiconv_prefix+set}" = set; then
16095 withval
="$with_libiconv_prefix"
16097 if test "X$withval" = "Xno"; then
16100 if test "X$withval" = "X"; then
16102 acl_save_prefix
="$prefix"
16103 prefix
="$acl_final_prefix"
16104 acl_save_exec_prefix
="$exec_prefix"
16105 exec_prefix
="$acl_final_exec_prefix"
16107 eval additional_includedir
=\"$includedir\"
16108 eval additional_libdir
=\"$libdir\"
16110 exec_prefix
="$acl_save_exec_prefix"
16111 prefix
="$acl_save_prefix"
16114 additional_includedir
="$withval/include"
16115 additional_libdir
="$withval/lib"
16125 names_already_handled
=
16126 names_next_round
='iconv '
16127 while test -n "$names_next_round"; do
16128 names_this_round
="$names_next_round"
16130 for name
in $names_this_round; do
16132 for n
in $names_already_handled; do
16133 if test "$n" = "$name"; then
16134 already_handled
=yes
16138 if test -z "$already_handled"; then
16139 names_already_handled
="$names_already_handled $name"
16140 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16141 eval value
=\"\
$HAVE_LIB$uppername\"
16142 if test -n "$value"; then
16143 if test "$value" = yes; then
16144 eval value
=\"\
$LIB$uppername\"
16145 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16146 eval value
=\"\
$LTLIB$uppername\"
16147 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16156 if test $use_additional = yes; then
16157 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16158 found_dir
="$additional_libdir"
16159 found_so
="$additional_libdir/lib$name.$shlibext"
16160 if test -f "$additional_libdir/lib$name.la"; then
16161 found_la
="$additional_libdir/lib$name.la"
16164 if test -f "$additional_libdir/lib$name.$libext"; then
16165 found_dir
="$additional_libdir"
16166 found_a
="$additional_libdir/lib$name.$libext"
16167 if test -f "$additional_libdir/lib$name.la"; then
16168 found_la
="$additional_libdir/lib$name.la"
16173 if test "X$found_dir" = "X"; then
16174 for x
in $LDFLAGS $LTLIBICONV; do
16176 acl_save_prefix
="$prefix"
16177 prefix
="$acl_final_prefix"
16178 acl_save_exec_prefix
="$exec_prefix"
16179 exec_prefix
="$acl_final_exec_prefix"
16181 exec_prefix
="$acl_save_exec_prefix"
16182 prefix
="$acl_save_prefix"
16186 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16187 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16189 found_so
="$dir/lib$name.$shlibext"
16190 if test -f "$dir/lib$name.la"; then
16191 found_la
="$dir/lib$name.la"
16194 if test -f "$dir/lib$name.$libext"; then
16196 found_a
="$dir/lib$name.$libext"
16197 if test -f "$dir/lib$name.la"; then
16198 found_la
="$dir/lib$name.la"
16204 if test "X$found_dir" != "X"; then
16209 if test "X$found_dir" != "X"; then
16210 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16211 if test "X$found_so" != "X"; then
16212 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16213 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16216 for x
in $ltrpathdirs; do
16217 if test "X$x" = "X$found_dir"; then
16222 if test -z "$haveit"; then
16223 ltrpathdirs
="$ltrpathdirs $found_dir"
16225 if test "$hardcode_direct" = yes; then
16226 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16228 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16229 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16231 for x
in $rpathdirs; do
16232 if test "X$x" = "X$found_dir"; then
16237 if test -z "$haveit"; then
16238 rpathdirs
="$rpathdirs $found_dir"
16242 for x
in $LDFLAGS $LIBICONV; do
16244 acl_save_prefix
="$prefix"
16245 prefix
="$acl_final_prefix"
16246 acl_save_exec_prefix
="$exec_prefix"
16247 exec_prefix
="$acl_final_exec_prefix"
16249 exec_prefix
="$acl_save_exec_prefix"
16250 prefix
="$acl_save_prefix"
16252 if test "X$x" = "X-L$found_dir"; then
16257 if test -z "$haveit"; then
16258 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16260 if test "$hardcode_minus_L" != no
; then
16261 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16263 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16269 if test "X$found_a" != "X"; then
16270 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16272 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16275 additional_includedir
=
16276 case "$found_dir" in
16278 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16279 additional_includedir
="$basedir/include"
16282 if test "X$additional_includedir" != "X"; then
16283 if test "X$additional_includedir" != "X/usr/include"; then
16285 if test "X$additional_includedir" = "X/usr/local/include"; then
16286 if test -n "$GCC"; then
16288 linux
*) haveit
=yes;;
16292 if test -z "$haveit"; then
16293 for x
in $CPPFLAGS $INCICONV; do
16295 acl_save_prefix
="$prefix"
16296 prefix
="$acl_final_prefix"
16297 acl_save_exec_prefix
="$exec_prefix"
16298 exec_prefix
="$acl_final_exec_prefix"
16300 exec_prefix
="$acl_save_exec_prefix"
16301 prefix
="$acl_save_prefix"
16303 if test "X$x" = "X-I$additional_includedir"; then
16308 if test -z "$haveit"; then
16309 if test -d "$additional_includedir"; then
16310 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16316 if test -n "$found_la"; then
16317 save_libdir
="$libdir"
16318 case "$found_la" in
16319 */* |
*\\*) .
"$found_la" ;;
16320 *) .
"./$found_la" ;;
16322 libdir
="$save_libdir"
16323 for dep
in $dependency_libs; do
16326 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16327 if test "X$additional_libdir" != "X/usr/lib"; then
16329 if test "X$additional_libdir" = "X/usr/local/lib"; then
16330 if test -n "$GCC"; then
16332 linux
*) haveit
=yes;;
16336 if test -z "$haveit"; then
16338 for x
in $LDFLAGS $LIBICONV; do
16340 acl_save_prefix
="$prefix"
16341 prefix
="$acl_final_prefix"
16342 acl_save_exec_prefix
="$exec_prefix"
16343 exec_prefix
="$acl_final_exec_prefix"
16345 exec_prefix
="$acl_save_exec_prefix"
16346 prefix
="$acl_save_prefix"
16348 if test "X$x" = "X-L$additional_libdir"; then
16353 if test -z "$haveit"; then
16354 if test -d "$additional_libdir"; then
16355 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16359 for x
in $LDFLAGS $LTLIBICONV; do
16361 acl_save_prefix
="$prefix"
16362 prefix
="$acl_final_prefix"
16363 acl_save_exec_prefix
="$exec_prefix"
16364 exec_prefix
="$acl_final_exec_prefix"
16366 exec_prefix
="$acl_save_exec_prefix"
16367 prefix
="$acl_save_prefix"
16369 if test "X$x" = "X-L$additional_libdir"; then
16374 if test -z "$haveit"; then
16375 if test -d "$additional_libdir"; then
16376 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16383 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16384 if test "$enable_rpath" != no
; then
16386 for x
in $rpathdirs; do
16387 if test "X$x" = "X$dir"; then
16392 if test -z "$haveit"; then
16393 rpathdirs
="$rpathdirs $dir"
16396 for x
in $ltrpathdirs; do
16397 if test "X$x" = "X$dir"; then
16402 if test -z "$haveit"; then
16403 ltrpathdirs
="$ltrpathdirs $dir"
16408 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16411 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16414 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16415 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16421 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16422 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16428 if test "X$rpathdirs" != "X"; then
16429 if test -n "$hardcode_libdir_separator"; then
16431 for found_dir
in $rpathdirs; do
16432 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16434 acl_save_libdir
="$libdir"
16436 eval flag
=\"$hardcode_libdir_flag_spec\"
16437 libdir
="$acl_save_libdir"
16438 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16440 for found_dir
in $rpathdirs; do
16441 acl_save_libdir
="$libdir"
16442 libdir
="$found_dir"
16443 eval flag
=\"$hardcode_libdir_flag_spec\"
16444 libdir
="$acl_save_libdir"
16445 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16449 if test "X$ltrpathdirs" != "X"; then
16450 for found_dir
in $ltrpathdirs; do
16451 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16468 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16469 stdlib.h string.h unistd.h sys
/param.h
16471 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16473 echo "$as_me:$LINENO: checking for $ac_header" >&5
16474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16481 # Is the header compilable?
16482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16484 cat >conftest.
$ac_ext <<_ACEOF
16487 cat confdefs.h
>>conftest.
$ac_ext
16488 cat >>conftest.
$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 $ac_includes_default
16491 #include <$ac_header>
16493 rm -f conftest.
$ac_objext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16495 (eval $ac_compile) 2>conftest.er1
16497 grep -v '^ *+' conftest.er1
>conftest.err
16499 cat conftest.err
>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try
='test -z "$ac_c_werror_flag"
16503 || test ! -s conftest.err'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; } &&
16509 { ac_try
='test -s conftest.$ac_objext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 ac_header_compiler
=yes
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.
$ac_ext >&5
16520 ac_header_compiler
=no
16522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16524 echo "${ECHO_T}$ac_header_compiler" >&6
16526 # Is the header present?
16527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16529 cat >conftest.
$ac_ext <<_ACEOF
16532 cat confdefs.h
>>conftest.
$ac_ext
16533 cat >>conftest.
$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 #include <$ac_header>
16537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16540 grep -v '^ *+' conftest.er1
>conftest.err
16542 cat conftest.err
>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } >/dev
/null
; then
16545 if test -s conftest.err
; then
16546 ac_cpp_err
=$ac_c_preproc_warn_flag
16547 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16554 if test -z "$ac_cpp_err"; then
16555 ac_header_preproc
=yes
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.
$ac_ext >&5
16560 ac_header_preproc
=no
16562 rm -f conftest.err conftest.
$ac_ext
16563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16564 echo "${ECHO_T}$ac_header_preproc" >&6
16566 # So? What about this header?
16567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16573 ac_header_preproc
=yes
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16590 ## ------------------------------ ##
16591 ## Report this to admin@amule.org ##
16592 ## ------------------------------ ##
16595 sed "s/^/$as_me: WARNING: /" >&2
16598 echo "$as_me:$LINENO: checking for $ac_header" >&5
16599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 eval "$as_ac_Header=\$ac_header_preproc"
16605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16610 cat >>confdefs.h
<<_ACEOF
16611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16639 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16640 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16641 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16643 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16644 echo "$as_me:$LINENO: checking for $ac_func" >&5
16645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16646 if eval "test \"\${$as_ac_var+set}\" = set"; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 cat >conftest.
$ac_ext <<_ACEOF
16652 cat confdefs.h
>>conftest.
$ac_ext
16653 cat >>conftest.
$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16657 #define $ac_func innocuous_$ac_func
16659 /* System header to define __stub macros and hopefully few prototypes,
16660 which can conflict with char $ac_func (); below.
16661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16662 <limits.h> exists even on freestanding compilers. */
16665 # include <limits.h>
16667 # include <assert.h>
16672 /* Override any gcc2 internal prototype to avoid an error. */
16677 /* We use char because int might match the return type of a gcc2
16678 builtin and then its argument prototype would still apply. */
16680 /* The GNU C library defines this for functions which it implements
16681 to always fail with ENOSYS. Some functions are actually named
16682 something starting with __ and the normal name is an alias. */
16683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16686 char (*f) () = $ac_func;
16695 return f != $ac_func;
16700 rm -f conftest.
$ac_objext conftest
$ac_exeext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16702 (eval $ac_link) 2>conftest.er1
16704 grep -v '^ *+' conftest.er1
>conftest.err
16706 cat conftest.err
>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try
='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try
='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 eval "$as_ac_var=yes"
16724 echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.
$ac_ext >&5
16727 eval "$as_ac_var=no"
16729 rm -f conftest.err conftest.
$ac_objext \
16730 conftest
$ac_exeext conftest.
$ac_ext
16732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16734 if test `eval echo '${'$as_ac_var'}'` = yes; then
16735 cat >>confdefs.h
<<_ACEOF
16736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16748 am_save_CPPFLAGS
="$CPPFLAGS"
16750 for element
in $INCICONV; do
16752 for x
in $CPPFLAGS; do
16754 acl_save_prefix
="$prefix"
16755 prefix
="$acl_final_prefix"
16756 acl_save_exec_prefix
="$exec_prefix"
16757 exec_prefix
="$acl_final_exec_prefix"
16759 exec_prefix
="$acl_save_exec_prefix"
16760 prefix
="$acl_save_prefix"
16762 if test "X$x" = "X$element"; then
16767 if test -z "$haveit"; then
16768 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16773 echo "$as_me:$LINENO: checking for iconv" >&5
16774 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16775 if test "${am_cv_func_iconv+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 am_cv_func_iconv
="no, consider installing GNU libiconv"
16781 cat >conftest.
$ac_ext <<_ACEOF
16784 cat confdefs.h
>>conftest.
$ac_ext
16785 cat >>conftest.
$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <stdlib.h>
16792 iconv_t cd = iconv_open("","");
16793 iconv(cd,NULL,NULL,NULL,NULL);
16799 rm -f conftest.
$ac_objext conftest
$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>conftest.er1
16803 grep -v '^ *+' conftest.er1
>conftest.err
16805 cat conftest.err
>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try
='test -z "$ac_c_werror_flag"
16809 || test ! -s conftest.err'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; } &&
16815 { ac_try
='test -s conftest$ac_exeext'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 am_cv_func_iconv
=yes
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.
$ac_ext >&5
16827 rm -f conftest.err conftest.
$ac_objext \
16828 conftest
$ac_exeext conftest.
$ac_ext
16829 if test "$am_cv_func_iconv" != yes; then
16830 am_save_LIBS
="$LIBS"
16831 LIBS
="$LIBS $LIBICONV"
16832 cat >conftest.
$ac_ext <<_ACEOF
16835 cat confdefs.h
>>conftest.
$ac_ext
16836 cat >>conftest.
$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 #include <stdlib.h>
16843 iconv_t cd = iconv_open("","");
16844 iconv(cd,NULL,NULL,NULL,NULL);
16850 rm -f conftest.
$ac_objext conftest
$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852 (eval $ac_link) 2>conftest.er1
16854 grep -v '^ *+' conftest.er1
>conftest.err
16856 cat conftest.err
>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try
='test -z "$ac_c_werror_flag"
16860 || test ! -s conftest.err'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try
='test -s conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 am_cv_lib_iconv
=yes
16873 am_cv_func_iconv
=yes
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.
$ac_ext >&5
16879 rm -f conftest.err conftest.
$ac_objext \
16880 conftest
$ac_exeext conftest.
$ac_ext
16881 LIBS
="$am_save_LIBS"
16885 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16886 echo "${ECHO_T}$am_cv_func_iconv" >&6
16887 if test "$am_cv_func_iconv" = yes; then
16889 cat >>confdefs.h
<<\_ACEOF
16890 #define HAVE_ICONV 1
16894 if test "$am_cv_lib_iconv" = yes; then
16895 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16896 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16897 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16898 echo "${ECHO_T}$LIBICONV" >&6
16900 CPPFLAGS
="$am_save_CPPFLAGS"
16907 if test "$am_cv_func_iconv" = yes; then
16908 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16909 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16910 if test "${am_cv_proto_iconv+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 cat >conftest.
$ac_ext <<_ACEOF
16917 cat confdefs.h
>>conftest.
$ac_ext
16918 cat >>conftest.
$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16921 #include <stdlib.h>
16927 #if defined(__STDC__) || defined(__cplusplus)
16928 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16941 rm -f conftest.
$ac_objext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16943 (eval $ac_compile) 2>conftest.er1
16945 grep -v '^ *+' conftest.er1
>conftest.err
16947 cat conftest.err
>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try
='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try
='test -s conftest.$ac_objext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 am_cv_proto_iconv_arg1
=""
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.
$ac_ext >&5
16968 am_cv_proto_iconv_arg1
="const"
16970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16971 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);"
16974 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16975 echo "$as_me:$LINENO: result: ${ac_t:-
16976 }$am_cv_proto_iconv" >&5
16977 echo "${ECHO_T}${ac_t:-
16978 }$am_cv_proto_iconv" >&6
16980 cat >>confdefs.h
<<_ACEOF
16981 #define ICONV_CONST $am_cv_proto_iconv_arg1
16987 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16988 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16989 if test "${am_cv_langinfo_codeset+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 cat >conftest.
$ac_ext <<_ACEOF
16995 cat confdefs.h
>>conftest.
$ac_ext
16996 cat >>conftest.
$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #include <langinfo.h>
17002 char* cs = nl_langinfo(CODESET);
17007 rm -f conftest.
$ac_objext conftest
$ac_exeext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17009 (eval $ac_link) 2>conftest.er1
17011 grep -v '^ *+' conftest.er1
>conftest.err
17013 cat conftest.err
>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try
='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try
='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 am_cv_langinfo_codeset
=yes
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.
$ac_ext >&5
17034 am_cv_langinfo_codeset
=no
17036 rm -f conftest.err conftest.
$ac_objext \
17037 conftest
$ac_exeext conftest.
$ac_ext
17040 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17041 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17042 if test $am_cv_langinfo_codeset = yes; then
17044 cat >>confdefs.h
<<\_ACEOF
17045 #define HAVE_LANGINFO_CODESET 1
17050 if test $ac_cv_header_locale_h = yes; then
17052 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17053 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17054 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 cat >conftest.
$ac_ext <<_ACEOF
17060 cat confdefs.h
>>conftest.
$ac_ext
17061 cat >>conftest.
$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <locale.h>
17072 rm -f conftest.
$ac_objext conftest
$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>conftest.er1
17076 grep -v '^ *+' conftest.er1
>conftest.err
17078 cat conftest.err
>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try
='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try
='test -s conftest$ac_exeext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 am_cv_val_LC_MESSAGES
=yes
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.
$ac_ext >&5
17099 am_cv_val_LC_MESSAGES
=no
17101 rm -f conftest.err conftest.
$ac_objext \
17102 conftest
$ac_exeext conftest.
$ac_ext
17104 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17105 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17106 if test $am_cv_val_LC_MESSAGES = yes; then
17108 cat >>confdefs.h
<<\_ACEOF
17109 #define HAVE_LC_MESSAGES 1
17116 for ac_prog
in bison
17118 # Extract the first word of "$ac_prog", so it can be a program name with args.
17119 set dummy
$ac_prog; ac_word
=$2
17120 echo "$as_me:$LINENO: checking for $ac_word" >&5
17121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17122 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 if test -n "$INTLBISON"; then
17126 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17129 for as_dir
in $PATH
17132 test -z "$as_dir" && as_dir
=.
17133 for ac_exec_ext
in '' $ac_executable_extensions; do
17134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17135 ac_cv_prog_INTLBISON
="$ac_prog"
17136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17144 INTLBISON
=$ac_cv_prog_INTLBISON
17145 if test -n "$INTLBISON"; then
17146 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17147 echo "${ECHO_T}$INTLBISON" >&6
17149 echo "$as_me:$LINENO: result: no" >&5
17150 echo "${ECHO_T}no" >&6
17153 test -n "$INTLBISON" && break
17156 if test -z "$INTLBISON"; then
17159 echo "$as_me:$LINENO: checking version of bison" >&5
17160 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17161 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17162 case $ac_prog_version in
17163 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17164 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17165 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17166 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17168 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17169 echo "${ECHO_T}$ac_prog_version" >&6
17171 if test $ac_verc_fail = yes; then
17177 # Check whether --with-language or --without-language was given.
17178 if test "${with_language+set}" = set; then
17179 withval
="$with_language"
17180 if test "$withval" != "all"; then
17181 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17200 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17201 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17202 # Check whether --enable-nls or --disable-nls was given.
17203 if test "${enable_nls+set}" = set; then
17204 enableval
="$enable_nls"
17209 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17210 echo "${ECHO_T}$USE_NLS" >&6
17214 BUILD_INCLUDED_LIBINTL
=no
17215 USE_INCLUDED_LIBINTL
=no
17221 if test "$USE_NLS" = "yes"; then
17222 gt_use_preinstalled_gnugettext
=no
17224 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17225 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17227 # Check whether --with-included-gettext or --without-included-gettext was given.
17228 if test "${with_included_gettext+set}" = set; then
17229 withval
="$with_included_gettext"
17230 nls_cv_force_use_gnu_gettext
=$withval
17232 nls_cv_force_use_gnu_gettext
=no
17234 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17235 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17237 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17238 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17245 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17246 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17247 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 cat >conftest.
$ac_ext <<_ACEOF
17253 cat confdefs.h
>>conftest.
$ac_ext
17254 cat >>conftest.
$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #include <libintl.h>
17257 extern int _nl_msg_cat_cntr;
17258 extern int *_nl_domain_bindings;
17262 bindtextdomain ("", "");
17263 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17268 rm -f conftest.
$ac_objext conftest
$ac_exeext
17269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17270 (eval $ac_link) 2>conftest.er1
17272 grep -v '^ *+' conftest.er1
>conftest.err
17274 cat conftest.err
>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try
='test -z "$ac_c_werror_flag"
17278 || test ! -s conftest.err'
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try
='test -s conftest$ac_exeext'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 gt_cv_func_gnugettext2_libc
=yes
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.
$ac_ext >&5
17295 gt_cv_func_gnugettext2_libc
=no
17297 rm -f conftest.err conftest.
$ac_objext \
17298 conftest
$ac_exeext conftest.
$ac_ext
17300 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17301 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17303 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17309 acl_save_prefix
="$prefix"
17310 prefix
="$acl_final_prefix"
17311 acl_save_exec_prefix
="$exec_prefix"
17312 exec_prefix
="$acl_final_exec_prefix"
17314 eval additional_includedir
=\"$includedir\"
17315 eval additional_libdir
=\"$libdir\"
17317 exec_prefix
="$acl_save_exec_prefix"
17318 prefix
="$acl_save_prefix"
17321 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17322 if test "${with_libintl_prefix+set}" = set; then
17323 withval
="$with_libintl_prefix"
17325 if test "X$withval" = "Xno"; then
17328 if test "X$withval" = "X"; then
17330 acl_save_prefix
="$prefix"
17331 prefix
="$acl_final_prefix"
17332 acl_save_exec_prefix
="$exec_prefix"
17333 exec_prefix
="$acl_final_exec_prefix"
17335 eval additional_includedir
=\"$includedir\"
17336 eval additional_libdir
=\"$libdir\"
17338 exec_prefix
="$acl_save_exec_prefix"
17339 prefix
="$acl_save_prefix"
17342 additional_includedir
="$withval/include"
17343 additional_libdir
="$withval/lib"
17353 names_already_handled
=
17354 names_next_round
='intl '
17355 while test -n "$names_next_round"; do
17356 names_this_round
="$names_next_round"
17358 for name
in $names_this_round; do
17360 for n
in $names_already_handled; do
17361 if test "$n" = "$name"; then
17362 already_handled
=yes
17366 if test -z "$already_handled"; then
17367 names_already_handled
="$names_already_handled $name"
17368 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17369 eval value
=\"\
$HAVE_LIB$uppername\"
17370 if test -n "$value"; then
17371 if test "$value" = yes; then
17372 eval value
=\"\
$LIB$uppername\"
17373 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17374 eval value
=\"\
$LTLIB$uppername\"
17375 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17384 if test $use_additional = yes; then
17385 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17386 found_dir
="$additional_libdir"
17387 found_so
="$additional_libdir/lib$name.$shlibext"
17388 if test -f "$additional_libdir/lib$name.la"; then
17389 found_la
="$additional_libdir/lib$name.la"
17392 if test -f "$additional_libdir/lib$name.$libext"; then
17393 found_dir
="$additional_libdir"
17394 found_a
="$additional_libdir/lib$name.$libext"
17395 if test -f "$additional_libdir/lib$name.la"; then
17396 found_la
="$additional_libdir/lib$name.la"
17401 if test "X$found_dir" = "X"; then
17402 for x
in $LDFLAGS $LTLIBINTL; do
17404 acl_save_prefix
="$prefix"
17405 prefix
="$acl_final_prefix"
17406 acl_save_exec_prefix
="$exec_prefix"
17407 exec_prefix
="$acl_final_exec_prefix"
17409 exec_prefix
="$acl_save_exec_prefix"
17410 prefix
="$acl_save_prefix"
17414 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17415 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17417 found_so
="$dir/lib$name.$shlibext"
17418 if test -f "$dir/lib$name.la"; then
17419 found_la
="$dir/lib$name.la"
17422 if test -f "$dir/lib$name.$libext"; then
17424 found_a
="$dir/lib$name.$libext"
17425 if test -f "$dir/lib$name.la"; then
17426 found_la
="$dir/lib$name.la"
17432 if test "X$found_dir" != "X"; then
17437 if test "X$found_dir" != "X"; then
17438 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17439 if test "X$found_so" != "X"; then
17440 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17441 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17444 for x
in $ltrpathdirs; do
17445 if test "X$x" = "X$found_dir"; then
17450 if test -z "$haveit"; then
17451 ltrpathdirs
="$ltrpathdirs $found_dir"
17453 if test "$hardcode_direct" = yes; then
17454 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17456 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17457 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17459 for x
in $rpathdirs; do
17460 if test "X$x" = "X$found_dir"; then
17465 if test -z "$haveit"; then
17466 rpathdirs
="$rpathdirs $found_dir"
17470 for x
in $LDFLAGS $LIBINTL; do
17472 acl_save_prefix
="$prefix"
17473 prefix
="$acl_final_prefix"
17474 acl_save_exec_prefix
="$exec_prefix"
17475 exec_prefix
="$acl_final_exec_prefix"
17477 exec_prefix
="$acl_save_exec_prefix"
17478 prefix
="$acl_save_prefix"
17480 if test "X$x" = "X-L$found_dir"; then
17485 if test -z "$haveit"; then
17486 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17488 if test "$hardcode_minus_L" != no
; then
17489 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17491 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17497 if test "X$found_a" != "X"; then
17498 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17500 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17503 additional_includedir
=
17504 case "$found_dir" in
17506 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17507 additional_includedir
="$basedir/include"
17510 if test "X$additional_includedir" != "X"; then
17511 if test "X$additional_includedir" != "X/usr/include"; then
17513 if test "X$additional_includedir" = "X/usr/local/include"; then
17514 if test -n "$GCC"; then
17516 linux
*) haveit
=yes;;
17520 if test -z "$haveit"; then
17521 for x
in $CPPFLAGS $INCINTL; do
17523 acl_save_prefix
="$prefix"
17524 prefix
="$acl_final_prefix"
17525 acl_save_exec_prefix
="$exec_prefix"
17526 exec_prefix
="$acl_final_exec_prefix"
17528 exec_prefix
="$acl_save_exec_prefix"
17529 prefix
="$acl_save_prefix"
17531 if test "X$x" = "X-I$additional_includedir"; then
17536 if test -z "$haveit"; then
17537 if test -d "$additional_includedir"; then
17538 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17544 if test -n "$found_la"; then
17545 save_libdir
="$libdir"
17546 case "$found_la" in
17547 */* |
*\\*) .
"$found_la" ;;
17548 *) .
"./$found_la" ;;
17550 libdir
="$save_libdir"
17551 for dep
in $dependency_libs; do
17554 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17555 if test "X$additional_libdir" != "X/usr/lib"; then
17557 if test "X$additional_libdir" = "X/usr/local/lib"; then
17558 if test -n "$GCC"; then
17560 linux
*) haveit
=yes;;
17564 if test -z "$haveit"; then
17566 for x
in $LDFLAGS $LIBINTL; do
17568 acl_save_prefix
="$prefix"
17569 prefix
="$acl_final_prefix"
17570 acl_save_exec_prefix
="$exec_prefix"
17571 exec_prefix
="$acl_final_exec_prefix"
17573 exec_prefix
="$acl_save_exec_prefix"
17574 prefix
="$acl_save_prefix"
17576 if test "X$x" = "X-L$additional_libdir"; then
17581 if test -z "$haveit"; then
17582 if test -d "$additional_libdir"; then
17583 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17587 for x
in $LDFLAGS $LTLIBINTL; do
17589 acl_save_prefix
="$prefix"
17590 prefix
="$acl_final_prefix"
17591 acl_save_exec_prefix
="$exec_prefix"
17592 exec_prefix
="$acl_final_exec_prefix"
17594 exec_prefix
="$acl_save_exec_prefix"
17595 prefix
="$acl_save_prefix"
17597 if test "X$x" = "X-L$additional_libdir"; then
17602 if test -z "$haveit"; then
17603 if test -d "$additional_libdir"; then
17604 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17611 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17612 if test "$enable_rpath" != no
; then
17614 for x
in $rpathdirs; do
17615 if test "X$x" = "X$dir"; then
17620 if test -z "$haveit"; then
17621 rpathdirs
="$rpathdirs $dir"
17624 for x
in $ltrpathdirs; do
17625 if test "X$x" = "X$dir"; then
17630 if test -z "$haveit"; then
17631 ltrpathdirs
="$ltrpathdirs $dir"
17636 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17639 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17642 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17643 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17649 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17650 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17656 if test "X$rpathdirs" != "X"; then
17657 if test -n "$hardcode_libdir_separator"; then
17659 for found_dir
in $rpathdirs; do
17660 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17662 acl_save_libdir
="$libdir"
17664 eval flag
=\"$hardcode_libdir_flag_spec\"
17665 libdir
="$acl_save_libdir"
17666 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17668 for found_dir
in $rpathdirs; do
17669 acl_save_libdir
="$libdir"
17670 libdir
="$found_dir"
17671 eval flag
=\"$hardcode_libdir_flag_spec\"
17672 libdir
="$acl_save_libdir"
17673 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17677 if test "X$ltrpathdirs" != "X"; then
17678 for found_dir
in $ltrpathdirs; do
17679 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17683 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17684 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17685 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 gt_save_CPPFLAGS
="$CPPFLAGS"
17689 CPPFLAGS
="$CPPFLAGS $INCINTL"
17690 gt_save_LIBS
="$LIBS"
17691 LIBS
="$LIBS $LIBINTL"
17692 cat >conftest.
$ac_ext <<_ACEOF
17695 cat confdefs.h
>>conftest.
$ac_ext
17696 cat >>conftest.
$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 #include <libintl.h>
17699 extern int _nl_msg_cat_cntr;
17704 const char *_nl_expand_alias ();
17708 bindtextdomain ("", "");
17709 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17714 rm -f conftest.
$ac_objext conftest
$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>conftest.er1
17718 grep -v '^ *+' conftest.er1
>conftest.err
17720 cat conftest.err
>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try
='test -z "$ac_c_werror_flag"
17724 || test ! -s conftest.err'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try
='test -s conftest$ac_exeext'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 gt_cv_func_gnugettext2_libintl
=yes
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.
$ac_ext >&5
17741 gt_cv_func_gnugettext2_libintl
=no
17743 rm -f conftest.err conftest.
$ac_objext \
17744 conftest
$ac_exeext conftest.
$ac_ext
17745 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17746 LIBS
="$LIBS $LIBICONV"
17747 cat >conftest.
$ac_ext <<_ACEOF
17750 cat confdefs.h
>>conftest.
$ac_ext
17751 cat >>conftest.
$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include <libintl.h>
17754 extern int _nl_msg_cat_cntr;
17759 const char *_nl_expand_alias ();
17763 bindtextdomain ("", "");
17764 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17769 rm -f conftest.
$ac_objext conftest
$ac_exeext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>conftest.er1
17773 grep -v '^ *+' conftest.er1
>conftest.err
17775 cat conftest.err
>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try
='test -z "$ac_c_werror_flag"
17779 || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try
='test -s conftest$ac_exeext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 LIBINTL
="$LIBINTL $LIBICONV"
17792 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17793 gt_cv_func_gnugettext2_libintl
=yes
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.
$ac_ext >&5
17800 rm -f conftest.err conftest.
$ac_objext \
17801 conftest
$ac_exeext conftest.
$ac_ext
17803 CPPFLAGS
="$gt_save_CPPFLAGS"
17804 LIBS
="$gt_save_LIBS"
17806 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17807 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17810 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17811 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17812 && test "$PACKAGE" != gettext; }; then
17813 gt_use_preinstalled_gnugettext
=yes
17821 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17822 nls_cv_use_gnu_gettext
=yes
17826 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17827 INTLOBJS
="\$(GETTOBJS)"
17828 BUILD_INCLUDED_LIBINTL
=yes
17829 USE_INCLUDED_LIBINTL
=yes
17830 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
17831 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17832 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17835 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17836 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17841 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17842 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17844 cat >>confdefs.h
<<\_ACEOF
17845 #define ENABLE_NLS 1
17853 if test "$USE_NLS" = "yes"; then
17855 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17856 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17857 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17858 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17859 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17860 echo "${ECHO_T}$LIBINTL" >&6
17862 for element
in $INCINTL; do
17864 for x
in $CPPFLAGS; do
17866 acl_save_prefix
="$prefix"
17867 prefix
="$acl_final_prefix"
17868 acl_save_exec_prefix
="$exec_prefix"
17869 exec_prefix
="$acl_final_exec_prefix"
17871 exec_prefix
="$acl_save_exec_prefix"
17872 prefix
="$acl_save_prefix"
17874 if test "X$x" = "X$element"; then
17879 if test -z "$haveit"; then
17880 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17887 cat >>confdefs.h
<<\_ACEOF
17888 #define HAVE_GETTEXT 1
17892 cat >>confdefs.h
<<\_ACEOF
17893 #define HAVE_DCGETTEXT 1
17902 if test "$PACKAGE" = gettext; then
17903 BUILD_INCLUDED_LIBINTL
=yes
17911 nls_cv_header_intl
=
17912 nls_cv_header_libgt
=
17923 INTL_LIBTOOL_SUFFIX_PREFIX
=
17927 INTLLIBS
="$LIBINTL"
17934 if test $USE_INCLUDED_LIBINTL = yes; then
17935 INCINTL
=-I\
${top_builddir}/intl
17939 if test x
$USE_NLS = xyes
; then
17941 echo "$as_me:$LINENO: checking for autopoint" >&5
17942 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17943 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17944 if test -n "$autopoint_version"; then
17946 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17947 echo "${ECHO_T}yes ($autopoint_version)" >&6
17952 echo "$as_me:$LINENO: result: no" >&5
17953 echo "${ECHO_T}no" >&6
17961 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
17962 { echo "$as_me:$LINENO: WARNING:
17963 You need to install GNU gettext/gettext-tools to compile aMule with
17965 echo "$as_me: WARNING:
17966 You need to install GNU gettext/gettext-tools to compile aMule with
17967 i18n support." >&2;}
17968 _mule_warning_8
=yes
17969 _mule_has_warnings
=yes
17974 if test ${USE_NLS:-no} = yes; then
17976 echo "$as_me:$LINENO: checking for requested languages" >&5
17977 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17978 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17980 if test "$AMULE_DAEMON" = "yes"; then
17982 if test -z "$LINGUAS"; then
17983 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17986 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17987 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17991 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17994 AMULE_DAEMON_MANPAGES
=
18000 if test "$AMULECMD" = "yes"; then
18002 if test -z "$LINGUAS"; then
18003 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18006 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18007 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18011 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18020 if test "$WEB" = "yes"; then
18022 if test -z "$LINGUAS"; then
18023 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18026 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18027 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18031 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
18040 if test "$AMULE_GUI" = "yes"; then
18042 if test -z "$LINGUAS"; then
18043 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18046 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18047 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18051 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18054 AMULE_GUI_MANPAGES
=
18060 if test "$CAS" = "yes"; then
18062 if test -z "$LINGUAS"; then
18063 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18066 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18067 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18071 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18080 if test "$WXCAS" = "yes"; then
18082 if test -z "$LINGUAS"; then
18083 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18086 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18087 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18091 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18100 if test "$ED2K" = "yes"; then
18102 if test -z "$LINGUAS"; then
18103 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18106 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18107 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18111 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18120 if test "$ALC" = "yes"; then
18122 if test -z "$LINGUAS"; then
18123 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18126 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18127 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18131 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18140 if test "$ALCC" = "yes"; then
18142 if test -z "$LINGUAS"; then
18143 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18146 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18147 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18151 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18160 if test "$MONOLITHIC" = "yes"; then
18162 if test -z "$LINGUAS"; then
18163 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18166 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18167 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18171 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18174 MONOLITHIC_MANPAGES
=
18179 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18180 echo "${ECHO_T}${LINGUAS:-all}" >&6
18187 # Check for bfd.h (to have proper backtraces without using wxExecute)
18189 echo "$as_me:$LINENO: checking for bfd" >&5
18190 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18192 for bfd_ldadd
in "" "${LIBINTL}"; do
18193 mule_backup_LIBS
="$LIBS"
18194 mule_backup_LDFLAGS
="$LDFLAGS"
18195 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18196 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
18197 cat >conftest.
$ac_ext <<_ACEOF
18201 cat confdefs.h
>>conftest.
$ac_ext
18202 cat >>conftest.
$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18205 #include <ansidecl.h>
18212 char *dummy = bfd_errmsg(bfd_get_error());
18219 rm -f conftest.
$ac_objext conftest
$ac_exeext
18220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18221 (eval $ac_link) 2>conftest.er1
18223 grep -v '^ *+' conftest.er1
>conftest.err
18225 cat conftest.err
>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try
='test -z "$ac_c_werror_flag"
18229 || test ! -s conftest.err'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; } &&
18235 { ac_try
='test -s conftest$ac_exeext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18243 BFD_CPPFLAGS
="-DHAVE_BFD"
18244 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
18245 LIBS
="$mule_backup_LIBS"
18246 LDFLAGS
="$mule_backup_LDFLAGS"
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.
$ac_ext >&5
18254 rm -f conftest.err conftest.
$ac_objext \
18255 conftest
$ac_exeext conftest.
$ac_ext
18256 LIBS
="$mule_backup_LIBS"
18257 LDFLAGS
="$mule_backup_LDFLAGS"
18260 echo "$as_me:$LINENO: result: $result" >&5
18261 echo "${ECHO_T}$result" >&6
18263 if test $result = no
; then
18264 { echo "$as_me:$LINENO: WARNING:
18265 bfd.h not found or unusable, please install binutils development
18266 package if you are a developer or want to help testing aMule" >&5
18267 echo "$as_me: WARNING:
18268 bfd.h not found or unusable, please install binutils development
18269 package if you are a developer or want to help testing aMule" >&2;}
18270 _mule_warning_9
=yes
18271 _mule_has_warnings
=yes
18278 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18279 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18280 cat >conftest.
$ac_ext <<_ACEOF
18284 cat confdefs.h
>>conftest.
$ac_ext
18285 cat >>conftest.
$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18288 #include <execinfo.h>
18295 int n = backtrace(&bt, 1);
18296 const char **bt_syms = backtrace_symbols(bt, n);
18303 rm -f conftest.
$ac_objext conftest
$ac_exeext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>conftest.er1
18307 grep -v '^ *+' conftest.er1
>conftest.err
18309 cat conftest.err
>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try
='test -z "$ac_c_werror_flag"
18313 || test ! -s conftest.err'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try
='test -s conftest$ac_exeext'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18328 cat >>confdefs.h
<<\_ACEOF
18329 #define HAVE_EXECINFO 1
18332 echo "$as_me:$LINENO: result: yes" >&5
18333 echo "${ECHO_T}yes" >&6
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.
$ac_ext >&5
18340 echo "$as_me:$LINENO: result: no" >&5
18341 echo "${ECHO_T}no" >&6
18344 rm -f conftest.err conftest.
$ac_objext \
18345 conftest
$ac_exeext conftest.
$ac_ext
18348 # Flush standard test results for speeding cache
18349 cat >confcache
<<\_ACEOF
18350 # This file is a shell script that caches the results of configure
18351 # tests run on this system so they can be shared between configure
18352 # scripts and configure runs, see configure's option --config-cache.
18353 # It is not useful on other systems. If it contains results you don't
18354 # want to keep, you may remove or edit it.
18356 # config.status only pays attention to the cache file if you give it
18357 # the --recheck option to rerun configure.
18359 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18360 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18361 # following values.
18365 # The following way of writing the cache mishandles newlines in values,
18366 # but we know of no workaround that is simple, portable, and efficient.
18367 # So, don't put newlines in cache variables' values.
18368 # Ultrix sh set writes to stderr and can't be redirected directly,
18369 # and sets the high bit in the cache file unless we assign to the vars.
18372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18374 # `set' does not quote correctly, so add quotes (double-quote
18375 # substitution turns \\\\ into \\, and sed turns \\ into \).
18378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18381 # `set' quotes correctly as required by POSIX, so do not add quotes.
18383 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18392 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18394 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18395 if test -w $cache_file; then
18396 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18397 cat confcache
>$cache_file
18399 echo "not updating unwritable cache $cache_file"
18408 # Check whether --enable-debug or --disable-debug was given.
18409 if test "${enable_debug+set}" = set; then
18410 enableval
="$enable_debug"
18411 USE_DEBUG
=${enableval:-yes}
18416 if test $USE_DEBUG = yes; then
18418 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18420 MULECFLAGS
="$MULECFLAGS -g"
18421 MULECXXFLAGS
="$MULECXXFLAGS -g"
18423 if test ${GLIBCXX:-no} = yes; then
18424 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18427 if test ${GCC:-no} = yes; then
18429 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18430 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18434 if test ${SYS:-unknown} = win32
; then
18435 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18441 if test ${GCC:-no} = yes; then
18443 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18444 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18453 # Check whether --enable-optimize or --disable-optimize was given.
18454 if test "${enable_optimize+set}" = set; then
18455 enableval
="$enable_optimize"
18456 USE_OPTIMIZE
=${enableval:-no}
18461 if test $USE_OPTIMIZE = yes; then
18463 MULECFLAGS
="$MULECFLAGS -O2"
18464 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18470 # Check whether --enable-profile or --disable-profile was given.
18471 if test "${enable_profile+set}" = set; then
18472 enableval
="$enable_profile"
18473 USE_PROFILE
=${enableval:-no}
18478 if test $USE_PROFILE = yes; then
18481 MULECFLAGS
="$MULECFLAGS -pg"
18482 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18484 MULELDFLAGS
="$MULELDFLAGS -pg"
18490 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18491 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18492 # Check whether --enable-static or --disable-static was given.
18493 if test "${enable_static+set}" = set; then
18494 enableval
="$enable_static"
18495 if test ${enableval:-no} = yes; then
18496 MULELDFLAGS
="$MULELDFLAGS -static"
18500 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18501 echo "${ECHO_T}${enableval:-no}" >&6
18503 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18506 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18507 echo "$as_me:$LINENO: checking for docdir" >&5
18508 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18509 if test -z "$docdir"; then
18510 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18513 echo "$as_me:$LINENO: result: $docdir" >&5
18514 echo "${ECHO_T}$docdir" >&6
18516 # Try to set the SVN checkout-date
18517 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18518 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18519 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18521 svndate
="rev. `cat $srcdir/.svn-revision`"
18522 elif test -d $srcdir/.svn
# SVNDATE for svn
18524 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18526 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18527 echo "${ECHO_T}${svndate:-None required}" >&6
18528 if test -n "$svndate"; then
18531 cat >>confdefs.h
<<_ACEOF
18532 #define SVNDATE "$svndate"
18535 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18543 # Check whether --with-denoise-level or --without-denoise-level was given.
18544 if test "${with_denoise_level+set}" = set; then
18545 withval
="$with_denoise_level"
18549 echo "$as_me:$LINENO: checking denoising level" >&5
18550 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18551 if test ${with_denoise_level:-5} = yes; then
18552 with_denoise_level
=5
18555 if test ${with_denoise_level:-5} = no
; then
18556 with_denoise_level
=0
18559 if test ${with_denoise_level:-5} -gt 4; then
18560 if test "${svndate:+set}" = "set"; then
18561 with_denoise_level
=0
18563 with_denoise_level
=4
18568 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18569 echo "${ECHO_T}$with_denoise_level" >&6
18571 ac_config_commands
="$ac_config_commands denoiser"
18577 if test x
$WEB = xyes
; then
18587 if test x
$ED2K = xyes
; then
18597 if test x
$CAS = xyes
; then
18607 if test x
$WXCAS = xyes
; then
18617 if test x
$ALC = xyes
; then
18627 if test x
$ALCC = xyes
; then
18637 if test x
$AMULE_GUI = xyes
; then
18639 AMULE_GUI_FALSE
='#'
18647 if test x
$AMULE_DAEMON = xyes
; then
18649 AMULE_DAEMON_FALSE
='#'
18651 AMULE_DAEMON_TRUE
='#'
18652 AMULE_DAEMON_FALSE
=
18657 if test x
$AMULECMD = xyes
; then
18659 COMPILE_CMD_FALSE
='#'
18661 COMPILE_CMD_TRUE
='#'
18667 if test x
$MONOLITHIC = xyes
; then
18669 MONOLITHIC_FALSE
='#'
18671 MONOLITHIC_TRUE
='#'
18677 if test x
$XAS = xyes
; then
18687 if test x
$ENABLE_UPNP = xyes
; then
18689 ENABLE_UPNP_FALSE
='#'
18691 ENABLE_UPNP_TRUE
='#'
18697 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18698 ENABLE_IP2COUNTRY_TRUE
=
18699 ENABLE_IP2COUNTRY_FALSE
='#'
18701 ENABLE_IP2COUNTRY_TRUE
='#'
18702 ENABLE_IP2COUNTRY_FALSE
=
18707 if test x
$SYS = xwin32
; then
18709 SYS_WIN32_FALSE
='#'
18717 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18727 if test x
$SYS = xdarwin
; then
18728 NEED_CORESERVICES_TRUE
=
18729 NEED_CORESERVICES_FALSE
='#'
18731 NEED_CORESERVICES_TRUE
='#'
18732 NEED_CORESERVICES_FALSE
=
18737 if test x
$USE_NLS = xyes
; then
18739 COMPILE_NLS_FALSE
='#'
18741 COMPILE_NLS_TRUE
='#'
18747 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18748 GENERATE_FLEX_HEADER_TRUE
=
18749 GENERATE_FLEX_HEADER_FALSE
='#'
18751 GENERATE_FLEX_HEADER_TRUE
='#'
18752 GENERATE_FLEX_HEADER_FALSE
=
18757 if test x
$INSTALL_SKINS = xyes
; then
18758 INSTALL_SKINS_TRUE
=
18759 INSTALL_SKINS_FALSE
='#'
18761 INSTALL_SKINS_TRUE
='#'
18762 INSTALL_SKINS_FALSE
=
18766 # Check for readline library
18767 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18769 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18770 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18771 if test "${vl_cv_lib_readline+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 for readline_lib
in readline edit editline
; do
18777 for termcap_lib
in "" termcap curses ncurses
; do
18778 if test -z "$termcap_lib"; then
18779 TRY_LIB
="-l$readline_lib"
18781 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18783 LIBS
="$ORIG_LIBS $TRY_LIB"
18784 cat >conftest.
$ac_ext <<_ACEOF
18787 cat confdefs.h
>>conftest.
$ac_ext
18788 cat >>conftest.
$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18791 /* Override any gcc2 internal prototype to avoid an error. */
18795 /* We use char because int might match the return type of a gcc2
18796 builtin and then its argument prototype would still apply. */
18806 rm -f conftest.
$ac_objext conftest
$ac_exeext
18807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18808 (eval $ac_link) 2>conftest.er1
18810 grep -v '^ *+' conftest.er1
>conftest.err
18812 cat conftest.err
>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try
='test -z "$ac_c_werror_flag"
18816 || test ! -s conftest.err'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try
='test -s conftest$ac_exeext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
18828 vl_cv_lib_readline
="$TRY_LIB"
18830 echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.
$ac_ext >&5
18834 rm -f conftest.err conftest.
$ac_objext \
18835 conftest
$ac_exeext conftest.
$ac_ext
18836 if test -n "$vl_cv_lib_readline"; then
18840 if test -n "$vl_cv_lib_readline"; then
18844 if test -z "$vl_cv_lib_readline"; then
18845 vl_cv_lib_readline
="no"
18849 READLINE_LIBS
="$vl_cv_lib_readline"
18853 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18854 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18856 if test "$vl_cv_lib_readline" != "no"; then
18858 cat >>confdefs.h
<<\_ACEOF
18859 #define HAVE_LIBREADLINE 1
18864 for ac_header
in readline.h readline
/readline.h
18866 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18868 echo "$as_me:$LINENO: checking for $ac_header" >&5
18869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18876 # Is the header compilable?
18877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18879 cat >conftest.
$ac_ext <<_ACEOF
18882 cat confdefs.h
>>conftest.
$ac_ext
18883 cat >>conftest.
$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18885 $ac_includes_default
18886 #include <$ac_header>
18888 rm -f conftest.
$ac_objext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18890 (eval $ac_compile) 2>conftest.er1
18892 grep -v '^ *+' conftest.er1
>conftest.err
18894 cat conftest.err
>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try
='test -z "$ac_c_werror_flag"
18898 || test ! -s conftest.err'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try
='test -s conftest.$ac_objext'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910 ac_header_compiler
=yes
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.
$ac_ext >&5
18915 ac_header_compiler
=no
18917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18919 echo "${ECHO_T}$ac_header_compiler" >&6
18921 # Is the header present?
18922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18924 cat >conftest.
$ac_ext <<_ACEOF
18927 cat confdefs.h
>>conftest.
$ac_ext
18928 cat >>conftest.
$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 #include <$ac_header>
18932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18933 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18935 grep -v '^ *+' conftest.er1
>conftest.err
18937 cat conftest.err
>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } >/dev
/null
; then
18940 if test -s conftest.err
; then
18941 ac_cpp_err
=$ac_c_preproc_warn_flag
18942 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18949 if test -z "$ac_cpp_err"; then
18950 ac_header_preproc
=yes
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.
$ac_ext >&5
18955 ac_header_preproc
=no
18957 rm -f conftest.err conftest.
$ac_ext
18958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18959 echo "${ECHO_T}$ac_header_preproc" >&6
18961 # So? What about this header?
18962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18968 ac_header_preproc
=yes
18971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18985 ## ------------------------------ ##
18986 ## Report this to admin@amule.org ##
18987 ## ------------------------------ ##
18990 sed "s/^/$as_me: WARNING: /" >&2
18993 echo "$as_me:$LINENO: checking for $ac_header" >&5
18994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 eval "$as_ac_Header=\$ac_header_preproc"
19000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19005 cat >>confdefs.h
<<_ACEOF
19006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19013 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19014 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19015 if test "${vl_cv_lib_readline_history+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 vl_cv_lib_readline_history
="no"
19020 cat >conftest.
$ac_ext <<_ACEOF
19023 cat confdefs.h
>>conftest.
$ac_ext
19024 cat >>conftest.
$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19027 /* Override any gcc2 internal prototype to avoid an error. */
19031 /* We use char because int might match the return type of a gcc2
19032 builtin and then its argument prototype would still apply. */
19033 char add_history ();
19042 rm -f conftest.
$ac_objext conftest
$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>conftest.er1
19046 grep -v '^ *+' conftest.er1
>conftest.err
19048 cat conftest.err
>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try
='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try
='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 vl_cv_lib_readline_history
="yes"
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.
$ac_ext >&5
19070 rm -f conftest.err conftest.
$ac_objext \
19071 conftest
$ac_exeext conftest.
$ac_ext
19074 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19075 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19076 if test "$vl_cv_lib_readline_history" = "yes"; then
19078 cat >>confdefs.h
<<\_ACEOF
19079 #define HAVE_READLINE_HISTORY 1
19084 for ac_header
in history.h readline
/history.h
19086 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19088 echo "$as_me:$LINENO: checking for $ac_header" >&5
19089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19096 # Is the header compilable?
19097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19099 cat >conftest.
$ac_ext <<_ACEOF
19102 cat confdefs.h
>>conftest.
$ac_ext
19103 cat >>conftest.
$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 $ac_includes_default
19106 #include <$ac_header>
19108 rm -f conftest.
$ac_objext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19112 grep -v '^ *+' conftest.er1
>conftest.err
19114 cat conftest.err
>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try
='test -z "$ac_c_werror_flag"
19118 || test ! -s conftest.err'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try
='test -s conftest.$ac_objext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 ac_header_compiler
=yes
19132 echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.
$ac_ext >&5
19135 ac_header_compiler
=no
19137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19139 echo "${ECHO_T}$ac_header_compiler" >&6
19141 # Is the header present?
19142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19144 cat >conftest.
$ac_ext <<_ACEOF
19147 cat confdefs.h
>>conftest.
$ac_ext
19148 cat >>conftest.
$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150 #include <$ac_header>
19152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19153 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19155 grep -v '^ *+' conftest.er1
>conftest.err
19157 cat conftest.err
>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } >/dev
/null
; then
19160 if test -s conftest.err
; then
19161 ac_cpp_err
=$ac_c_preproc_warn_flag
19162 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19169 if test -z "$ac_cpp_err"; then
19170 ac_header_preproc
=yes
19172 echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.
$ac_ext >&5
19175 ac_header_preproc
=no
19177 rm -f conftest.err conftest.
$ac_ext
19178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19179 echo "${ECHO_T}$ac_header_preproc" >&6
19181 # So? What about this header?
19182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19188 ac_header_preproc
=yes
19191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19205 ## ------------------------------ ##
19206 ## Report this to admin@amule.org ##
19207 ## ------------------------------ ##
19210 sed "s/^/$as_me: WARNING: /" >&2
19213 echo "$as_me:$LINENO: checking for $ac_header" >&5
19214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 eval "$as_ac_Header=\$ac_header_preproc"
19220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19225 cat >>confdefs.h
<<_ACEOF
19226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19240 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19243 # Check whether --enable-ccache or --disable-ccache was given.
19244 if test "${enable_ccache+set}" = set; then
19245 enableval
="$enable_ccache"
19250 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19251 if test "${with_ccache_prefix+set}" = set; then
19252 withval
="$with_ccache_prefix"
19256 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19257 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19258 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19259 echo "${ECHO_T}${enable_ccache:-no}" >&6
19261 if test ${enable_ccache:-no} = yes; then
19263 echo "$as_me:$LINENO: checking for ccache presence" >&5
19264 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19265 if test -z "$with_ccache_prefix"; then
19267 ccache_full
=`which ccache`
19268 with_ccache_prefix
=`dirname ${ccache_full}`
19272 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19274 echo "$as_me:$LINENO: result: yes" >&5
19275 echo "${ECHO_T}yes" >&6
19276 CC
="$with_ccache_prefix/ccache $CC"
19277 CXX
="$with_ccache_prefix/ccache $CXX"
19278 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19283 echo "$as_me:$LINENO: result: no" >&5
19284 echo "${ECHO_T}no" >&6
19293 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"
19295 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19297 if test x
$SYS = xwin32
; then
19298 ac_config_files
="$ac_config_files version.rc"
19302 cat >confcache
<<\_ACEOF
19303 # This file is a shell script that caches the results of configure
19304 # tests run on this system so they can be shared between configure
19305 # scripts and configure runs, see configure's option --config-cache.
19306 # It is not useful on other systems. If it contains results you don't
19307 # want to keep, you may remove or edit it.
19309 # config.status only pays attention to the cache file if you give it
19310 # the --recheck option to rerun configure.
19312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19314 # following values.
19318 # The following way of writing the cache mishandles newlines in values,
19319 # but we know of no workaround that is simple, portable, and efficient.
19320 # So, don't put newlines in cache variables' values.
19321 # Ultrix sh set writes to stderr and can't be redirected directly,
19322 # and sets the high bit in the cache file unless we assign to the vars.
19325 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19327 # `set' does not quote correctly, so add quotes (double-quote
19328 # substitution turns \\\\ into \\, and sed turns \\ into \).
19331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19334 # `set' quotes correctly as required by POSIX, so do not add quotes.
19336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19345 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19347 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19348 if test -w $cache_file; then
19349 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19350 cat confcache
>$cache_file
19352 echo "not updating unwritable cache $cache_file"
19357 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19358 # Let make expand exec_prefix.
19359 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19361 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19362 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19363 # trailing colons and then remove the whole line if VPATH becomes empty
19364 # (actually we leave an empty line to preserve line numbers).
19365 if test "x$srcdir" = x.
; then
19366 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19367 s/:*\$(srcdir):*/:/;
19368 s/:*\${srcdir}:*/:/;
19370 s/^\([^=]*=[ ]*\):*/\1/;
19376 DEFS
=-DHAVE_CONFIG_H
19380 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19381 # 1. Remove the extension, and $U if already installed.
19382 ac_i
=`echo "$ac_i" |
19383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19385 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19386 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19388 LIBOBJS
=$ac_libobjs
19390 LTLIBOBJS
=$ac_ltlibobjs
19393 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19394 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19395 Usually this means the macro was only invoked conditionally." >&5
19396 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19397 Usually this means the macro was only invoked conditionally." >&2;}
19398 { (exit 1); exit 1; }; }
19400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19401 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19402 Usually this means the macro was only invoked conditionally." >&5
19403 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19404 Usually this means the macro was only invoked conditionally." >&2;}
19405 { (exit 1); exit 1; }; }
19407 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19408 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19409 Usually this means the macro was only invoked conditionally." >&5
19410 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19411 Usually this means the macro was only invoked conditionally." >&2;}
19412 { (exit 1); exit 1; }; }
19414 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19415 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19416 Usually this means the macro was only invoked conditionally." >&5
19417 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19418 Usually this means the macro was only invoked conditionally." >&2;}
19419 { (exit 1); exit 1; }; }
19421 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19422 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19423 Usually this means the macro was only invoked conditionally." >&5
19424 echo "$as_me: error: conditional \"WEB\" was never defined.
19425 Usually this means the macro was only invoked conditionally." >&2;}
19426 { (exit 1); exit 1; }; }
19428 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19429 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19430 Usually this means the macro was only invoked conditionally." >&5
19431 echo "$as_me: error: conditional \"ED2K\" was never defined.
19432 Usually this means the macro was only invoked conditionally." >&2;}
19433 { (exit 1); exit 1; }; }
19435 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19436 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19437 Usually this means the macro was only invoked conditionally." >&5
19438 echo "$as_me: error: conditional \"CAS\" was never defined.
19439 Usually this means the macro was only invoked conditionally." >&2;}
19440 { (exit 1); exit 1; }; }
19442 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19443 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19444 Usually this means the macro was only invoked conditionally." >&5
19445 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19446 Usually this means the macro was only invoked conditionally." >&2;}
19447 { (exit 1); exit 1; }; }
19449 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19450 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19451 Usually this means the macro was only invoked conditionally." >&5
19452 echo "$as_me: error: conditional \"ALC\" was never defined.
19453 Usually this means the macro was only invoked conditionally." >&2;}
19454 { (exit 1); exit 1; }; }
19456 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19457 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19458 Usually this means the macro was only invoked conditionally." >&5
19459 echo "$as_me: error: conditional \"ALCC\" was never defined.
19460 Usually this means the macro was only invoked conditionally." >&2;}
19461 { (exit 1); exit 1; }; }
19463 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19464 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19465 Usually this means the macro was only invoked conditionally." >&5
19466 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19467 Usually this means the macro was only invoked conditionally." >&2;}
19468 { (exit 1); exit 1; }; }
19470 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19471 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19472 Usually this means the macro was only invoked conditionally." >&5
19473 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19474 Usually this means the macro was only invoked conditionally." >&2;}
19475 { (exit 1); exit 1; }; }
19477 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19478 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19479 Usually this means the macro was only invoked conditionally." >&5
19480 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19481 Usually this means the macro was only invoked conditionally." >&2;}
19482 { (exit 1); exit 1; }; }
19484 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19485 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19486 Usually this means the macro was only invoked conditionally." >&5
19487 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19488 Usually this means the macro was only invoked conditionally." >&2;}
19489 { (exit 1); exit 1; }; }
19491 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19492 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19493 Usually this means the macro was only invoked conditionally." >&5
19494 echo "$as_me: error: conditional \"XAS\" was never defined.
19495 Usually this means the macro was only invoked conditionally." >&2;}
19496 { (exit 1); exit 1; }; }
19498 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19499 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19500 Usually this means the macro was only invoked conditionally." >&5
19501 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19502 Usually this means the macro was only invoked conditionally." >&2;}
19503 { (exit 1); exit 1; }; }
19505 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19506 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19507 Usually this means the macro was only invoked conditionally." >&5
19508 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19509 Usually this means the macro was only invoked conditionally." >&2;}
19510 { (exit 1); exit 1; }; }
19512 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19513 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19514 Usually this means the macro was only invoked conditionally." >&5
19515 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19516 Usually this means the macro was only invoked conditionally." >&2;}
19517 { (exit 1); exit 1; }; }
19519 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19520 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19521 Usually this means the macro was only invoked conditionally." >&5
19522 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19523 Usually this means the macro was only invoked conditionally." >&2;}
19524 { (exit 1); exit 1; }; }
19526 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19527 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&5
19529 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19530 Usually this means the macro was only invoked conditionally." >&2;}
19531 { (exit 1); exit 1; }; }
19533 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19534 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&5
19536 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19537 Usually this means the macro was only invoked conditionally." >&2;}
19538 { (exit 1); exit 1; }; }
19540 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19541 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19542 Usually this means the macro was only invoked conditionally." >&5
19543 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19544 Usually this means the macro was only invoked conditionally." >&2;}
19545 { (exit 1); exit 1; }; }
19547 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19548 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19549 Usually this means the macro was only invoked conditionally." >&5
19550 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19551 Usually this means the macro was only invoked conditionally." >&2;}
19552 { (exit 1); exit 1; }; }
19555 : ${CONFIG_STATUS=./config.status}
19556 ac_clean_files_save
=$ac_clean_files
19557 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19558 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19559 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19560 cat >$CONFIG_STATUS <<_ACEOF
19562 # Generated by $as_me.
19563 # Run this file to recreate the current configuration.
19564 # Compiler output produced by configure, useful for debugging
19565 # configure, is in config.log if it exists.
19568 ac_cs_recheck=false
19570 SHELL=\${CONFIG_SHELL-$SHELL}
19573 cat >>$CONFIG_STATUS <<\_ACEOF
19574 ## --------------------- ##
19575 ## M4sh Initialization. ##
19576 ## --------------------- ##
19578 # Be Bourne compatible
19579 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19582 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19583 # is contrary to our usage. Disable this feature.
19584 alias -g '${1+"$@"}'='"$@"'
19585 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19588 DUALCASE
=1; export DUALCASE
# for MKS sh
19590 # Support unset when possible.
19591 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19598 # Work around bugs in pre-3.0 UWIN ksh.
19599 $as_unset ENV MAIL MAILPATH
19606 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19607 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19608 LC_TELEPHONE LC_TIME
19610 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19611 eval $as_var=C
; export $as_var
19617 # Required to use basename.
19618 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19624 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19625 as_basename
=basename
19631 # Name of the executable.
19632 as_me
=`$as_basename "$0" ||
19633 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19634 X"$0" : 'X\(//\)$' \| \
19635 X"$0" : 'X\(/\)$' \| \
19636 . : '\(.\)' 2>/dev/null ||
19638 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19639 /^X\/\(\/\/\)$/{ s//\1/; q; }
19640 /^X\/\(\/\).*/{ s//\1/; q; }
19644 # PATH needs CR, and LINENO needs CR and PATH.
19645 # Avoid depending upon Character Ranges.
19646 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19647 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19648 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19649 as_cr_digits
='0123456789'
19650 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19652 # The user is always right.
19653 if test "${PATH_SEPARATOR+set}" != set; then
19654 echo "#! /bin/sh" >conf$$.sh
19655 echo "exit 0" >>conf$$.sh
19657 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19666 as_lineno_1
=$LINENO
19667 as_lineno_2
=$LINENO
19668 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19669 test "x$as_lineno_1" != "x$as_lineno_2" &&
19670 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19671 # Find who we are. Look in the path if we contain no path at all
19674 *[\\/]* ) as_myself
=$0 ;;
19675 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19676 for as_dir
in $PATH
19679 test -z "$as_dir" && as_dir
=.
19680 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19685 # We did not find ourselves, most probably we were run as `sh COMMAND'
19686 # in which case we are not to be found in the path.
19687 if test "x$as_myself" = x
; then
19690 if test ! -f "$as_myself"; then
19691 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19692 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19693 { (exit 1); exit 1; }; }
19695 case $CONFIG_SHELL in
19697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19698 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19701 test -z "$as_dir" && as_dir
=.
19702 for as_base
in sh bash ksh sh5
; do
19705 if ("$as_dir/$as_base" -c '
19706 as_lineno_1=$LINENO
19707 as_lineno_2=$LINENO
19708 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19709 test "x$as_lineno_1" != "x$as_lineno_2" &&
19710 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19711 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19712 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19713 CONFIG_SHELL
=$as_dir/$as_base
19714 export CONFIG_SHELL
19715 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19723 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19724 # uniformly replaced by the line number. The first 'sed' inserts a
19725 # line-number line before each line; the second 'sed' does the real
19726 # work. The second script uses 'N' to pair each line-number line
19727 # with the numbered line, and appends trailing '-' during
19728 # substitution so that $LINENO is not a special case at line end.
19729 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19730 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19731 sed '=' <$as_myself |
19736 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19739 s,^['$as_cr_digits']*\n,,
19740 ' >$as_me.lineno
&&
19741 chmod +x
$as_me.lineno ||
19742 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19743 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19744 { (exit 1); exit 1; }; }
19746 # Don't try to exec as it changes $[0], causing all sort of problems
19747 # (the dirname of $[0] is not the place where we might find the
19748 # original and so on. Autoconf is especially sensible to this).
19750 # Exit status is that of the last command.
19755 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19756 *c
*,-n*) ECHO_N
= ECHO_C
='
19758 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19759 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19762 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19768 rm -f conf$$ conf$$.exe conf$$.
file
19770 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19771 # We could just check for DJGPP; but this test a) works b) is more generic
19772 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19773 if test -f conf$$.exe
; then
19774 # Don't use ln at all; we don't have any links
19779 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19784 rm -f conf$$ conf$$.exe conf$$.
file
19786 if mkdir
-p .
2>/dev
/null
; then
19789 test -d .
/-p && rmdir .
/-p
19793 as_executable_p
="test -f"
19795 # Sed expression to map a string onto a valid CPP name.
19796 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19798 # Sed expression to map a string onto a valid variable name.
19799 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19803 # We need space, tab and new line, in precisely that order.
19813 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19814 # report actual input values of CONFIG_FILES etc. instead of their
19815 # values after options handling. Logging --version etc. is OK.
19819 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19820 ## Running $as_me. ##
19825 This file was extended by aMule $as_me SVN, which was
19826 generated by GNU Autoconf 2.59. Invocation command line was
19828 CONFIG_FILES = $CONFIG_FILES
19829 CONFIG_HEADERS = $CONFIG_HEADERS
19830 CONFIG_LINKS = $CONFIG_LINKS
19831 CONFIG_COMMANDS = $CONFIG_COMMANDS
19835 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19839 # Files that config.status was made for.
19840 if test -n "$ac_config_files"; then
19841 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19844 if test -n "$ac_config_headers"; then
19845 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19848 if test -n "$ac_config_links"; then
19849 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19852 if test -n "$ac_config_commands"; then
19853 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19856 cat >>$CONFIG_STATUS <<\_ACEOF
19859 \`$as_me' instantiates files from templates according to the
19860 current configuration.
19862 Usage: $0 [OPTIONS] [FILE]...
19864 -h, --help print this help, then exit
19865 -V, --version print version number, then exit
19866 -q, --quiet do not print progress messages
19867 -d, --debug don't remove temporary files
19868 --recheck update $as_me by reconfiguring in the same conditions
19869 --file=FILE[:TEMPLATE]
19870 instantiate the configuration file FILE
19871 --header=FILE[:TEMPLATE]
19872 instantiate the configuration header FILE
19874 Configuration files:
19877 Configuration headers:
19880 Configuration commands:
19883 Report bugs to <bug-autoconf@gnu.org>."
19886 cat >>$CONFIG_STATUS <<_ACEOF
19888 aMule config.status SVN
19889 configured by $0, generated by GNU Autoconf 2.59,
19890 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19892 Copyright (C) 2003 Free Software Foundation, Inc.
19893 This config.status script is free software; the Free Software Foundation
19894 gives unlimited permission to copy, distribute and modify it."
19899 cat >>$CONFIG_STATUS <<\_ACEOF
19900 # If no file are specified by the user, then we need to provide default
19901 # value. By we need to know if files were specified by the user.
19907 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19908 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19916 *) # This is not an option, so the user has probably given explicit
19919 ac_need_defaults
=false
;;
19923 # Handling of the options.
19925 cat >>$CONFIG_STATUS <<\_ACEOF
19926 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19928 --version |
--vers* |
-V )
19929 echo "$ac_cs_version"; exit 0 ;;
19931 # Conflict between --help and --header
19932 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19933 Try \`$0 --help' for more information." >&5
19934 echo "$as_me: error: ambiguous option: $1
19935 Try \`$0 --help' for more information." >&2;}
19936 { (exit 1); exit 1; }; };;
19937 --help |
--hel |
-h )
19938 echo "$ac_cs_usage"; exit 0 ;;
19939 --debug |
--d* |
-d )
19941 --file |
--fil |
--fi |
--f )
19943 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19944 ac_need_defaults
=false
;;
19945 --header |
--heade |
--head |
--hea )
19947 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19948 ac_need_defaults
=false
;;
19949 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19950 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19953 # This is an error.
19954 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19955 Try \`$0 --help' for more information." >&5
19956 echo "$as_me: error: unrecognized option: $1
19957 Try \`$0 --help' for more information." >&2;}
19958 { (exit 1); exit 1; }; } ;;
19960 *) ac_config_targets
="$ac_config_targets $1" ;;
19966 ac_configure_extra_args
=
19968 if $ac_cs_silent; then
19970 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975 if \$ac_cs_recheck; then
19976 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19977 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19982 cat >>$CONFIG_STATUS <<_ACEOF
19984 # INIT-COMMANDS section.
19987 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19988 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19989 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19991 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19992 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19993 LINGUAS="${LINGUAS-%UNSET%}"
19995 denoiserlevel=$with_denoise_level
20001 cat >>$CONFIG_STATUS <<\_ACEOF
20002 for ac_config_target
in $ac_config_targets
20004 case "$ac_config_target" in
20005 # Handling of arguments.
20006 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20007 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
20008 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
20009 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
20010 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20011 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
20012 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20013 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
20014 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
20015 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20016 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
20017 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
20018 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20019 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20020 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20021 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
20022 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20023 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20024 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20025 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20026 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20027 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
20028 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20029 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20030 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
20031 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
20032 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
20033 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
20034 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
20035 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20036 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20037 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20038 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20039 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20040 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20041 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20042 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20043 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20044 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20045 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20046 { (exit 1); exit 1; }; };;
20050 # If the user did not use the arguments to specify the items to instantiate,
20051 # then the envvar interface is used. Set only those that are not.
20052 # We use the long form for the default assignment because of an extremely
20053 # bizarre bug on SunOS 4.1.3.
20054 if $ac_need_defaults; then
20055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20060 # Have a temporary directory for convenience. Make it in the build tree
20061 # simply because there is no reason to put it here, and in addition,
20062 # creating and moving files from /tmp can sometimes cause problems.
20063 # Create a temporary directory, and hook for its removal unless debugging.
20066 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20067 trap '{ (exit 1); exit 1; }' 1 2 13 15
20070 # Create a (secure) tmp directory for tmp files.
20073 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20074 test -n "$tmp" && test -d "$tmp"
20077 tmp
=.
/confstat$$
-$RANDOM
20078 (umask 077 && mkdir
$tmp)
20081 echo "$me: cannot create a temporary directory in ." >&2
20082 { (exit 1); exit 1; }
20087 cat >>$CONFIG_STATUS <<_ACEOF
20090 # CONFIG_FILES section.
20093 # No need to generate the scripts if there are no CONFIG_FILES.
20094 # This happens for instance when ./config.status config.h
20095 if test -n "\$CONFIG_FILES"; then
20096 # Protect against being on the right side of a sed subst in config.status.
20097 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20098 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20099 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20100 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20101 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20102 s,@SHELL@,$SHELL,;t t
20103 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20109 s,@exec_prefix@,$exec_prefix,;t t
20110 s,@prefix@,$prefix,;t t
20111 s,@program_transform_name@,$program_transform_name,;t t
20112 s,@bindir@,$bindir,;t t
20113 s,@sbindir@,$sbindir,;t t
20114 s,@libexecdir@,$libexecdir,;t t
20115 s,@datadir@,$datadir,;t t
20116 s,@sysconfdir@,$sysconfdir,;t t
20117 s,@sharedstatedir@,$sharedstatedir,;t t
20118 s,@localstatedir@,$localstatedir,;t t
20119 s,@libdir@,$libdir,;t t
20120 s,@includedir@,$includedir,;t t
20121 s,@oldincludedir@,$oldincludedir,;t t
20122 s,@infodir@,$infodir,;t t
20123 s,@mandir@,$mandir,;t t
20124 s,@build_alias@,$build_alias,;t t
20125 s,@host_alias@,$host_alias,;t t
20126 s,@target_alias@,$target_alias,;t t
20127 s,@DEFS@,$DEFS,;t t
20128 s,@ECHO_C@,$ECHO_C,;t t
20129 s,@ECHO_N@,$ECHO_N,;t t
20130 s,@ECHO_T@,$ECHO_T,;t t
20131 s,@LIBS@,$LIBS,;t t
20132 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20133 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20134 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20135 s,@CYGPATH_W@,$CYGPATH_W,;t t
20136 s,@PACKAGE@,$PACKAGE,;t t
20137 s,@VERSION@,$VERSION,;t t
20138 s,@ACLOCAL@,$ACLOCAL,;t t
20139 s,@AUTOCONF@,$AUTOCONF,;t t
20140 s,@AUTOMAKE@,$AUTOMAKE,;t t
20141 s,@AUTOHEADER@,$AUTOHEADER,;t t
20142 s,@MAKEINFO@,$MAKEINFO,;t t
20143 s,@install_sh@,$install_sh,;t t
20144 s,@STRIP@,$STRIP,;t t
20145 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20146 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20147 s,@mkdir_p@,$mkdir_p,;t t
20149 s,@SET_MAKE@,$SET_MAKE,;t t
20150 s,@am__leading_dot@,$am__leading_dot,;t t
20151 s,@AMTAR@,$AMTAR,;t t
20152 s,@am__tar@,$am__tar,;t t
20153 s,@am__untar@,$am__untar,;t t
20154 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20155 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20156 s,@MAINT@,$MAINT,;t t
20157 s,@build@,$build,;t t
20158 s,@build_cpu@,$build_cpu,;t t
20159 s,@build_vendor@,$build_vendor,;t t
20160 s,@build_os@,$build_os,;t t
20161 s,@host@,$host,;t t
20162 s,@host_cpu@,$host_cpu,;t t
20163 s,@host_vendor@,$host_vendor,;t t
20164 s,@host_os@,$host_os,;t t
20165 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20166 s,@X11LIBS@,$X11LIBS,;t t
20167 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20168 s,@MULECFLAGS@,$MULECFLAGS,;t t
20169 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20170 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20171 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20173 s,@CXXFLAGS@,$CXXFLAGS,;t t
20174 s,@LDFLAGS@,$LDFLAGS,;t t
20175 s,@CPPFLAGS@,$CPPFLAGS,;t t
20176 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20177 s,@EXEEXT@,$EXEEXT,;t t
20178 s,@OBJEXT@,$OBJEXT,;t t
20179 s,@DEPDIR@,$DEPDIR,;t t
20180 s,@am__include@,$am__include,;t t
20181 s,@am__quote@,$am__quote,;t t
20182 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20183 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20184 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20185 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20186 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20187 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20188 s,@CXXCPP@,$CXXCPP,;t t
20190 s,@CFLAGS@,$CFLAGS,;t t
20191 s,@ac_ct_CC@,$ac_ct_CC,;t t
20192 s,@CCDEPMODE@,$CCDEPMODE,;t t
20193 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20194 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20196 s,@BUILD_CC@,$BUILD_CC,;t t
20197 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20198 s,@EXEEXT@,$EXEEXT,;t t
20199 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20200 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20201 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20202 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20203 s,@EGREP@,$EGREP,;t t
20205 s,@LEXLIB@,$LEXLIB,;t t
20206 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20207 s,@RANLIB@,$RANLIB,;t t
20208 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20209 s,@YACC@,$YACC,;t t
20211 s,@ac_ct_AR@,$ac_ct_AR,;t t
20213 s,@ac_ct_LD@,$ac_ct_LD,;t t
20214 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20215 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20216 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20217 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20218 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20219 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20220 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20221 s,@CAS_DEFS@,$CAS_DEFS,;t t
20222 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20223 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20224 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20225 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20226 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20227 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20228 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20229 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20230 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20231 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20232 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20233 s,@WX_LIBS@,$WX_LIBS,;t t
20234 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20235 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20236 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20237 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20238 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20239 s,@WX_UNICODE@,$WX_UNICODE,;t t
20240 s,@WX_DEBUG@,$WX_DEBUG,;t t
20241 s,@WX_SHARED@,$WX_SHARED,;t t
20242 s,@WX_PORT@,$WX_PORT,;t t
20243 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20244 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20246 s,@RCFLAGS@,$RCFLAGS,;t t
20247 s,@ac_ct_RC@,$ac_ct_RC,;t t
20248 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20249 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20250 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20251 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20252 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20253 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20254 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20255 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20256 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20257 s,@ALLOCA@,$ALLOCA,;t t
20258 s,@LIBOBJS@,$LIBOBJS,;t t
20259 s,@POW_LIB@,$POW_LIB,;t t
20260 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20261 s,@MSGFMT@,$MSGFMT,;t t
20262 s,@GMSGFMT@,$GMSGFMT,;t t
20263 s,@XGETTEXT@,$XGETTEXT,;t t
20264 s,@MSGMERGE@,$MSGMERGE,;t t
20265 s,@GLIBC21@,$GLIBC21,;t t
20266 s,@LIBICONV@,$LIBICONV,;t t
20267 s,@LTLIBICONV@,$LTLIBICONV,;t t
20268 s,@INTLBISON@,$INTLBISON,;t t
20269 s,@USE_NLS@,$USE_NLS,;t t
20270 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20271 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20272 s,@CATOBJEXT@,$CATOBJEXT,;t t
20273 s,@INTLOBJS@,$INTLOBJS,;t t
20274 s,@DATADIRNAME@,$DATADIRNAME,;t t
20275 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20276 s,@GENCAT@,$GENCAT,;t t
20277 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20278 s,@INTLLIBS@,$INTLLIBS,;t t
20279 s,@LIBINTL@,$LIBINTL,;t t
20280 s,@LTLIBINTL@,$LTLIBINTL,;t t
20281 s,@POSUB@,$POSUB,;t t
20282 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20283 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20284 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20285 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20286 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20287 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20288 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20289 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20290 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20291 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20292 s,@INCINTL@,$INCINTL,;t t
20293 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20294 s,@BFD_LIBS@,$BFD_LIBS,;t t
20295 s,@docdir@,$docdir,;t t
20296 s,@SVNDATE@,$SVNDATE,;t t
20297 s,@WEB_TRUE@,$WEB_TRUE,;t t
20298 s,@WEB_FALSE@,$WEB_FALSE,;t t
20299 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20300 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20301 s,@CAS_TRUE@,$CAS_TRUE,;t t
20302 s,@CAS_FALSE@,$CAS_FALSE,;t t
20303 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20304 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20305 s,@ALC_TRUE@,$ALC_TRUE,;t t
20306 s,@ALC_FALSE@,$ALC_FALSE,;t t
20307 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20308 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20309 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20310 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20311 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20312 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20313 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20314 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20315 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20316 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20317 s,@XAS_TRUE@,$XAS_TRUE,;t t
20318 s,@XAS_FALSE@,$XAS_FALSE,;t t
20319 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20320 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20321 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20322 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20323 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20324 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20325 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20326 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20327 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20328 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20329 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20330 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20331 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20332 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20333 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20334 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20335 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20336 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20341 cat >>$CONFIG_STATUS <<\_ACEOF
20342 # Split the substitutions into bite-sized pieces for seds with
20343 # small command number limits, like on Digital OSF/1 and HP-UX.
20344 ac_max_sed_lines
=48
20345 ac_sed_frag
=1 # Number of current file.
20346 ac_beg
=1 # First line for current file.
20347 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20350 while $ac_more_lines; do
20351 if test $ac_beg -gt 1; then
20352 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20354 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20356 if test ! -s $tmp/subs.frag
; then
20357 ac_more_lines
=false
20359 # The purpose of the label and of the branching condition is to
20360 # speed up the sed processing (if there are no `@' at all, there
20361 # is no need to browse any of the substitutions).
20362 # These are the two extra sed commands mentioned above.
20364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20365 if test -z "$ac_sed_cmds"; then
20366 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20368 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20370 ac_sed_frag
=`expr $ac_sed_frag + 1`
20372 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20375 if test -z "$ac_sed_cmds"; then
20378 fi # test -n "$CONFIG_FILES"
20381 cat >>$CONFIG_STATUS <<\_ACEOF
20382 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20383 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20385 - |
*:- |
*:-:* ) # input from stdin
20387 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20388 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20389 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20390 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20391 * ) ac_file_in
=$ac_file.
in ;;
20394 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20395 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20397 X"$ac_file" : 'X\(//\)[^/]' \| \
20398 X"$ac_file" : 'X\(//\)$' \| \
20399 X"$ac_file" : 'X\(/\)' \| \
20400 . : '\(.\)' 2>/dev/null ||
20402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20404 /^X\(\/\/\)$/{ s//\1/; q; }
20405 /^X\(\/\).*/{ s//\1/; q; }
20407 { if $as_mkdir_p; then
20412 while test ! -d "$as_dir"; do
20413 as_dirs
="$as_dir $as_dirs"
20414 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20416 X"$as_dir" : 'X\(//\)[^/]' \| \
20417 X"$as_dir" : 'X\(//\)$' \| \
20418 X"$as_dir" : 'X\(/\)' \| \
20419 . : '\(.\)' 2>/dev/null ||
20421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20423 /^X\(\/\/\)$/{ s//\1/; q; }
20424 /^X\(\/\).*/{ s//\1/; q; }
20427 test ! -n "$as_dirs" || mkdir
$as_dirs
20428 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20430 { (exit 1); exit 1; }; }; }
20434 if test "$ac_dir" != .
; then
20435 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20436 # A "../" for each directory in $ac_dir_suffix.
20437 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20439 ac_dir_suffix
= ac_top_builddir
=
20443 .
) # No --srcdir option. We are building in place.
20445 if test -z "$ac_top_builddir"; then
20448 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20450 [\\/]* | ?
:[\\/]* ) # Absolute path.
20451 ac_srcdir
=$srcdir$ac_dir_suffix;
20452 ac_top_srcdir
=$srcdir ;;
20453 *) # Relative path.
20454 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20455 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20458 # Do not use `cd foo && pwd` to compute absolute paths, because
20459 # the directories may not exist.
20461 .
) ac_abs_builddir
="$ac_dir";;
20464 .
) ac_abs_builddir
=`pwd`;;
20465 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20466 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20469 case $ac_abs_builddir in
20470 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20472 case ${ac_top_builddir}.
in
20473 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20474 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20475 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20478 case $ac_abs_builddir in
20479 .
) ac_abs_srcdir
=$ac_srcdir;;
20482 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20483 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20484 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20487 case $ac_abs_builddir in
20488 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20490 case $ac_top_srcdir in
20491 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20492 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20493 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20499 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20500 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20503 if test x
"$ac_file" != x-
; then
20504 { echo "$as_me:$LINENO: creating $ac_file" >&5
20505 echo "$as_me: creating $ac_file" >&6;}
20508 # Let's still pretend it is `configure' which instantiates (i.e., don't
20509 # use $as_me), people would be surprised to read:
20510 # /* config.h. Generated by config.status. */
20511 if test x
"$ac_file" = x-
; then
20514 configure_input
="$ac_file. "
20516 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20517 sed 's,.*/,,'` by configure."
20519 # First look for the input files in the build tree, otherwise in the
20521 ac_file_inputs
=`IFS=:
20522 for f in $ac_file_in; do
20524 -) echo $tmp/stdin ;;
20526 # Absolute (can't be DOS-style, as IFS=:)
20527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20528 echo "$as_me: error: cannot find input file: $f" >&2;}
20529 { (exit 1); exit 1; }; }
20532 if test -f "$f"; then
20535 elif test -f "$srcdir/$f"; then
20540 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20541 echo "$as_me: error: cannot find input file: $f" >&2;}
20542 { (exit 1); exit 1; }; }
20545 done` ||
{ (exit 1); exit 1; }
20547 cat >>$CONFIG_STATUS <<_ACEOF
20551 cat >>$CONFIG_STATUS <<\_ACEOF
20553 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20554 s
,@configure_input@
,$configure_input,;t t
20555 s
,@srcdir@
,$ac_srcdir,;t t
20556 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20557 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20558 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20559 s
,@builddir@
,$ac_builddir,;t t
20560 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20561 s
,@top_builddir@
,$ac_top_builddir,;t t
20562 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20563 s
,@INSTALL@
,$ac_INSTALL,;t t
20564 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20566 if test x"$ac_file" != x-; then
20567 mv $tmp/out $ac_file
20575 cat >>$CONFIG_STATUS <<\_ACEOF
20578 # CONFIG_HEADER section.
20581 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20582 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20584 # ac_d sets the value in "#define NAME VALUE" lines.
20585 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20586 ac_dB
='[ ].*$,\1#\2'
20589 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20590 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20591 ac_uB
='$,\1#\2define\3'
20595 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20598 - |
*:- |
*:-:* ) # input from stdin
20600 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20601 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20602 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20603 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20604 * ) ac_file_in
=$ac_file.
in ;;
20607 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20608 echo "$as_me: creating $ac_file" >&6;}
20610 # First look for the input files in the build tree, otherwise in the
20612 ac_file_inputs
=`IFS=:
20613 for f in $ac_file_in; do
20615 -) echo $tmp/stdin ;;
20617 # Absolute (can't be DOS-style, as IFS=:)
20618 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20619 echo "$as_me: error: cannot find input file: $f" >&2;}
20620 { (exit 1); exit 1; }; }
20621 # Do quote $f, to prevent DOS paths from being IFS'd.
20624 if test -f "$f"; then
20627 elif test -f "$srcdir/$f"; then
20632 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20633 echo "$as_me: error: cannot find input file: $f" >&2;}
20634 { (exit 1); exit 1; }; }
20637 done` ||
{ (exit 1); exit 1; }
20638 # Remove the trailing spaces.
20639 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20643 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20644 # `conftest.undefs', that substitutes the proper values into
20645 # config.h.in to produce config.h. The first handles `#define'
20646 # templates, and the second `#undef' templates.
20647 # And first: Protect against being on the right side of a sed subst in
20648 # config.status. Protect against being in an unquoted here document
20649 # in config.status.
20650 rm -f conftest.defines conftest.undefs
20651 # Using a here document instead of a string reduces the quoting nightmare.
20652 # Putting comments in sed scripts is not portable.
20654 # `end' is used to avoid that the second main sed command (meant for
20655 # 0-ary CPP macros) applies to n-ary macro definitions.
20656 # See the Autoconf documentation for `clear'.
20657 cat >confdef2sed.
sed <<\_ACEOF
20662 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20664 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20667 # If some macros were called several times there might be several times
20668 # the same #defines, which is useless. Nevertheless, we may not want to
20669 # sort them, since we want the *last* AC-DEFINE to be honored.
20670 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20671 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20672 rm -f confdef2sed.sed
20674 # This sed command replaces #undef with comments. This is necessary, for
20675 # example, in the case of _POSIX_SOURCE, which is predefined and required
20676 # on some systems where configure will not decide to define it.
20677 cat >>conftest.undefs <<\_ACEOF
20678 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20681 # Break up conftest.defines because some shells have a limit on the size
20682 # of here documents, and old seds have small limits too (100 cmds).
20683 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20684 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20685 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20686 echo ' :' >>$CONFIG_STATUS
20687 rm -f conftest.tail
20688 while grep . conftest.defines >/dev/null
20690 # Write a limited-size here document to $tmp/defines.sed.
20691 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20692 # Speed up: don't consider the non `#define' lines.
20693 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20694 # Work around the forget-to-reset-the-flag bug.
20695 echo 't clr' >>$CONFIG_STATUS
20696 echo ': clr' >>$CONFIG_STATUS
20697 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20699 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20701 mv $tmp/out $tmp/in
20703 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20704 rm -f conftest.defines
20705 mv conftest.
tail conftest.defines
20707 rm -f conftest.defines
20708 echo ' fi # grep' >>$CONFIG_STATUS
20709 echo >>$CONFIG_STATUS
20711 # Break up conftest.undefs because some shells have a limit on the size
20712 # of here documents, and old seds have small limits too (100 cmds).
20713 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20714 rm -f conftest.
tail
20715 while grep . conftest.undefs
>/dev
/null
20717 # Write a limited-size here document to $tmp/undefs.sed.
20718 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20719 # Speed up: don't consider the non
`#undef'
20720 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20721 # Work around the forget-to-reset-the-flag bug.
20722 echo 't clr' >>$CONFIG_STATUS
20723 echo ': clr' >>$CONFIG_STATUS
20724 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20726 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20728 mv $tmp/out $tmp/in
20730 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20731 rm -f conftest.undefs
20732 mv conftest.tail conftest.undefs
20734 rm -f conftest.undefs
20736 cat >>$CONFIG_STATUS <<\_ACEOF
20737 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20738 # use $as_me), people would be surprised to read:
20739 # /* config.h. Generated by config.status. */
20740 if test x
"$ac_file" = x-
; then
20741 echo "/* Generated by configure. */" >$tmp/config.h
20743 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20745 cat $tmp/in >>$tmp/config.h
20747 if test x
"$ac_file" != x-
; then
20748 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20749 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20750 echo "$as_me: $ac_file is unchanged" >&6;}
20752 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20754 X"$ac_file" : 'X\(//\)[^/]' \| \
20755 X"$ac_file" : 'X\(//\)$' \| \
20756 X"$ac_file" : 'X\(/\)' \| \
20757 . : '\(.\)' 2>/dev/null ||
20759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20761 /^X\(\/\/\)$/{ s//\1/; q; }
20762 /^X\(\/\).*/{ s//\1/; q; }
20764 { if $as_mkdir_p; then
20769 while test ! -d "$as_dir"; do
20770 as_dirs
="$as_dir $as_dirs"
20771 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20773 X"$as_dir" : 'X\(//\)[^/]' \| \
20774 X"$as_dir" : 'X\(//\)$' \| \
20775 X"$as_dir" : 'X\(/\)' \| \
20776 . : '\(.\)' 2>/dev/null ||
20778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20780 /^X\(\/\/\)$/{ s//\1/; q; }
20781 /^X\(\/\).*/{ s//\1/; q; }
20784 test ! -n "$as_dirs" || mkdir
$as_dirs
20785 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20786 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20787 { (exit 1); exit 1; }; }; }
20790 mv $tmp/config.h
$ac_file
20794 rm -f $tmp/config.h
20796 # Compute $ac_file's index in $config_headers.
20798 for _am_header
in $config_headers :; do
20799 case $_am_header in
20800 $ac_file |
$ac_file:* )
20803 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20806 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20807 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20808 X$ac_file : 'X\(//\)[^/]' \| \
20809 X$ac_file : 'X\(//\)$' \| \
20810 X$ac_file : 'X\(/\)' \| \
20811 . : '\(.\)' 2>/dev/null ||
20813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20815 /^X\(\/\/\)$/{ s//\1/; q; }
20816 /^X\(\/\).*/{ s//\1/; q; }
20817 s/.*/./; q'`/stamp-h
$_am_stamp_count
20820 cat >>$CONFIG_STATUS <<\_ACEOF
20823 # CONFIG_COMMANDS section.
20825 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20826 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20827 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20828 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20829 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20830 X"$ac_dest" : 'X\(//\)[^/]' \| \
20831 X"$ac_dest" : 'X\(//\)$' \| \
20832 X"$ac_dest" : 'X\(/\)' \| \
20833 . : '\(.\)' 2>/dev/null ||
20835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20837 /^X\(\/\/\)$/{ s//\1/; q; }
20838 /^X\(\/\).*/{ s//\1/; q; }
20840 { if $as_mkdir_p; then
20845 while test ! -d "$as_dir"; do
20846 as_dirs
="$as_dir $as_dirs"
20847 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20849 X"$as_dir" : 'X\(//\)[^/]' \| \
20850 X"$as_dir" : 'X\(//\)$' \| \
20851 X"$as_dir" : 'X\(/\)' \| \
20852 . : '\(.\)' 2>/dev/null ||
20854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20856 /^X\(\/\/\)$/{ s//\1/; q; }
20857 /^X\(\/\).*/{ s//\1/; q; }
20860 test ! -n "$as_dirs" || mkdir
$as_dirs
20861 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20863 { (exit 1); exit 1; }; }; }
20867 if test "$ac_dir" != .
; then
20868 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20869 # A "../" for each directory in $ac_dir_suffix.
20870 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20872 ac_dir_suffix
= ac_top_builddir
=
20876 .
) # No --srcdir option. We are building in place.
20878 if test -z "$ac_top_builddir"; then
20881 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20883 [\\/]* | ?
:[\\/]* ) # Absolute path.
20884 ac_srcdir
=$srcdir$ac_dir_suffix;
20885 ac_top_srcdir
=$srcdir ;;
20886 *) # Relative path.
20887 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20888 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20891 # Do not use `cd foo && pwd` to compute absolute paths, because
20892 # the directories may not exist.
20894 .
) ac_abs_builddir
="$ac_dir";;
20897 .
) ac_abs_builddir
=`pwd`;;
20898 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20899 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20902 case $ac_abs_builddir in
20903 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20905 case ${ac_top_builddir}.
in
20906 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20907 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20908 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20911 case $ac_abs_builddir in
20912 .
) ac_abs_srcdir
=$ac_srcdir;;
20915 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20916 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20917 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20920 case $ac_abs_builddir in
20921 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20923 case $ac_top_srcdir in
20924 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20925 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20926 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20931 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20932 echo "$as_me: executing $ac_dest commands" >&6;}
20934 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20935 # Strip MF so we end up with the name of the file.
20936 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20937 # Check whether this is an Automake generated Makefile or not.
20938 # We used to match only the files named `Makefile.in', but
20939 # some people rename them; so instead we look at the file content.
20940 # Grep'ing the first line is not enough: some people post-process
20941 # each Makefile.in and add a new line on top of each file to say so.
20942 # So let's grep whole file.
20943 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
20944 dirpart
=`(dirname "$mf") 2>/dev/null ||
20945 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946 X"$mf" : 'X\(//\)[^/]' \| \
20947 X"$mf" : 'X\(//\)$' \| \
20948 X"$mf" : 'X\(/\)' \| \
20949 . : '\(.\)' 2>/dev/null ||
20951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20953 /^X\(\/\/\)$/{ s//\1/; q; }
20954 /^X\(\/\).*/{ s//\1/; q; }
20959 # Extract the definition of DEPDIR, am__include, and am__quote
20960 # from the Makefile without running `make'.
20961 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20962 test -z "$DEPDIR" && continue
20963 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20964 test -z "am__include" && continue
20965 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20966 # When using ansi2knr, U may be empty or an underscore; expand it
20967 U
=`sed -n 's/^U = //p' < "$mf"`
20968 # Find all dependency output files, they are included files with
20969 # $(DEPDIR) in their names. We invoke sed twice because it is the
20970 # simplest approach to changing $(DEPDIR) to its actual value in the
20972 for file in `sed -n "
20973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20975 # Make sure the directory exists.
20976 test -f "$dirpart/$file" && continue
20977 fdir
=`(dirname "$file") 2>/dev/null ||
20978 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20979 X"$file" : 'X\(//\)[^/]' \| \
20980 X"$file" : 'X\(//\)$' \| \
20981 X"$file" : 'X\(/\)' \| \
20982 . : '\(.\)' 2>/dev/null ||
20984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20986 /^X\(\/\/\)$/{ s//\1/; q; }
20987 /^X\(\/\).*/{ s//\1/; q; }
20989 { if $as_mkdir_p; then
20990 mkdir
-p $dirpart/$fdir
20992 as_dir
=$dirpart/$fdir
20994 while test ! -d "$as_dir"; do
20995 as_dirs
="$as_dir $as_dirs"
20996 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20998 X"$as_dir" : 'X\(//\)[^/]' \| \
20999 X"$as_dir" : 'X\(//\)$' \| \
21000 X"$as_dir" : 'X\(/\)' \| \
21001 . : '\(.\)' 2>/dev/null ||
21003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21005 /^X\(\/\/\)$/{ s//\1/; q; }
21006 /^X\(\/\).*/{ s//\1/; q; }
21009 test ! -n "$as_dirs" || mkdir
$as_dirs
21010 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21011 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21012 { (exit 1); exit 1; }; }; }
21014 # echo "creating $dirpart/$file"
21015 echo '# dummy' > "$dirpart/$file"
21020 for ac_file
in $CONFIG_FILES; do
21021 # Support "outfile[:infile[:infile...]]"
21023 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
21025 # PO directories have a Makefile.in generated from Makefile.in.in.
21026 case "$ac_file" in */Makefile.
in)
21027 # Adjust a relative srcdir.
21028 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21029 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
21030 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21031 # In autoconf-2.13 it is called $ac_given_srcdir.
21032 # In autoconf-2.50 it is called $srcdir.
21033 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
21034 case "$ac_given_srcdir" in
21035 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
21036 /*) top_srcdir
="$ac_given_srcdir" ;;
21037 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21039 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21040 rm -f "$ac_dir/POTFILES"
21041 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21042 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21043 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21044 # on $ac_dir but don't depend on user-specified configuration
21046 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21047 # The LINGUAS file contains the set of available languages.
21048 if test -n "$ALL_LINGUAS"; then
21049 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21051 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21052 # Hide the ALL_LINGUAS assigment from automake.
21053 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21055 case "$ac_given_srcdir" in
21057 *) srcdirpre
='$(srcdir)/' ;;
21063 for lang
in $ALL_LINGUAS; do
21064 POFILES
="$POFILES $srcdirpre$lang.po"
21065 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21066 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21067 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21069 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21070 # environment variable.
21072 if test -n "$ALL_LINGUAS"; then
21073 for presentlang
in $ALL_LINGUAS; do
21075 if test "%UNSET%" != "$LINGUAS"; then
21076 desiredlanguages
="$LINGUAS"
21078 desiredlanguages
="$ALL_LINGUAS"
21080 for desiredlang
in $desiredlanguages; do
21081 # Use the presentlang catalog if desiredlang is
21082 # a. equal to presentlang, or
21083 # b. a variant of presentlang (because in this case,
21084 # presentlang can be used as a fallback for messages
21085 # which are not translated in the desiredlang catalog).
21086 case "$desiredlang" in
21087 "$presentlang"*) useit
=yes;;
21090 if test $useit = yes; then
21091 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21096 if test -n "$INST_LINGUAS"; then
21097 for lang
in $INST_LINGUAS; do
21098 CATALOGS
="$CATALOGS $lang.gmo"
21101 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21102 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"
21103 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21104 if test -f "$f"; then
21106 *.orig |
*.bak |
*~
) ;;
21107 *) cat "$f" >> "$ac_dir/Makefile" ;;
21115 denoiser
) if test $denoiserlevel -gt 0; then
21116 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21117 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" \
21118 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21119 for i
in `find . -name 'Makefile' -print`; do
21120 if test -n "`head -n 1 $i | grep '^#'`"; then
21121 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21129 cat >>$CONFIG_STATUS <<\_ACEOF
21131 { (exit 0); exit 0; }
21133 chmod +x
$CONFIG_STATUS
21134 ac_clean_files
=$ac_clean_files_save
21137 # configure is writing to config.log, and then calls config.status.
21138 # config.status does its own redirection, appending to config.log.
21139 # Unfortunately, on DOS this fails, as config.log is still kept open
21140 # by configure, so config.status won't be able to write to it; its
21141 # output is simply discarded. So we exec the FD to /dev/null,
21142 # effectively closing config.log, so it can be properly (re)opened and
21143 # appended to by config.status. When coming back to configure, we
21144 # need to make the FD available again.
21145 if test "$no_create" != yes; then
21147 ac_config_status_args
=
21148 test "$silent" = yes &&
21149 ac_config_status_args
="$ac_config_status_args --quiet"
21151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21154 # would make configure fail if this is the last instruction.
21155 $ac_cs_success ||
{ (exit 1); exit 1; }
21159 if test -n "$svndate"; then
21160 SVN_REVISION
=" ($svndate)"
21168 echo " Configure script has finished system check."
21170 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21172 echo " aMule enabled options:"
21174 echo " **** aMule Core ****"
21175 echo " Prefix where aMule should be installed? ${prefix:-none}"
21176 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21177 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21178 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21179 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21180 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21181 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21182 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21183 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21184 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21185 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21188 echo " **** aMule TextClient ****"
21189 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21191 echo " **** aMule WebServer ****"
21192 echo " Should aMule WebServer be built? ${WEB:-no}"
21194 echo " **** aMule ED2K Links Handler ****"
21195 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21197 echo " **** aMuleLinkCreator ****"
21198 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21199 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21201 echo " **** aMule Statistics ****"
21202 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21203 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21204 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21207 echo " **** General Libraries and Tools ****"
21208 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21209 echo " Libraries aMule will use to build:"
21211 if test $WX_DEBUG -eq 1; then
21212 wxinfo
="$wxinfo,debug"
21215 if test $WX_SHARED -eq 1; then
21216 wxinfo
="$wxinfo,shared"
21218 wxinfo
="$wxinfo,static"
21221 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21222 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21223 if test -n "$with_libupnp_prefix"; then
21224 libupnp_place
=" (in $with_libupnp_prefix)"
21227 if test x
${ENABLE_UPNP} = xyes
; then
21228 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21231 if test ${enable_nls:-yes} = yes; then
21232 if test x
$USE_NLS = xno
; then
21233 libintl_found
="Not detected"
21235 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21236 libintl_found
="included"
21238 libintl_found
="system"
21243 echo " libintl $libintl_found"
21245 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21251 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21252 echo " libGeoIP ${geoip_style}"
21255 if test x
$LIBPNG_VERSION != xnot_needed
; then
21256 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21258 if test x
$GDLIB_VERSION != xnot_needed
; then
21259 echo " libgd ${GDLIB_VERSION:-Not detected}"
21261 echo " zlib ${ZLIB_VERSION:-Not detected}"
21262 if test ${_mule_has_warnings:-no} = yes; then
21265 echo " *** Warnings during configuration ***"
21267 if test ${_mule_warning_0:-no} = yes; then
21270 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21271 Please check that gdlib-config is in your default path, check out
21272 LD_LIBRARY_PATH or equivalent variable.
21273 Or this might also be that your gdlib-config has other name.
21274 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21275 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21276 If you use compiled packages check if you have devel pack installed.
21277 To download the latest version check http://www.boutell.com/gd for sources.
21280 if test ${_mule_warning_1:-no} = yes; then
21283 * libpng >= 1.2.0 not found.
21284 amuleweb will be compiled but file download progress bar images will NOT be
21288 if test ${_mule_warning_2:-no} = yes; then
21291 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21294 if test ${_mule_warning_3:-no} = yes; then
21297 * GeoIP support has been disabled because the GeoIP libraries were not found
21300 if test ${_mule_warning_4:-no} = yes; then
21303 * GeoIP support has been disabled because the GeoIP header files were not
21307 if test ${_mule_warning_5:-no} = yes; then
21310 * UPnP code has been disabled because ${libupnp_error}.
21313 if test ${_mule_warning_6:-no} = yes; then
21316 * Cross-compilation detected, so exception handling cannot be tested.
21317 Note that broken exception handling in your compiler may lead to unexpected
21321 if test ${_mule_warning_7:-no} = yes; then
21324 * configure cannot check whether malloc() and realloc() are GNU libc
21325 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21326 configure with the --without-gnu-malloc switch.
21329 if test ${_mule_warning_8:-no} = yes; then
21332 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21336 if test ${_mule_warning_9:-no} = yes; then
21339 * bfd.h not found or unusable, please install binutils development package if
21340 you are a developer or want to help testing aMule