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
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 RESOLV_LIB X11LIBS 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 GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIB LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_CXXFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS GEOIP_INCLUDE GEOIP_LIB 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 RC ac_ct_RC RCFLAGS CRYPTO_PP_PREFIX CRYPTO_PP_VERSION_STRING CRYPTO_PP_VERSION_NUMBER CRYPTO_PP_STYLE CRYPTO_PP_LIB_NAME CRYPTO_PP_INCLUDE_PREFIX CRYPTO_PP_CXXFLAGS CRYPTO_PP_LDFLAGS CRYPTOLIBS BFD_FLAGS BFD_LIB HAVE_GETTEXT HAVE_FLEX_EXTENDED ALLOCA 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 LIBOBJS POW_LIB WXBASE_LIBS WXBASE_CFLAGS WXBASE_CXXFLAGS docdir SVNDATE AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES 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 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 READLINE_LIBS ccache CCACHE ccache_prefix 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
793 # Report the --help message.
795 if test "$ac_init_help" = "long"; then
796 # Omit some internal or obsolete options to make the list less imposing.
797 # This message is too long to be a string in the A/UX 3.1 sh.
799 \`configure' configures aMule SVN to adapt to many kinds of systems.
801 Usage: $0 [OPTION]... [VAR=VALUE]...
803 To assign environment variables (e.g., CC, CFLAGS...), specify them as
804 VAR=VALUE. See below for descriptions of some of the useful variables.
806 Defaults for the options are specified in brackets.
809 -h, --help display this help and exit
810 --help=short display options specific to this package
811 --help=recursive display the short help of all the included packages
812 -V, --version display version information and exit
813 -q, --quiet, --silent do not print \`checking...' messages
814 --cache-file=FILE cache test results in FILE [disabled]
815 -C, --config-cache alias for \`--cache-file=config.cache'
816 -n, --no-create do not create output files
817 --srcdir=DIR find the sources in DIR [configure dir or \`..']
822 Installation directories:
823 --prefix=PREFIX install architecture-independent files in PREFIX
825 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
828 By default, \`make install' will install all the files in
829 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
830 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
831 for instance \`--prefix=\$HOME'.
833 For better control, use the options below.
835 Fine tuning of the installation directories:
836 --bindir=DIR user executables [EPREFIX/bin]
837 --sbindir=DIR system admin executables [EPREFIX/sbin]
838 --libexecdir=DIR program executables [EPREFIX/libexec]
839 --datadir=DIR read-only architecture-independent data [PREFIX/share]
840 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
841 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
842 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
843 --libdir=DIR object code libraries [EPREFIX/lib]
844 --includedir=DIR C header files [PREFIX/include]
845 --oldincludedir=DIR C header files for non-gcc [/usr/include]
846 --infodir=DIR info documentation [PREFIX/info]
847 --mandir=DIR man documentation [PREFIX/man]
853 --program-prefix=PREFIX prepend PREFIX to installed program names
854 --program-suffix=SUFFIX append SUFFIX to installed program names
855 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
858 --x-includes=DIR X include files are
in DIR
859 --x-libraries=DIR X library files are
in DIR
862 --build=BUILD configure
for building on BUILD
[guessed
]
863 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
867 if test -n "$ac_init_help"; then
868 case $ac_init_help in
869 short | recursive
) echo "Configuration of aMule SVN:";;
874 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
875 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
876 --enable-maintainer-mode enable make rules and dependencies not useful
877 (and sometimes confusing
) to the casual installer
878 --disable-dependency-tracking speeds up one-time build
879 --enable-dependency-tracking do not reject slow dependency extractors
880 --enable-ccache enable ccache support
for fast recompilation
881 --disable-debug disable additional debugging output
882 --enable-optimize enable code optimizing
883 --enable-profile enable code profiling
884 --enable-static produce a statically linked executable
885 --disable-monolithic disable building of the monolithic aMule app
886 --enable-amule-daemon compile aMule daemon version
887 --enable-amulecmd compile aMule
command line client
888 --enable-webserver compile aMule WebServer
889 --enable-amule-gui compile aMule remote GUI
(EXPERIMENTAL
)
890 --enable-cas compile C aMule Statistics
891 --enable-wxcas compile aMule GUI Statistics
892 --disable-ed2k don
't compile aMule ed2k links handler
893 --enable-alc compile aMuleLinkCreator GUI version
894 --enable-alcc compile aMuleLinkCreator for console
895 --disable-upnp do not compile UPnP code
896 --enable-geoip compile with GeoIP IP2Country library
897 --disable-rpath do not hardcode runtime library paths
898 --disable-nls do not use Native Language Support
901 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
902 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
903 --with-geoip-headers=DIR
904 GeoIP include files location
905 --with-geoip-lib=DIR GeoIP library location
906 --with-geoip-static Explicitly link GeoIP statically (default=no)
907 --with-denoise-level=<level>
908 Specifies denoising level (0-4):
910 4 - Suppress all normal output
911 (for more information see
912 src/utils/scripts/denoiser.rules)
914 --without-gnu-malloc Don't assume that we use GNU libc compatible
915 malloc
/realloc when cross-compiling
916 --with-language=<langs
> Specify a comma-separated list of languages you want
917 to have installed. See po
/LINGUAS
for available
919 --with-zlib=PREFIX use zlib
in PREFIX
920 --with-gdlib-prefix=PREFIX
921 prefix where gdlib is installed
(optional
)
922 --with-gdlib-config=CONFIG
923 gdlib-config
script to use
(optional
)
924 --with-libpng-prefix=PREFIX
925 prefix where libpng is installed
(optional
)
926 --with-libpng-config=CONFIG
927 libpng-config
script to use
(optional
)
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-crypto-prefix=PREFIX
942 prefix where crypto
++ is installed
943 --with-x use the X Window System
944 --with-gnu-ld assume the C compiler uses GNU ld default
=no
945 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
946 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
947 --with-included-gettext use the GNU gettext library included here
948 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
949 --without-libintl-prefix don't search
for libintl
in includedir and libdir
950 --with-ccache-prefix=PREFIX
951 prefix where ccache is installed
953 Some influential environment variables
:
954 CXX C
++ compiler
command
955 CXXFLAGS C
++ compiler flags
956 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
957 nonstandard directory
<lib dir
>
958 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
959 headers
in a nonstandard directory
<include dir
>
960 CXXCPP C
++ preprocessor
961 CC C compiler
command
962 CFLAGS C compiler flags
964 RC Win32 Resource Compiler
966 Use these variables to override the choices made by
`configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
969 Report bugs to <admin@amule.org>.
973 if test "$ac_init_help" = "recursive"; then
974 # If there are subdirs, report their specific --help.
976 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
977 test -d $ac_dir || continue
980 if test "$ac_dir" != .; then
981 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
982 # A "../" for each directory in $ac_dir_suffix.
983 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
985 ac_dir_suffix= ac_top_builddir=
989 .) # No --srcdir option. We are building in place.
991 if test -z "$ac_top_builddir"; then
994 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
996 [\\/]* | ?:[\\/]* ) # Absolute path.
997 ac_srcdir=$srcdir$ac_dir_suffix;
998 ac_top_srcdir=$srcdir ;;
1000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1004 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1005 # the directories may not exist.
1007 .) ac_abs_builddir="$ac_dir";;
1010 .) ac_abs_builddir=`pwd`;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1018 case ${ac_top_builddir}. in
1019 .) ac_abs_top_builddir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_srcdir=$ac_srcdir;;
1028 .) ac_abs_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1036 case $ac_top_srcdir in
1037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1044 # Check for guested configure; otherwise get Cygnus style configure.
1045 if test -f $ac_srcdir/configure.gnu; then
1047 $SHELL $ac_srcdir/configure.gnu --help=recursive
1048 elif test -f $ac_srcdir/configure; then
1050 $SHELL $ac_srcdir/configure --help=recursive
1051 elif test -f $ac_srcdir/configure.ac ||
1052 test -f $ac_srcdir/configure.in; then
1054 $ac_configure --help
1056 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1062 test -n "$ac_init_help" && exit 0
1063 if $ac_init_version; then
1066 generated by GNU Autoconf 2.59
1068 Copyright (C) 2003 Free Software Foundation, Inc.
1069 This configure script is free software; the Free Software Foundation
1070 gives unlimited permission to copy, distribute and modify it.
1076 This file contains any messages produced by compilers while
1077 running configure, to aid debugging if configure makes a mistake.
1079 It was created by aMule $as_me SVN, which was
1080 generated by GNU Autoconf 2.59. Invocation command line was
1091 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1092 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1093 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1094 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1095 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1097 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1098 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1100 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1101 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1102 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1103 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1104 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1105 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1106 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1114 test -z "$as_dir" && as_dir=.
1115 echo "PATH: $as_dir"
1130 # Keep a trace of the command line.
1131 # Strip out --no-create and --no-recursion so they do not pile up.
1132 # Strip out --silent because we don't want to record it for future runs.
1133 # Also quote any args containing shell meta-characters.
1134 # Make two passes to allow for proper duplicate-argument suppression.
1139 ac_must_keep_next=false
1145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1149 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1150 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1153 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1155 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1156 if test $ac_must_keep_next = true; then
1157 ac_must_keep_next=false # Got value, back to normal.
1160 *=* | --config-cache | -C | -disable-* | --disable-* \
1161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1163 | -with-* | --with-* | -without-* | --without-* | --x)
1164 case "$ac_configure_args0 " in
1165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1168 -* ) ac_must_keep_next=true ;;
1171 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1172 # Get rid of the leading space.
1178 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1179 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1181 # When interrupted or exit'd, cleanup temporary files, and complete
1182 # config.log. We remove comments because anyway the quotes in there
1183 # would cause problems or look ugly.
1184 # WARNING: Be sure not to use single quotes in there, as some shells,
1185 # such as our DU 5.0 friend, will then `close
' the trap.
1186 trap 'exit_status
=$?
1187 # Save into config.log some information that might help in debugging.
1192 ## ---------------- ##
1193 ## Cache variables. ##
1194 ## ---------------- ##
1197 # The following way of writing the cache mishandles newlines in values,
1200 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1203 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1215 ## ----------------- ##
1216 ## Output variables. ##
1217 ## ----------------- ##
1220 for ac_var
in $ac_subst_vars
1222 eval ac_val
=$
`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1227 if test -n "$ac_subst_files"; then
1234 for ac_var
in $ac_subst_files
1236 eval ac_val
=$
`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1242 if test -s confdefs.h
; then
1249 sed "/^$/d" confdefs.h |
sort
1252 test "$ac_signal" != 0 &&
1253 echo "$as_me: caught signal $ac_signal"
1254 echo "$as_me: exit $exit_status"
1256 rm -f core
*.core
&&
1257 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1260 for ac_signal in 1 2 13 15; do
1261 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1265 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1266 rm -rf conftest* confdefs.h
1267 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1270 # Predefined preprocessor variables.
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_NAME "$PACKAGE_NAME"
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_STRING "$PACKAGE_STRING"
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1297 # Let the site file select an alternate cache file if it wants to.
1298 # Prefer explicitly selected file to automatically selected ones.
1299 if test -z "$CONFIG_SITE"; then
1300 if test "x$prefix" != xNONE; then
1301 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1303 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1306 for ac_site_file in $CONFIG_SITE; do
1307 if test -r "$ac_site_file"; then
1308 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1309 echo "$as_me: loading site script $ac_site_file" >&6;}
1310 sed 's
/^
/|
/' "$ac_site_file" >&5
1315 if test -r "$cache_file"; then
1316 # Some versions of bash will fail to source /dev/null (special
1317 # files actually), so we avoid doing that.
1318 if test -f "$cache_file"; then
1319 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1320 echo "$as_me: loading cache $cache_file" >&6;}
1322 [\\/]* | ?:[\\/]* ) . $cache_file;;
1323 *) . ./$cache_file;;
1327 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1328 echo "$as_me: creating cache $cache_file" >&6;}
1332 # Check that the precious variables saved in the cache have kept the same
1334 ac_cache_corrupted=false
1335 for ac_var in `(set) 2>&1 |
1336 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1338 eval ac_new_set=\$ac_env_${ac_var}_set
1339 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1340 eval ac_new_val="\$ac_env_${ac_var}_value"
1341 case $ac_old_set,$ac_new_set in
1343 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1344 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1345 ac_cache_corrupted=: ;;
1347 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1349 ac_cache_corrupted=: ;;
1352 if test "x$ac_old_val" != "x$ac_new_val"; then
1353 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1354 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1355 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1356 echo "$as_me: former value: $ac_old_val" >&2;}
1357 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1358 echo "$as_me: current value: $ac_new_val" >&2;}
1359 ac_cache_corrupted=:
1362 # Pass precious variables to config.status.
1363 if test "$ac_new_set" = set; then
1365 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1366 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1367 *) ac_arg=$ac_var=$ac_new_val ;;
1369 case " $ac_configure_args " in
1370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1371 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1375 if $ac_cache_corrupted; then
1376 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1377 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1378 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1379 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1380 { (exit 1); exit 1; }; }
1384 ac_cpp='$CPP $CPPFLAGS'
1385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1386 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1416 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1417 if test -f $ac_dir/install-sh; then
1419 ac_install_sh="$ac_aux_dir/install-sh -c"
1421 elif test -f $ac_dir/install.sh; then
1423 ac_install_sh="$ac_aux_dir/install.sh -c"
1425 elif test -f $ac_dir/shtool; then
1427 ac_install_sh="$ac_aux_dir/shtool install -c"
1431 if test -z "$ac_aux_dir"; then
1432 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1433 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1434 { (exit 1); exit 1; }; }
1436 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1437 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1438 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1440 # Make sure we can run config.sub.
1441 $ac_config_sub sun4 >/dev/null 2>&1 ||
1442 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1443 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1444 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: checking build system type" >&5
1447 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1448 if test "${ac_cv_build+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 ac_cv_build_alias=$build_alias
1452 test -z "$ac_cv_build_alias" &&
1453 ac_cv_build_alias=`$ac_config_guess`
1454 test -z "$ac_cv_build_alias" &&
1455 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1456 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1457 { (exit 1); exit 1; }; }
1458 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1465 echo "${ECHO_T}$ac_cv_build" >&6
1467 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1468 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1469 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1472 echo "$as_me:$LINENO: checking host system type" >&5
1473 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1474 if test "${ac_cv_host+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 ac_cv_host_alias=$host_alias
1478 test -z "$ac_cv_host_alias" &&
1479 ac_cv_host_alias=$ac_cv_build_alias
1480 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1487 echo "${ECHO_T}$ac_cv_host" >&6
1489 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1490 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1491 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1494 am__api_version="1.9"
1495 # Find a good install program. We prefer a C program (faster),
1496 # so one script is as good as another. But avoid the broken or
1497 # incompatible versions:
1498 # SysV /etc/install, /usr/sbin/install
1499 # SunOS /usr/etc/install
1500 # IRIX /sbin/install
1502 # AmigaOS /C/install, which installs bootblocks on floppy discs
1503 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1506 # OS/2's system install, which has a completely different semantic
1507 # ./install, which can be erroneously created by make from ./install.sh.
1508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1510 if test -z "$INSTALL"; then
1511 if test "${ac_cv_path_install+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir
=.
1519 # Account for people who put trailing slashes in PATH elements.
1521 .
/ | .
// |
/cC
/* | \
1522 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1523 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1526 # OSF1 and SCO ODT 3.0 have their own names for install.
1527 # Don't use installbsd from OSF since it installs stuff as root
1529 for ac_prog
in ginstall scoinst
install; do
1530 for ac_exec_ext
in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1532 if test $ac_prog = install &&
1533 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1534 # AIX install. It has an incompatible calling convention.
1536 elif test $ac_prog = install &&
1537 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1538 # program-specific install script used by HP pwplus--don't use.
1541 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1553 if test "${ac_cv_path_install+set}" = set; then
1554 INSTALL
=$ac_cv_path_install
1556 # As a last resort, use the slow shell script. We don't cache a
1557 # path for INSTALL within a source directory, because that will
1558 # break other packages using the cache if that directory is
1559 # removed, or if the path is relative.
1560 INSTALL
=$ac_install_sh
1563 echo "$as_me:$LINENO: result: $INSTALL" >&5
1564 echo "${ECHO_T}$INSTALL" >&6
1566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1567 # It thinks the first close brace ends the variable substitution.
1568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1572 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1578 echo timestamp
> conftest.
file
1579 # Do `set' in a subshell so we don't clobber the current shell's
1580 # arguments. Must try -L first in case configure is actually a
1581 # symlink; some systems play weird games with the mod time of symlinks
1582 # (eg FreeBSD returns the mod time of the symlink's containing
1585 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1586 if test "$*" = "X"; then
1588 set X
`ls -t $srcdir/configure conftest.file`
1591 if test "$*" != "X $srcdir/configure conftest.file" \
1592 && test "$*" != "X conftest.file $srcdir/configure"; then
1594 # If neither matched, then we have a broken ls. This can happen
1595 # if, for instance, CONFIG_SHELL is bash and it inherits a
1596 # broken ls alias from the environment. This has actually
1597 # happened. Such a system could not be considered "sane".
1598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1599 alias in your environment" >&5
1600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1601 alias in your environment" >&2;}
1602 { (exit 1); exit 1; }; }
1605 test "$2" = conftest.
file
1611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1612 Check your system clock" >&5
1613 echo "$as_me: error: newly created file is older than distributed files!
1614 Check your system clock" >&2;}
1615 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619 test "$program_prefix" != NONE
&&
1620 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1621 # Use a double $ so make ignores it.
1622 test "$program_suffix" != NONE
&&
1623 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1624 # Double any \ or $. echo might interpret backslashes.
1625 # By default was `s,x,x', remove it if useless.
1626 cat <<\_ACEOF
>conftest.
sed
1627 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1629 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1632 # expand $ac_aux_dir to an absolute path
1633 am_aux_dir
=`cd $ac_aux_dir && pwd`
1635 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1636 # Use eval to expand $SHELL
1637 if eval "$MISSING --run true"; then
1638 am_missing_run
="$MISSING --run "
1641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1645 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1646 # We used to keeping the `.' as first argument, in order to
1647 # allow $(mkdir_p) to be used without argument. As in
1648 # $(mkdir_p) $(somedir)
1649 # where $(somedir) is conditionally defined. However this is wrong
1651 # 1. if the package is installed by a user who cannot write `.'
1652 # make install will fail,
1653 # 2. the above comment should most certainly read
1654 # $(mkdir_p) $(DESTDIR)$(somedir)
1655 # so it does not work when $(somedir) is undefined and
1656 # $(DESTDIR) is not.
1657 # To support the latter case, we have to write
1658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1659 # so the `.' trick is pointless.
1660 mkdir_p
='mkdir -p --'
1662 # On NextStep and OpenStep, the `mkdir' command does not
1663 # recognize any option. It will interpret all options as
1664 # directories to create, and then abort because `.' already
1666 for d
in .
/-p .
/--version;
1668 test -d $d && rmdir $d
1670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1671 if test -f "$ac_aux_dir/mkinstalldirs"; then
1672 mkdir_p
='$(mkinstalldirs)'
1674 mkdir_p
='$(install_sh) -d'
1678 for ac_prog
in gawk mawk nawk
awk
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy
$ac_prog; ac_word
=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_AWK+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$AWK"; then
1688 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir
=.
1695 for ac_exec_ext
in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_AWK
="$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test -n "$AWK"; then
1708 echo "$as_me:$LINENO: result: $AWK" >&5
1709 echo "${ECHO_T}$AWK" >&6
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$AWK" && break
1718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1720 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 cat >conftest.
make <<\_ACEOF
1726 @
echo 'ac_maketemp="$(MAKE)"'
1728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1730 if test -n "$ac_maketemp"; then
1731 eval ac_cv_prog_make_
${ac_make}_set
=yes
1733 eval ac_cv_prog_make_
${ac_make}_set
=no
1737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 SET_MAKE
="MAKE=${MAKE-make}"
1747 rm -rf .tst
2>/dev
/null
1748 mkdir .tst
2>/dev
/null
1749 if test -d .tst
; then
1754 rmdir .tst
2>/dev
/null
1756 # test to see if srcdir already configured
1757 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1758 test -f $srcdir/config.status
; then
1759 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1760 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1761 { (exit 1); exit 1; }; }
1764 # test whether we have cygpath
1765 if test -z "$CYGPATH_W"; then
1766 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1767 CYGPATH_W
='cygpath -w'
1774 # Define the identity of the package.
1779 cat >>confdefs.h
<<_ACEOF
1780 #define PACKAGE "$PACKAGE"
1784 cat >>confdefs.h
<<_ACEOF
1785 #define VERSION "$VERSION"
1788 # Some tools Automake needs.
1790 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1793 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1796 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1799 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1802 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1804 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1806 # Installed binaries are usually stripped using `strip' when the user
1807 # run `make install-strip'. However `strip' might not be the right
1808 # tool to use in cross-compilation environments, therefore Automake
1809 # will honor the `STRIP' environment variable to overrule this program.
1810 if test "$cross_compiling" != no
; then
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1813 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_STRIP+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$STRIP"; then
1820 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir
=.
1827 for ac_exec_ext
in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 STRIP
=$ac_cv_prog_STRIP
1839 if test -n "$STRIP"; then
1840 echo "$as_me:$LINENO: result: $STRIP" >&5
1841 echo "${ECHO_T}$STRIP" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$ac_cv_prog_STRIP"; then
1850 # Extract the first word of "strip", so it can be a program name with args.
1851 set dummy strip
; ac_word
=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$ac_ct_STRIP"; then
1858 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir
=.
1865 for ac_exec_ext
in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_STRIP
="strip"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1877 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1878 if test -n "$ac_ct_STRIP"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1880 echo "${ECHO_T}$ac_ct_STRIP" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1888 STRIP
="$ac_cv_prog_STRIP"
1892 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1894 # We need awk for the "check" target. The system "awk" is bad on
1896 # Always define AMTAR for backward compatibility.
1898 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1900 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1908 ac_config_headers
="$ac_config_headers config.h"
1910 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1911 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1912 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1913 if test "${enable_maintainer_mode+set}" = set; then
1914 enableval
="$enable_maintainer_mode"
1915 USE_MAINTAINER_MODE
=$enableval
1917 USE_MAINTAINER_MODE
=no
1919 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1920 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1923 if test $USE_MAINTAINER_MODE = yes; then
1924 MAINTAINER_MODE_TRUE
=
1925 MAINTAINER_MODE_FALSE
='#'
1927 MAINTAINER_MODE_TRUE
='#'
1928 MAINTAINER_MODE_FALSE
=
1931 MAINT
=$MAINTAINER_MODE_TRUE
1935 # Removing -fomit since it causes problems with CryptoPP
1936 CFLAGS
="`echo $CFLAGS | sed "s
/-fomit-frame-pointer//g
"`"
1937 CXXFLAGS
="`echo $CXXFLAGS | sed "s
/-fomit-frame-pointer//g
"`"
1939 # System detection, need AC_CANONICAL_HOST
1940 case "${host_os}" in
1946 CFLAGS
="${CFLAGS} -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1947 LDFLAGS
="$LDFLAGS -bind_at_load"
1948 touch src
/Scanner.cpp
1952 LIBS
="$LIBS -L/usr/local/lib"
1953 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1954 CXXFLAGS
=" $CXXFLAGS -D__OPENBSD__"
1955 if test "$DEBUG_FLAGS" != ""; then
1956 DEBUG_FLAGS
="-Wall -g -fno-inline -D__DEBUG__"
1959 *cygwin
* |
*mingw32
*)
1961 CFLAGS
="$CFLAGS -DNOMINMAX"
1962 CXXFLAGS
="$CXXFLAGS -DNOMINMAX"
1965 RESOLV_LIB
="-lresolv -lnsl"
1973 # Checks for programs.
1975 ac_cpp
='$CXXCPP $CPPFLAGS'
1976 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CXX+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CXX"; then
1990 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir
=.
1997 for ac_exec_ext
in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test -n "$CXX"; then
2010 echo "$as_me:$LINENO: result: $CXX" >&5
2011 echo "${ECHO_T}$CXX" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2017 test -n "$CXX" && break
2020 if test -z "$CXX"; then
2022 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy
$ac_prog; ac_word
=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 if test -n "$ac_ct_CXX"; then
2032 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir
=.
2039 for ac_exec_ext
in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2051 if test -n "$ac_ct_CXX"; then
2052 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2053 echo "${ECHO_T}$ac_ct_CXX" >&6
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$ac_ct_CXX" && break
2061 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069 "checking for C++ compiler version" >&5
2070 ac_compiler
=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2087 cat >conftest.
$ac_ext <<_ACEOF
2090 cat confdefs.h
>>conftest.
$ac_ext
2091 cat >>conftest.
$ac_ext <<_ACEOF
2092 /* end confdefs.h. */
2102 ac_clean_files_save
=$ac_clean_files
2103 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2104 # Try to create an executable without -o first, disregard a.out.
2105 # It will help us diagnose broken compilers, and finding out an intuition
2107 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2108 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2109 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2110 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2111 (eval $ac_link_default) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 # Find the output, starting from the most likely. This scheme is
2116 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2119 # Be careful to initialize this variable, since it used to be cached.
2120 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122 # b.out is created by i960 compilers.
2123 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2125 test -f "$ac_file" ||
continue
2127 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2130 # This is the source file.
2133 # We found the default executable, but exeext='' is most
2137 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2138 # FIXME: I believe we export ac_cv_exeext for Libtool,
2139 # but it would be cool to find out if it's true. Does anybody
2140 # maintain Libtool? --akim.
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.
$ac_ext >&5
2151 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: C++ compiler cannot create executables
2154 See \`config.log' for more details." >&2;}
2155 { (exit 77); exit 77; }; }
2158 ac_exeext
=$ac_cv_exeext
2159 echo "$as_me:$LINENO: result: $ac_file" >&5
2160 echo "${ECHO_T}$ac_file" >&6
2162 # Check the compiler produces executables we can run. If not, either
2163 # the compiler is broken, or we cross compile.
2164 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2165 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167 # If not cross compiling, check that we can run a simple program.
2168 if test "$cross_compiling" != yes; then
2169 if { ac_try
='./$ac_file'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2177 if test "$cross_compiling" = maybe
; then
2180 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2181 If you meant to cross compile, use \`--host'.
2182 See \`config.log' for more details." >&5
2183 echo "$as_me: error: cannot run C++ compiled programs.
2184 If you meant to cross compile, use \`--host'.
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2190 echo "$as_me:$LINENO: result: yes" >&5
2191 echo "${ECHO_T}yes" >&6
2193 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2194 ac_clean_files
=$ac_clean_files_save
2195 # Check the compiler produces executables we can run. If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2198 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2199 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2200 echo "${ECHO_T}$cross_compiling" >&6
2202 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2203 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2205 (eval $ac_link) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2211 # work properly (i.e., refer to `conftest.exe'), while it won't with
2213 for ac_file
in conftest.exe conftest conftest.
*; do
2214 test -f "$ac_file" ||
continue
2216 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2217 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2231 rm -f conftest
$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2233 echo "${ECHO_T}$ac_cv_exeext" >&6
2235 rm -f conftest.
$ac_ext
2236 EXEEXT
=$ac_cv_exeext
2238 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2240 if test "${ac_cv_objext+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 cat >conftest.
$ac_ext <<_ACEOF
2246 cat confdefs.h
>>conftest.
$ac_ext
2247 cat >>conftest.
$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2258 rm -f conftest.o conftest.obj
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2266 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2267 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.
$ac_ext >&5
2275 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2282 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2284 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285 echo "${ECHO_T}$ac_cv_objext" >&6
2286 OBJEXT
=$ac_cv_objext
2288 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2289 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2290 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 cat >conftest.
$ac_ext <<_ACEOF
2296 cat confdefs.h
>>conftest.
$ac_ext
2297 cat >>conftest.
$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2311 rm -f conftest.
$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1
>conftest.err
2317 cat conftest.err
>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try
='test -z "$ac_cxx_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try
='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.
$ac_ext >&5
2340 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2341 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2344 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2345 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2346 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2347 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2348 ac_save_CXXFLAGS
=$CXXFLAGS
2350 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2351 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2352 if test "${ac_cv_prog_cxx_g+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.
$ac_ext <<_ACEOF
2358 cat confdefs.h
>>conftest.
$ac_ext
2359 cat >>conftest.
$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2370 rm -f conftest.
$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1
>conftest.err
2376 cat conftest.err
>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try
='test -z "$ac_cxx_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try
='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_cv_prog_cxx_g
=yes
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.
$ac_ext >&5
2399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2401 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2402 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2403 if test "$ac_test_CXXFLAGS" = set; then
2404 CXXFLAGS
=$ac_save_CXXFLAGS
2405 elif test $ac_cv_prog_cxx_g = yes; then
2406 if test "$GXX" = yes; then
2412 if test "$GXX" = yes; then
2418 for ac_declaration
in \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2426 cat >conftest.
$ac_ext <<_ACEOF
2429 cat confdefs.h
>>conftest.
$ac_ext
2430 cat >>conftest.
$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2442 rm -f conftest.
$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2446 grep -v '^ *+' conftest.er1
>conftest.err
2448 cat conftest.err
>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try
='test -z "$ac_cxx_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try
='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.
$ac_ext >&5
2471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2472 cat >conftest.
$ac_ext <<_ACEOF
2475 cat confdefs.h
>>conftest.
$ac_ext
2476 cat >>conftest.
$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2487 rm -f conftest.
$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2491 grep -v '^ *+' conftest.er1
>conftest.err
2493 cat conftest.err
>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try
='test -z "$ac_cxx_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try
='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.
$ac_ext >&5
2515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2518 if test -n "$ac_declaration"; then
2519 echo '#ifdef __cplusplus' >>confdefs.h
2520 echo $ac_declaration >>confdefs.h
2521 echo '#endif' >>confdefs.h
2525 ac_cpp
='$CPP $CPPFLAGS'
2526 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2529 DEPDIR
="${am__leading_dot}deps"
2531 ac_config_commands
="$ac_config_commands depfiles"
2534 am_make
=${MAKE-make}
2535 cat > confinc
<< 'END'
2540 # If we don't find an include directive, just comment out the code.
2541 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2542 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2546 # First try GNU make style include.
2547 echo "include confinc" > confmf
2548 # We grep out `Entering directory' and `Leaving directory'
2549 # messages which can occur if `w' ends up in MAKEFLAGS.
2550 # In particular we don't look at `^make:' because GNU make might
2551 # be invoked under some other name (usually "gmake"), in which
2552 # case it prints its new name instead of `make'.
2553 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2558 # Now try BSD make style include.
2559 if test "$am__include" = "#"; then
2560 echo '.include "confinc"' > confmf
2561 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2562 am__include
=.include
2569 echo "$as_me:$LINENO: result: $_am_result" >&5
2570 echo "${ECHO_T}$_am_result" >&6
2571 rm -f confinc confmf
2573 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2574 if test "${enable_dependency_tracking+set}" = set; then
2575 enableval
="$enable_dependency_tracking"
2578 if test "x$enable_dependency_tracking" != xno
; then
2579 am_depcomp
="$ac_aux_dir/depcomp"
2584 if test "x$enable_dependency_tracking" != xno; then
2595 depcc
="$CXX" am_compiler_list
=
2597 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2598 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2599 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2603 # We make a subdir and do the tests there. Otherwise we can end up
2604 # making bogus files that we don't know about and never remove. For
2605 # instance it was reported that on HP-UX the gcc test will end up
2606 # making a dummy file named `D' -- because `-MD' means `put the output
2609 # Copy depcomp to subdir because otherwise we won't find it if we're
2610 # using a relative directory.
2611 cp "$am_depcomp" conftest.dir
2613 # We will build objects and dependencies in a subdirectory because
2614 # it helps to detect inapplicable dependency modes. For instance
2615 # both Tru64's cc and ICC support -MD to output dependencies as a
2616 # side effect of compilation, but ICC will put the dependencies in
2617 # the current directory while Tru64 will put them in the object
2621 am_cv_CXX_dependencies_compiler_type
=none
2622 if test "$am_compiler_list" = ""; then
2623 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2625 for depmode
in $am_compiler_list; do
2626 # Setup a source with many dependencies, because some compilers
2627 # like to wrap large dependency lists on column 80 (with \), and
2628 # we should not choose a depcomp mode which is confused by this.
2630 # We need to recreate these files for each test, as the compiler may
2631 # overwrite some of them when testing with obscure command lines.
2632 # This happens at least with the AIX C compiler.
2634 for i
in 1 2 3 4 5 6; do
2635 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2637 # Solaris 8's {/usr,}/bin/sh.
2638 touch sub
/conftst
$i.h
2640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2644 # after this tag, mechanisms are not by side-effect, so they'll
2645 # only be used when explicitly requested
2646 if test "x$enable_dependency_tracking" = xyes
; then
2654 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2655 # mode. It turns out that the SunPro C++ compiler does not properly
2656 # handle `-M -o', and we need to detect this.
2657 if depmode
=$depmode \
2658 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2659 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2660 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2661 >/dev
/null
2>conftest.err
&&
2662 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2663 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2664 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2665 # icc doesn't choke on unknown options, it will just issue warnings
2666 # or remarks (even with -Werror). So we grep stderr for any message
2667 # that says an option was ignored or not supported.
2668 # When given -MP, icc 7.0 and 7.1 complain thusly:
2669 # icc: Command line warning: ignoring option '-M'; no argument required
2670 # The diagnosis changed in icc 8.0:
2671 # icc: Command line remark: option '-MP' not supported
2672 if (grep 'ignoring option' conftest.err ||
2673 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2674 am_cv_CXX_dependencies_compiler_type
=$depmode
2683 am_cv_CXX_dependencies_compiler_type
=none
2687 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2688 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2689 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2694 test "x$enable_dependency_tracking" != xno \
2695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2696 am__fastdepCXX_TRUE
=
2697 am__fastdepCXX_FALSE
='#'
2699 am__fastdepCXX_TRUE
='#'
2700 am__fastdepCXX_FALSE
=
2705 ac_cpp
='$CXXCPP $CPPFLAGS'
2706 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2709 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2710 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2711 if test -z "$CXXCPP"; then
2712 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 # Double quotes because CXXCPP needs to be expanded
2716 for CXXCPP
in "$CXX -E" "/lib/cpp"
2719 for ac_cxx_preproc_warn_flag
in '' yes
2721 # Use a header file that comes with gcc, so configuring glibc
2722 # with a fresh cross-compiler works.
2723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2724 # <limits.h> exists even on freestanding compilers.
2725 # On the NeXT, cc -E runs the code through the compiler's parser,
2726 # not just through cpp. "Syntax error" is here to catch this case.
2727 cat >conftest.
$ac_ext <<_ACEOF
2730 cat confdefs.h
>>conftest.
$ac_ext
2731 cat >>conftest.
$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2734 # include <limits.h>
2736 # include <assert.h>
2740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2743 grep -v '^ *+' conftest.er1
>conftest.err
2745 cat conftest.err
>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } >/dev
/null
; then
2748 if test -s conftest.err
; then
2749 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2750 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2757 if test -z "$ac_cpp_err"; then
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.
$ac_ext >&5
2763 # Broken: fails on valid input.
2766 rm -f conftest.err conftest.
$ac_ext
2768 # OK, works on sane cases. Now check whether non-existent headers
2769 # can be detected and how.
2770 cat >conftest.
$ac_ext <<_ACEOF
2773 cat confdefs.h
>>conftest.
$ac_ext
2774 cat >>conftest.
$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #include <ac_nonexistent.h>
2778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2779 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1
>conftest.err
2783 cat conftest.err
>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } >/dev
/null
; then
2786 if test -s conftest.err
; then
2787 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2788 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2795 if test -z "$ac_cpp_err"; then
2796 # Broken: success on invalid input.
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.
$ac_ext >&5
2802 # Passes both tests.
2806 rm -f conftest.err conftest.
$ac_ext
2809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2810 rm -f conftest.err conftest.
$ac_ext
2811 if $ac_preproc_ok; then
2816 ac_cv_prog_CXXCPP
=$CXXCPP
2819 CXXCPP
=$ac_cv_prog_CXXCPP
2821 ac_cv_prog_CXXCPP
=$CXXCPP
2823 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2824 echo "${ECHO_T}$CXXCPP" >&6
2826 for ac_cxx_preproc_warn_flag
in '' yes
2828 # Use a header file that comes with gcc, so configuring glibc
2829 # with a fresh cross-compiler works.
2830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2831 # <limits.h> exists even on freestanding compilers.
2832 # On the NeXT, cc -E runs the code through the compiler's parser,
2833 # not just through cpp. "Syntax error" is here to catch this case.
2834 cat >conftest.
$ac_ext <<_ACEOF
2837 cat confdefs.h
>>conftest.
$ac_ext
2838 cat >>conftest.
$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2841 # include <limits.h>
2843 # include <assert.h>
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2850 grep -v '^ *+' conftest.er1
>conftest.err
2852 cat conftest.err
>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev
/null
; then
2855 if test -s conftest.err
; then
2856 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2857 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2864 if test -z "$ac_cpp_err"; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.
$ac_ext >&5
2870 # Broken: fails on valid input.
2873 rm -f conftest.err conftest.
$ac_ext
2875 # OK, works on sane cases. Now check whether non-existent headers
2876 # can be detected and how.
2877 cat >conftest.
$ac_ext <<_ACEOF
2880 cat confdefs.h
>>conftest.
$ac_ext
2881 cat >>conftest.
$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <ac_nonexistent.h>
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1
>conftest.err
2890 cat conftest.err
>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev
/null
; then
2893 if test -s conftest.err
; then
2894 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2895 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2902 if test -z "$ac_cpp_err"; then
2903 # Broken: success on invalid input.
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.
$ac_ext >&5
2909 # Passes both tests.
2913 rm -f conftest.err conftest.
$ac_ext
2916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2917 rm -f conftest.err conftest.
$ac_ext
2918 if $ac_preproc_ok; then
2921 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2924 See \`config.log' for more details." >&2;}
2925 { (exit 1); exit 1; }; }
2929 ac_cpp
='$CPP $CPPFLAGS'
2930 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2935 ac_cpp
='$CPP $CPPFLAGS'
2936 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC
="$CC" # Let the user override the test.
2950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir
=.
2955 for ac_exec_ext
in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2976 if test -z "$ac_cv_prog_CC"; then
2978 # Extract the first word of "gcc", so it can be a program name with args.
2979 set dummy gcc
; ac_word
=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir
=.
2993 for ac_exec_ext
in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC
="gcc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3022 echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC
="$CC" # Let the user override the test.
3030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir
=.
3035 for ac_exec_ext
in '' $ac_executable_extensions; do
3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test -n "$CC"; then
3048 echo "$as_me:$LINENO: result: $CC" >&5
3049 echo "${ECHO_T}$CC" >&6
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3056 if test -z "$ac_cv_prog_CC"; then
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc
; ac_word
=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_ac_ct_CC
="cc"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3087 echo "${ECHO_T}$ac_ct_CC" >&6
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc
; ac_word
=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_CC+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC
="$CC" # Let the user override the test.
3111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir
=.
3116 for ac_exec_ext
in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected
=yes
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 if test $ac_prog_rejected = yes; then
3130 # We found a bogon in the path, so make sure we never use it.
3131 set dummy
$ac_cv_prog_CC
3133 if test $# != 0; then
3134 # We chose a different compiler from the bogus one.
3135 # However, it has the same basename, so the bogon will be chosen
3136 # first if we set CC to just the basename; use the full file name.
3138 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3144 if test -n "$CC"; then
3145 echo "$as_me:$LINENO: result: $CC" >&5
3146 echo "${ECHO_T}$CC" >&6
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3153 if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3159 echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161 if test "${ac_cv_prog_CC+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC
="$CC" # Let the user override the test.
3167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir
=.
3172 for ac_exec_ext
in '' $ac_executable_extensions; do
3173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test -n "$CC"; then
3185 echo "$as_me:$LINENO: result: $CC" >&5
3186 echo "${ECHO_T}$CC" >&6
3188 echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3192 test -n "$CC" && break
3195 if test -z "$CC"; then
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy
$ac_prog; ac_word
=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir
=.
3214 for ac_exec_ext
in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC
="$ac_prog"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3228 echo "${ECHO_T}$ac_ct_CC" >&6
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 test -n "$ac_ct_CC" && break
3243 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: no acceptable C compiler found in \$PATH
3246 See \`config.log' for more details." >&2;}
3247 { (exit 1); exit 1; }; }
3249 # Provide some information about the compiler.
3250 echo "$as_me:$LINENO:" \
3251 "checking for C compiler version" >&5
3252 ac_compiler
=`set X $ac_compile; echo $2`
3253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3254 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3259 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3264 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 cat >conftest.
$ac_ext <<_ACEOF
3277 cat confdefs.h
>>conftest.
$ac_ext
3278 cat >>conftest.
$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3292 rm -f conftest.
$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>conftest.er1
3296 grep -v '^ *+' conftest.er1
>conftest.err
3298 cat conftest.err
>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try
='test -z "$ac_c_werror_flag"
3302 || test ! -s conftest.err'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try
='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.
$ac_ext >&5
3321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3322 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3325 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3326 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3327 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3328 ac_test_CFLAGS
=${CFLAGS+set}
3329 ac_save_CFLAGS
=$CFLAGS
3331 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3332 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3333 if test "${ac_cv_prog_cc_g+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 cat >conftest.
$ac_ext <<_ACEOF
3339 cat confdefs.h
>>conftest.
$ac_ext
3340 cat >>conftest.
$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3351 rm -f conftest.
$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3355 grep -v '^ *+' conftest.er1
>conftest.err
3357 cat conftest.err
>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try
='test -z "$ac_c_werror_flag"
3361 || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try
='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.
$ac_ext >&5
3380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3384 if test "$ac_test_CFLAGS" = set; then
3385 CFLAGS
=$ac_save_CFLAGS
3386 elif test $ac_cv_prog_cc_g = yes; then
3387 if test "$GCC" = yes; then
3393 if test "$GCC" = yes; then
3399 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3400 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3401 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 ac_cv_prog_cc_stdc
=no
3406 cat >conftest.
$ac_ext <<_ACEOF
3409 cat confdefs.h
>>conftest.
$ac_ext
3410 cat >>conftest.
$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3414 #include <sys/types.h>
3415 #include <sys/stat.h>
3416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3417 struct buf { int x; };
3418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3419 static char *e (p, i)
3425 static char *f (char * (*g) (char **, int), char **p, ...)
3430 s = g (p, va_arg (v,int));
3435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3436 function prototypes and stuff, but not '\xHH' hex character constants.
3437 These don't provoke an error unfortunately, instead are silently treated
3438 as 'x'. The following induces an error, until -std1 is added to get
3439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3440 array size at least. It's necessary to write '\x00'==0 to get something
3441 that's true only with -std1. */
3442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444 int test (int i, double x);
3445 struct s1 {int (*f) (int a);};
3446 struct s2 {int (*f) (double a);};
3447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3458 # Don't try gcc -ansi; that turns off useful extensions and
3459 # breaks some systems' header files.
3460 # AIX -qlanglvl=ansi
3461 # Ultrix and OSF/1 -std1
3462 # HP-UX 10.20 and later -Ae
3463 # HP-UX older versions -Aa -D_HPUX_SOURCE
3464 # SVR4 -Xc -D__EXTENSIONS__
3465 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 CC
="$ac_save_CC $ac_arg"
3468 rm -f conftest.
$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3472 grep -v '^ *+' conftest.er1
>conftest.err
3474 cat conftest.err
>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try
='test -z "$ac_c_werror_flag"
3478 || test ! -s conftest.err'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; } &&
3484 { ac_try
='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_prog_cc_stdc
=$ac_arg
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.
$ac_ext >&5
3497 rm -f conftest.err conftest.
$ac_objext
3499 rm -f conftest.
$ac_ext conftest.
$ac_objext
3504 case "x$ac_cv_prog_cc_stdc" in
3506 echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6 ;;
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3510 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3511 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3514 # Some people use a C++ compiler to compile C. Since we use `exit',
3515 # in C++ we need to declare it. In case someone uses the same compiler
3516 # for both compiling C and C++ we need to have the C++ compiler decide
3517 # the declaration of exit, since it's the most demanding environment.
3518 cat >conftest.
$ac_ext <<_ACEOF
3523 rm -f conftest.
$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1
>conftest.err
3529 cat conftest.err
>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try
='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try
='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 for ac_declaration
in \
3547 'extern "C" void std::exit (int) throw (); using std::exit;' \
3548 'extern "C" void std::exit (int); using std::exit;' \
3549 'extern "C" void exit (int) throw ();' \
3550 'extern "C" void exit (int);' \
3553 cat >conftest.
$ac_ext <<_ACEOF
3556 cat confdefs.h
>>conftest.
$ac_ext
3557 cat >>conftest.
$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3569 rm -f conftest.
$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3573 grep -v '^ *+' conftest.er1
>conftest.err
3575 cat conftest.err
>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try
='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try
='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.
$ac_ext >&5
3598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3599 cat >conftest.
$ac_ext <<_ACEOF
3602 cat confdefs.h
>>conftest.
$ac_ext
3603 cat >>conftest.
$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3614 rm -f conftest.
$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1
>conftest.err
3620 cat conftest.err
>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try
='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try
='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.
$ac_ext >&5
3642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3645 if test -n "$ac_declaration"; then
3646 echo '#ifdef __cplusplus' >>confdefs.h
3647 echo $ac_declaration >>confdefs.h
3648 echo '#endif' >>confdefs.h
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.
$ac_ext >&5
3656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3658 ac_cpp
='$CPP $CPPFLAGS'
3659 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3663 depcc
="$CC" am_compiler_list
=
3665 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3666 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3667 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3671 # We make a subdir and do the tests there. Otherwise we can end up
3672 # making bogus files that we don't know about and never remove. For
3673 # instance it was reported that on HP-UX the gcc test will end up
3674 # making a dummy file named `D' -- because `-MD' means `put the output
3677 # Copy depcomp to subdir because otherwise we won't find it if we're
3678 # using a relative directory.
3679 cp "$am_depcomp" conftest.dir
3681 # We will build objects and dependencies in a subdirectory because
3682 # it helps to detect inapplicable dependency modes. For instance
3683 # both Tru64's cc and ICC support -MD to output dependencies as a
3684 # side effect of compilation, but ICC will put the dependencies in
3685 # the current directory while Tru64 will put them in the object
3689 am_cv_CC_dependencies_compiler_type
=none
3690 if test "$am_compiler_list" = ""; then
3691 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3693 for depmode
in $am_compiler_list; do
3694 # Setup a source with many dependencies, because some compilers
3695 # like to wrap large dependency lists on column 80 (with \), and
3696 # we should not choose a depcomp mode which is confused by this.
3698 # We need to recreate these files for each test, as the compiler may
3699 # overwrite some of them when testing with obscure command lines.
3700 # This happens at least with the AIX C compiler.
3702 for i
in 1 2 3 4 5 6; do
3703 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3704 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3705 # Solaris 8's {/usr,}/bin/sh.
3706 touch sub
/conftst
$i.h
3708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3712 # after this tag, mechanisms are not by side-effect, so they'll
3713 # only be used when explicitly requested
3714 if test "x$enable_dependency_tracking" = xyes
; then
3722 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3723 # mode. It turns out that the SunPro C++ compiler does not properly
3724 # handle `-M -o', and we need to detect this.
3725 if depmode
=$depmode \
3726 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3727 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3728 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3729 >/dev
/null
2>conftest.err
&&
3730 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3731 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3732 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3733 # icc doesn't choke on unknown options, it will just issue warnings
3734 # or remarks (even with -Werror). So we grep stderr for any message
3735 # that says an option was ignored or not supported.
3736 # When given -MP, icc 7.0 and 7.1 complain thusly:
3737 # icc: Command line warning: ignoring option '-M'; no argument required
3738 # The diagnosis changed in icc 8.0:
3739 # icc: Command line remark: option '-MP' not supported
3740 if (grep 'ignoring option' conftest.err ||
3741 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3742 am_cv_CC_dependencies_compiler_type
=$depmode
3751 am_cv_CC_dependencies_compiler_type
=none
3755 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3756 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3757 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3762 test "x$enable_dependency_tracking" != xno \
3763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3765 am__fastdepCC_FALSE
='#'
3767 am__fastdepCC_TRUE
='#'
3768 am__fastdepCC_FALSE
=
3773 ac_cpp
='$CPP $CPPFLAGS'
3774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3783 if test -z "$CPP"; then
3784 if test "${ac_cv_prog_CPP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 # Double quotes because CPP needs to be expanded
3788 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 for ac_c_preproc_warn_flag
in '' yes
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat >conftest.
$ac_ext <<_ACEOF
3802 cat confdefs.h
>>conftest.
$ac_ext
3803 cat >>conftest.
$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3806 # include <limits.h>
3808 # include <assert.h>
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3815 grep -v '^ *+' conftest.er1
>conftest.err
3817 cat conftest.err
>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev
/null
; then
3820 if test -s conftest.err
; then
3821 ac_cpp_err
=$ac_c_preproc_warn_flag
3822 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3829 if test -z "$ac_cpp_err"; then
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.
$ac_ext >&5
3835 # Broken: fails on valid input.
3838 rm -f conftest.err conftest.
$ac_ext
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.
$ac_ext <<_ACEOF
3845 cat confdefs.h
>>conftest.
$ac_ext
3846 cat >>conftest.
$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3853 grep -v '^ *+' conftest.er1
>conftest.err
3855 cat conftest.err
>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev
/null
; then
3858 if test -s conftest.err
; then
3859 ac_cpp_err
=$ac_c_preproc_warn_flag
3860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.
$ac_ext >&5
3874 # Passes both tests.
3878 rm -f conftest.err conftest.
$ac_ext
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.
$ac_ext
3883 if $ac_preproc_ok; then
3895 echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6
3898 for ac_c_preproc_warn_flag
in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.
$ac_ext <<_ACEOF
3909 cat confdefs.h
>>conftest.
$ac_ext
3910 cat >>conftest.
$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3913 # include <limits.h>
3915 # include <assert.h>
3919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3920 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1
>conftest.err
3924 cat conftest.err
>&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } >/dev
/null
; then
3927 if test -s conftest.err
; then
3928 ac_cpp_err
=$ac_c_preproc_warn_flag
3929 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3936 if test -z "$ac_cpp_err"; then
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.
$ac_ext >&5
3942 # Broken: fails on valid input.
3945 rm -f conftest.err conftest.
$ac_ext
3947 # OK, works on sane cases. Now check whether non-existent headers
3948 # can be detected and how.
3949 cat >conftest.
$ac_ext <<_ACEOF
3952 cat confdefs.h
>>conftest.
$ac_ext
3953 cat >>conftest.
$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <ac_nonexistent.h>
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3960 grep -v '^ *+' conftest.er1
>conftest.err
3962 cat conftest.err
>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev
/null
; then
3965 if test -s conftest.err
; then
3966 ac_cpp_err
=$ac_c_preproc_warn_flag
3967 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3974 if test -z "$ac_cpp_err"; then
3975 # Broken: success on invalid input.
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.
$ac_ext >&5
3981 # Passes both tests.
3985 rm -f conftest.err conftest.
$ac_ext
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.
$ac_ext
3990 if $ac_preproc_ok; then
3993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&5
3995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&2;}
3997 { (exit 1); exit 1; }; }
4001 ac_cpp
='$CPP $CPPFLAGS'
4002 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4006 for ac_prog
in gawk mawk nawk
awk
4008 # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy
$ac_prog; ac_word
=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_AWK+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 if test -n "$AWK"; then
4016 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir
=.
4023 for ac_exec_ext
in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_AWK
="$ac_prog"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$AWK"; then
4036 echo "$as_me:$LINENO: result: $AWK" >&5
4037 echo "${ECHO_T}$AWK" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 test -n "$AWK" && break
4046 if test "$cross_compiling" = yes; then
4048 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4051 # Even if we're cross-compiling, we want a compiler here
4052 # that is not a cross-compiler.
4053 saved_cross
=$cross_compiling
4057 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4058 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4060 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4061 if test -n "$ac_build_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4063 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 if test -n "$BUILD_CC"; then
4070 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir
=.
4077 for ac_exec_ext
in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 BUILD_CC
=$ac_cv_prog_BUILD_CC
4089 if test -n "$BUILD_CC"; then
4090 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4091 echo "${ECHO_T}$BUILD_CC" >&6
4093 echo "$as_me:$LINENO: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4098 if test -z "$ac_cv_prog_BUILD_CC"; then
4099 ac_ct_BUILD_CC
=$BUILD_CC
4100 # Extract the first word of "gcc", so it can be a program name with args.
4101 set dummy gcc
; ac_word
=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 if test -n "$ac_ct_BUILD_CC"; then
4108 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir
=.
4115 for ac_exec_ext
in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4127 if test -n "$ac_ct_BUILD_CC"; then
4128 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4129 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4135 BUILD_CC
=$ac_ct_BUILD_CC
4137 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4140 if test -z "$BUILD_CC"; then
4141 if test -n "$ac_build_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4143 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$BUILD_CC"; then
4150 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir
=.
4157 for ac_exec_ext
in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 BUILD_CC
=$ac_cv_prog_BUILD_CC
4169 if test -n "$BUILD_CC"; then
4170 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4171 echo "${ECHO_T}$BUILD_CC" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4178 if test -z "$ac_cv_prog_BUILD_CC"; then
4179 ac_ct_BUILD_CC
=$BUILD_CC
4180 # Extract the first word of "cc", so it can be a program name with args.
4181 set dummy cc
; ac_word
=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 if test -n "$ac_ct_BUILD_CC"; then
4188 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_exec_ext
in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4207 if test -n "$ac_ct_BUILD_CC"; then
4208 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4209 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4215 BUILD_CC
=$ac_ct_BUILD_CC
4217 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4221 if test -z "$BUILD_CC"; then
4222 # Extract the first word of "cc", so it can be a program name with args.
4223 set dummy cc
; ac_word
=$2
4224 echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test -n "$BUILD_CC"; then
4230 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir
=.
4238 for ac_exec_ext
in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241 ac_prog_rejected
=yes
4244 ac_cv_prog_BUILD_CC
="cc"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 if test $ac_prog_rejected = yes; then
4252 # We found a bogon in the path, so make sure we never use it.
4253 set dummy
$ac_cv_prog_BUILD_CC
4255 if test $# != 0; then
4256 # We chose a different compiler from the bogus one.
4257 # However, it has the same basename, so the bogon will be chosen
4258 # first if we set BUILD_CC to just the basename; use the full file name.
4260 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4265 BUILD_CC
=$ac_cv_prog_BUILD_CC
4266 if test -n "$BUILD_CC"; then
4267 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4268 echo "${ECHO_T}$BUILD_CC" >&6
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4275 if test -z "$BUILD_CC"; then
4276 if test -n "$ac_build_prefix"; then
4279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4280 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 if test -n "$BUILD_CC"; then
4287 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir
=.
4294 for ac_exec_ext
in '' $ac_executable_extensions; do
4295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 BUILD_CC
=$ac_cv_prog_BUILD_CC
4306 if test -n "$BUILD_CC"; then
4307 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4308 echo "${ECHO_T}$BUILD_CC" >&6
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4314 test -n "$BUILD_CC" && break
4317 if test -z "$BUILD_CC"; then
4318 ac_ct_BUILD_CC
=$BUILD_CC
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy
$ac_prog; ac_word
=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$ac_ct_BUILD_CC"; then
4329 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir
=.
4336 for ac_exec_ext
in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4348 if test -n "$ac_ct_BUILD_CC"; then
4349 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4350 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4356 test -n "$ac_ct_BUILD_CC" && break
4359 BUILD_CC
=$ac_ct_BUILD_CC
4365 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." >&5
4367 echo "$as_me: error: no acceptable C compiler found in \$PATH
4368 See \`config.log' for more details." >&2;}
4369 { (exit 1); exit 1; }; }
4371 # Provide some information about the compiler.
4372 echo "$as_me:$LINENO:" \
4373 "checking for C compiler version" >&5
4374 ac_compiler
=`set X $ac_compile; echo $2`
4375 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4376 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }
4380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4381 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }
4385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4386 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }
4391 cat >conftest.
$ac_ext <<_ACEOF
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4406 ac_clean_files_save
=$ac_clean_files
4407 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4408 # Try to create an executable without -o first, disregard a.out.
4409 # It will help us diagnose broken compilers, and finding out an intuition
4411 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4412 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4413 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4415 (eval $ac_link_default) 2>&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; then
4419 # Find the output, starting from the most likely. This scheme is
4420 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4423 # Be careful to initialize this variable, since it used to be cached.
4424 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4426 # b.out is created by i960 compilers.
4427 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4429 test -f "$ac_file" ||
continue
4431 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4434 # This is the source file.
4437 # We found the default executable, but exeext='' is most
4441 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4442 # FIXME: I believe we export ac_cv_exeext for Libtool,
4443 # but it would be cool to find out if it's true. Does anybody
4444 # maintain Libtool? --akim.
4445 export ac_cv_build_exeext
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.
$ac_ext >&5
4455 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4456 See \`config.log' for more details." >&5
4457 echo "$as_me: error: C compiler cannot create executables
4458 See \`config.log' for more details." >&2;}
4459 { (exit 77); exit 77; }; }
4462 ac_build_exeext
=$ac_cv_build_exeext
4463 echo "$as_me:$LINENO: result: $ac_file" >&5
4464 echo "${ECHO_T}$ac_file" >&6
4466 # Check the compiler produces executables we can run. If not, either
4467 # the compiler is broken, or we cross compile.
4468 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4469 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4471 # If not cross compiling, check that we can run a simple program.
4472 if test "$cross_compiling" != yes; then
4473 if { ac_try
='./$ac_file'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4481 if test "$cross_compiling" = maybe
; then
4484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4485 If you meant to cross compile, use \`--host'.
4486 See \`config.log' for more details." >&5
4487 echo "$as_me: error: cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details." >&2;}
4490 { (exit 1); exit 1; }; }
4494 echo "$as_me:$LINENO: result: yes" >&5
4495 echo "${ECHO_T}yes" >&6
4497 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4498 ac_clean_files
=$ac_clean_files_save
4499 # Check the compiler produces executables we can run. If not, either
4500 # the compiler is broken, or we cross compile.
4501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4504 echo "${ECHO_T}$cross_compiling" >&6
4506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; then
4513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4515 # work properly (i.e., refer to `conftest.exe'), while it won't with
4517 for ac_file
in conftest.exe conftest conftest.
*; do
4518 test -f "$ac_file" ||
continue
4520 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4521 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4522 export ac_cv_build_exeext
4528 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4529 See \`config.log' for more details." >&5
4530 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details." >&2;}
4532 { (exit 1); exit 1; }; }
4535 rm -f conftest
$ac_cv_build_exeext
4536 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4537 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4539 rm -f conftest.
$ac_ext
4540 BUILD_EXEEXT
=$ac_cv_build_exeext
4541 ac_build_exeext
=$BUILD_EXEEXT
4544 # Restore configuration environment
4545 cross_compiling
=$saved_cross
4548 ac_cpp
='$CPP $CPPFLAGS'
4549 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4554 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4557 echo "$as_me:$LINENO: checking for egrep" >&5
4558 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4559 if test "${ac_cv_prog_egrep+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4563 then ac_cv_prog_egrep
='grep -E'
4564 else ac_cv_prog_egrep
='egrep'
4567 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4568 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4569 EGREP
=$ac_cv_prog_egrep
4572 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4573 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4574 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4575 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.
make <<\_ACEOF
4580 @
echo 'ac_maketemp="$(MAKE)"'
4582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4584 if test -n "$ac_maketemp"; then
4585 eval ac_cv_prog_make_
${ac_make}_set
=yes
4587 eval ac_cv_prog_make_
${ac_make}_set
=no
4591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4592 echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 SET_MAKE
="MAKE=${MAKE-make}"
4602 for ac_prog
in flex
lex
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy
$ac_prog; ac_word
=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_LEX+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$LEX"; then
4612 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir
=.
4619 for ac_exec_ext
in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_LEX
="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test -n "$LEX"; then
4632 echo "$as_me:$LINENO: result: $LEX" >&5
4633 echo "${ECHO_T}$LEX" >&6
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4639 test -n "$LEX" && break
4641 test -n "$LEX" || LEX
=":"
4643 if test -z "$LEXLIB"
4645 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4646 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4647 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 ac_check_lib_save_LIBS
=$LIBS
4652 cat >conftest.
$ac_ext <<_ACEOF
4655 cat confdefs.h
>>conftest.
$ac_ext
4656 cat >>conftest.
$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4659 /* Override any gcc2 internal prototype to avoid an error. */
4663 /* We use char because int might match the return type of a gcc2
4664 builtin and then its argument prototype would still apply. */
4674 rm -f conftest.
$ac_objext conftest
$ac_exeext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676 (eval $ac_link) 2>conftest.er1
4678 grep -v '^ *+' conftest.er1
>conftest.err
4680 cat conftest.err
>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try
='test -z "$ac_c_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try
='test -s conftest$ac_exeext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 ac_cv_lib_fl_yywrap
=yes
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.
$ac_ext >&5
4701 ac_cv_lib_fl_yywrap
=no
4703 rm -f conftest.err conftest.
$ac_objext \
4704 conftest
$ac_exeext conftest.
$ac_ext
4705 LIBS
=$ac_check_lib_save_LIBS
4707 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4708 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4709 if test $ac_cv_lib_fl_yywrap = yes; then
4712 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4713 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4714 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 ac_check_lib_save_LIBS
=$LIBS
4719 cat >conftest.
$ac_ext <<_ACEOF
4722 cat confdefs.h
>>conftest.
$ac_ext
4723 cat >>conftest.
$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4741 rm -f conftest.
$ac_objext conftest
$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>conftest.er1
4745 grep -v '^ *+' conftest.er1
>conftest.err
4747 cat conftest.err
>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try
='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try
='test -s conftest$ac_exeext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 ac_cv_lib_l_yywrap
=yes
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.
$ac_ext >&5
4768 ac_cv_lib_l_yywrap
=no
4770 rm -f conftest.err conftest.
$ac_objext \
4771 conftest
$ac_exeext conftest.
$ac_ext
4772 LIBS
=$ac_check_lib_save_LIBS
4774 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4775 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4776 if test $ac_cv_lib_l_yywrap = yes; then
4784 if test "x$LEX" != "x:"; then
4785 echo "$as_me:$LINENO: checking lex output file root" >&5
4786 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4787 if test "${ac_cv_prog_lex_root+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 # The minimal lex program is just a single line: %%. But some broken lexes
4791 # (Solaris, I think it was) want two %% lines, so accommodate them.
4792 cat >conftest.l
<<_ACEOF
4796 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4797 (eval $LEX conftest.l
) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }
4801 if test -f lex.yy.c
; then
4802 ac_cv_prog_lex_root
=lex.yy
4803 elif test -f lexyy.c
; then
4804 ac_cv_prog_lex_root
=lexyy
4806 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4807 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4808 { (exit 1); exit 1; }; }
4811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4812 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4814 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4816 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4817 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4818 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 # POSIX says lex can declare yytext either as a pointer or an array; the
4822 # default is implementation-dependent. Figure out which it is, since
4823 # not all implementations provide the %pointer and %array declarations.
4824 ac_cv_prog_lex_yytext_pointer
=no
4825 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4827 LIBS
="$LIBS $LEXLIB"
4828 cat >conftest.
$ac_ext <<_ACEOF
4829 `cat $LEX_OUTPUT_ROOT.c`
4831 rm -f conftest.
$ac_objext conftest
$ac_exeext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833 (eval $ac_link) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1
>conftest.err
4837 cat conftest.err
>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try
='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try
='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_prog_lex_yytext_pointer
=yes
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.
$ac_ext >&5
4859 rm -f conftest.err conftest.
$ac_objext \
4860 conftest
$ac_exeext conftest.
$ac_ext
4862 rm -f "${LEX_OUTPUT_ROOT}.c"
4865 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4866 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4867 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4869 cat >>confdefs.h
<<\_ACEOF
4870 #define YYTEXT_POINTER 1
4876 # Find a good install program. We prefer a C program (faster),
4877 # so one script is as good as another. But avoid the broken or
4878 # incompatible versions:
4879 # SysV /etc/install, /usr/sbin/install
4880 # SunOS /usr/etc/install
4881 # IRIX /sbin/install
4883 # AmigaOS /C/install, which installs bootblocks on floppy discs
4884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4887 # OS/2's system install, which has a completely different semantic
4888 # ./install, which can be erroneously created by make from ./install.sh.
4889 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4890 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4891 if test -z "$INSTALL"; then
4892 if test "${ac_cv_path_install+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir
=.
4900 # Account for people who put trailing slashes in PATH elements.
4902 .
/ | .
// |
/cC
/* | \
4903 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4904 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4907 # OSF1 and SCO ODT 3.0 have their own names for install.
4908 # Don't use installbsd from OSF since it installs stuff as root
4910 for ac_prog
in ginstall scoinst
install; do
4911 for ac_exec_ext
in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4913 if test $ac_prog = install &&
4914 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4915 # AIX install. It has an incompatible calling convention.
4917 elif test $ac_prog = install &&
4918 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4919 # program-specific install script used by HP pwplus--don't use.
4922 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4934 if test "${ac_cv_path_install+set}" = set; then
4935 INSTALL
=$ac_cv_path_install
4937 # As a last resort, use the slow shell script. We don't cache a
4938 # path for INSTALL within a source directory, because that will
4939 # break other packages using the cache if that directory is
4940 # removed, or if the path is relative.
4941 INSTALL
=$ac_install_sh
4944 echo "$as_me:$LINENO: result: $INSTALL" >&5
4945 echo "${ECHO_T}$INSTALL" >&6
4947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4948 # It thinks the first close brace ends the variable substitution.
4949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4953 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4957 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_RANLIB+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 if test -n "$RANLIB"; then
4964 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir
=.
4971 for ac_exec_ext
in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 RANLIB
=$ac_cv_prog_RANLIB
4983 if test -n "$RANLIB"; then
4984 echo "$as_me:$LINENO: result: $RANLIB" >&5
4985 echo "${ECHO_T}$RANLIB" >&6
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4992 if test -z "$ac_cv_prog_RANLIB"; then
4993 ac_ct_RANLIB
=$RANLIB
4994 # Extract the first word of "ranlib", so it can be a program name with args.
4995 set dummy ranlib
; ac_word
=$2
4996 echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 if test -n "$ac_ct_RANLIB"; then
5002 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir
=.
5009 for ac_exec_ext
in '' $ac_executable_extensions; do
5010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5021 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5022 if test -n "$ac_ct_RANLIB"; then
5023 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5024 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5026 echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5030 RANLIB
=$ac_ct_RANLIB
5032 RANLIB
="$ac_cv_prog_RANLIB"
5035 for ac_prog
in 'bison -y' byacc
5037 # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy
$ac_prog; ac_word
=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_YACC+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 if test -n "$YACC"; then
5045 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir
=.
5052 for ac_exec_ext
in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_YACC
="$ac_prog"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 YACC
=$ac_cv_prog_YACC
5064 if test -n "$YACC"; then
5065 echo "$as_me:$LINENO: result: $YACC" >&5
5066 echo "${ECHO_T}$YACC" >&6
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 test -n "$YACC" && break
5074 test -n "$YACC" || YACC
="yacc"
5077 # Find the right ranlib, even when cross-compiling
5078 # And for some other tools for cross compilation
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5081 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5082 echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084 if test "${ac_cv_prog_RANLIB+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 if test -n "$RANLIB"; then
5088 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir
=.
5095 for ac_exec_ext
in '' $ac_executable_extensions; do
5096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 RANLIB
=$ac_cv_prog_RANLIB
5107 if test -n "$RANLIB"; then
5108 echo "$as_me:$LINENO: result: $RANLIB" >&5
5109 echo "${ECHO_T}$RANLIB" >&6
5111 echo "$as_me:$LINENO: result: no" >&5
5112 echo "${ECHO_T}no" >&6
5116 if test -z "$ac_cv_prog_RANLIB"; then
5117 ac_ct_RANLIB
=$RANLIB
5118 # Extract the first word of "ranlib", so it can be a program name with args.
5119 set dummy ranlib
; ac_word
=$2
5120 echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 if test -n "$ac_ct_RANLIB"; then
5126 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5132 test -z "$as_dir" && as_dir
=.
5133 for ac_exec_ext
in '' $ac_executable_extensions; do
5134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5145 if test -n "$ac_ct_RANLIB"; then
5146 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5147 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5153 RANLIB
=$ac_ct_RANLIB
5155 RANLIB
="$ac_cv_prog_RANLIB"
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5160 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_prog_STRIP+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test -n "$STRIP"; then
5167 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir
=.
5174 for ac_exec_ext
in '' $ac_executable_extensions; do
5175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 STRIP
=$ac_cv_prog_STRIP
5186 if test -n "$STRIP"; then
5187 echo "$as_me:$LINENO: result: $STRIP" >&5
5188 echo "${ECHO_T}$STRIP" >&6
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5195 if test -z "$ac_cv_prog_STRIP"; then
5197 # Extract the first word of "strip", so it can be a program name with args.
5198 set dummy strip
; ac_word
=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 if test -n "$ac_ct_STRIP"; then
5205 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir
=.
5212 for ac_exec_ext
in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ac_ct_STRIP
="strip"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5224 if test -n "$ac_ct_STRIP"; then
5225 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5226 echo "${ECHO_T}$ac_ct_STRIP" >&6
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5234 STRIP
="$ac_cv_prog_STRIP"
5237 if test -n "$ac_tool_prefix"; then
5238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5239 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5240 echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5242 if test "${ac_cv_prog_AR+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 if test -n "$AR"; then
5246 ac_cv_prog_AR
="$AR" # Let the user override the test.
5248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir
=.
5253 for ac_exec_ext
in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 if test -n "$AR"; then
5266 echo "$as_me:$LINENO: result: $AR" >&5
5267 echo "${ECHO_T}$AR" >&6
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5274 if test -z "$ac_cv_prog_AR"; then
5276 # Extract the first word of "ar", so it can be a program name with args.
5277 set dummy
ar; ac_word
=$2
5278 echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 if test -n "$ac_ct_AR"; then
5284 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir
=.
5291 for ac_exec_ext
in '' $ac_executable_extensions; do
5292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_ac_ct_AR
="ar"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5303 if test -n "$ac_ct_AR"; then
5304 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5305 echo "${ECHO_T}$ac_ct_AR" >&6
5307 echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5316 if test -n "$ac_tool_prefix"; then
5317 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5318 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_LD+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 if test -n "$LD"; then
5325 ac_cv_prog_LD
="$LD" # Let the user override the test.
5327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir
=.
5332 for ac_exec_ext
in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 if test -n "$LD"; then
5345 echo "$as_me:$LINENO: result: $LD" >&5
5346 echo "${ECHO_T}$LD" >&6
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5353 if test -z "$ac_cv_prog_LD"; then
5355 # Extract the first word of "ld", so it can be a program name with args.
5356 set dummy ld
; ac_word
=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 if test -n "$ac_ct_LD"; then
5363 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir
=.
5370 for ac_exec_ext
in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_LD
="ld"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5382 if test -n "$ac_ct_LD"; then
5383 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5384 echo "${ECHO_T}$ac_ct_LD" >&6
5386 echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5397 # Add args to configure
5399 # Check whether --enable-ccache or --disable-ccache was given.
5400 if test "${enable_ccache+set}" = set; then
5401 enableval
="$enable_ccache"
5407 # Check whether --enable-debug or --disable-debug was given.
5408 if test "${enable_debug+set}" = set; then
5409 enableval
="$enable_debug"
5410 USE_DEBUG
=$enableval
5415 # Check whether --enable-optimize or --disable-optimize was given.
5416 if test "${enable_optimize+set}" = set; then
5417 enableval
="$enable_optimize"
5418 USE_OPTIMIZE
=$enableval
5423 # Check whether --enable-profile or --disable-profile was given.
5424 if test "${enable_profile+set}" = set; then
5425 enableval
="$enable_profile"
5426 USE_PROFILE
=$enableval
5431 # Check whether --enable-static or --disable-static was given.
5432 if test "${enable_static+set}" = set; then
5433 enableval
="$enable_static"
5434 USE_DEBUG_STATIC
=$enableval
5439 # Check whether --enable-monolithic or --disable-monolithic was given.
5440 if test "${enable_monolithic+set}" = set; then
5441 enableval
="$enable_monolithic"
5442 MONOLITHIC
=$enableval
5447 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5448 if test "${enable_amule_daemon+set}" = set; then
5449 enableval
="$enable_amule_daemon"
5450 AMULE_DAEMON
=$enableval
5455 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5456 if test "${enable_amulecmd+set}" = set; then
5457 enableval
="$enable_amulecmd"
5463 # Check whether --enable-webserver or --disable-webserver was given.
5464 if test "${enable_webserver+set}" = set; then
5465 enableval
="$enable_webserver"
5471 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5472 if test "${enable_amule_gui+set}" = set; then
5473 enableval
="$enable_amule_gui"
5474 AMULE_GUI
=$enableval
5479 # Check whether --enable-cas or --disable-cas was given.
5480 if test "${enable_cas+set}" = set; then
5481 enableval
="$enable_cas"
5487 # Check whether --enable-wxcas or --disable-wxcas was given.
5488 if test "${enable_wxcas+set}" = set; then
5489 enableval
="$enable_wxcas"
5495 # Check whether --enable-ed2k or --disable-ed2k was given.
5496 if test "${enable_ed2k+set}" = set; then
5497 enableval
="$enable_ed2k"
5503 # Check whether --enable-alc or --disable-alc was given.
5504 if test "${enable_alc+set}" = set; then
5505 enableval
="$enable_alc"
5511 # Check whether --enable-alcc or --disable-alcc was given.
5512 if test "${enable_alcc+set}" = set; then
5513 enableval
="$enable_alcc"
5519 # Check whether --enable-monolithic or --disable-monolithic was given.
5520 if test "${enable_monolithic+set}" = set; then
5521 enableval
="$enable_monolithic"
5522 MONOLITHIC
=$enableval
5527 # Check whether --enable-upnp or --disable-upnp was given.
5528 if test "${enable_upnp+set}" = set; then
5529 enableval
="$enable_upnp"
5530 ENABLE_UPNP
=$enableval
5535 # Check whether --enable-geoip or --disable-geoip was given.
5536 if test "${enable_geoip+set}" = set; then
5537 enableval
="$enable_geoip"
5538 ENABLE_IP2COUNTRY
=$enableval
5540 ENABLE_IP2COUNTRY
=no
5544 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5545 if test "${with_geoip_headers+set}" = set; then
5546 withval
="$with_geoip_headers"
5547 GEOIP_INCLUDE
="-I$withval"
5551 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5552 if test "${with_geoip_lib+set}" = set; then
5553 withval
="$with_geoip_lib"
5554 GEOIP_LIB
="-L$withval $GEOIP_LIB"
5558 # Check whether --with-geoip-static or --without-geoip-static was given.
5559 if test "${with_geoip_static+set}" = set; then
5560 withval
="$with_geoip_static"
5561 if test "$withval" != "no"; then
5562 GEOIP_LIB
="-Wl,-Bstatic $GEOIP_LIB -Wl,-Bdynamic"
5567 # Check whether --with-denoise-level or --without-denoise-level was given.
5568 if test "${with_denoise_level+set}" = set; then
5569 withval
="$with_denoise_level"
5570 denoiselevel
="$withval"
5576 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5577 if test "${with_gnu_malloc+set}" = set; then
5578 withval
="$with_gnu_malloc"
5585 # Check whether --with-language or --without-language was given.
5586 if test "${with_language+set}" = set; then
5587 withval
="$with_language"
5588 if test "$withval" = "all"; then
5591 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
5596 # Checking for libs before all other stuff to break
5597 # configure as soon as possible in case of a missing one
5598 # to avoid losing too much time
5600 # Sets gettext version.
5606 # Check whether --with-zlib or --without-zlib was given.
5607 if test "${with_zlib+set}" = set; then
5608 withval
="$with_zlib"
5617 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5618 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5619 { (exit 1); exit 1; }; }
5624 ac_zlib_prefix
="$ac_zlib"
5627 if test -n "$ac_zlib_prefix"; then
5628 ac_tmp_CPPFLAGS
="$CPPFLAGS"
5629 ac_tmp_LDFLAGS
="$LDFLAGS"
5630 CPPFLAGS
="$CPPFLAGS -I$ac_zlib_prefix/include"
5631 LDFLAGS
="-L$ac_zlib_prefix/lib"
5635 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5636 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5637 if test "$cross_compiling" = yes; then
5641 cat >conftest.
$ac_ext <<_ACEOF
5645 cat confdefs.h
>>conftest.
$ac_ext
5646 cat >>conftest.
$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5656 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5664 rm -f conftest.
$ac_objext conftest
$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5668 grep -v '^ *+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try
='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try
='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5687 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5688 ac_cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5689 ac_cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5690 ac_cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5691 if test "$ac_cross_zver_max" -gt "1"; then
5693 elif test "$ac_cross_zver_max" -eq "1"; then
5694 if test "$ac_cross_zver_mid" -gt "1"; then
5696 elif "$ac_cross_zver_mid" -eq "1"; then
5697 if test "$ac_cross_zver_min" -ge "4"; then
5702 if test x
$result = xyes
; then
5703 z_version
=" (version $ZLIB_VERSION)"
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.
$ac_ext >&5
5711 rm -f conftest.err conftest.
$ac_objext \
5712 conftest
$ac_exeext conftest.
$ac_ext
5713 echo "$as_me:$LINENO: result: $result$z_version" >&5
5714 echo "${ECHO_T}$result$z_version" >&6
5717 cat >conftest.
$ac_ext <<_ACEOF
5721 cat confdefs.h
>>conftest.
$ac_ext
5722 cat >>conftest.
$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5731 char *zver = zlibVersion();
5732 FILE *f=fopen("conftestval", "w");
5739 zver[4] >= '4'))) ? "yes" : "no");
5741 f=fopen("conftestver", "w");
5743 fprintf(f, "%s", ZLIB_VERSION);
5752 rm -f conftest
$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5764 if test -f conftestval
; then
5765 result
=`cat conftestval`
5769 if test x
$result = xyes
; then
5770 if test -f conftestver
; then
5771 ZLIB_VERSION
=`cat conftestver`
5772 z_version
=" (version $ZLIB_VERSION)"
5777 echo "$as_me:$LINENO: result: $result$z_version" >&5
5778 echo "${ECHO_T}$result$z_version" >&6
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.
$ac_ext >&5
5788 echo "$as_me:$LINENO: result: $result" >&5
5789 echo "${ECHO_T}$result" >&6
5792 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5794 if test x
$result = xno
; then
5796 if test "${ac_tmp_CPPFLAGS+set}" = set; then
5797 CPPFLAGS
="$ac_tmp_CPPFLAGS"
5799 if test "${ac_tmp_LDFLAGS+set}" = set; then
5800 LDFLAGS
="$ac_tmp_LDFLAGS"
5803 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5804 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5805 { (exit 1); exit 1; }; }
5812 if test x
$CAS = xyes
-o x
$WEB = xyes
; then
5816 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
5817 if test "${with_gdlib_prefix+set}" = set; then
5818 withval
="$with_gdlib_prefix"
5819 gdlib_config_prefix
="$withval"
5821 gdlib_config_prefix
=""
5824 # Check whether --with-gdlib-config or --without-gdlib-config was given.
5825 if test "${with_gdlib_config+set}" = set; then
5826 withval
="$with_gdlib_config"
5827 gdlib_config_name
="$withval"
5829 gdlib_config_name
=""
5833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5835 if test "${ac_cv_header_stdc+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 cat >conftest.
$ac_ext <<_ACEOF
5841 cat confdefs.h
>>conftest.
$ac_ext
5842 cat >>conftest.
$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5857 rm -f conftest.
$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5861 grep -v '^ *+' conftest.er1
>conftest.err
5863 cat conftest.err
>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try
='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try
='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_header_stdc
=yes
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5884 ac_cv_header_stdc
=no
5886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5888 if test $ac_cv_header_stdc = yes; then
5889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5890 cat >conftest.
$ac_ext <<_ACEOF
5893 cat confdefs.h
>>conftest.
$ac_ext
5894 cat >>conftest.
$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5900 $EGREP "memchr" >/dev
/null
2>&1; then
5903 ac_cv_header_stdc
=no
5909 if test $ac_cv_header_stdc = yes; then
5910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921 $EGREP "free" >/dev
/null
2>&1; then
5924 ac_cv_header_stdc
=no
5930 if test $ac_cv_header_stdc = yes; then
5931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5932 if test "$cross_compiling" = yes; then
5935 cat >conftest.
$ac_ext <<_ACEOF
5938 cat confdefs.h
>>conftest.
$ac_ext
5939 cat >>conftest.
$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5942 #if ((' ' & 0x0FF) == 0x020)
5943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5946 # define ISLOWER(c) \
5947 (('a' <= (c) && (c) <= 'i') \
5948 || ('j' <= (c) && (c) <= 'r') \
5949 || ('s' <= (c) && (c) <= 'z'))
5950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5958 for (i = 0; i < 256; i++)
5959 if (XOR (islower (i), ISLOWER (i))
5960 || toupper (i) != TOUPPER (i))
5965 rm -f conftest
$ac_exeext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.
$ac_ext >&5
5983 ac_cv_header_stdc
=no
5985 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5991 if test $ac_cv_header_stdc = yes; then
5993 cat >>confdefs.h
<<\_ACEOF
5994 #define STDC_HEADERS 1
5999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6009 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6010 inttypes.h stdint.h unistd.h
6012 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6026 #include <$ac_header>
6028 rm -f conftest.
$ac_objext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>conftest.er1
6032 grep -v '^ *+' conftest.er1
>conftest.err
6034 cat conftest.err
>&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try
='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try
='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 eval "$as_ac_Header=yes"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.
$ac_ext >&5
6055 eval "$as_ac_Header=no"
6057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h
<<_ACEOF
6063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6072 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6073 GDLIB_CONFIG_NAME
=gdlib-config
6075 if test "x$gdlib_config_name" != x
; then
6076 GDLIB_CONFIG_NAME
="$gdlib_config_name"
6079 if test x
$gdlib_config_prefix != x
; then
6080 GDLIB_LOOKUP_PATH
="$gdlib_config_prefix/bin"
6083 if test -x "$GDLIB_CONFIG_NAME" ; then
6084 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6085 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6086 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6087 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6088 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6090 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6091 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 case $GDLIB_CONFIG_PATH in
6099 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6103 as_dummy
=""$GDLIB_LOOKUP_PATH:$PATH""
6104 for as_dir
in $as_dummy
6107 test -z "$as_dir" && as_dir
=.
6108 for ac_exec_ext
in '' $ac_executable_extensions; do
6109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6121 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6123 if test -n "$GDLIB_CONFIG_PATH"; then
6124 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6125 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6127 echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6133 if test "$GDLIB_CONFIG_PATH" != "no" ; then
6136 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6137 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6139 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6141 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6142 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6143 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6144 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6147 if test $gdlib_config_major_version -gt 2; then
6150 if test $gdlib_config_major_version -eq 2; then
6151 if test $gdlib_config_minor_version -gt 0; then
6154 if test $gdlib_config_minor_version -eq 0; then
6155 if test $gdlib_config_micro_version -ge 0; then
6163 if test x
$gdlib_ver_ok = x
; then
6164 if test x
$GDLIB_VERSION = x
; then
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6168 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6169 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6173 { echo "$as_me:$LINENO:
6174 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6175 Please check that gdlib-config is in your default path, check out
6176 LD_LIBRARY_PATH or equivalent variable.
6177 Or this might also be that your gdlib-config has other name.
6178 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6179 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6180 If you use compiled packages check if you have devel pack installed.
6181 To download the latest version check http://www.boutell.com/gd
6185 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6186 Please check that gdlib-config is in your default path, check out
6187 LD_LIBRARY_PATH or equivalent variable.
6188 Or this might also be that your gdlib-config has other name.
6189 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6190 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6191 If you use compiled packages check if you have devel pack installed.
6192 To download the latest version check http://www.boutell.com/gd
6198 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6199 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6200 if test "${ac_cv_header_gd_h+set}" = set; then
6201 echo "$as_me:$LINENO: checking for gd.h" >&5
6202 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6203 if test "${ac_cv_header_gd_h+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6207 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6209 # Is the header compilable?
6210 echo "$as_me:$LINENO: checking gd.h usability" >&5
6211 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6221 rm -f conftest.
$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1
>conftest.err
6227 cat conftest.err
>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try
='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try
='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_header_compiler
=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_header_compiler
=no
6250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6252 echo "${ECHO_T}$ac_header_compiler" >&6
6254 # Is the header present?
6255 echo "$as_me:$LINENO: checking gd.h presence" >&5
6256 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6257 cat >conftest.
$ac_ext <<_ACEOF
6260 cat confdefs.h
>>conftest.
$ac_ext
6261 cat >>conftest.
$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1
>conftest.err
6270 cat conftest.err
>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev
/null
; then
6273 if test -s conftest.err
; then
6274 ac_cpp_err
=$ac_c_preproc_warn_flag
6275 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6282 if test -z "$ac_cpp_err"; then
6283 ac_header_preproc
=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.
$ac_ext >&5
6288 ac_header_preproc
=no
6290 rm -f conftest.err conftest.
$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6292 echo "${ECHO_T}$ac_header_preproc" >&6
6294 # So? What about this header?
6295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6297 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6298 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6300 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6301 ac_header_preproc
=yes
6304 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6305 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6307 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6309 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6311 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6313 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6315 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6318 ## ------------------------------ ##
6319 ## Report this to admin@amule.org ##
6320 ## ------------------------------ ##
6323 sed "s/^/$as_me: WARNING: /" >&2
6326 echo "$as_me:$LINENO: checking for gd.h" >&5
6327 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6328 if test "${ac_cv_header_gd_h+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 ac_cv_header_gd_h
=$ac_header_preproc
6333 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6334 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6339 if test $ac_cv_header_gd_h = yes; then
6340 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6341 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6342 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6345 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6350 { echo "$as_me:$LINENO:
6351 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6352 Please check that gdlib-config is in your default path, check out
6353 LD_LIBRARY_PATH or equivalent variable.
6354 Or this might also be that your gdlib-config has other name.
6355 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6356 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
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
6362 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6363 Please check that gdlib-config is in your default path, check out
6364 LD_LIBRARY_PATH or equivalent variable.
6365 Or this might also be that your gdlib-config has other name.
6366 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6367 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6368 If you use compiled packages check if you have devel pack installed.
6369 To download the latest version check http://www.boutell.com/gd
6378 { echo "$as_me:$LINENO:
6379 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6380 Please check that gdlib-config is in your default path, check out
6381 LD_LIBRARY_PATH or equivalent variable.
6382 Or this might also be that your gdlib-config has other name.
6383 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6384 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6385 If you use compiled packages check if you have devel pack installed.
6386 To download the latest version check http://www.boutell.com/gd
6390 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6391 Please check that gdlib-config is in your default path, check out
6392 LD_LIBRARY_PATH or equivalent variable.
6393 Or this might also be that your gdlib-config has other name.
6394 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6395 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6396 If you use compiled packages check if you have devel pack installed.
6397 To download the latest version check http://www.boutell.com/gd
6412 GDLIB_VERSION
="not_needed"
6417 if test x
$WEB = xyes
; then
6419 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6420 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6422 for lib
in '' -lgnurx -lregex; do
6425 cat >conftest.
$ac_ext <<_ACEOF
6429 cat confdefs.h
>>conftest.
$ac_ext
6430 cat >>conftest.
$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6440 regcomp(&preg, "", REG_EXTENDED);
6442 regexec(&preg, "", 0, pmatch, 0);
6450 rm -f conftest.
$ac_objext conftest
$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>conftest.er1
6454 grep -v '^ *+' conftest.er1
>conftest.err
6456 cat conftest.err
>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try
='test -z "$ac_c_werror_flag"
6460 || test ! -s conftest.err'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try
='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.
$ac_ext >&5
6485 rm -f conftest.err conftest.
$ac_objext \
6486 conftest
$ac_exeext conftest.
$ac_ext
6488 echo "$as_me:$LINENO: result: $regex_found" >&5
6489 echo "${ECHO_T}$regex_found" >&6
6490 if test $regex_found = yes; then
6503 if test x
$WEB = xyes
; then
6507 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6508 if test "${with_libpng_prefix+set}" = set; then
6509 withval
="$with_libpng_prefix"
6510 libpng_config_prefix
="$withval"
6512 libpng_config_prefix
=""
6515 # Check whether --with-libpng-config or --without-libpng-config was given.
6516 if test "${with_libpng_config+set}" = set; then
6517 withval
="$with_libpng_config"
6518 libpng_config_name
="$withval"
6520 libpng_config_name
=""
6524 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6525 LIBPNG_CONFIG_NAME
=libpng-config
6527 if test "x$libpng_config_name" != x
; then
6528 LIBPNG_CONFIG_NAME
="$libpng_config_name"
6531 if test x
$libpng_config_prefix != x
; then
6532 LIBPNG_LOOKUP_PATH
="$libpng_config_prefix/bin"
6535 if test -x "$LIBPNG_CONFIG_NAME" ; then
6536 echo "$as_me:$LINENO: checking for libpng-config" >&5
6537 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6538 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6539 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6540 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6542 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6543 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6544 echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6546 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 case $LIBPNG_CONFIG_PATH in
6551 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6555 as_dummy
=""$LIBPNG_LOOKUP_PATH:$PATH""
6556 for as_dir
in $as_dummy
6559 test -z "$as_dir" && as_dir
=.
6560 for ac_exec_ext
in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6573 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6575 if test -n "$LIBPNG_CONFIG_PATH"; then
6576 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6577 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6579 echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6585 if test "$LIBPNG_CONFIG_PATH" != "no" ; then
6588 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6589 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6591 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6593 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6594 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6595 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6596 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6599 if test $libpng_config_major_version -gt 1; then
6602 if test $libpng_config_major_version -eq 1; then
6603 if test $libpng_config_minor_version -gt 2; then
6606 if test $libpng_config_minor_version -eq 2; then
6607 if test $libpng_config_micro_version -ge 0; then
6615 if test x
$libpng_ver_ok = x
; then
6616 if test x
$LIBPNG_VERSION = x
; then
6617 echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6
6620 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6621 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6629 { echo "$as_me:$LINENO:
6630 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6633 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6638 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6639 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6640 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6641 LIBPNG_CXXFLAGS
=$LIBPNG_CFLAGS
6642 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6643 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6644 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6648 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6649 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6651 LIBS
="$LIBS -lpng -lz -lm"
6656 if test "$cross_compiling" = yes; then
6658 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6659 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6660 if test "${ac_cv_header_png_h+set}" = set; then
6661 echo "$as_me:$LINENO: checking for png.h" >&5
6662 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6663 if test "${ac_cv_header_png_h+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6669 # Is the header compilable?
6670 echo "$as_me:$LINENO: checking png.h usability" >&5
6671 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6672 cat >conftest.
$ac_ext <<_ACEOF
6675 cat confdefs.h
>>conftest.
$ac_ext
6676 cat >>conftest.
$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6681 rm -f conftest.
$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>conftest.er1
6685 grep -v '^ *+' conftest.er1
>conftest.err
6687 cat conftest.err
>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try
='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try
='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_header_compiler
=yes
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.
$ac_ext >&5
6708 ac_header_compiler
=no
6710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6712 echo "${ECHO_T}$ac_header_compiler" >&6
6714 # Is the header present?
6715 echo "$as_me:$LINENO: checking png.h presence" >&5
6716 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6728 grep -v '^ *+' conftest.er1
>conftest.err
6730 cat conftest.err
>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } >/dev
/null
; then
6733 if test -s conftest.err
; then
6734 ac_cpp_err
=$ac_c_preproc_warn_flag
6735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6742 if test -z "$ac_cpp_err"; then
6743 ac_header_preproc
=yes
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.
$ac_ext >&5
6748 ac_header_preproc
=no
6750 rm -f conftest.err conftest.
$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6752 echo "${ECHO_T}$ac_header_preproc" >&6
6754 # So? What about this header?
6755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6757 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6758 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6759 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6760 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6761 ac_header_preproc
=yes
6764 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6765 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6766 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6767 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6768 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6769 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6770 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6771 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6772 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6773 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6774 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6775 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6778 ## ------------------------------ ##
6779 ## Report this to admin@amule.org ##
6780 ## ------------------------------ ##
6783 sed "s/^/$as_me: WARNING: /" >&2
6786 echo "$as_me:$LINENO: checking for png.h" >&5
6787 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6788 if test "${ac_cv_header_png_h+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_header_png_h
=$ac_header_preproc
6793 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6794 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6797 if test $ac_cv_header_png_h = yes; then
6804 if test x
$result = xyes
; then
6805 LIBPNG_VERSION
="detected"
6806 LIBPNG_LIBS
="-lpng -lz -lm"
6810 cat >conftest.
$ac_ext <<_ACEOF
6814 cat confdefs.h
>>conftest.
$ac_ext
6815 cat >>conftest.
$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6821 /* Check linking to png library */
6823 png_check_sig(NULL, 0);
6829 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6830 FILE *f=fopen("conftestval", "w");
6832 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6834 f=fopen("conftestver", "w");
6836 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6845 rm -f conftest
$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6857 if test -f conftestval
; then
6858 result
=`cat conftestval`
6863 if test x
$result = xyes
; then
6864 if test -f conftestver
; then
6865 LIBPNG_VERSION
=`cat conftestver`
6866 lib_version
=" (version $LIBPNG_VERSION)"
6871 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6872 echo "${ECHO_T}$result$lib_version" >&6
6873 LIBPNG_LIBS
="-lpng -lz -lm"
6876 echo "$as_me: program exited with status $ac_status" >&5
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6883 echo "$as_me:$LINENO: result: $result" >&5
6884 echo "${ECHO_T}$result" >&6
6887 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6889 if test x
$result = xyes
; then
6890 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6893 { echo "$as_me:$LINENO:
6894 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6897 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6915 LIBPNG_VERSION
="not_needed"
6921 # Check for perl File::Copy
6922 echo "$as_me:$LINENO: checking for File::Copy" >&5
6923 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6924 if perl
-e "require File::Copy" 2>/dev
/null
; then
6925 echo "$as_me:$LINENO: result: ok" >&5
6926 echo "${ECHO_T}ok" >&6
6928 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6929 echo "$as_me: error: File::Copy perl module is required" >&2;}
6930 { (exit 1); exit 1; }; }
6934 # Check if we need the GUI
6935 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6936 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6937 if test x
$MONOLITHIC = xyes
; then
6941 if test x
$WXCAS = xyes
; then
6945 if test x
$ALC = xyes
; then
6949 if test x
$AMULE_GUI = xyes
; then
6953 if test ${need_gui:+set} != xset
; then
6957 echo "$as_me:$LINENO: result: $need_gui" >&5
6958 echo "${ECHO_T}$need_gui" >&6
6961 # Check for GeoIP (required for IP2Country capability)
6962 if test x
"$ENABLE_IP2COUNTRY" = x
"yes" ; then
6964 CXXFLAGS
="$CXXFLAGS $GEOIP_INCLUDE"
6965 LIBS
="$LIBS $GEOIP_LIB"
6966 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6967 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6968 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6969 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6973 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6975 # Is the header compilable?
6976 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6977 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6978 cat >conftest.
$ac_ext <<_ACEOF
6981 cat confdefs.h
>>conftest.
$ac_ext
6982 cat >>conftest.
$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6987 rm -f conftest.
$ac_objext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989 (eval $ac_compile) 2>conftest.er1
6991 grep -v '^ *+' conftest.er1
>conftest.err
6993 cat conftest.err
>&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try
='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try
='test -s conftest.$ac_objext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 ac_header_compiler
=yes
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.
$ac_ext >&5
7014 ac_header_compiler
=no
7016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7018 echo "${ECHO_T}$ac_header_compiler" >&6
7020 # Is the header present?
7021 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7022 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7023 cat >conftest.
$ac_ext <<_ACEOF
7026 cat confdefs.h
>>conftest.
$ac_ext
7027 cat >>conftest.
$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7034 grep -v '^ *+' conftest.er1
>conftest.err
7036 cat conftest.err
>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } >/dev
/null
; then
7039 if test -s conftest.err
; then
7040 ac_cpp_err
=$ac_c_preproc_warn_flag
7041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7048 if test -z "$ac_cpp_err"; then
7049 ac_header_preproc
=yes
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.
$ac_ext >&5
7054 ac_header_preproc
=no
7056 rm -f conftest.err conftest.
$ac_ext
7057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7058 echo "${ECHO_T}$ac_header_preproc" >&6
7060 # So? What about this header?
7061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7063 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7064 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7066 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7067 ac_header_preproc
=yes
7070 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7071 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7073 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7074 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7075 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7076 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7077 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7078 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7079 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7081 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7084 ## ------------------------------ ##
7085 ## Report this to admin@amule.org ##
7086 ## ------------------------------ ##
7089 sed "s/^/$as_me: WARNING: /" >&2
7092 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7093 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7094 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 ac_cv_header_GeoIP_h
=$ac_header_preproc
7099 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7100 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7103 if test $ac_cv_header_GeoIP_h = yes; then
7106 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7107 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7108 { (exit 1); exit 1; }; }
7112 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7113 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7114 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 ac_check_lib_save_LIBS
=$LIBS
7118 LIBS
="-lGeoIP $LIBS"
7119 cat >conftest.
$ac_ext <<_ACEOF
7122 cat confdefs.h
>>conftest.
$ac_ext
7123 cat >>conftest.
$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7126 /* Override any gcc2 internal prototype to avoid an error. */
7130 /* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */
7141 rm -f conftest.
$ac_objext conftest
$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>conftest.er1
7145 grep -v '^ *+' conftest.er1
>conftest.err
7147 cat conftest.err
>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try
='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try
='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_lib_GeoIP_GeoIP_open
=yes
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.
$ac_ext >&5
7168 ac_cv_lib_GeoIP_GeoIP_open
=no
7170 rm -f conftest.err conftest.
$ac_objext \
7171 conftest
$ac_exeext conftest.
$ac_ext
7172 LIBS
=$ac_check_lib_save_LIBS
7174 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7175 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7176 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7178 cat >>confdefs.h
<<\_ACEOF
7179 #define SUPPORT_GEOIP 1
7183 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7184 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7185 { (exit 1); exit 1; }; }
7193 # Check if the compiler is broken, wrt. exceptions.
7196 echo "$as_me:$LINENO: checking for exception-handling" >&5
7197 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
7200 ac_cpp
='$CXXCPP $CPPFLAGS'
7201 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7205 if test "$cross_compiling" = yes; then
7207 echo "$as_me:$LINENO: result: undeterminable" >&5
7208 echo "${ECHO_T}undeterminable" >&6
7209 { echo "$as_me:$LINENO: WARNING:
7210 Cross-compilation detected, so exception handling cannot be tested.
7211 Note that broken exception handling in your compiler may lead to
7212 unexpected crashes." >&5
7213 echo "$as_me: WARNING:
7214 Cross-compilation detected, so exception handling cannot be tested.
7215 Note that broken exception handling in your compiler may lead to
7216 unexpected crashes." >&2;}
7219 cat >conftest.
$ac_ext <<_ACEOF
7223 cat confdefs.h
>>conftest.
$ac_ext
7224 cat >>conftest.
$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7243 rm -f conftest
$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7259 echo "$as_me: program exited with status $ac_status" >&5
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.
$ac_ext >&5
7265 echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6
7267 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
7268 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
7269 { (exit 1); exit 1; }; }
7272 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7275 ac_cpp
='$CPP $CPPFLAGS'
7276 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7285 # Check whether --with-wxdir or --without-wxdir was given.
7286 if test "${with_wxdir+set}" = set; then
7287 withval
="$with_wxdir"
7288 wx_config_name
="$withval/wx-config"
7289 wx_config_args
="--inplace"
7292 # Check whether --with-wx-config or --without-wx-config was given.
7293 if test "${with_wx_config+set}" = set; then
7294 withval
="$with_wx_config"
7295 wx_config_name
="$withval"
7298 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7299 if test "${with_wx_prefix+set}" = set; then
7300 withval
="$with_wx_prefix"
7301 wx_config_prefix
="$withval"
7306 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7307 if test "${with_wx_exec_prefix+set}" = set; then
7308 withval
="$with_wx_exec_prefix"
7309 wx_config_exec_prefix
="$withval"
7311 wx_config_exec_prefix
=""
7325 # Check whether --with-toolkit or --without-toolkit was given.
7326 if test "${with_toolkit+set}" = set; then
7327 withval
="$with_toolkit"
7333 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7334 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7335 if test "$withval" = "auto" ; then
7336 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7337 echo "${ECHO_T}will be automatically detected" >&6
7342 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7343 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7344 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7345 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7346 "$TOOLKIT" != "base" ; then
7347 { { echo "$as_me:$LINENO: error:
7348 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7350 echo "$as_me: error:
7351 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7353 { (exit 1); exit 1; }; }
7356 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7357 echo "${ECHO_T}$TOOLKIT" >&6
7364 # Check whether --with-wxshared or --without-wxshared was given.
7365 if test "${with_wxshared+set}" = set; then
7366 withval
="$with_wxshared"
7372 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7373 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7374 if test "$withval" = "yes" ; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376 echo "${ECHO_T}yes" >&6
7379 elif test "1" = "1" -a "$withval" = "no" ; then
7380 echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7383 elif test "$withval" = "auto" ; then
7384 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7385 echo "${ECHO_T}will be automatically detected" >&6
7388 { { echo "$as_me:$LINENO: error:
7389 Unrecognized option value (allowed values: yes, auto)
7391 echo "$as_me: error:
7392 Unrecognized option value (allowed values: yes, auto)
7394 { (exit 1); exit 1; }; }
7401 # Check whether --with-wxdebug or --without-wxdebug was given.
7402 if test "${with_wxdebug+set}" = set; then
7403 withval
="$with_wxdebug"
7409 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7410 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7411 if test "$withval" = "yes" ; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413 echo "${ECHO_T}yes" >&6
7416 elif test "1" = "1" -a "$withval" = "no" ; then
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7420 elif test "$withval" = "auto" ; then
7421 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7422 echo "${ECHO_T}will be automatically detected" >&6
7425 { { echo "$as_me:$LINENO: error:
7426 Unrecognized option value (allowed values: yes, auto)
7428 echo "$as_me: error:
7429 Unrecognized option value (allowed values: yes, auto)
7431 { (exit 1); exit 1; }; }
7438 # Check whether --with-wxversion or --without-wxversion was given.
7439 if test "${with_wxversion+set}" = set; then
7440 withval
="$with_wxversion"
7446 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7447 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7448 if test "$withval" = "auto" ; then
7449 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7450 echo "${ECHO_T}will be automatically detected" >&6
7454 wx_requested_major_version
=`echo $withval | \
7455 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7456 wx_requested_minor_version
=`echo $withval | \
7457 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7459 if test "${#wx_requested_major_version}" != "1" -o \
7460 "${#wx_requested_minor_version}" != "1" ; then
7461 { { echo "$as_me:$LINENO: error:
7462 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7464 echo "$as_me: error:
7465 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7467 { (exit 1); exit 1; }; }
7470 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7471 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7472 echo "${ECHO_T}$WX_VERSION" >&6
7476 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7477 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7478 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7479 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7480 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7481 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7484 # Force using a static wxWidgets library if the executable is to be linked statically.
7485 if test "$USE_DEBUG_STATIC" = "yes"; then
7489 # Force using a unicode build of the library
7493 if test "$WX_SHARED" = "1" ; then
7494 WXCONFIG_FLAGS
="--static=no "
7495 elif test "$WX_SHARED" = "0" ; then
7496 WXCONFIG_FLAGS
="--static=yes "
7499 if test "$WX_DEBUG" = "1" ; then
7500 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7501 elif test "$WX_DEBUG" = "0" ; then
7502 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7505 if test "$WX_UNICODE" = "1" ; then
7506 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7507 elif test "$WX_UNICODE" = "0" ; then
7508 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7511 if test "$TOOLKIT" != "auto" ; then
7512 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7515 if test "$WX_VERSION" != "auto" ; then
7516 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7519 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7521 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7522 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7526 if test x
${WX_CONFIG_NAME+set} != xset
; then
7527 WX_CONFIG_NAME
=wx-config
7530 if test "x$wx_config_name" != x
; then
7531 WX_CONFIG_NAME
="$wx_config_name"
7534 if test x
$wx_config_exec_prefix != x
; then
7535 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7536 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7538 if test x
$wx_config_prefix != x
; then
7539 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7540 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7542 if test "$cross_compiling" = "yes"; then
7543 wx_config_args
="$wx_config_args --host=$host_alias"
7546 if test -x "$WX_CONFIG_NAME" ; then
7547 echo "$as_me:$LINENO: checking for wx-config" >&5
7548 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7549 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7550 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7551 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7553 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7554 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7555 echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 case $WX_CONFIG_PATH in
7562 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7566 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7567 for as_dir
in $as_dummy
7570 test -z "$as_dir" && as_dir
=.
7571 for ac_exec_ext
in '' $ac_executable_extensions; do
7572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7584 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7586 if test -n "$WX_CONFIG_PATH"; then
7587 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7588 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7596 if test "$WX_CONFIG_PATH" != "no" ; then
7599 min_wx_version
=2.8.0
7600 if test -z "$WXCONFIG_FLAGS" ; then
7601 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7602 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7604 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7605 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7608 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7610 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7611 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7613 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7614 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7615 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7616 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7618 wx_requested_major_version
=`echo $min_wx_version | \
7619 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7620 wx_requested_minor_version
=`echo $min_wx_version | \
7621 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7622 wx_requested_micro_version
=`echo $min_wx_version | \
7623 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7627 if test "x$WX_VERSION_FULL" != x
; then
7628 if test $wx_config_major_version -gt $wx_requested_major_version; then
7631 if test $wx_config_major_version -eq $wx_requested_major_version; then
7632 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7635 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7636 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7646 if test -n "$wx_ver_ok"; then
7648 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7649 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7650 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7652 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7653 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7654 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7655 if test "x$WX_LIBS_STATIC" = "x"; then
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7659 echo "$as_me:$LINENO: result: yes" >&5
7660 echo "${ECHO_T}yes" >&6
7664 if test $wx_config_major_version -gt 2; then
7667 if test $wx_config_major_version -eq 2; then
7668 if test $wx_config_minor_version -gt 2; then
7671 if test $wx_config_minor_version -eq 2; then
7672 if test $wx_config_micro_version -ge 6; then
7681 if test $wx_config_major_version -gt 2; then
7684 if test $wx_config_major_version -eq 2; then
7685 if test $wx_config_minor_version -ge 7; then
7690 if test "x$wx_has_rescomp" = x
; then
7693 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7696 if test "x$wx_has_cppflags" = x
; then
7697 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7698 WX_CPPFLAGS
=$WX_CFLAGS
7699 WX_CXXFLAGS
=$WX_CFLAGS
7701 WX_CFLAGS_ONLY
=$WX_CFLAGS
7702 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7704 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7705 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7706 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7708 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7709 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7716 if test "x$WX_VERSION_FULL" = x
; then
7717 echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6
7720 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7721 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7731 if test ! -z "$WXCONFIG_FLAGS"; then
7734 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7735 build with the following settings:
7737 but such build is not available.
7739 To see the wxWidgets builds available on this system, please use
7740 'wx-config --list' command. To use the default build, returned by
7741 'wx-config --selected-config', use the options with their 'auto'
7747 The requested wxWidgets build couldn't be found.
7750 If you still get this error, then check that 'wx-config' is
7751 in path, the directory where wxWidgets libraries are installed
7752 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7753 or equivalent variable and wxWidgets version is 2.8.0 or above."
7755 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7756 echo "$as_me: error: $wx_error_message" >&2;}
7757 { (exit 1); exit 1; }; }
7783 WX_VERSION_MAJOR
="$wx_config_major_version"
7784 WX_VERSION_MINOR
="$wx_config_minor_version"
7788 if test "$wxWin" != 1; then
7789 { { echo "$as_me:$LINENO: error:
7790 wxWidgets must be installed on your system but wx-config
7791 script couldn't be found. Please check that wx-config is
7792 in path or specified by --with-wx-config=path flag, the
7793 directory where wxWidgets libraries are installed (returned
7794 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7795 equivalent variable and wxWidgets version is 2.8.0 or above.
7797 echo "$as_me: error:
7798 wxWidgets must be installed on your system but wx-config
7799 script couldn't be found. Please check that wx-config is
7800 in path or specified by --with-wx-config=path flag, the
7801 directory where wxWidgets libraries are installed (returned
7802 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7803 equivalent variable and wxWidgets version is 2.8.0 or above.
7805 { (exit 1); exit 1; }; }
7808 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7809 if test $WX_VERSION -lt 26 ; then
7811 { { echo "$as_me:$LINENO: error:
7812 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7813 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7814 version of wxWidgets.
7816 echo "$as_me: error:
7817 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7818 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7819 version of wxWidgets.
7821 { (exit 1); exit 1; }; }
7824 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7826 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7827 echo "[dbg] Using wx-config --selected-config"
7828 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7832 if test $WX_SHARED = "1"; then
7834 elif test $WX_SHARED = "0"; then
7836 elif test $WX_SHARED = "auto"; then
7841 if test "$UNICODE" = "auto" ; then
7843 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7844 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7846 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7848 if test "$WX_UNICODE" != "0"; then
7850 echo "$as_me:$LINENO: result: yes" >&5
7851 echo "${ECHO_T}yes" >&6
7855 echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6
7865 if test "$DEBUG" = "auto" ; then
7867 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7868 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7870 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7872 if test "$WX_DEBUG" != "0"; then
7874 echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7879 echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6
7889 if test "$STATIC" = "auto" ; then
7891 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7892 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7894 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7896 if test "$WX_STATIC" != "0"; then
7898 echo "$as_me:$LINENO: result: yes" >&5
7899 echo "${ECHO_T}yes" >&6
7903 echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6
7913 if test "$WX_STATIC" != "0"; then
7923 if test "$TOOLKIT" = "auto" ; then
7925 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7926 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7928 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7929 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7930 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7931 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7932 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7933 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7934 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7935 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7936 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7939 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7940 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7941 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7942 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7943 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7944 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7945 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7946 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7947 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7950 if test "$WX_PORT" = "unknown" ; then
7951 { { echo "$as_me:$LINENO: error:
7952 Cannot detect the currently installed wxWidgets port !
7953 Please check your 'wx-config --cxxflags'...
7955 echo "$as_me: error:
7956 Cannot detect the currently installed wxWidgets port !
7957 Please check your 'wx-config --cxxflags'...
7959 { (exit 1); exit 1; }; }
7962 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7963 echo "${ECHO_T}$WX_PORT" >&6
7966 if test -z "$TOOLKIT" ; then
7975 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7976 echo "[dbg] Values of all WX_* options after final detection:"
7977 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7978 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7979 echo "[dbg] WX_SHARED: $WX_SHARED"
7980 echo "[dbg] WX_VERSION: $WX_VERSION"
7981 echo "[dbg] WX_PORT: $WX_PORT"
7984 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7985 { { echo "$as_me:$LINENO: error:
7986 Cannot build shared library against a static build of wxWidgets !
7987 This error happens because the wxWidgets build which was selected
7988 has been detected as static while you asked to build $PACKAGE_NAME
7989 as shared library and this is not possible.
7990 Use the '--disable-shared' option to build $PACKAGE_NAME
7991 as static library or '--with-wxshared' to use wxWidgets as shared library.
7993 echo "$as_me: error:
7994 Cannot build shared library against a static build of wxWidgets !
7995 This error happens because the wxWidgets build which was selected
7996 has been detected as static while you asked to build $PACKAGE_NAME
7997 as shared library and this is not possible.
7998 Use the '--disable-shared' option to build $PACKAGE_NAME
7999 as static library or '--with-wxshared' to use wxWidgets as shared library.
8001 { (exit 1); exit 1; }; }
8004 if test "$DEBUG" = "auto"; then
8007 if test "$DEBUG" = "1"; then
8009 elif test "$DEBUG" = ""; then
8013 if test "$UNICODE" = "auto"; then
8016 if test "$SHARED" = "auto"; then
8019 if test "$TOOLKIT" = "auto"; then
8027 ac_cpp
='$CXXCPP $CPPFLAGS'
8028 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8033 __CPPFLAGS
=${CPPFLAGS}
8034 CPPFLAGS
=${WX_CPPFLAGS}
8036 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8037 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8038 cat >conftest.
$ac_ext <<_ACEOF
8043 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8044 #error No LargeFile support!;
8050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev
/null
; then
8058 if test -s conftest.err
; then
8059 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8060 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8067 if test -z "$ac_cpp_err"; then
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.
$ac_ext >&5
8075 rm -f conftest.err conftest.
$ac_ext
8077 if test "x${NO_LF}" != "x";
8079 echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6
8081 { { echo "$as_me:$LINENO: error:
8082 Support for large files in wxWidgets is required by aMule.
8083 To continue you must recompile wxWidgets with support for
8084 large files enabled.
8086 echo "$as_me: error:
8087 Support for large files in wxWidgets is required by aMule.
8088 To continue you must recompile wxWidgets with support for
8089 large files enabled.
8091 { (exit 1); exit 1; }; }
8093 echo "$as_me:$LINENO: result: yes" >&5
8094 echo "${ECHO_T}yes" >&6
8097 CPPFLAGS
=${__CPPFLAGS}
8100 ac_cpp
='$CPP $CPPFLAGS'
8101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8107 if test x
$SYS = xwin32
; then
8108 if test -n "$ac_tool_prefix"; then
8109 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8110 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8111 echo "$as_me:$LINENO: checking for $ac_word" >&5
8112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8113 if test "${ac_cv_prog_RC+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 if test -n "$RC"; then
8117 ac_cv_prog_RC
="$RC" # Let the user override the test.
8119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir
=.
8124 for ac_exec_ext
in '' $ac_executable_extensions; do
8125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_RC
="${ac_tool_prefix}windres"
8127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 if test -n "$RC"; then
8137 echo "$as_me:$LINENO: result: $RC" >&5
8138 echo "${ECHO_T}$RC" >&6
8140 echo "$as_me:$LINENO: result: no" >&5
8141 echo "${ECHO_T}no" >&6
8145 if test -z "$ac_cv_prog_RC"; then
8147 # Extract the first word of "windres", so it can be a program name with args.
8148 set dummy windres
; ac_word
=$2
8149 echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 if test -n "$ac_ct_RC"; then
8155 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
8157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir
=.
8162 for ac_exec_ext
in '' $ac_executable_extensions; do
8163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_RC
="windres"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
8174 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
8175 if test -n "$ac_ct_RC"; then
8176 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8177 echo "${ECHO_T}$ac_ct_RC" >&6
8179 echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8189 RCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8195 # Check for Crypto++
8198 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8199 if test "${with_crypto_prefix+set}" = set; then
8200 withval
="$with_crypto_prefix"
8201 CRYPTO_PP_PREFIX
="$withval"
8209 min_crypto_version
=5.1
8210 echo "$as_me:$LINENO: checking for crypto++ version >= $min_crypto_version" >&5
8211 echo $ECHO_N "checking for crypto++ version >= $min_crypto_version... $ECHO_C" >&6
8213 crypto_pp_file_with_version
="cryptlib.h"
8215 CRYPTO_PP_STYLE
="unknown"
8216 CRYPTO_PP_LIB_NAME
="unknown"
8217 crypto_pp_include_i
="unknown"
8218 CRYPTO_PP_INCLUDE_PREFIX
="unknown"
8219 CRYPTO_PP_DEFINE
="unknown"
8220 CRYPTO_PP_LIB
="unknown"
8223 # Set CRYPTO_PP_PREFIX if the user has not set it in the configure command line
8224 # We don't use AC_CHECK_FILE to avoid caching.
8226 if test x
$CRYPTO_PP_PREFIX = x
; then
8227 CRYPTO_PP_PREFIX
="/usr"
8231 # Find the Cryptopp header
8233 if test -f $CRYPTO_PP_PREFIX/$crypto_pp_file_with_version; then
8234 CRYPTO_PP_STYLE
="sources"
8235 CRYPTO_PP_LIB_NAME
="cryptopp"
8236 crypto_pp_include_i
="$CRYPTO_PP_PREFIX"
8237 CRYPTO_PP_INCLUDE_PREFIX
="."
8238 CRYPTO_PP_DEFINE
="__CRYPTO_SOURCE__"
8239 CRYPTO_PP_LIB
="$CRYPTO_PP_PREFIX"
8240 { { echo "$as_me:$LINENO: error:
8241 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8242 will not work because cryptopp uses headers with the same name of system
8243 headers (e.g. zlib.h) and you must be able to distinguish the system
8244 headers from cryptopp headers in an #include directive.
8245 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8246 the cryptopp directory to properly install cryptopp in your system." >&5
8247 echo "$as_me: error:
8248 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8249 will not work because cryptopp uses headers with the same name of system
8250 headers (e.g. zlib.h) and you must be able to distinguish the system
8251 headers from cryptopp headers in an #include directive.
8252 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8253 the cryptopp directory to properly install cryptopp in your system." >&2;}
8254 { (exit 1); exit 1; }; }
8255 elif test -f $CRYPTO_PP_PREFIX/include
/cryptopp
/$crypto_pp_file_with_version; then
8256 CRYPTO_PP_STYLE
="installed"
8257 CRYPTO_PP_LIB_NAME
="cryptopp"
8258 crypto_pp_include_i
="$CRYPTO_PP_PREFIX/include"
8259 CRYPTO_PP_INCLUDE_PREFIX
="$CRYPTO_PP_LIB_NAME"
8260 CRYPTO_PP_DEFINE
="__CRYPTO_INSTALLED__"
8261 CRYPTO_PP_LIB
="$CRYPTO_PP_PREFIX/lib"
8262 elif test -f $CRYPTO_PP_PREFIX/include
/crypto
++/$crypto_pp_file_with_version; then
8263 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8264 CRYPTO_PP_STYLE
="gentoo_debian"
8265 CRYPTO_PP_LIB_NAME
="crypto++"
8266 crypto_pp_include_i
="$CRYPTO_PP_PREFIX/include"
8267 CRYPTO_PP_INCLUDE_PREFIX
="$CRYPTO_PP_LIB_NAME"
8268 CRYPTO_PP_DEFINE
="__CRYPTO_SOURCE__"
8269 CRYPTO_PP_LIB
="$CRYPTO_PP_PREFIX/lib"
8273 # Check for success in finding cryptopp
8275 if test $CRYPTO_PP_STYLE = "unknown"; then
8277 # If the execution reaches here, we have failed.
8279 { { echo "$as_me:$LINENO: error:
8280 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8281 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&5
8282 echo "$as_me: error:
8283 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8284 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&2;}
8285 { (exit 1); exit 1; }; }
8289 # Find out the cryptopp version and check against the minimum required
8291 crypto_pp_include_dir
="$crypto_pp_include_i/$CRYPTO_PP_INCLUDE_PREFIX"
8292 crypto_pp_header_path
="$crypto_pp_include_dir/$crypto_pp_file_with_version"
8294 CRYPTO_PP_VERSION_STRING
=`grep "Reference Manual" $crypto_pp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8296 CRYPTO_PP_VERSION_NUMBER
=`echo $CRYPTO_PP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8298 minvers
=`echo $min_crypto_version | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8300 if test -n "$CRYPTO_PP_VERSION_NUMBER" && test "$CRYPTO_PP_VERSION_NUMBER" -ge $minvers; then
8301 result
="yes (version $CRYPTO_PP_VERSION_STRING, $CRYPTO_PP_STYLE)"
8305 echo "$as_me:$LINENO: result: $result" >&5
8306 echo "${ECHO_T}$result" >&6
8311 CRYPTO_PP_CXXFLAGS
="-I$crypto_pp_include_i -D$CRYPTO_PP_DEFINE"
8312 CRYPTO_PP_LDFLAGS
="-L$CRYPTO_PP_LIB"
8315 cat >>confdefs.h
<<_ACEOF
8316 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTO_PP_INCLUDE_PREFIX
8334 CXXFLAGS
="$CXXFLAGS $CRYPTO_PP_CXXFLAGS"
8335 LDFLAGS
="$LDFLAGS $CRYPTO_PP_LDFLAGS"
8336 CRYPTOLIBS
="-l$CRYPTO_PP_LIB_NAME"
8338 case "$CRYPTO_PP_STYLE" in
8339 gentoo_debian | installed | sources
)
8341 *) { { echo "$as_me:$LINENO: error:
8342 WARNING: crypto++ >= $min_crypto_version is not found.
8343 Please check that cryptopp-headers are in your default include path,
8344 check out LD_LIBRARY_PATH or equivalent variable.
8345 Or this might also be that your cryptopp is installed on other path.
8346 Please try again with --with-crypto-prefix=/my_crypto_prefix
8347 (replace /my_crypto_prefix with a valid path to your crypto directory).
8348 To download the latest version check http://www.cryptopp.com for sources.
8350 echo "$as_me: error:
8351 WARNING: crypto++ >= $min_crypto_version is not found.
8352 Please check that cryptopp-headers are in your default include path,
8353 check out LD_LIBRARY_PATH or equivalent variable.
8354 Or this might also be that your cryptopp is installed on other path.
8355 Please try again with --with-crypto-prefix=/my_crypto_prefix
8356 (replace /my_crypto_prefix with a valid path to your crypto directory).
8357 To download the latest version check http://www.cryptopp.com for sources.
8359 { (exit 1); exit 1; }; }
8363 # Check for CryptoPP >= 5.5
8364 if test $CRYPTO_PP_VERSION_NUMBER -ge "5005000"; then
8365 CXXFLAGS
="$CXXFLAGS -D__WEAK_CRYPTO__"
8371 # Check for bfd.h (to have proper backtraces without using wxExecute)
8373 echo "$as_me:$LINENO: checking for bfd" >&5
8374 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8376 LIBS
="-lbfd -liberty $LIBS"
8377 cat >conftest.
$ac_ext <<_ACEOF
8381 cat confdefs.h
>>conftest.
$ac_ext
8382 cat >>conftest.
$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8385 #include <ansidecl.h>
8392 char *dummy = bfd_errmsg(bfd_get_error());
8399 rm -f conftest.
$ac_objext conftest
$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
8405 cat conftest.err
>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try
='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try
='test -s conftest$ac_exeext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8422 echo "$as_me:$LINENO: result: yes" >&5
8423 echo "${ECHO_T}yes" >&6
8424 BFD_FLAGS
="-DHAVE_BFD"
8425 BFD_LIB
="-lbfd -liberty"
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.
$ac_ext >&5
8432 echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6
8434 { echo "$as_me:$LINENO: WARNING:
8435 bfd.h not found or unusable, please install binutils development
8436 package if you are a developer or want to help testing aMule" >&5
8437 echo "$as_me: WARNING:
8438 bfd.h not found or unusable, please install binutils development
8439 package if you are a developer or want to help testing aMule" >&2;}
8442 rm -f conftest.err conftest.
$ac_objext \
8443 conftest
$ac_exeext conftest.
$ac_ext
8449 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8450 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8451 cat >conftest.
$ac_ext <<_ACEOF
8455 cat confdefs.h
>>conftest.
$ac_ext
8456 cat >>conftest.
$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 #include <execinfo.h>
8466 int n = backtrace(&bt, 1);
8467 const char **bt_syms = backtrace_symbols(bt, n);
8474 rm -f conftest.
$ac_objext conftest
$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>conftest.er1
8478 grep -v '^ *+' conftest.er1
>conftest.err
8480 cat conftest.err
>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try
='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try
='test -s conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8499 cat >>confdefs.h
<<\_ACEOF
8500 #define HAVE_EXECINFO 1
8503 echo "$as_me:$LINENO: result: yes" >&5
8504 echo "${ECHO_T}yes" >&6
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.
$ac_ext >&5
8511 echo "$as_me:$LINENO: result: no" >&5
8512 echo "${ECHO_T}no" >&6
8515 rm -f conftest.err conftest.
$ac_objext \
8516 conftest
$ac_exeext conftest.
$ac_ext
8520 ac_cpp
='$CXXCPP $CPPFLAGS'
8521 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8525 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8526 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8527 cat >conftest.
$ac_ext <<_ACEOF
8531 cat confdefs.h
>>conftest.
$ac_ext
8532 cat >>conftest.
$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8542 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8543 std::type_info *ti = abi::__cxa_current_exception_type();
8550 rm -f conftest.
$ac_objext conftest
$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>conftest.er1
8554 grep -v '^ *+' conftest.er1
>conftest.err
8556 cat conftest.err
>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try
='test -z "$ac_cxx_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try
='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8575 cat >>confdefs.h
<<\_ACEOF
8576 #define HAVE_CXXABI 1
8579 echo "$as_me:$LINENO: result: yes" >&5
8580 echo "${ECHO_T}yes" >&6
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.
$ac_ext >&5
8587 echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6
8591 rm -f conftest.err conftest.
$ac_objext \
8592 conftest
$ac_exeext conftest.
$ac_ext
8594 ac_cpp
='$CPP $CPPFLAGS'
8595 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8596 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8597 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8601 # Ok, we have all needed libs, now checking for other stuff
8604 echo "$as_me:$LINENO: checking for autopoint" >&5
8605 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
8607 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
8608 if test x
$autopoint_version != x
; then
8614 HAVE_GETTEXT
=$result
8616 echo "$as_me:$LINENO: result: $result ($autopoint_version)" >&5
8617 echo "${ECHO_T}$result ($autopoint_version)" >&6
8618 if test x
$result = xno
; then
8619 { echo "$as_me:$LINENO: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&5
8620 echo "$as_me: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&6;}
8625 if test "$LEX" = "flex"; then
8628 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8629 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8631 extended_flex
=`flex --help | grep header-file`
8632 if test x
"$extended_flex" != x
""; then
8638 HAVE_FLEX_EXTENDED
=$result
8640 echo "$as_me:$LINENO: result: $result" >&5
8641 echo "${ECHO_T}$result" >&6
8643 if test x
$result = xno
; then
8644 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&5
8645 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&6;}
8652 HAVE_FLEX_EXTENDED
=no
8655 # Flush standard test results for speeding cache
8656 cat >confcache
<<\_ACEOF
8657 # This file is a shell script that caches the results of configure
8658 # tests run on this system so they can be shared between configure
8659 # scripts and configure runs, see configure's option --config-cache.
8660 # It is not useful on other systems. If it contains results you don't
8661 # want to keep, you may remove or edit it.
8663 # config.status only pays attention to the cache file if you give it
8664 # the --recheck option to rerun configure.
8666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8672 # The following way of writing the cache mishandles newlines in values,
8673 # but we know of no workaround that is simple, portable, and efficient.
8674 # So, don't put newlines in cache variables' values.
8675 # Ultrix sh set writes to stderr and can't be redirected directly,
8676 # and sets the high bit in the cache file unless we assign to the vars.
8679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8681 # `set' does not quote correctly, so add quotes (double-quote
8682 # substitution turns \\\\ into \\, and sed turns \\ into \).
8685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8688 # `set' quotes correctly as required by POSIX, so do not add quotes.
8690 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8699 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8701 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8702 if test -w $cache_file; then
8703 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8704 cat confcache
>$cache_file
8706 echo "not updating unwritable cache $cache_file"
8711 # Checks for header files.
8712 echo "$as_me:$LINENO: checking for X" >&5
8713 echo $ECHO_N "checking for X... $ECHO_C" >&6
8716 # Check whether --with-x or --without-x was given.
8717 if test "${with_x+set}" = set; then
8721 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8722 if test "x$with_x" = xno
; then
8723 # The user explicitly disabled X.
8726 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8727 # Both variables are already set.
8730 if test "${ac_cv_have_x+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 # One or both of the vars are not set, and there is no cached value.
8734 ac_x_includes
=no ac_x_libraries
=no
8736 if mkdir conftest.dir
; then
8738 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8739 cat >Imakefile
<<'_ACEOF'
8741 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8743 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8744 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8745 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8746 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8747 for ac_extension
in a so sl
; do
8748 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8749 test -f $ac_im_libdir/libX11.
$ac_extension; then
8750 ac_im_usrlibdir
=$ac_im_libdir; break
8753 # Screen out bogus values from the imake configuration. They are
8754 # bogus both because they are the default anyway, and because
8755 # using them would break gcc on systems where it needs fixed includes.
8756 case $ac_im_incroot in
8758 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8760 case $ac_im_usrlibdir in
8762 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8769 # Standard set of common directories for X headers.
8770 # Check X11 before X11Rn because it is often a symlink to the current release.
8782 /usr/local/X11/include
8783 /usr/local/X11R6/include
8784 /usr/local/X11R5/include
8785 /usr/local/X11R4/include
8787 /usr/local/include/X11
8788 /usr/local/include/X11R6
8789 /usr/local/include/X11R5
8790 /usr/local/include/X11R4
8794 /usr/XFree86/include/X11
8798 /usr/unsupported/include
8800 /usr/local/x11r5/include
8801 /usr/lpp/Xamples/include
8803 /usr/openwin/include
8804 /usr/openwin/share/include'
8806 if test "$ac_x_includes" = no
; then
8807 # Guess where to find include files, by looking for Intrinsic.h.
8808 # First, try using that file with no special directory specified.
8809 cat >conftest.
$ac_ext <<_ACEOF
8812 cat confdefs.h
>>conftest.
$ac_ext
8813 cat >>conftest.
$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 #include <X11/Intrinsic.h>
8817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8820 grep -v '^ *+' conftest.er1
>conftest.err
8822 cat conftest.err
>&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } >/dev
/null
; then
8825 if test -s conftest.err
; then
8826 ac_cpp_err
=$ac_c_preproc_warn_flag
8827 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8834 if test -z "$ac_cpp_err"; then
8835 # We can compile using X headers with no special include directory.
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8841 for ac_dir
in $ac_x_header_dirs; do
8842 if test -r "$ac_dir/X11/Intrinsic.h"; then
8843 ac_x_includes
=$ac_dir
8848 rm -f conftest.err conftest.
$ac_ext
8849 fi # $ac_x_includes = no
8851 if test "$ac_x_libraries" = no
; then
8852 # Check for the libraries.
8853 # See if we find them without any special options.
8854 # Don't add to $LIBS permanently.
8857 cat >conftest.
$ac_ext <<_ACEOF
8860 cat confdefs.h
>>conftest.
$ac_ext
8861 cat >>conftest.
$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 #include <X11/Intrinsic.h>
8872 rm -f conftest.
$ac_objext conftest
$ac_exeext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8876 grep -v '^ *+' conftest.er1
>conftest.err
8878 cat conftest.err
>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try
='test -z "$ac_c_werror_flag"
8882 || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try
='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8895 # We can link X programs with no special library path.
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.
$ac_ext >&5
8902 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8904 # Don't even attempt the hair of trying to link an X program!
8905 for ac_extension
in a so sl
; do
8906 if test -r $ac_dir/libXt.
$ac_extension; then
8907 ac_x_libraries
=$ac_dir
8913 rm -f conftest.err conftest.
$ac_objext \
8914 conftest
$ac_exeext conftest.
$ac_ext
8915 fi # $ac_x_libraries = no
8917 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8918 # Didn't find X anywhere. Cache the known absence of X.
8919 ac_cv_have_x
="have_x=no"
8921 # Record where we found X for the cache.
8922 ac_cv_have_x
="have_x=yes \
8923 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8928 eval "$ac_cv_have_x"
8931 if test "$have_x" != yes; then
8932 echo "$as_me:$LINENO: result: $have_x" >&5
8933 echo "${ECHO_T}$have_x" >&6
8936 # If each of the values was on the command line, it overrides each guess.
8937 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8938 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8939 # Update the cache value to reflect the command line values.
8940 ac_cv_have_x
="have_x=yes \
8941 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8942 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8943 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8946 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8947 # for constant arguments. Useless!
8948 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8949 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8950 if test "${ac_cv_working_alloca_h+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.
$ac_ext <<_ACEOF
8956 cat confdefs.h
>>conftest.
$ac_ext
8957 cat >>conftest.
$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8963 char *p = (char *) alloca (2 * sizeof (int));
8968 rm -f conftest.
$ac_objext conftest
$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1
>conftest.err
8974 cat conftest.err
>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try
='test -z "$ac_c_werror_flag"
8978 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try
='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_working_alloca_h
=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.
$ac_ext >&5
8995 ac_cv_working_alloca_h
=no
8997 rm -f conftest.err conftest.
$ac_objext \
8998 conftest
$ac_exeext conftest.
$ac_ext
9000 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9001 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9002 if test $ac_cv_working_alloca_h = yes; then
9004 cat >>confdefs.h
<<\_ACEOF
9005 #define HAVE_ALLOCA_H 1
9010 echo "$as_me:$LINENO: checking for alloca" >&5
9011 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9012 if test "${ac_cv_func_alloca_works+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 cat >conftest.
$ac_ext <<_ACEOF
9018 cat confdefs.h
>>conftest.
$ac_ext
9019 cat >>conftest.
$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9022 # define alloca __builtin_alloca
9025 # include <malloc.h>
9026 # define alloca _alloca
9029 # include <alloca.h>
9034 # ifndef alloca /* predefined by HP cc +Olibcalls */
9045 char *p = (char *) alloca (1);
9050 rm -f conftest.
$ac_objext conftest
$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9054 grep -v '^ *+' conftest.er1
>conftest.err
9056 cat conftest.err
>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try
='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try
='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_func_alloca_works
=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.
$ac_ext >&5
9077 ac_cv_func_alloca_works
=no
9079 rm -f conftest.err conftest.
$ac_objext \
9080 conftest
$ac_exeext conftest.
$ac_ext
9082 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9083 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9085 if test $ac_cv_func_alloca_works = yes; then
9087 cat >>confdefs.h
<<\_ACEOF
9088 #define HAVE_ALLOCA 1
9092 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9093 # that cause trouble. Some versions do not even contain alloca or
9094 # contain a buggy version. If you still want to use their alloca,
9095 # use ar to extract alloca.o from them instead of compiling alloca.c.
9097 ALLOCA
=alloca.
$ac_objext
9099 cat >>confdefs.h
<<\_ACEOF
9104 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9105 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9106 if test "${ac_cv_os_cray+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 cat >conftest.
$ac_ext <<_ACEOF
9112 cat confdefs.h
>>conftest.
$ac_ext
9113 cat >>conftest.
$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 #if defined(CRAY) && ! defined(CRAY2)
9122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9123 $EGREP "webecray" >/dev
/null
2>&1; then
9131 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9132 echo "${ECHO_T}$ac_cv_os_cray" >&6
9133 if test $ac_cv_os_cray = yes; then
9134 for ac_func
in _getb67 GETB67 getb67
; do
9135 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9136 echo "$as_me:$LINENO: checking for $ac_func" >&5
9137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9138 if eval "test \"\${$as_ac_var+set}\" = set"; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 cat >conftest.
$ac_ext <<_ACEOF
9144 cat confdefs.h
>>conftest.
$ac_ext
9145 cat >>conftest.
$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9149 #define $ac_func innocuous_$ac_func
9151 /* System header to define __stub macros and hopefully few prototypes,
9152 which can conflict with char $ac_func (); below.
9153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9154 <limits.h> exists even on freestanding compilers. */
9157 # include <limits.h>
9159 # include <assert.h>
9164 /* Override any gcc2 internal prototype to avoid an error. */
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9172 /* The GNU C library defines this for functions which it implements
9173 to always fail with ENOSYS. Some functions are actually named
9174 something starting with __ and the normal name is an alias. */
9175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9178 char (*f) () = $ac_func;
9187 return f != $ac_func;
9192 rm -f conftest.
$ac_objext conftest
$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1
>conftest.err
9198 cat conftest.err
>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try
='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try
='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 eval "$as_ac_var=yes"
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.
$ac_ext >&5
9219 eval "$as_ac_var=no"
9221 rm -f conftest.err conftest.
$ac_objext \
9222 conftest
$ac_exeext conftest.
$ac_ext
9224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9226 if test `eval echo '${'$as_ac_var'}'` = yes; then
9228 cat >>confdefs.h
<<_ACEOF
9229 #define CRAY_STACKSEG_END $ac_func
9238 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9239 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9240 if test "${ac_cv_c_stack_direction+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 if test "$cross_compiling" = yes; then
9244 ac_cv_c_stack_direction
=0
9246 cat >conftest.
$ac_ext <<_ACEOF
9249 cat confdefs.h
>>conftest.
$ac_ext
9250 cat >>conftest.
$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9253 find_stack_direction ()
9255 static char *addr = 0;
9260 return find_stack_direction ();
9263 return (&dummy > addr) ? 1 : -1;
9269 exit (find_stack_direction () < 0);
9272 rm -f conftest
$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_c_stack_direction
=1
9285 echo "$as_me: program exited with status $ac_status" >&5
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.
$ac_ext >&5
9290 ac_cv_c_stack_direction
=-1
9292 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9295 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9296 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9298 cat >>confdefs.h
<<_ACEOF
9299 #define STACK_DIRECTION $ac_cv_c_stack_direction
9311 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9312 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9313 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9314 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 cat >conftest.
$ac_ext <<_ACEOF
9321 cat confdefs.h
>>conftest.
$ac_ext
9322 cat >>conftest.
$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 #include <sys/types.h>
9336 rm -f conftest.
$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338 (eval $ac_compile) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1
>conftest.err
9342 cat conftest.err
>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try
='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try
='test -s conftest.$ac_objext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 eval "$as_ac_Header=yes"
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.
$ac_ext >&5
9363 eval "$as_ac_Header=no"
9365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9370 cat >>confdefs.h
<<_ACEOF
9371 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9374 ac_header_dirent
=$ac_hdr; break
9378 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9379 if test $ac_header_dirent = dirent.h
; then
9380 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9381 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9382 if test "${ac_cv_search_opendir+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 ac_func_search_save_LIBS
=$LIBS
9386 ac_cv_search_opendir
=no
9387 cat >conftest.
$ac_ext <<_ACEOF
9390 cat confdefs.h
>>conftest.
$ac_ext
9391 cat >>conftest.
$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9394 /* Override any gcc2 internal prototype to avoid an error. */
9398 /* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9409 rm -f conftest.
$ac_objext conftest
$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>conftest.er1
9413 grep -v '^ *+' conftest.er1
>conftest.err
9415 cat conftest.err
>&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try
='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try
='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_cv_search_opendir
="none required"
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.
$ac_ext >&5
9437 rm -f conftest.err conftest.
$ac_objext \
9438 conftest
$ac_exeext conftest.
$ac_ext
9439 if test "$ac_cv_search_opendir" = no
; then
9440 for ac_lib
in dir
; do
9441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9442 cat >conftest.
$ac_ext <<_ACEOF
9445 cat confdefs.h
>>conftest.
$ac_ext
9446 cat >>conftest.
$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any gcc2 internal prototype to avoid an error. */
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9464 rm -f conftest.
$ac_objext conftest
$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9468 grep -v '^ *+' conftest.er1
>conftest.err
9470 cat conftest.err
>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try
='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try
='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_search_opendir
="-l$ac_lib"
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.
$ac_ext >&5
9493 rm -f conftest.err conftest.
$ac_objext \
9494 conftest
$ac_exeext conftest.
$ac_ext
9497 LIBS
=$ac_func_search_save_LIBS
9499 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9500 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9501 if test "$ac_cv_search_opendir" != no
; then
9502 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9507 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9508 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9509 if test "${ac_cv_search_opendir+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 ac_func_search_save_LIBS
=$LIBS
9513 ac_cv_search_opendir
=no
9514 cat >conftest.
$ac_ext <<_ACEOF
9517 cat confdefs.h
>>conftest.
$ac_ext
9518 cat >>conftest.
$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9521 /* Override any gcc2 internal prototype to avoid an error. */
9525 /* We use char because int might match the return type of a gcc2
9526 builtin and then its argument prototype would still apply. */
9536 rm -f conftest.
$ac_objext conftest
$ac_exeext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538 (eval $ac_link) 2>conftest.er1
9540 grep -v '^ *+' conftest.er1
>conftest.err
9542 cat conftest.err
>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try
='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try
='test -s conftest$ac_exeext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_cv_search_opendir
="none required"
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.
$ac_ext >&5
9564 rm -f conftest.err conftest.
$ac_objext \
9565 conftest
$ac_exeext conftest.
$ac_ext
9566 if test "$ac_cv_search_opendir" = no
; then
9568 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9569 cat >conftest.
$ac_ext <<_ACEOF
9572 cat confdefs.h
>>conftest.
$ac_ext
9573 cat >>conftest.
$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9576 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9591 rm -f conftest.
$ac_objext conftest
$ac_exeext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>conftest.er1
9595 grep -v '^ *+' conftest.er1
>conftest.err
9597 cat conftest.err
>&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try
='test -z "$ac_c_werror_flag"
9601 || test ! -s conftest.err'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; } &&
9607 { ac_try
='test -s conftest$ac_exeext'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9613 ac_cv_search_opendir
="-l$ac_lib"
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.
$ac_ext >&5
9620 rm -f conftest.err conftest.
$ac_objext \
9621 conftest
$ac_exeext conftest.
$ac_ext
9624 LIBS
=$ac_func_search_save_LIBS
9626 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9627 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9628 if test "$ac_cv_search_opendir" != no
; then
9629 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9635 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9636 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9637 if test "${ac_cv_header_stdc+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 cat >conftest.
$ac_ext <<_ACEOF
9643 cat confdefs.h
>>conftest.
$ac_ext
9644 cat >>conftest.
$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9659 rm -f conftest.
$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661 (eval $ac_compile) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1
>conftest.err
9665 cat conftest.err
>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try
='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try
='test -s conftest.$ac_objext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_header_stdc
=yes
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.
$ac_ext >&5
9686 ac_cv_header_stdc
=no
9688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9690 if test $ac_cv_header_stdc = yes; then
9691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9692 cat >conftest.
$ac_ext <<_ACEOF
9695 cat confdefs.h
>>conftest.
$ac_ext
9696 cat >>conftest.
$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9702 $EGREP "memchr" >/dev
/null
2>&1; then
9705 ac_cv_header_stdc
=no
9711 if test $ac_cv_header_stdc = yes; then
9712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9713 cat >conftest.
$ac_ext <<_ACEOF
9716 cat confdefs.h
>>conftest.
$ac_ext
9717 cat >>conftest.
$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9723 $EGREP "free" >/dev
/null
2>&1; then
9726 ac_cv_header_stdc
=no
9732 if test $ac_cv_header_stdc = yes; then
9733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9734 if test "$cross_compiling" = yes; then
9737 cat >conftest.
$ac_ext <<_ACEOF
9740 cat confdefs.h
>>conftest.
$ac_ext
9741 cat >>conftest.
$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9744 #if ((' ' & 0x0FF) == 0x020)
9745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9748 # define ISLOWER(c) \
9749 (('a' <= (c) && (c) <= 'i') \
9750 || ('j' <= (c) && (c) <= 'r') \
9751 || ('s' <= (c) && (c) <= 'z'))
9752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9760 for (i = 0; i < 256; i++)
9761 if (XOR (islower (i), ISLOWER (i))
9762 || toupper (i) != TOUPPER (i))
9767 rm -f conftest
$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9780 echo "$as_me: program exited with status $ac_status" >&5
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.
$ac_ext >&5
9785 ac_cv_header_stdc
=no
9787 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9791 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9792 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9793 if test $ac_cv_header_stdc = yes; then
9795 cat >>confdefs.h
<<\_ACEOF
9796 #define STDC_HEADERS 1
9831 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
/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
9833 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835 echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9843 # Is the header compilable?
9844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9846 cat >conftest.
$ac_ext <<_ACEOF
9849 cat confdefs.h
>>conftest.
$ac_ext
9850 cat >>conftest.
$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 $ac_includes_default
9853 #include <$ac_header>
9855 rm -f conftest.
$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1
>conftest.err
9861 cat conftest.err
>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try
='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try
='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_header_compiler
=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.
$ac_ext >&5
9882 ac_header_compiler
=no
9884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6
9888 # Is the header present?
9889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <$ac_header>
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1
>conftest.err
9904 cat conftest.err
>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev
/null
; then
9907 if test -s conftest.err
; then
9908 ac_cpp_err
=$ac_c_preproc_warn_flag
9909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc
=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.
$ac_ext >&5
9922 ac_header_preproc
=no
9924 rm -f conftest.err conftest.
$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6
9928 # So? What about this header?
9929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9935 ac_header_preproc
=yes
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9952 ## ------------------------------ ##
9953 ## Report this to admin@amule.org ##
9954 ## ------------------------------ ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 echo "$as_me:$LINENO: checking for $ac_header" >&5
9961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 eval "$as_ac_Header=\$ac_header_preproc"
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9972 cat >>confdefs.h
<<_ACEOF
9973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9980 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9981 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9982 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 cat >conftest.
$ac_ext <<_ACEOF
9988 cat confdefs.h
>>conftest.
$ac_ext
9989 cat >>conftest.
$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <sys/types.h>
9992 #include <sys/wait.h>
9994 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9997 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10005 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10010 rm -f conftest.
$ac_objext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10012 (eval $ac_compile) 2>conftest.er1
10014 grep -v '^ *+' conftest.er1
>conftest.err
10016 cat conftest.err
>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try
='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
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); }; } &&
10026 { ac_try
='test -s conftest.$ac_objext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 ac_cv_header_sys_wait_h
=yes
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.
$ac_ext >&5
10037 ac_cv_header_sys_wait_h
=no
10039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10042 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10043 if test $ac_cv_header_sys_wait_h = yes; then
10045 cat >>confdefs.h
<<\_ACEOF
10046 #define HAVE_SYS_WAIT_H 1
10052 # Checks for typedefs, structures, and compiler characteristics.
10053 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10054 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10055 if test "${ac_cv_header_stdbool_h+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 cat >conftest.
$ac_ext <<_ACEOF
10061 cat confdefs.h
>>conftest.
$ac_ext
10062 cat >>conftest.
$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 #include <stdbool.h>
10067 # error bool is not defined
10070 # error false is not defined
10073 # error false is not 0
10076 # error true is not defined
10079 # error true is not 1
10081 #ifndef __bool_true_false_are_defined
10082 # error __bool_true_false_are_defined is not defined
10085 struct s { _Bool s: 1; _Bool t; } s;
10087 char a[true == 1 ? 1 : -1];
10088 char b[false == 0 ? 1 : -1];
10089 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10090 char d[(bool) -0.5 == true ? 1 : -1];
10092 char f[(_Bool) -0.0 == false ? 1 : -1];
10094 char h[sizeof (_Bool)];
10095 char i[sizeof s.t];
10100 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10105 rm -f conftest.
$ac_objext
10106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10107 (eval $ac_compile) 2>conftest.er1
10109 grep -v '^ *+' conftest.er1
>conftest.err
10111 cat conftest.err
>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try
='test -z "$ac_c_werror_flag"
10115 || test ! -s conftest.err'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try
='test -s conftest.$ac_objext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_header_stdbool_h
=yes
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.
$ac_ext >&5
10132 ac_cv_header_stdbool_h
=no
10134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10136 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10137 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10138 echo "$as_me:$LINENO: checking for _Bool" >&5
10139 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10140 if test "${ac_cv_type__Bool+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 cat >conftest.
$ac_ext <<_ACEOF
10146 cat confdefs.h
>>conftest.
$ac_ext
10147 cat >>conftest.
$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10149 $ac_includes_default
10155 if (sizeof (_Bool))
10161 rm -f conftest.
$ac_objext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163 (eval $ac_compile) 2>conftest.er1
10165 grep -v '^ *+' conftest.er1
>conftest.err
10167 cat conftest.err
>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try
='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try
='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_type__Bool
=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.
$ac_ext >&5
10188 ac_cv_type__Bool
=no
10190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10193 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10194 if test $ac_cv_type__Bool = yes; then
10196 cat >>confdefs.h
<<_ACEOF
10197 #define HAVE__BOOL 1
10203 if test $ac_cv_header_stdbool_h = yes; then
10205 cat >>confdefs.h
<<\_ACEOF
10206 #define HAVE_STDBOOL_H 1
10211 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10212 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10213 if test "${ac_cv_c_const+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 cat >conftest.
$ac_ext <<_ACEOF
10219 cat confdefs.h
>>conftest.
$ac_ext
10220 cat >>conftest.
$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10226 /* FIXME: Include the comments suggested by Paul. */
10227 #ifndef __cplusplus
10228 /* Ultrix mips cc rejects this. */
10229 typedef int charset[2];
10231 /* SunOS 4.1.1 cc rejects this. */
10232 char const *const *ccp;
10234 /* NEC SVR4.0.2 mips cc rejects this. */
10235 struct point {int x, y;};
10236 static struct point const zero = {0,0};
10237 /* AIX XL C 1.02.0.0 rejects this.
10238 It does not let you subtract one const X* pointer from another in
10239 an arm of an if-expression whose if-part is not a constant
10241 const char *g = "string";
10242 ccp = &g + (g ? g-g : 0);
10243 /* HPUX 7.0 cc rejects these. */
10246 ccp = (char const *const *) p;
10247 { /* SCO 3.2v4 cc rejects this. */
10249 char const *s = 0 ? (char *) 0 : (char const *) 0;
10253 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10254 int x[] = {25, 17};
10255 const int *foo = &x[0];
10258 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10259 typedef const int *iptr;
10263 { /* AIX XL C 1.02.0.0 rejects this saying
10264 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10265 struct s { int j; const int *ap[3]; };
10266 struct s *b; b->j = 5;
10268 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10269 const int foo = 10;
10277 rm -f conftest.
$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>conftest.er1
10281 grep -v '^ *+' conftest.er1
>conftest.err
10283 cat conftest.err
>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try
='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try
='test -s conftest.$ac_objext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.
$ac_ext >&5
10306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10309 echo "${ECHO_T}$ac_cv_c_const" >&6
10310 if test $ac_cv_c_const = no
; then
10312 cat >>confdefs.h
<<\_ACEOF
10318 echo "$as_me:$LINENO: checking for inline" >&5
10319 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10320 if test "${ac_cv_c_inline+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 for ac_kw
in inline __inline__ __inline
; do
10325 cat >conftest.
$ac_ext <<_ACEOF
10328 cat confdefs.h
>>conftest.
$ac_ext
10329 cat >>conftest.
$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 #ifndef __cplusplus
10333 static $ac_kw foo_t static_foo () {return 0; }
10334 $ac_kw foo_t foo () {return 0; }
10338 rm -f conftest.
$ac_objext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340 (eval $ac_compile) 2>conftest.er1
10342 grep -v '^ *+' conftest.er1
>conftest.err
10344 cat conftest.err
>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try
='test -z "$ac_c_werror_flag"
10348 || test ! -s conftest.err'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try
='test -s conftest.$ac_objext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_c_inline
=$ac_kw; break
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.
$ac_ext >&5
10366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10370 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10371 echo "${ECHO_T}$ac_cv_c_inline" >&6
10374 case $ac_cv_c_inline in
10377 case $ac_cv_c_inline in
10379 *) ac_val
=$ac_cv_c_inline;;
10381 cat >>confdefs.h
<<_ACEOF
10382 #ifndef __cplusplus
10383 #define inline $ac_val
10389 echo "$as_me:$LINENO: checking for mode_t" >&5
10390 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10391 if test "${ac_cv_type_mode_t+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 cat >conftest.
$ac_ext <<_ACEOF
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
10406 if (sizeof (mode_t))
10412 rm -f conftest.
$ac_objext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414 (eval $ac_compile) 2>conftest.er1
10416 grep -v '^ *+' conftest.er1
>conftest.err
10418 cat conftest.err
>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try
='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try
='test -s conftest.$ac_objext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_type_mode_t
=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.
$ac_ext >&5
10439 ac_cv_type_mode_t
=no
10441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10443 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10444 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10445 if test $ac_cv_type_mode_t = yes; then
10449 cat >>confdefs.h
<<_ACEOF
10455 echo "$as_me:$LINENO: checking for off_t" >&5
10456 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10457 if test "${ac_cv_type_off_t+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 cat >conftest.
$ac_ext <<_ACEOF
10463 cat confdefs.h
>>conftest.
$ac_ext
10464 cat >>conftest.
$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 $ac_includes_default
10472 if (sizeof (off_t))
10478 rm -f conftest.
$ac_objext
10479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10480 (eval $ac_compile) 2>conftest.er1
10482 grep -v '^ *+' conftest.er1
>conftest.err
10484 cat conftest.err
>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } &&
10487 { ac_try
='test -z "$ac_c_werror_flag"
10488 || test ! -s conftest.err'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; } &&
10494 { ac_try
='test -s conftest.$ac_objext'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 ac_cv_type_off_t
=yes
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.
$ac_ext >&5
10505 ac_cv_type_off_t
=no
10507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10509 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10510 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10511 if test $ac_cv_type_off_t = yes; then
10515 cat >>confdefs.h
<<_ACEOF
10521 echo "$as_me:$LINENO: checking for size_t" >&5
10522 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10523 if test "${ac_cv_type_size_t+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 cat >conftest.
$ac_ext <<_ACEOF
10529 cat confdefs.h
>>conftest.
$ac_ext
10530 cat >>conftest.
$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 $ac_includes_default
10538 if (sizeof (size_t))
10544 rm -f conftest.
$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>conftest.er1
10548 grep -v '^ *+' conftest.er1
>conftest.err
10550 cat conftest.err
>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try
='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try
='test -s conftest.$ac_objext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_cv_type_size_t
=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.
$ac_ext >&5
10571 ac_cv_type_size_t
=no
10573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10575 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10576 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10577 if test $ac_cv_type_size_t = yes; then
10581 cat >>confdefs.h
<<_ACEOF
10582 #define size_t unsigned
10587 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10588 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10589 if test "${ac_cv_header_time+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 cat >conftest.
$ac_ext <<_ACEOF
10595 cat confdefs.h
>>conftest.
$ac_ext
10596 cat >>conftest.
$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 #include <sys/types.h>
10599 #include <sys/time.h>
10605 if ((struct tm *) 0)
10611 rm -f conftest.
$ac_objext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>conftest.er1
10615 grep -v '^ *+' conftest.er1
>conftest.err
10617 cat conftest.err
>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try
='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try
='test -s conftest.$ac_objext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 ac_cv_header_time
=yes
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.
$ac_ext >&5
10638 ac_cv_header_time
=no
10640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10642 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10643 echo "${ECHO_T}$ac_cv_header_time" >&6
10644 if test $ac_cv_header_time = yes; then
10646 cat >>confdefs.h
<<\_ACEOF
10647 #define TIME_WITH_SYS_TIME 1
10652 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10653 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10654 if test "${ac_cv_struct_tm+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 cat >conftest.
$ac_ext <<_ACEOF
10660 cat confdefs.h
>>conftest.
$ac_ext
10661 cat >>conftest.
$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 #include <sys/types.h>
10669 struct tm *tp; tp->tm_sec;
10674 rm -f conftest.
$ac_objext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10676 (eval $ac_compile) 2>conftest.er1
10678 grep -v '^ *+' conftest.er1
>conftest.err
10680 cat conftest.err
>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try
='test -z "$ac_c_werror_flag"
10684 || test ! -s conftest.err'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; } &&
10690 { ac_try
='test -s conftest.$ac_objext'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_cv_struct_tm
=time.h
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.
$ac_ext >&5
10701 ac_cv_struct_tm
=sys
/time.h
10703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10705 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10706 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10707 if test $ac_cv_struct_tm = sys
/time.h
; then
10709 cat >>confdefs.h
<<\_ACEOF
10710 #define TM_IN_SYS_TIME 1
10715 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10716 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10717 if test "${ac_cv_type_uid_t+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 cat >conftest.
$ac_ext <<_ACEOF
10723 cat confdefs.h
>>conftest.
$ac_ext
10724 cat >>conftest.
$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #include <sys/types.h>
10729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10730 $EGREP "uid_t" >/dev
/null
2>&1; then
10731 ac_cv_type_uid_t
=yes
10733 ac_cv_type_uid_t
=no
10738 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10739 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10740 if test $ac_cv_type_uid_t = no
; then
10742 cat >>confdefs.h
<<\_ACEOF
10747 cat >>confdefs.h
<<\_ACEOF
10753 echo "$as_me:$LINENO: checking for working volatile" >&5
10754 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10755 if test "${ac_cv_c_volatile+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 cat >conftest.
$ac_ext <<_ACEOF
10761 cat confdefs.h
>>conftest.
$ac_ext
10762 cat >>conftest.
$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10775 rm -f conftest.
$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>conftest.er1
10779 grep -v '^ *+' conftest.er1
>conftest.err
10781 cat conftest.err
>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try
='test -z "$ac_c_werror_flag"
10785 || test ! -s conftest.err'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try
='test -s conftest.$ac_objext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_cv_c_volatile
=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.
$ac_ext >&5
10802 ac_cv_c_volatile
=no
10804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10806 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10807 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10808 if test $ac_cv_c_volatile = no
; then
10810 cat >>confdefs.h
<<\_ACEOF
10816 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10817 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10818 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 cat >conftest.
$ac_ext <<_ACEOF
10824 cat confdefs.h
>>conftest.
$ac_ext
10825 cat >>conftest.
$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10831 if ((ptrdiff_t *) 0)
10833 if (sizeof (ptrdiff_t))
10839 rm -f conftest.
$ac_objext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10841 (eval $ac_compile) 2>conftest.er1
10843 grep -v '^ *+' conftest.er1
>conftest.err
10845 cat conftest.err
>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try
='test -z "$ac_c_werror_flag"
10849 || test ! -s conftest.err'
10850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try
='test -s conftest.$ac_objext'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 ac_cv_type_ptrdiff_t
=yes
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.
$ac_ext >&5
10866 ac_cv_type_ptrdiff_t
=no
10868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10871 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10872 if test $ac_cv_type_ptrdiff_t = yes; then
10874 cat >>confdefs.h
<<_ACEOF
10875 #define HAVE_PTRDIFF_T 1
10882 # Checks for library functions.
10883 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10884 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10885 if test "${ac_cv_func_closedir_void+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 if test "$cross_compiling" = yes; then
10889 ac_cv_func_closedir_void
=yes
10891 cat >conftest.
$ac_ext <<_ACEOF
10894 cat confdefs.h
>>conftest.
$ac_ext
10895 cat >>conftest.
$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 $ac_includes_default
10898 #include <$ac_header_dirent>
10899 #ifndef __cplusplus
10906 exit (closedir (opendir (".")) != 0);
10911 rm -f conftest
$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_func_closedir_void
=no
10924 echo "$as_me: program exited with status $ac_status" >&5
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.
$ac_ext >&5
10928 ( exit $ac_status )
10929 ac_cv_func_closedir_void
=yes
10931 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10935 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10936 if test $ac_cv_func_closedir_void = yes; then
10938 cat >>confdefs.h
<<\_ACEOF
10939 #define CLOSEDIR_VOID 1
10946 if test -n "$ac_aux_dir"; then
10947 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
10949 if test -z "$MKINSTALLDIRS"; then
10950 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
10957 # Extract the first word of "msgfmt", so it can be a program name with args.
10958 set dummy msgfmt
; ac_word
=$2
10959 echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961 if test "${ac_cv_path_MSGFMT+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
10969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
10970 for ac_dir
in $PATH; do
10971 test -z "$ac_dir" && ac_dir
=.
10972 if test -f $ac_dir/$ac_word; then
10973 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
10974 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
10975 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
10981 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
10985 MSGFMT
="$ac_cv_path_MSGFMT"
10986 if test "$MSGFMT" != ":"; then
10987 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10988 echo "${ECHO_T}$MSGFMT" >&6
10990 echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10994 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10995 set dummy gmsgfmt
; ac_word
=$2
10996 echo "$as_me:$LINENO: checking for $ac_word" >&5
10997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10998 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
11006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11007 for as_dir
in $PATH
11010 test -z "$as_dir" && as_dir
=.
11011 for ac_exec_ext
in '' $ac_executable_extensions; do
11012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11013 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
11014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
11024 GMSGFMT
=$ac_cv_path_GMSGFMT
11026 if test -n "$GMSGFMT"; then
11027 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11028 echo "${ECHO_T}$GMSGFMT" >&6
11030 echo "$as_me:$LINENO: result: no" >&5
11031 echo "${ECHO_T}no" >&6
11035 # Extract the first word of "xgettext", so it can be a program name with args.
11036 set dummy xgettext
; ac_word
=$2
11037 echo "$as_me:$LINENO: checking for $ac_word" >&5
11038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11039 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 case "$XGETTEXT" in
11044 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
11047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11048 for ac_dir
in $PATH; do
11049 test -z "$ac_dir" && ac_dir
=.
11050 if test -f $ac_dir/$ac_word; then
11051 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
11052 (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
11053 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
11059 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
11063 XGETTEXT
="$ac_cv_path_XGETTEXT"
11064 if test "$XGETTEXT" != ":"; then
11065 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11066 echo "${ECHO_T}$XGETTEXT" >&6
11068 echo "$as_me:$LINENO: result: no" >&5
11069 echo "${ECHO_T}no" >&6
11074 # Extract the first word of "msgmerge", so it can be a program name with args.
11075 set dummy msgmerge
; ac_word
=$2
11076 echo "$as_me:$LINENO: checking for $ac_word" >&5
11077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11078 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 case "$MSGMERGE" in
11083 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
11086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11087 for ac_dir
in $PATH; do
11088 test -z "$ac_dir" && ac_dir
=.
11089 if test -f $ac_dir/$ac_word; then
11090 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
11091 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
11097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
11101 MSGMERGE
="$ac_cv_path_MSGMERGE"
11102 if test "$MSGMERGE" != ":"; then
11103 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11104 echo "${ECHO_T}$MSGMERGE" >&6
11106 echo "$as_me:$LINENO: result: no" >&5
11107 echo "${ECHO_T}no" >&6
11111 if test "$GMSGFMT" != ":"; then
11112 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
11113 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11116 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11117 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11118 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11123 if test "$XGETTEXT" != ":"; then
11124 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
11125 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11128 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11129 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11135 ac_config_commands
="$ac_config_commands default-1"
11138 echo "$as_me:$LINENO: checking for library containing strerror" >&5
11139 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
11140 if test "${ac_cv_search_strerror+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 ac_func_search_save_LIBS
=$LIBS
11144 ac_cv_search_strerror
=no
11145 cat >conftest.
$ac_ext <<_ACEOF
11148 cat confdefs.h
>>conftest.
$ac_ext
11149 cat >>conftest.
$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11152 /* Override any gcc2 internal prototype to avoid an error. */
11156 /* We use char because int might match the return type of a gcc2
11157 builtin and then its argument prototype would still apply. */
11167 rm -f conftest.
$ac_objext conftest
$ac_exeext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169 (eval $ac_link) 2>conftest.er1
11171 grep -v '^ *+' conftest.er1
>conftest.err
11173 cat conftest.err
>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try
='test -z "$ac_c_werror_flag"
11177 || test ! -s conftest.err'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try
='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_search_strerror
="none required"
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.
$ac_ext >&5
11195 rm -f conftest.err conftest.
$ac_objext \
11196 conftest
$ac_exeext conftest.
$ac_ext
11197 if test "$ac_cv_search_strerror" = no
; then
11198 for ac_lib
in cposix
; do
11199 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11200 cat >conftest.
$ac_ext <<_ACEOF
11203 cat confdefs.h
>>conftest.
$ac_ext
11204 cat >>conftest.
$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11207 /* Override any gcc2 internal prototype to avoid an error. */
11211 /* We use char because int might match the return type of a gcc2
11212 builtin and then its argument prototype would still apply. */
11222 rm -f conftest.
$ac_objext conftest
$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224 (eval $ac_link) 2>conftest.er1
11226 grep -v '^ *+' conftest.er1
>conftest.err
11228 cat conftest.err
>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try
='test -z "$ac_c_werror_flag"
11232 || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try
='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 ac_cv_search_strerror
="-l$ac_lib"
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.
$ac_ext >&5
11251 rm -f conftest.err conftest.
$ac_objext \
11252 conftest
$ac_exeext conftest.
$ac_ext
11255 LIBS
=$ac_func_search_save_LIBS
11257 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11258 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11259 if test "$ac_cv_search_strerror" != no
; then
11260 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
11266 for ac_header
in stdlib.h unistd.h
11268 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11270 echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11278 # Is the header compilable?
11279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11281 cat >conftest.
$ac_ext <<_ACEOF
11284 cat confdefs.h
>>conftest.
$ac_ext
11285 cat >>conftest.
$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 #include <$ac_header>
11290 rm -f conftest.
$ac_objext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292 (eval $ac_compile) 2>conftest.er1
11294 grep -v '^ *+' conftest.er1
>conftest.err
11296 cat conftest.err
>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try
='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try
='test -s conftest.$ac_objext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_header_compiler
=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.
$ac_ext >&5
11317 ac_header_compiler
=no
11319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11321 echo "${ECHO_T}$ac_header_compiler" >&6
11323 # Is the header present?
11324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11326 cat >conftest.
$ac_ext <<_ACEOF
11329 cat confdefs.h
>>conftest.
$ac_ext
11330 cat >>conftest.
$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 #include <$ac_header>
11334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11335 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11337 grep -v '^ *+' conftest.er1
>conftest.err
11339 cat conftest.err
>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } >/dev
/null
; then
11342 if test -s conftest.err
; then
11343 ac_cpp_err
=$ac_c_preproc_warn_flag
11344 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11351 if test -z "$ac_cpp_err"; then
11352 ac_header_preproc
=yes
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.
$ac_ext >&5
11357 ac_header_preproc
=no
11359 rm -f conftest.err conftest.
$ac_ext
11360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6
11363 # So? What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370 ac_header_preproc
=yes
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11387 ## ------------------------------ ##
11388 ## Report this to admin@amule.org ##
11389 ## ------------------------------ ##
11392 sed "s/^/$as_me: WARNING: /" >&2
11395 echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 eval "$as_ac_Header=\$ac_header_preproc"
11402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11407 cat >>confdefs.h
<<_ACEOF
11408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11416 for ac_func
in getpagesize
11418 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11419 echo "$as_me:$LINENO: checking for $ac_func" >&5
11420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11421 if eval "test \"\${$as_ac_var+set}\" = set"; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 cat >conftest.
$ac_ext <<_ACEOF
11427 cat confdefs.h
>>conftest.
$ac_ext
11428 cat >>conftest.
$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define $ac_func innocuous_$ac_func
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11440 # include <limits.h>
11442 # include <assert.h>
11447 /* Override any gcc2 internal prototype to avoid an error. */
11452 /* We use char because int might match the return type of a gcc2
11453 builtin and then its argument prototype would still apply. */
11455 /* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11461 char (*f) () = $ac_func;
11470 return f != $ac_func;
11475 rm -f conftest.
$ac_objext conftest
$ac_exeext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477 (eval $ac_link) 2>conftest.er1
11479 grep -v '^ *+' conftest.er1
>conftest.err
11481 cat conftest.err
>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try
='test -z "$ac_c_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try
='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 eval "$as_ac_var=yes"
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.
$ac_ext >&5
11502 eval "$as_ac_var=no"
11504 rm -f conftest.err conftest.
$ac_objext \
11505 conftest
$ac_exeext conftest.
$ac_ext
11507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11509 if test `eval echo '${'$as_ac_var'}'` = yes; then
11510 cat >>confdefs.h
<<_ACEOF
11511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11517 echo "$as_me:$LINENO: checking for working mmap" >&5
11518 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11519 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 if test "$cross_compiling" = yes; then
11523 ac_cv_func_mmap_fixed_mapped
=no
11525 cat >conftest.
$ac_ext <<_ACEOF
11528 cat confdefs.h
>>conftest.
$ac_ext
11529 cat >>conftest.
$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 $ac_includes_default
11532 /* malloc might have been renamed as rpl_malloc. */
11535 /* Thanks to Mike Haertel and Jim Avera for this test.
11536 Here is a matrix of mmap possibilities:
11537 mmap private not fixed
11538 mmap private fixed at somewhere currently unmapped
11539 mmap private fixed at somewhere already mapped
11540 mmap shared not fixed
11541 mmap shared fixed at somewhere currently unmapped
11542 mmap shared fixed at somewhere already mapped
11543 For private mappings, we should verify that changes cannot be read()
11544 back from the file, nor mmap's back from the file at a different
11545 address. (There have been systems where private was not correctly
11546 implemented like the infamous i386 svr4.0, and systems where the
11547 VM page cache was not coherent with the file system buffer cache
11548 like early versions of FreeBSD and possibly contemporary NetBSD.)
11549 For shared mappings, we should conversely verify that changes get
11550 propagated back to all the places they're supposed to be.
11552 Grep wants private fixed already mapped.
11553 The main things grep needs to know about mmap are:
11554 * does it exist and is it safe to write into the mmap'd area
11555 * how to use it (BSD variants) */
11558 #include <sys/mman.h>
11560 #if !STDC_HEADERS && !HAVE_STDLIB_H
11564 /* This mess was copied from the GNU getpagesize.h. */
11565 #if !HAVE_GETPAGESIZE
11566 /* Assume that all systems that can run configure have sys/param.h. */
11567 # if !HAVE_SYS_PARAM_H
11568 # define HAVE_SYS_PARAM_H 1
11571 # ifdef _SC_PAGESIZE
11572 # define getpagesize() sysconf(_SC_PAGESIZE)
11573 # else /* no _SC_PAGESIZE */
11574 # if HAVE_SYS_PARAM_H
11575 # include <sys/param.h>
11576 # ifdef EXEC_PAGESIZE
11577 # define getpagesize() EXEC_PAGESIZE
11578 # else /* no EXEC_PAGESIZE */
11580 # define getpagesize() NBPG * CLSIZE
11583 # endif /* no CLSIZE */
11584 # else /* no NBPG */
11586 # define getpagesize() NBPC
11587 # else /* no NBPC */
11589 # define getpagesize() PAGESIZE
11590 # endif /* PAGESIZE */
11591 # endif /* no NBPC */
11592 # endif /* no NBPG */
11593 # endif /* no EXEC_PAGESIZE */
11594 # else /* no HAVE_SYS_PARAM_H */
11595 # define getpagesize() 8192 /* punt totally */
11596 # endif /* no HAVE_SYS_PARAM_H */
11597 # endif /* no _SC_PAGESIZE */
11599 #endif /* no HAVE_GETPAGESIZE */
11604 char *data, *data2, *data3;
11608 pagesize = getpagesize ();
11610 /* First, make a file with some known garbage in it. */
11611 data = (char *) malloc (pagesize);
11614 for (i = 0; i < pagesize; ++i)
11615 *(data + i) = rand ();
11617 fd = creat ("conftest.mmap", 0600);
11620 if (write (fd, data, pagesize) != pagesize)
11624 /* Next, try to mmap the file at a fixed address which already has
11625 something else allocated at it. If we can, also make sure that
11626 we see the same garbage. */
11627 fd = open ("conftest.mmap", O_RDWR);
11630 data2 = (char *) malloc (2 * pagesize);
11633 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
11634 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11635 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11637 for (i = 0; i < pagesize; ++i)
11638 if (*(data + i) != *(data2 + i))
11641 /* Finally, make sure that changes to the mapped area do not
11642 percolate back to the file as seen by read(). (This is a bug on
11643 some variants of i386 svr4.0.) */
11644 for (i = 0; i < pagesize; ++i)
11645 *(data2 + i) = *(data2 + i) + 1;
11646 data3 = (char *) malloc (pagesize);
11649 if (read (fd, data3, pagesize) != pagesize)
11651 for (i = 0; i < pagesize; ++i)
11652 if (*(data + i) != *(data3 + i))
11658 rm -f conftest
$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_func_mmap_fixed_mapped
=yes
11671 echo "$as_me: program exited with status $ac_status" >&5
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.
$ac_ext >&5
11675 ( exit $ac_status )
11676 ac_cv_func_mmap_fixed_mapped
=no
11678 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11681 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11682 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11683 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11685 cat >>confdefs.h
<<\_ACEOF
11686 #define HAVE_MMAP 1
11690 rm -f conftest.mmap
11693 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11694 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11695 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 cat >conftest.
$ac_ext <<_ACEOF
11701 cat confdefs.h
>>conftest.
$ac_ext
11702 cat >>conftest.
$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11705 #include <features.h>
11706 #ifdef __GNU_LIBRARY__
11707 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11714 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
11715 ac_cv_gnu_library_2_1
=yes
11717 ac_cv_gnu_library_2_1
=no
11724 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11725 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11727 GLIBC21
="$ac_cv_gnu_library_2_1"
11732 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
11733 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
11734 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 if test "$cross_compiling" = yes; then
11740 # Guess based on the CPU.
11741 case "$host_cpu" in
11742 alpha
* | i3456786 | m68k | s390
*)
11743 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
11745 gt_cv_int_divbyzero_sigfpe
="guessing no";;
11749 cat >conftest.
$ac_ext <<_ACEOF
11752 cat confdefs.h
>>conftest.
$ac_ext
11753 cat >>conftest.
$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11756 #include <stdlib.h>
11757 #include <signal.h>
11761 sigfpe_handler (int sig)
11763 sigfpe_handler (sig) int sig;
11766 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11767 exit (sig != SIGFPE);
11777 signal (SIGFPE, sigfpe_handler);
11778 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11779 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11780 signal (SIGTRAP, sigfpe_handler);
11782 /* Linux/SPARC yields signal SIGILL. */
11783 #if defined (__sparc__) && defined (__linux__)
11784 signal (SIGILL, sigfpe_handler);
11793 rm -f conftest
$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 gt_cv_int_divbyzero_sigfpe
=yes
11806 echo "$as_me: program exited with status $ac_status" >&5
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.
$ac_ext >&5
11810 ( exit $ac_status )
11811 gt_cv_int_divbyzero_sigfpe
=no
11813 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11817 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
11818 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
11819 case "$gt_cv_int_divbyzero_sigfpe" in
11824 cat >>confdefs.h
<<_ACEOF
11825 #define INTDIV0_RAISES_SIGFPE $value
11830 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11831 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11832 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 cat >conftest.
$ac_ext <<_ACEOF
11838 cat confdefs.h
>>conftest.
$ac_ext
11839 cat >>conftest.
$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 #include <sys/types.h>
11842 #include <inttypes.h>
11846 uintmax_t i = (uintmax_t) -1;
11851 rm -f conftest.
$ac_objext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>conftest.er1
11855 grep -v '^ *+' conftest.er1
>conftest.err
11857 cat conftest.err
>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try
='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try
='test -s conftest.$ac_objext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 jm_ac_cv_header_inttypes_h
=yes
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.
$ac_ext >&5
11878 jm_ac_cv_header_inttypes_h
=no
11880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11882 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
11883 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
11884 if test $jm_ac_cv_header_inttypes_h = yes; then
11886 cat >>confdefs.h
<<_ACEOF
11887 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11893 echo "$as_me:$LINENO: checking for stdint.h" >&5
11894 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11895 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 cat >conftest.
$ac_ext <<_ACEOF
11901 cat confdefs.h
>>conftest.
$ac_ext
11902 cat >>conftest.
$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 #include <sys/types.h>
11905 #include <stdint.h>
11909 uintmax_t i = (uintmax_t) -1;
11914 rm -f conftest.
$ac_objext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11916 (eval $ac_compile) 2>conftest.er1
11918 grep -v '^ *+' conftest.er1
>conftest.err
11920 cat conftest.err
>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try
='test -z "$ac_c_werror_flag"
11924 || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try
='test -s conftest.$ac_objext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 jm_ac_cv_header_stdint_h
=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.
$ac_ext >&5
11941 jm_ac_cv_header_stdint_h
=no
11943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11945 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
11946 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
11947 if test $jm_ac_cv_header_stdint_h = yes; then
11949 cat >>confdefs.h
<<_ACEOF
11950 #define HAVE_STDINT_H_WITH_UINTMAX 1
11956 echo "$as_me:$LINENO: checking for unsigned long long" >&5
11957 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11958 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.
$ac_ext <<_ACEOF
11964 cat confdefs.h
>>conftest.
$ac_ext
11965 cat >>conftest.
$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 unsigned long long ull = 1; int i = 63;
11971 unsigned long long ullmax = (unsigned long long) -1;
11972 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11977 rm -f conftest.
$ac_objext conftest
$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>conftest.er1
11981 grep -v '^ *+' conftest.er1
>conftest.err
11983 cat conftest.err
>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try
='test -z "$ac_c_werror_flag"
11987 || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try
='test -s conftest$ac_exeext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_type_unsigned_long_long
=yes
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.
$ac_ext >&5
12004 ac_cv_type_unsigned_long_long
=no
12006 rm -f conftest.err conftest.
$ac_objext \
12007 conftest
$ac_exeext conftest.
$ac_ext
12009 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
12010 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
12011 if test $ac_cv_type_unsigned_long_long = yes; then
12013 cat >>confdefs.h
<<\_ACEOF
12014 #define HAVE_UNSIGNED_LONG_LONG 1
12022 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
12024 test $ac_cv_type_unsigned_long_long = yes \
12025 && ac_type
='unsigned long long' \
12026 || ac_type
='unsigned long'
12028 cat >>confdefs.h
<<_ACEOF
12029 #define uintmax_t $ac_type
12035 echo "$as_me:$LINENO: checking for inttypes.h" >&5
12036 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
12037 if test "${gt_cv_header_inttypes_h+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 cat >conftest.
$ac_ext <<_ACEOF
12044 cat confdefs.h
>>conftest.
$ac_ext
12045 cat >>conftest.
$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 #include <sys/types.h>
12048 #include <inttypes.h>
12057 rm -f conftest.
$ac_objext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12059 (eval $ac_compile) 2>conftest.er1
12061 grep -v '^ *+' conftest.er1
>conftest.err
12063 cat conftest.err
>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try
='test -z "$ac_c_werror_flag"
12067 || test ! -s conftest.err'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try
='test -s conftest.$ac_objext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 gt_cv_header_inttypes_h
=yes
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.
$ac_ext >&5
12084 gt_cv_header_inttypes_h
=no
12086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12089 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
12090 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
12091 if test $gt_cv_header_inttypes_h = yes; then
12093 cat >>confdefs.h
<<_ACEOF
12094 #define HAVE_INTTYPES_H 1
12101 if test $gt_cv_header_inttypes_h = yes; then
12102 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
12103 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
12104 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 cat >conftest.
$ac_ext <<_ACEOF
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include <inttypes.h>
12127 rm -f conftest.
$ac_objext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12129 (eval $ac_compile) 2>conftest.er1
12131 grep -v '^ *+' conftest.er1
>conftest.err
12133 cat conftest.err
>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try
='test -z "$ac_c_werror_flag"
12137 || test ! -s conftest.err'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; } &&
12143 { ac_try
='test -s conftest.$ac_objext'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 gt_cv_inttypes_pri_broken
=no
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.
$ac_ext >&5
12154 gt_cv_inttypes_pri_broken
=yes
12156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12159 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
12160 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
12162 if test "$gt_cv_inttypes_pri_broken" = yes; then
12164 cat >>confdefs.h
<<_ACEOF
12165 #define PRI_MACROS_BROKEN 1
12171 if test "X$prefix" = "XNONE"; then
12172 acl_final_prefix
="$ac_default_prefix"
12174 acl_final_prefix
="$prefix"
12176 if test "X$exec_prefix" = "XNONE"; then
12177 acl_final_exec_prefix
='${prefix}'
12179 acl_final_exec_prefix
="$exec_prefix"
12181 acl_save_prefix
="$prefix"
12182 prefix
="$acl_final_prefix"
12183 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
12184 prefix
="$acl_save_prefix"
12187 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12188 if test "${with_gnu_ld+set}" = set; then
12189 withval
="$with_gnu_ld"
12190 test "$withval" = no || with_gnu_ld
=yes
12195 if test "$GCC" = yes; then
12196 # Check if gcc -print-prog-name=ld gives a path.
12197 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12198 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
12201 # gcc leaves a trailing carriage return which upsets mingw
12202 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12204 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12207 # Accept absolute paths.
12208 [\\/]* |
[A-Za-z
]:[\\/]*)
12209 re_direlt
='/[^/][^/]*/\.\./'
12210 # Canonicalize the path of ld
12211 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
12212 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
12213 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
12215 test -z "$LD" && LD
="$ac_prog"
12218 # If it fails, then pretend we aren't using GCC.
12222 # If it is relative, then search for the first ld in PATH.
12223 with_gnu_ld
=unknown
12226 elif test "$with_gnu_ld" = yes; then
12227 echo "$as_me:$LINENO: checking for GNU ld" >&5
12228 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12230 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12231 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12233 if test "${acl_cv_path_LD+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 if test -z "$LD"; then
12237 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12238 for ac_dir
in $PATH; do
12239 test -z "$ac_dir" && ac_dir
=.
12240 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12241 acl_cv_path_LD
="$ac_dir/$ac_prog"
12242 # Check to see if the program is GNU ld. I'd rather use --version,
12243 # but apparently some GNU ld's only accept -v.
12244 # Break only if it was the GNU/non-GNU ld that we prefer.
12245 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
12246 test "$with_gnu_ld" != no
&& break
12248 test "$with_gnu_ld" != yes && break
12254 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
12258 LD
="$acl_cv_path_LD"
12259 if test -n "$LD"; then
12260 echo "$as_me:$LINENO: result: $LD" >&5
12261 echo "${ECHO_T}$LD" >&6
12263 echo "$as_me:$LINENO: result: no" >&5
12264 echo "${ECHO_T}no" >&6
12266 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12267 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12268 { (exit 1); exit 1; }; }
12269 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12270 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12271 if test "${acl_cv_prog_gnu_ld+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12275 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
12276 acl_cv_prog_gnu_ld
=yes
12278 acl_cv_prog_gnu_ld
=no
12281 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12282 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
12283 with_gnu_ld
=$acl_cv_prog_gnu_ld
12287 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12288 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
12289 if test "${acl_cv_rpath+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
12294 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12296 rm -f .
/conftest.sh
12300 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12301 echo "${ECHO_T}$acl_cv_rpath" >&6
12303 libext
="$acl_cv_libext"
12304 shlibext
="$acl_cv_shlibext"
12305 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
12306 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
12307 hardcode_direct
="$acl_cv_hardcode_direct"
12308 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
12309 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
12310 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
12311 # Check whether --enable-rpath or --disable-rpath was given.
12312 if test "${enable_rpath+set}" = set; then
12313 enableval
="$enable_rpath"
12327 acl_save_prefix
="$prefix"
12328 prefix
="$acl_final_prefix"
12329 acl_save_exec_prefix
="$exec_prefix"
12330 exec_prefix
="$acl_final_exec_prefix"
12332 eval additional_includedir
=\"$includedir\"
12333 eval additional_libdir
=\"$libdir\"
12335 exec_prefix
="$acl_save_exec_prefix"
12336 prefix
="$acl_save_prefix"
12339 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12340 if test "${with_libiconv_prefix+set}" = set; then
12341 withval
="$with_libiconv_prefix"
12343 if test "X$withval" = "Xno"; then
12346 if test "X$withval" = "X"; then
12348 acl_save_prefix
="$prefix"
12349 prefix
="$acl_final_prefix"
12350 acl_save_exec_prefix
="$exec_prefix"
12351 exec_prefix
="$acl_final_exec_prefix"
12353 eval additional_includedir
=\"$includedir\"
12354 eval additional_libdir
=\"$libdir\"
12356 exec_prefix
="$acl_save_exec_prefix"
12357 prefix
="$acl_save_prefix"
12360 additional_includedir
="$withval/include"
12361 additional_libdir
="$withval/lib"
12371 names_already_handled
=
12372 names_next_round
='iconv '
12373 while test -n "$names_next_round"; do
12374 names_this_round
="$names_next_round"
12376 for name
in $names_this_round; do
12378 for n
in $names_already_handled; do
12379 if test "$n" = "$name"; then
12380 already_handled
=yes
12384 if test -z "$already_handled"; then
12385 names_already_handled
="$names_already_handled $name"
12386 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12387 eval value
=\"\
$HAVE_LIB$uppername\"
12388 if test -n "$value"; then
12389 if test "$value" = yes; then
12390 eval value
=\"\
$LIB$uppername\"
12391 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
12392 eval value
=\"\
$LTLIB$uppername\"
12393 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
12402 if test $use_additional = yes; then
12403 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12404 found_dir
="$additional_libdir"
12405 found_so
="$additional_libdir/lib$name.$shlibext"
12406 if test -f "$additional_libdir/lib$name.la"; then
12407 found_la
="$additional_libdir/lib$name.la"
12410 if test -f "$additional_libdir/lib$name.$libext"; then
12411 found_dir
="$additional_libdir"
12412 found_a
="$additional_libdir/lib$name.$libext"
12413 if test -f "$additional_libdir/lib$name.la"; then
12414 found_la
="$additional_libdir/lib$name.la"
12419 if test "X$found_dir" = "X"; then
12420 for x
in $LDFLAGS $LTLIBICONV; do
12422 acl_save_prefix
="$prefix"
12423 prefix
="$acl_final_prefix"
12424 acl_save_exec_prefix
="$exec_prefix"
12425 exec_prefix
="$acl_final_exec_prefix"
12427 exec_prefix
="$acl_save_exec_prefix"
12428 prefix
="$acl_save_prefix"
12432 dir
=`echo "X$x" | sed -e 's/^X-L//'`
12433 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12435 found_so
="$dir/lib$name.$shlibext"
12436 if test -f "$dir/lib$name.la"; then
12437 found_la
="$dir/lib$name.la"
12440 if test -f "$dir/lib$name.$libext"; then
12442 found_a
="$dir/lib$name.$libext"
12443 if test -f "$dir/lib$name.la"; then
12444 found_la
="$dir/lib$name.la"
12450 if test "X$found_dir" != "X"; then
12455 if test "X$found_dir" != "X"; then
12456 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12457 if test "X$found_so" != "X"; then
12458 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
12459 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12462 for x
in $ltrpathdirs; do
12463 if test "X$x" = "X$found_dir"; then
12468 if test -z "$haveit"; then
12469 ltrpathdirs
="$ltrpathdirs $found_dir"
12471 if test "$hardcode_direct" = yes; then
12472 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12474 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
12475 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12477 for x
in $rpathdirs; do
12478 if test "X$x" = "X$found_dir"; then
12483 if test -z "$haveit"; then
12484 rpathdirs
="$rpathdirs $found_dir"
12488 for x
in $LDFLAGS $LIBICONV; do
12490 acl_save_prefix
="$prefix"
12491 prefix
="$acl_final_prefix"
12492 acl_save_exec_prefix
="$exec_prefix"
12493 exec_prefix
="$acl_final_exec_prefix"
12495 exec_prefix
="$acl_save_exec_prefix"
12496 prefix
="$acl_save_prefix"
12498 if test "X$x" = "X-L$found_dir"; then
12503 if test -z "$haveit"; then
12504 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12506 if test "$hardcode_minus_L" != no
; then
12507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12509 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12515 if test "X$found_a" != "X"; then
12516 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
12518 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12521 additional_includedir
=
12522 case "$found_dir" in
12524 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12525 additional_includedir
="$basedir/include"
12528 if test "X$additional_includedir" != "X"; then
12529 if test "X$additional_includedir" != "X/usr/include"; then
12531 if test "X$additional_includedir" = "X/usr/local/include"; then
12532 if test -n "$GCC"; then
12534 linux
*) haveit
=yes;;
12538 if test -z "$haveit"; then
12539 for x
in $CPPFLAGS $INCICONV; do
12541 acl_save_prefix
="$prefix"
12542 prefix
="$acl_final_prefix"
12543 acl_save_exec_prefix
="$exec_prefix"
12544 exec_prefix
="$acl_final_exec_prefix"
12546 exec_prefix
="$acl_save_exec_prefix"
12547 prefix
="$acl_save_prefix"
12549 if test "X$x" = "X-I$additional_includedir"; then
12554 if test -z "$haveit"; then
12555 if test -d "$additional_includedir"; then
12556 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12562 if test -n "$found_la"; then
12563 save_libdir
="$libdir"
12564 case "$found_la" in
12565 */* |
*\\*) .
"$found_la" ;;
12566 *) .
"./$found_la" ;;
12568 libdir
="$save_libdir"
12569 for dep
in $dependency_libs; do
12572 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12573 if test "X$additional_libdir" != "X/usr/lib"; then
12575 if test "X$additional_libdir" = "X/usr/local/lib"; then
12576 if test -n "$GCC"; then
12578 linux
*) haveit
=yes;;
12582 if test -z "$haveit"; then
12584 for x
in $LDFLAGS $LIBICONV; do
12586 acl_save_prefix
="$prefix"
12587 prefix
="$acl_final_prefix"
12588 acl_save_exec_prefix
="$exec_prefix"
12589 exec_prefix
="$acl_final_exec_prefix"
12591 exec_prefix
="$acl_save_exec_prefix"
12592 prefix
="$acl_save_prefix"
12594 if test "X$x" = "X-L$additional_libdir"; then
12599 if test -z "$haveit"; then
12600 if test -d "$additional_libdir"; then
12601 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12605 for x
in $LDFLAGS $LTLIBICONV; do
12607 acl_save_prefix
="$prefix"
12608 prefix
="$acl_final_prefix"
12609 acl_save_exec_prefix
="$exec_prefix"
12610 exec_prefix
="$acl_final_exec_prefix"
12612 exec_prefix
="$acl_save_exec_prefix"
12613 prefix
="$acl_save_prefix"
12615 if test "X$x" = "X-L$additional_libdir"; then
12620 if test -z "$haveit"; then
12621 if test -d "$additional_libdir"; then
12622 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12629 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12630 if test "$enable_rpath" != no
; then
12632 for x
in $rpathdirs; do
12633 if test "X$x" = "X$dir"; then
12638 if test -z "$haveit"; then
12639 rpathdirs
="$rpathdirs $dir"
12642 for x
in $ltrpathdirs; do
12643 if test "X$x" = "X$dir"; then
12648 if test -z "$haveit"; then
12649 ltrpathdirs
="$ltrpathdirs $dir"
12654 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12657 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12660 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
12661 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12667 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12668 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12674 if test "X$rpathdirs" != "X"; then
12675 if test -n "$hardcode_libdir_separator"; then
12677 for found_dir
in $rpathdirs; do
12678 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12680 acl_save_libdir
="$libdir"
12682 eval flag
=\"$hardcode_libdir_flag_spec\"
12683 libdir
="$acl_save_libdir"
12684 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12686 for found_dir
in $rpathdirs; do
12687 acl_save_libdir
="$libdir"
12688 libdir
="$found_dir"
12689 eval flag
=\"$hardcode_libdir_flag_spec\"
12690 libdir
="$acl_save_libdir"
12691 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12695 if test "X$ltrpathdirs" != "X"; then
12696 for found_dir
in $ltrpathdirs; do
12697 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12714 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12715 stdlib.h string.h unistd.h sys
/param.h
12717 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12719 echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12727 # Is the header compilable?
12728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12730 cat >conftest.
$ac_ext <<_ACEOF
12733 cat confdefs.h
>>conftest.
$ac_ext
12734 cat >>conftest.
$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 $ac_includes_default
12737 #include <$ac_header>
12739 rm -f conftest.
$ac_objext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>conftest.er1
12743 grep -v '^ *+' conftest.er1
>conftest.err
12745 cat conftest.err
>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try
='test -z "$ac_c_werror_flag"
12749 || test ! -s conftest.err'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try
='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_header_compiler
=yes
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.
$ac_ext >&5
12766 ac_header_compiler
=no
12768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12770 echo "${ECHO_T}$ac_header_compiler" >&6
12772 # Is the header present?
12773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12775 cat >conftest.
$ac_ext <<_ACEOF
12778 cat confdefs.h
>>conftest.
$ac_ext
12779 cat >>conftest.
$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 #include <$ac_header>
12783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12786 grep -v '^ *+' conftest.er1
>conftest.err
12788 cat conftest.err
>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } >/dev
/null
; then
12791 if test -s conftest.err
; then
12792 ac_cpp_err
=$ac_c_preproc_warn_flag
12793 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12800 if test -z "$ac_cpp_err"; then
12801 ac_header_preproc
=yes
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.
$ac_ext >&5
12806 ac_header_preproc
=no
12808 rm -f conftest.err conftest.
$ac_ext
12809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12810 echo "${ECHO_T}$ac_header_preproc" >&6
12812 # So? What about this header?
12813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12819 ac_header_preproc
=yes
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12836 ## ------------------------------ ##
12837 ## Report this to admin@amule.org ##
12838 ## ------------------------------ ##
12841 sed "s/^/$as_me: WARNING: /" >&2
12844 echo "$as_me:$LINENO: checking for $ac_header" >&5
12845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 eval "$as_ac_Header=\$ac_header_preproc"
12851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12856 cat >>confdefs.h
<<_ACEOF
12857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12885 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12886 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12887 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12889 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12890 echo "$as_me:$LINENO: checking for $ac_func" >&5
12891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12892 if eval "test \"\${$as_ac_var+set}\" = set"; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 cat >conftest.
$ac_ext <<_ACEOF
12898 cat confdefs.h
>>conftest.
$ac_ext
12899 cat >>conftest.
$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12903 #define $ac_func innocuous_$ac_func
12905 /* System header to define __stub macros and hopefully few prototypes,
12906 which can conflict with char $ac_func (); below.
12907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12908 <limits.h> exists even on freestanding compilers. */
12911 # include <limits.h>
12913 # include <assert.h>
12918 /* Override any gcc2 internal prototype to avoid an error. */
12923 /* We use char because int might match the return type of a gcc2
12924 builtin and then its argument prototype would still apply. */
12926 /* The GNU C library defines this for functions which it implements
12927 to always fail with ENOSYS. Some functions are actually named
12928 something starting with __ and the normal name is an alias. */
12929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12932 char (*f) () = $ac_func;
12941 return f != $ac_func;
12946 rm -f conftest.
$ac_objext conftest
$ac_exeext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948 (eval $ac_link) 2>conftest.er1
12950 grep -v '^ *+' conftest.er1
>conftest.err
12952 cat conftest.err
>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try
='test -z "$ac_c_werror_flag"
12956 || test ! -s conftest.err'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try
='test -s conftest$ac_exeext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 eval "$as_ac_var=yes"
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.
$ac_ext >&5
12973 eval "$as_ac_var=no"
12975 rm -f conftest.err conftest.
$ac_objext \
12976 conftest
$ac_exeext conftest.
$ac_ext
12978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12980 if test `eval echo '${'$as_ac_var'}'` = yes; then
12981 cat >>confdefs.h
<<_ACEOF
12982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 am_save_CPPFLAGS
="$CPPFLAGS"
12996 for element
in $INCICONV; do
12998 for x
in $CPPFLAGS; do
13000 acl_save_prefix
="$prefix"
13001 prefix
="$acl_final_prefix"
13002 acl_save_exec_prefix
="$exec_prefix"
13003 exec_prefix
="$acl_final_exec_prefix"
13005 exec_prefix
="$acl_save_exec_prefix"
13006 prefix
="$acl_save_prefix"
13008 if test "X$x" = "X$element"; then
13013 if test -z "$haveit"; then
13014 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13019 echo "$as_me:$LINENO: checking for iconv" >&5
13020 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
13021 if test "${am_cv_func_iconv+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 am_cv_func_iconv
="no, consider installing GNU libiconv"
13027 cat >conftest.
$ac_ext <<_ACEOF
13030 cat confdefs.h
>>conftest.
$ac_ext
13031 cat >>conftest.
$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 #include <stdlib.h>
13038 iconv_t cd = iconv_open("","");
13039 iconv(cd,NULL,NULL,NULL,NULL);
13045 rm -f conftest.
$ac_objext conftest
$ac_exeext
13046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13047 (eval $ac_link) 2>conftest.er1
13049 grep -v '^ *+' conftest.er1
>conftest.err
13051 cat conftest.err
>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
13054 { ac_try
='test -z "$ac_c_werror_flag"
13055 || test ! -s conftest.err'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try
='test -s conftest$ac_exeext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 am_cv_func_iconv
=yes
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.
$ac_ext >&5
13073 rm -f conftest.err conftest.
$ac_objext \
13074 conftest
$ac_exeext conftest.
$ac_ext
13075 if test "$am_cv_func_iconv" != yes; then
13076 am_save_LIBS
="$LIBS"
13077 LIBS
="$LIBS $LIBICONV"
13078 cat >conftest.
$ac_ext <<_ACEOF
13081 cat confdefs.h
>>conftest.
$ac_ext
13082 cat >>conftest.
$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 #include <stdlib.h>
13089 iconv_t cd = iconv_open("","");
13090 iconv(cd,NULL,NULL,NULL,NULL);
13096 rm -f conftest.
$ac_objext conftest
$ac_exeext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13098 (eval $ac_link) 2>conftest.er1
13100 grep -v '^ *+' conftest.er1
>conftest.err
13102 cat conftest.err
>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try
='test -z "$ac_c_werror_flag"
13106 || test ! -s conftest.err'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try
='test -s conftest$ac_exeext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 am_cv_lib_iconv
=yes
13119 am_cv_func_iconv
=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.
$ac_ext >&5
13125 rm -f conftest.err conftest.
$ac_objext \
13126 conftest
$ac_exeext conftest.
$ac_ext
13127 LIBS
="$am_save_LIBS"
13131 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13132 echo "${ECHO_T}$am_cv_func_iconv" >&6
13133 if test "$am_cv_func_iconv" = yes; then
13135 cat >>confdefs.h
<<\_ACEOF
13136 #define HAVE_ICONV 1
13140 if test "$am_cv_lib_iconv" = yes; then
13141 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13142 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
13143 echo "$as_me:$LINENO: result: $LIBICONV" >&5
13144 echo "${ECHO_T}$LIBICONV" >&6
13146 CPPFLAGS
="$am_save_CPPFLAGS"
13153 if test "$am_cv_func_iconv" = yes; then
13154 echo "$as_me:$LINENO: checking for iconv declaration" >&5
13155 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13156 if test "${am_cv_proto_iconv+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 cat >conftest.
$ac_ext <<_ACEOF
13163 cat confdefs.h
>>conftest.
$ac_ext
13164 cat >>conftest.
$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13167 #include <stdlib.h>
13173 #if defined(__STDC__) || defined(__cplusplus)
13174 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13187 rm -f conftest.
$ac_objext
13188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189 (eval $ac_compile) 2>conftest.er1
13191 grep -v '^ *+' conftest.er1
>conftest.err
13193 cat conftest.err
>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try
='test -z "$ac_c_werror_flag"
13197 || test ! -s conftest.err'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try
='test -s conftest.$ac_objext'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 am_cv_proto_iconv_arg1
=""
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.
$ac_ext >&5
13214 am_cv_proto_iconv_arg1
="const"
13216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13217 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);"
13220 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13221 echo "$as_me:$LINENO: result: ${ac_t:-
13222 }$am_cv_proto_iconv" >&5
13223 echo "${ECHO_T}${ac_t:-
13224 }$am_cv_proto_iconv" >&6
13226 cat >>confdefs.h
<<_ACEOF
13227 #define ICONV_CONST $am_cv_proto_iconv_arg1
13233 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13234 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13235 if test "${am_cv_langinfo_codeset+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 cat >conftest.
$ac_ext <<_ACEOF
13241 cat confdefs.h
>>conftest.
$ac_ext
13242 cat >>conftest.
$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 #include <langinfo.h>
13248 char* cs = nl_langinfo(CODESET);
13253 rm -f conftest.
$ac_objext conftest
$ac_exeext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255 (eval $ac_link) 2>conftest.er1
13257 grep -v '^ *+' conftest.er1
>conftest.err
13259 cat conftest.err
>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try
='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try
='test -s conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 am_cv_langinfo_codeset
=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.
$ac_ext >&5
13280 am_cv_langinfo_codeset
=no
13282 rm -f conftest.err conftest.
$ac_objext \
13283 conftest
$ac_exeext conftest.
$ac_ext
13286 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13287 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13288 if test $am_cv_langinfo_codeset = yes; then
13290 cat >>confdefs.h
<<\_ACEOF
13291 #define HAVE_LANGINFO_CODESET 1
13296 if test $ac_cv_header_locale_h = yes; then
13298 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13299 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13300 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 cat >conftest.
$ac_ext <<_ACEOF
13306 cat confdefs.h
>>conftest.
$ac_ext
13307 cat >>conftest.
$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 #include <locale.h>
13318 rm -f conftest.
$ac_objext conftest
$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>conftest.er1
13322 grep -v '^ *+' conftest.er1
>conftest.err
13324 cat conftest.err
>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try
='test -z "$ac_c_werror_flag"
13328 || test ! -s conftest.err'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try
='test -s conftest$ac_exeext'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 am_cv_val_LC_MESSAGES
=yes
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.
$ac_ext >&5
13345 am_cv_val_LC_MESSAGES
=no
13347 rm -f conftest.err conftest.
$ac_objext \
13348 conftest
$ac_exeext conftest.
$ac_ext
13350 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13351 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13352 if test $am_cv_val_LC_MESSAGES = yes; then
13354 cat >>confdefs.h
<<\_ACEOF
13355 #define HAVE_LC_MESSAGES 1
13362 for ac_prog
in bison
13364 # Extract the first word of "$ac_prog", so it can be a program name with args.
13365 set dummy
$ac_prog; ac_word
=$2
13366 echo "$as_me:$LINENO: checking for $ac_word" >&5
13367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13368 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 if test -n "$INTLBISON"; then
13372 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
13374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13375 for as_dir
in $PATH
13378 test -z "$as_dir" && as_dir
=.
13379 for ac_exec_ext
in '' $ac_executable_extensions; do
13380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13381 ac_cv_prog_INTLBISON
="$ac_prog"
13382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13390 INTLBISON
=$ac_cv_prog_INTLBISON
13391 if test -n "$INTLBISON"; then
13392 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13393 echo "${ECHO_T}$INTLBISON" >&6
13395 echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6
13399 test -n "$INTLBISON" && break
13402 if test -z "$INTLBISON"; then
13405 echo "$as_me:$LINENO: checking version of bison" >&5
13406 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13407 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13408 case $ac_prog_version in
13409 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
13410 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
13411 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
13412 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
13414 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13415 echo "${ECHO_T}$ac_prog_version" >&6
13417 if test $ac_verc_fail = yes; then
13435 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13436 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13437 # Check whether --enable-nls or --disable-nls was given.
13438 if test "${enable_nls+set}" = set; then
13439 enableval
="$enable_nls"
13444 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13445 echo "${ECHO_T}$USE_NLS" >&6
13449 BUILD_INCLUDED_LIBINTL
=no
13450 USE_INCLUDED_LIBINTL
=no
13456 if test "$USE_NLS" = "yes"; then
13457 gt_use_preinstalled_gnugettext
=no
13459 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13460 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13462 # Check whether --with-included-gettext or --without-included-gettext was given.
13463 if test "${with_included_gettext+set}" = set; then
13464 withval
="$with_included_gettext"
13465 nls_cv_force_use_gnu_gettext
=$withval
13467 nls_cv_force_use_gnu_gettext
=no
13469 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13470 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13472 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
13473 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13480 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13481 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13482 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.
$ac_ext <<_ACEOF
13488 cat confdefs.h
>>conftest.
$ac_ext
13489 cat >>conftest.
$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 #include <libintl.h>
13492 extern int _nl_msg_cat_cntr;
13493 extern int *_nl_domain_bindings;
13497 bindtextdomain ("", "");
13498 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13503 rm -f conftest.
$ac_objext conftest
$ac_exeext
13504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13505 (eval $ac_link) 2>conftest.er1
13507 grep -v '^ *+' conftest.er1
>conftest.err
13509 cat conftest.err
>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try
='test -z "$ac_c_werror_flag"
13513 || test ! -s conftest.err'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } &&
13519 { ac_try
='test -s conftest$ac_exeext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 gt_cv_func_gnugettext1_libc
=yes
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.
$ac_ext >&5
13530 gt_cv_func_gnugettext1_libc
=no
13532 rm -f conftest.err conftest.
$ac_objext \
13533 conftest
$ac_exeext conftest.
$ac_ext
13535 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13536 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13538 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13544 acl_save_prefix
="$prefix"
13545 prefix
="$acl_final_prefix"
13546 acl_save_exec_prefix
="$exec_prefix"
13547 exec_prefix
="$acl_final_exec_prefix"
13549 eval additional_includedir
=\"$includedir\"
13550 eval additional_libdir
=\"$libdir\"
13552 exec_prefix
="$acl_save_exec_prefix"
13553 prefix
="$acl_save_prefix"
13556 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
13557 if test "${with_libintl_prefix+set}" = set; then
13558 withval
="$with_libintl_prefix"
13560 if test "X$withval" = "Xno"; then
13563 if test "X$withval" = "X"; then
13565 acl_save_prefix
="$prefix"
13566 prefix
="$acl_final_prefix"
13567 acl_save_exec_prefix
="$exec_prefix"
13568 exec_prefix
="$acl_final_exec_prefix"
13570 eval additional_includedir
=\"$includedir\"
13571 eval additional_libdir
=\"$libdir\"
13573 exec_prefix
="$acl_save_exec_prefix"
13574 prefix
="$acl_save_prefix"
13577 additional_includedir
="$withval/include"
13578 additional_libdir
="$withval/lib"
13588 names_already_handled
=
13589 names_next_round
='intl '
13590 while test -n "$names_next_round"; do
13591 names_this_round
="$names_next_round"
13593 for name
in $names_this_round; do
13595 for n
in $names_already_handled; do
13596 if test "$n" = "$name"; then
13597 already_handled
=yes
13601 if test -z "$already_handled"; then
13602 names_already_handled
="$names_already_handled $name"
13603 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13604 eval value
=\"\
$HAVE_LIB$uppername\"
13605 if test -n "$value"; then
13606 if test "$value" = yes; then
13607 eval value
=\"\
$LIB$uppername\"
13608 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
13609 eval value
=\"\
$LTLIB$uppername\"
13610 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
13619 if test $use_additional = yes; then
13620 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13621 found_dir
="$additional_libdir"
13622 found_so
="$additional_libdir/lib$name.$shlibext"
13623 if test -f "$additional_libdir/lib$name.la"; then
13624 found_la
="$additional_libdir/lib$name.la"
13627 if test -f "$additional_libdir/lib$name.$libext"; then
13628 found_dir
="$additional_libdir"
13629 found_a
="$additional_libdir/lib$name.$libext"
13630 if test -f "$additional_libdir/lib$name.la"; then
13631 found_la
="$additional_libdir/lib$name.la"
13636 if test "X$found_dir" = "X"; then
13637 for x
in $LDFLAGS $LTLIBINTL; do
13639 acl_save_prefix
="$prefix"
13640 prefix
="$acl_final_prefix"
13641 acl_save_exec_prefix
="$exec_prefix"
13642 exec_prefix
="$acl_final_exec_prefix"
13644 exec_prefix
="$acl_save_exec_prefix"
13645 prefix
="$acl_save_prefix"
13649 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13650 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13652 found_so
="$dir/lib$name.$shlibext"
13653 if test -f "$dir/lib$name.la"; then
13654 found_la
="$dir/lib$name.la"
13657 if test -f "$dir/lib$name.$libext"; then
13659 found_a
="$dir/lib$name.$libext"
13660 if test -f "$dir/lib$name.la"; then
13661 found_la
="$dir/lib$name.la"
13667 if test "X$found_dir" != "X"; then
13672 if test "X$found_dir" != "X"; then
13673 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13674 if test "X$found_so" != "X"; then
13675 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13676 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13679 for x
in $ltrpathdirs; do
13680 if test "X$x" = "X$found_dir"; then
13685 if test -z "$haveit"; then
13686 ltrpathdirs
="$ltrpathdirs $found_dir"
13688 if test "$hardcode_direct" = yes; then
13689 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13691 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13692 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13694 for x
in $rpathdirs; do
13695 if test "X$x" = "X$found_dir"; then
13700 if test -z "$haveit"; then
13701 rpathdirs
="$rpathdirs $found_dir"
13705 for x
in $LDFLAGS $LIBINTL; do
13707 acl_save_prefix
="$prefix"
13708 prefix
="$acl_final_prefix"
13709 acl_save_exec_prefix
="$exec_prefix"
13710 exec_prefix
="$acl_final_exec_prefix"
13712 exec_prefix
="$acl_save_exec_prefix"
13713 prefix
="$acl_save_prefix"
13715 if test "X$x" = "X-L$found_dir"; then
13720 if test -z "$haveit"; then
13721 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13723 if test "$hardcode_minus_L" != no
; then
13724 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13726 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13732 if test "X$found_a" != "X"; then
13733 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
13735 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13738 additional_includedir
=
13739 case "$found_dir" in
13741 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13742 additional_includedir
="$basedir/include"
13745 if test "X$additional_includedir" != "X"; then
13746 if test "X$additional_includedir" != "X/usr/include"; then
13748 if test "X$additional_includedir" = "X/usr/local/include"; then
13749 if test -n "$GCC"; then
13751 linux
*) haveit
=yes;;
13755 if test -z "$haveit"; then
13756 for x
in $CPPFLAGS $INCINTL; do
13758 acl_save_prefix
="$prefix"
13759 prefix
="$acl_final_prefix"
13760 acl_save_exec_prefix
="$exec_prefix"
13761 exec_prefix
="$acl_final_exec_prefix"
13763 exec_prefix
="$acl_save_exec_prefix"
13764 prefix
="$acl_save_prefix"
13766 if test "X$x" = "X-I$additional_includedir"; then
13771 if test -z "$haveit"; then
13772 if test -d "$additional_includedir"; then
13773 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13779 if test -n "$found_la"; then
13780 save_libdir
="$libdir"
13781 case "$found_la" in
13782 */* |
*\\*) .
"$found_la" ;;
13783 *) .
"./$found_la" ;;
13785 libdir
="$save_libdir"
13786 for dep
in $dependency_libs; do
13789 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13790 if test "X$additional_libdir" != "X/usr/lib"; then
13792 if test "X$additional_libdir" = "X/usr/local/lib"; then
13793 if test -n "$GCC"; then
13795 linux
*) haveit
=yes;;
13799 if test -z "$haveit"; then
13801 for x
in $LDFLAGS $LIBINTL; do
13803 acl_save_prefix
="$prefix"
13804 prefix
="$acl_final_prefix"
13805 acl_save_exec_prefix
="$exec_prefix"
13806 exec_prefix
="$acl_final_exec_prefix"
13808 exec_prefix
="$acl_save_exec_prefix"
13809 prefix
="$acl_save_prefix"
13811 if test "X$x" = "X-L$additional_libdir"; then
13816 if test -z "$haveit"; then
13817 if test -d "$additional_libdir"; then
13818 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13822 for x
in $LDFLAGS $LTLIBINTL; do
13824 acl_save_prefix
="$prefix"
13825 prefix
="$acl_final_prefix"
13826 acl_save_exec_prefix
="$exec_prefix"
13827 exec_prefix
="$acl_final_exec_prefix"
13829 exec_prefix
="$acl_save_exec_prefix"
13830 prefix
="$acl_save_prefix"
13832 if test "X$x" = "X-L$additional_libdir"; then
13837 if test -z "$haveit"; then
13838 if test -d "$additional_libdir"; then
13839 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13846 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13847 if test "$enable_rpath" != no
; then
13849 for x
in $rpathdirs; do
13850 if test "X$x" = "X$dir"; then
13855 if test -z "$haveit"; then
13856 rpathdirs
="$rpathdirs $dir"
13859 for x
in $ltrpathdirs; do
13860 if test "X$x" = "X$dir"; then
13865 if test -z "$haveit"; then
13866 ltrpathdirs
="$ltrpathdirs $dir"
13871 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13874 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13877 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
13878 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13884 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13885 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13891 if test "X$rpathdirs" != "X"; then
13892 if test -n "$hardcode_libdir_separator"; then
13894 for found_dir
in $rpathdirs; do
13895 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13897 acl_save_libdir
="$libdir"
13899 eval flag
=\"$hardcode_libdir_flag_spec\"
13900 libdir
="$acl_save_libdir"
13901 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13903 for found_dir
in $rpathdirs; do
13904 acl_save_libdir
="$libdir"
13905 libdir
="$found_dir"
13906 eval flag
=\"$hardcode_libdir_flag_spec\"
13907 libdir
="$acl_save_libdir"
13908 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13912 if test "X$ltrpathdirs" != "X"; then
13913 for found_dir
in $ltrpathdirs; do
13914 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13918 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13919 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13920 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 gt_save_CPPFLAGS
="$CPPFLAGS"
13924 CPPFLAGS
="$CPPFLAGS $INCINTL"
13925 gt_save_LIBS
="$LIBS"
13926 LIBS
="$LIBS $LIBINTL"
13927 cat >conftest.
$ac_ext <<_ACEOF
13930 cat confdefs.h
>>conftest.
$ac_ext
13931 cat >>conftest.
$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 #include <libintl.h>
13934 extern int _nl_msg_cat_cntr;
13939 const char *_nl_expand_alias ();
13943 bindtextdomain ("", "");
13944 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13949 rm -f conftest.
$ac_objext conftest
$ac_exeext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13951 (eval $ac_link) 2>conftest.er1
13953 grep -v '^ *+' conftest.er1
>conftest.err
13955 cat conftest.err
>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try
='test -z "$ac_c_werror_flag"
13959 || test ! -s conftest.err'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try
='test -s conftest$ac_exeext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 gt_cv_func_gnugettext1_libintl
=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.
$ac_ext >&5
13976 gt_cv_func_gnugettext1_libintl
=no
13978 rm -f conftest.err conftest.
$ac_objext \
13979 conftest
$ac_exeext conftest.
$ac_ext
13980 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13981 LIBS
="$LIBS $LIBICONV"
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 <libintl.h>
13989 extern int _nl_msg_cat_cntr;
13994 const char *_nl_expand_alias ();
13998 bindtextdomain ("", "");
13999 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14004 rm -f conftest.
$ac_objext conftest
$ac_exeext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14006 (eval $ac_link) 2>conftest.er1
14008 grep -v '^ *+' conftest.er1
>conftest.err
14010 cat conftest.err
>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try
='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try
='test -s conftest$ac_exeext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 LIBINTL
="$LIBINTL $LIBICONV"
14027 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14028 gt_cv_func_gnugettext1_libintl
=yes
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.
$ac_ext >&5
14035 rm -f conftest.err conftest.
$ac_objext \
14036 conftest
$ac_exeext conftest.
$ac_ext
14038 CPPFLAGS
="$gt_save_CPPFLAGS"
14039 LIBS
="$gt_save_LIBS"
14041 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14042 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14045 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14046 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14047 && test "$PACKAGE" != gettext; }; then
14048 gt_use_preinstalled_gnugettext
=yes
14056 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14057 nls_cv_use_gnu_gettext
=yes
14061 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14062 INTLOBJS
="\$(GETTOBJS)"
14063 BUILD_INCLUDED_LIBINTL
=yes
14064 USE_INCLUDED_LIBINTL
=yes
14065 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
14066 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14067 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14070 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14071 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14076 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14077 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14079 cat >>confdefs.h
<<\_ACEOF
14080 #define ENABLE_NLS 1
14088 if test "$USE_NLS" = "yes"; then
14090 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14091 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14092 echo "$as_me:$LINENO: checking how to link with libintl" >&5
14093 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
14094 echo "$as_me:$LINENO: result: $LIBINTL" >&5
14095 echo "${ECHO_T}$LIBINTL" >&6
14097 for element
in $INCINTL; do
14099 for x
in $CPPFLAGS; do
14101 acl_save_prefix
="$prefix"
14102 prefix
="$acl_final_prefix"
14103 acl_save_exec_prefix
="$exec_prefix"
14104 exec_prefix
="$acl_final_exec_prefix"
14106 exec_prefix
="$acl_save_exec_prefix"
14107 prefix
="$acl_save_prefix"
14109 if test "X$x" = "X$element"; then
14114 if test -z "$haveit"; then
14115 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14122 cat >>confdefs.h
<<\_ACEOF
14123 #define HAVE_GETTEXT 1
14127 cat >>confdefs.h
<<\_ACEOF
14128 #define HAVE_DCGETTEXT 1
14137 if test "$PACKAGE" = gettext; then
14138 BUILD_INCLUDED_LIBINTL
=yes
14146 nls_cv_header_intl
=
14147 nls_cv_header_libgt
=
14158 INTL_LIBTOOL_SUFFIX_PREFIX
=
14162 INTLLIBS
="$LIBINTL"
14169 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
14170 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
14171 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
14172 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 ac_check_lib_save_LIBS
=$LIBS
14177 cat >conftest.
$ac_ext <<_ACEOF
14180 cat confdefs.h
>>conftest.
$ac_ext
14181 cat >>conftest.
$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14184 /* Override any gcc2 internal prototype to avoid an error. */
14188 /* We use char because int might match the return type of a gcc2
14189 builtin and then its argument prototype would still apply. */
14199 rm -f conftest.
$ac_objext conftest
$ac_exeext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14201 (eval $ac_link) 2>conftest.er1
14203 grep -v '^ *+' conftest.er1
>conftest.err
14205 cat conftest.err
>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try
='test -z "$ac_c_werror_flag"
14209 || test ! -s conftest.err'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try
='test -s conftest$ac_exeext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 ac_cv_lib_sun_getmntent
=yes
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.
$ac_ext >&5
14226 ac_cv_lib_sun_getmntent
=no
14228 rm -f conftest.err conftest.
$ac_objext \
14229 conftest
$ac_exeext conftest.
$ac_ext
14230 LIBS
=$ac_check_lib_save_LIBS
14232 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
14233 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
14234 if test $ac_cv_lib_sun_getmntent = yes; then
14237 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
14238 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
14239 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 ac_check_lib_save_LIBS
=$LIBS
14244 cat >conftest.
$ac_ext <<_ACEOF
14247 cat confdefs.h
>>conftest.
$ac_ext
14248 cat >>conftest.
$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any gcc2 internal prototype to avoid an error. */
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14266 rm -f conftest.
$ac_objext conftest
$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>conftest.er1
14270 grep -v '^ *+' conftest.er1
>conftest.err
14272 cat conftest.err
>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try
='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try
='test -s conftest$ac_exeext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_cv_lib_seq_getmntent
=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.
$ac_ext >&5
14293 ac_cv_lib_seq_getmntent
=no
14295 rm -f conftest.err conftest.
$ac_objext \
14296 conftest
$ac_exeext conftest.
$ac_ext
14297 LIBS
=$ac_check_lib_save_LIBS
14299 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
14300 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
14301 if test $ac_cv_lib_seq_getmntent = yes; then
14304 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
14305 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
14306 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 ac_check_lib_save_LIBS
=$LIBS
14311 cat >conftest.
$ac_ext <<_ACEOF
14314 cat confdefs.h
>>conftest.
$ac_ext
14315 cat >>conftest.
$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14318 /* Override any gcc2 internal prototype to avoid an error. */
14322 /* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14333 rm -f conftest.
$ac_objext conftest
$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335 (eval $ac_link) 2>conftest.er1
14337 grep -v '^ *+' conftest.er1
>conftest.err
14339 cat conftest.err
>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try
='test -z "$ac_c_werror_flag"
14343 || test ! -s conftest.err'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; } &&
14349 { ac_try
='test -s conftest$ac_exeext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 ac_cv_lib_gen_getmntent
=yes
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.
$ac_ext >&5
14360 ac_cv_lib_gen_getmntent
=no
14362 rm -f conftest.err conftest.
$ac_objext \
14363 conftest
$ac_exeext conftest.
$ac_ext
14364 LIBS
=$ac_check_lib_save_LIBS
14366 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
14367 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
14368 if test $ac_cv_lib_gen_getmntent = yes; then
14377 for ac_func
in getmntent
14379 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14380 echo "$as_me:$LINENO: checking for $ac_func" >&5
14381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14382 if eval "test \"\${$as_ac_var+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 cat >conftest.
$ac_ext <<_ACEOF
14388 cat confdefs.h
>>conftest.
$ac_ext
14389 cat >>conftest.
$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14393 #define $ac_func innocuous_$ac_func
14395 /* System header to define __stub macros and hopefully few prototypes,
14396 which can conflict with char $ac_func (); below.
14397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14398 <limits.h> exists even on freestanding compilers. */
14401 # include <limits.h>
14403 # include <assert.h>
14408 /* Override any gcc2 internal prototype to avoid an error. */
14413 /* We use char because int might match the return type of a gcc2
14414 builtin and then its argument prototype would still apply. */
14416 /* The GNU C library defines this for functions which it implements
14417 to always fail with ENOSYS. Some functions are actually named
14418 something starting with __ and the normal name is an alias. */
14419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14422 char (*f) () = $ac_func;
14431 return f != $ac_func;
14436 rm -f conftest.
$ac_objext conftest
$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14440 grep -v '^ *+' conftest.er1
>conftest.err
14442 cat conftest.err
>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try
='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try
='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 eval "$as_ac_var=yes"
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.
$ac_ext >&5
14463 eval "$as_ac_var=no"
14465 rm -f conftest.err conftest.
$ac_objext \
14466 conftest
$ac_exeext conftest.
$ac_ext
14468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14470 if test `eval echo '${'$as_ac_var'}'` = yes; then
14471 cat >>confdefs.h
<<_ACEOF
14472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14479 if test $ac_cv_c_compiler_gnu = yes; then
14480 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
14481 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
14482 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 ac_pattern
="Autoconf.*'x'"
14486 cat >conftest.
$ac_ext <<_ACEOF
14489 cat confdefs.h
>>conftest.
$ac_ext
14490 cat >>conftest.
$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14496 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
14497 ac_cv_prog_gcc_traditional
=yes
14499 ac_cv_prog_gcc_traditional
=no
14504 if test $ac_cv_prog_gcc_traditional = no
; then
14505 cat >conftest.
$ac_ext <<_ACEOF
14508 cat confdefs.h
>>conftest.
$ac_ext
14509 cat >>conftest.
$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14511 #include <termio.h>
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
14516 ac_cv_prog_gcc_traditional
=yes
14522 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14523 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14524 if test $ac_cv_prog_gcc_traditional = yes; then
14525 CC
="$CC -traditional"
14529 echo "$as_me:$LINENO: checking for pid_t" >&5
14530 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14531 if test "${ac_cv_type_pid_t+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 cat >conftest.
$ac_ext <<_ACEOF
14537 cat confdefs.h
>>conftest.
$ac_ext
14538 cat >>conftest.
$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540 $ac_includes_default
14546 if (sizeof (pid_t))
14552 rm -f conftest.
$ac_objext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14554 (eval $ac_compile) 2>conftest.er1
14556 grep -v '^ *+' conftest.er1
>conftest.err
14558 cat conftest.err
>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try
='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try
='test -s conftest.$ac_objext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_type_pid_t
=yes
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.
$ac_ext >&5
14579 ac_cv_type_pid_t
=no
14581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14583 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14584 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14585 if test $ac_cv_type_pid_t = yes; then
14589 cat >>confdefs.h
<<_ACEOF
14597 for ac_header
in unistd.h vfork.h
14599 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14601 echo "$as_me:$LINENO: checking for $ac_header" >&5
14602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14609 # Is the header compilable?
14610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14612 cat >conftest.
$ac_ext <<_ACEOF
14615 cat confdefs.h
>>conftest.
$ac_ext
14616 cat >>conftest.
$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <$ac_header>
14621 rm -f conftest.
$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 (eval $ac_compile) 2>conftest.er1
14625 grep -v '^ *+' conftest.er1
>conftest.err
14627 cat conftest.err
>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try
='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try
='test -s conftest.$ac_objext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_header_compiler
=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.
$ac_ext >&5
14648 ac_header_compiler
=no
14650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14652 echo "${ECHO_T}$ac_header_compiler" >&6
14654 # Is the header present?
14655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14657 cat >conftest.
$ac_ext <<_ACEOF
14660 cat confdefs.h
>>conftest.
$ac_ext
14661 cat >>conftest.
$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 #include <$ac_header>
14665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14668 grep -v '^ *+' conftest.er1
>conftest.err
14670 cat conftest.err
>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } >/dev
/null
; then
14673 if test -s conftest.err
; then
14674 ac_cpp_err
=$ac_c_preproc_warn_flag
14675 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14682 if test -z "$ac_cpp_err"; then
14683 ac_header_preproc
=yes
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.
$ac_ext >&5
14688 ac_header_preproc
=no
14690 rm -f conftest.err conftest.
$ac_ext
14691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14692 echo "${ECHO_T}$ac_header_preproc" >&6
14694 # So? What about this header?
14695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14701 ac_header_preproc
=yes
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14718 ## ------------------------------ ##
14719 ## Report this to admin@amule.org ##
14720 ## ------------------------------ ##
14723 sed "s/^/$as_me: WARNING: /" >&2
14726 echo "$as_me:$LINENO: checking for $ac_header" >&5
14727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 eval "$as_ac_Header=\$ac_header_preproc"
14733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14738 cat >>confdefs.h
<<_ACEOF
14739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14748 for ac_func
in fork vfork
14750 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14751 echo "$as_me:$LINENO: checking for $ac_func" >&5
14752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14753 if eval "test \"\${$as_ac_var+set}\" = set"; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 cat >conftest.
$ac_ext <<_ACEOF
14759 cat confdefs.h
>>conftest.
$ac_ext
14760 cat >>conftest.
$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14764 #define $ac_func innocuous_$ac_func
14766 /* System header to define __stub macros and hopefully few prototypes,
14767 which can conflict with char $ac_func (); below.
14768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14769 <limits.h> exists even on freestanding compilers. */
14772 # include <limits.h>
14774 # include <assert.h>
14779 /* Override any gcc2 internal prototype to avoid an error. */
14784 /* We use char because int might match the return type of a gcc2
14785 builtin and then its argument prototype would still apply. */
14787 /* The GNU C library defines this for functions which it implements
14788 to always fail with ENOSYS. Some functions are actually named
14789 something starting with __ and the normal name is an alias. */
14790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14793 char (*f) () = $ac_func;
14802 return f != $ac_func;
14807 rm -f conftest.
$ac_objext conftest
$ac_exeext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14809 (eval $ac_link) 2>conftest.er1
14811 grep -v '^ *+' conftest.er1
>conftest.err
14813 cat conftest.err
>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } &&
14816 { ac_try
='test -z "$ac_c_werror_flag"
14817 || test ! -s conftest.err'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try
='test -s conftest$ac_exeext'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }; then
14829 eval "$as_ac_var=yes"
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.
$ac_ext >&5
14834 eval "$as_ac_var=no"
14836 rm -f conftest.err conftest.
$ac_objext \
14837 conftest
$ac_exeext conftest.
$ac_ext
14839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14841 if test `eval echo '${'$as_ac_var'}'` = yes; then
14842 cat >>confdefs.h
<<_ACEOF
14843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14849 if test "x$ac_cv_func_fork" = xyes
; then
14850 echo "$as_me:$LINENO: checking for working fork" >&5
14851 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14852 if test "${ac_cv_func_fork_works+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 if test "$cross_compiling" = yes; then
14856 ac_cv_func_fork_works
=cross
14858 cat >conftest.
$ac_ext <<_ACEOF
14859 /* By Ruediger Kuhlmann. */
14860 #include <sys/types.h>
14862 # include <unistd.h>
14864 /* Some systems only have a dummy stub for fork() */
14872 rm -f conftest
$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14883 ac_cv_func_fork_works
=yes
14885 echo "$as_me: program exited with status $ac_status" >&5
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.
$ac_ext >&5
14889 ( exit $ac_status )
14890 ac_cv_func_fork_works
=no
14892 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14895 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14896 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14899 ac_cv_func_fork_works
=$ac_cv_func_fork
14901 if test "x$ac_cv_func_fork_works" = xcross
; then
14903 *-*-amigaos* |
*-*-msdosdjgpp*)
14904 # Override, as these systems have only a dummy fork() stub
14905 ac_cv_func_fork_works
=no
14908 ac_cv_func_fork_works
=yes
14911 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14912 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14914 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14915 if test "x$ac_cv_func_vfork" = xyes
; then
14916 echo "$as_me:$LINENO: checking for working vfork" >&5
14917 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14918 if test "${ac_cv_func_vfork_works+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 if test "$cross_compiling" = yes; then
14922 ac_cv_func_vfork_works
=cross
14924 cat >conftest.
$ac_ext <<_ACEOF
14927 cat confdefs.h
>>conftest.
$ac_ext
14928 cat >>conftest.
$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 /* Thanks to Paul Eggert for this test. */
14932 #include <stdlib.h>
14933 #include <sys/types.h>
14934 #include <sys/stat.h>
14935 #include <sys/wait.h>
14937 # include <unistd.h>
14940 # include <vfork.h>
14942 /* On some sparc systems, changes by the child to local and incoming
14943 argument registers are propagated back to the parent. The compiler
14944 is told about this with #include <vfork.h>, but some compilers
14945 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14946 static variable whose address is put into a register that is
14947 clobbered by the vfork. */
14950 sparc_address_test (int arg)
14952 sparc_address_test (arg) int arg;
14955 static pid_t child;
14973 pid_t parent = getpid ();
14976 sparc_address_test (0);
14981 /* Here is another test for sparc vfork register problems. This
14982 test uses lots of local variables, at least as many local
14983 variables as main has allocated so far including compiler
14984 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14985 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14986 reuse the register of parent for one of the local variables,
14987 since it will think that parent can't possibly be used any more
14988 in this routine. Assigning to the local variable will thus
14989 munge parent in the parent process. */
14991 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14992 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14993 /* Convince the compiler that p..p7 are live; otherwise, it might
14994 use the same hardware register for all 8 local variables. */
14995 if (p != p1 || p != p2 || p != p3 || p != p4
14996 || p != p5 || p != p6 || p != p7)
14999 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15000 from child file descriptors. If the child closes a descriptor
15001 before it execs or exits, this munges the parent's descriptor
15002 as well. Test for this by closing stdout in the child. */
15003 _exit(close(fileno(stdout)) != 0);
15008 while (wait(&status) != child)
15011 /* Was there some problem with vforking? */
15014 /* Did the child fail? (This shouldn't happen.) */
15017 /* Did the vfork/compiler bug occur? */
15018 || parent != getpid()
15020 /* Did the file descriptor bug occur? */
15021 || fstat(fileno(stdout), &st) != 0
15026 rm -f conftest
$ac_exeext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15028 (eval $ac_link) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 ac_cv_func_vfork_works
=yes
15039 echo "$as_me: program exited with status $ac_status" >&5
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.
$ac_ext >&5
15043 ( exit $ac_status )
15044 ac_cv_func_vfork_works
=no
15046 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15049 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15053 if test "x$ac_cv_func_fork_works" = xcross
; then
15054 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15055 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15056 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15059 if test "x$ac_cv_func_vfork_works" = xyes
; then
15061 cat >>confdefs.h
<<\_ACEOF
15062 #define HAVE_WORKING_VFORK 1
15067 cat >>confdefs.h
<<\_ACEOF
15072 if test "x$ac_cv_func_fork_works" = xyes
; then
15074 cat >>confdefs.h
<<\_ACEOF
15075 #define HAVE_WORKING_FORK 1
15080 if test x
$SYS != xwin32
; then
15081 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15082 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15083 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 rm -f conftest.sym conftest.
file
15087 echo >conftest.
file
15088 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
15089 if test "$cross_compiling" = yes; then
15090 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15092 cat >conftest.
$ac_ext <<_ACEOF
15095 cat confdefs.h
>>conftest.
$ac_ext
15096 cat >>conftest.
$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15103 /* Linux will dereference the symlink and fail.
15104 That is better in the sense that it means we will not
15105 have to compile and use the lstat wrapper. */
15106 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15111 rm -f conftest
$ac_exeext
15112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15113 (eval $ac_link) 2>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
15124 echo "$as_me: program exited with status $ac_status" >&5
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.
$ac_ext >&5
15128 ( exit $ac_status )
15129 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15131 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15134 # If the `ln -s' command failed, then we probably don't even
15135 # have an lstat function.
15136 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15138 rm -f conftest.sym conftest.
file
15141 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15142 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15144 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15146 cat >>confdefs.h
<<_ACEOF
15147 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15151 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
15153 "lstat.$ac_objext" | \
15154 *" lstat.$ac_objext" | \
15155 "lstat.$ac_objext "* | \
15156 *" lstat.$ac_objext "* ) ;;
15157 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
15162 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
15163 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
15164 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 if test "$cross_compiling" = yes; then
15168 ac_cv_func_lstat_empty_string_bug
=yes
15170 cat >conftest.
$ac_ext <<_ACEOF
15173 cat confdefs.h
>>conftest.
$ac_ext
15174 cat >>conftest.
$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 $ac_includes_default
15181 exit (lstat ("", &sbuf) ? 1 : 0);
15186 rm -f conftest
$ac_exeext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15188 (eval $ac_link) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 ac_cv_func_lstat_empty_string_bug
=yes
15199 echo "$as_me: program exited with status $ac_status" >&5
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.
$ac_ext >&5
15203 ( exit $ac_status )
15204 ac_cv_func_lstat_empty_string_bug
=no
15206 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15209 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
15210 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
15211 if test $ac_cv_func_lstat_empty_string_bug = yes; then
15213 "lstat.$ac_objext" | \
15214 *" lstat.$ac_objext" | \
15215 "lstat.$ac_objext "* | \
15216 *" lstat.$ac_objext "* ) ;;
15217 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
15221 cat >>confdefs.h
<<_ACEOF
15222 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
15227 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15228 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15229 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 rm -f conftest.sym conftest.
file
15233 echo >conftest.
file
15234 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
15235 if test "$cross_compiling" = yes; then
15236 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15238 cat >conftest.
$ac_ext <<_ACEOF
15241 cat confdefs.h
>>conftest.
$ac_ext
15242 cat >>conftest.
$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 $ac_includes_default
15249 /* Linux will dereference the symlink and fail.
15250 That is better in the sense that it means we will not
15251 have to compile and use the lstat wrapper. */
15252 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15257 rm -f conftest
$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
15270 echo "$as_me: program exited with status $ac_status" >&5
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.
$ac_ext >&5
15274 ( exit $ac_status )
15275 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15277 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15280 # If the `ln -s' command failed, then we probably don't even
15281 # have an lstat function.
15282 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15284 rm -f conftest.sym conftest.
file
15287 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15288 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15290 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15292 cat >>confdefs.h
<<_ACEOF
15293 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15297 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
15299 "lstat.$ac_objext" | \
15300 *" lstat.$ac_objext" | \
15301 "lstat.$ac_objext "* | \
15302 *" lstat.$ac_objext "* ) ;;
15303 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
15309 echo "$as_me:$LINENO: checking for working memcmp" >&5
15310 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
15311 if test "${ac_cv_func_memcmp_working+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 if test "$cross_compiling" = yes; then
15315 ac_cv_func_memcmp_working
=no
15317 cat >conftest.
$ac_ext <<_ACEOF
15320 cat confdefs.h
>>conftest.
$ac_ext
15321 cat >>conftest.
$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 $ac_includes_default
15328 /* Some versions of memcmp are not 8-bit clean. */
15329 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15330 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15333 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15334 or more and with at least one buffer not starting on a 4-byte boundary.
15335 William Lewis provided this test program. */
15340 for (i = 0; i < 4; i++)
15344 strcpy (a, "--------01111111");
15345 strcpy (b, "--------10000000");
15346 if (memcmp (a, b, 16) >= 0)
15356 rm -f conftest
$ac_exeext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15358 (eval $ac_link) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_cv_func_memcmp_working
=yes
15369 echo "$as_me: program exited with status $ac_status" >&5
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.
$ac_ext >&5
15373 ( exit $ac_status )
15374 ac_cv_func_memcmp_working
=no
15376 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15379 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15380 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
15381 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
15382 "memcmp.$ac_objext" | \
15383 *" memcmp.$ac_objext" | \
15384 "memcmp.$ac_objext "* | \
15385 *" memcmp.$ac_objext "* ) ;;
15386 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
15392 for ac_header
in stdlib.h unistd.h
15394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15396 echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15404 # Is the header compilable?
15405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15407 cat >conftest.
$ac_ext <<_ACEOF
15410 cat confdefs.h
>>conftest.
$ac_ext
15411 cat >>conftest.
$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15414 #include <$ac_header>
15416 rm -f conftest.
$ac_objext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15418 (eval $ac_compile) 2>conftest.er1
15420 grep -v '^ *+' conftest.er1
>conftest.err
15422 cat conftest.err
>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try
='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try
='test -s conftest.$ac_objext'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_header_compiler
=yes
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.
$ac_ext >&5
15443 ac_header_compiler
=no
15445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15447 echo "${ECHO_T}$ac_header_compiler" >&6
15449 # Is the header present?
15450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15451 echo $ECHO_N "checking $ac_header presence... $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. */
15458 #include <$ac_header>
15460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15463 grep -v '^ *+' conftest.er1
>conftest.err
15465 cat conftest.err
>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } >/dev
/null
; then
15468 if test -s conftest.err
; then
15469 ac_cpp_err
=$ac_c_preproc_warn_flag
15470 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15477 if test -z "$ac_cpp_err"; then
15478 ac_header_preproc
=yes
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.
$ac_ext >&5
15483 ac_header_preproc
=no
15485 rm -f conftest.err conftest.
$ac_ext
15486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15487 echo "${ECHO_T}$ac_header_preproc" >&6
15489 # So? What about this header?
15490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15496 ac_header_preproc
=yes
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15513 ## ------------------------------ ##
15514 ## Report this to admin@amule.org ##
15515 ## ------------------------------ ##
15518 sed "s/^/$as_me: WARNING: /" >&2
15521 echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 eval "$as_ac_Header=\$ac_header_preproc"
15528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15533 cat >>confdefs.h
<<_ACEOF
15534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15542 for ac_func
in getpagesize
15544 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15545 echo "$as_me:$LINENO: checking for $ac_func" >&5
15546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15547 if eval "test \"\${$as_ac_var+set}\" = set"; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 cat >conftest.
$ac_ext <<_ACEOF
15553 cat confdefs.h
>>conftest.
$ac_ext
15554 cat >>conftest.
$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15558 #define $ac_func innocuous_$ac_func
15560 /* System header to define __stub macros and hopefully few prototypes,
15561 which can conflict with char $ac_func (); below.
15562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15563 <limits.h> exists even on freestanding compilers. */
15566 # include <limits.h>
15568 # include <assert.h>
15573 /* Override any gcc2 internal prototype to avoid an error. */
15578 /* We use char because int might match the return type of a gcc2
15579 builtin and then its argument prototype would still apply. */
15581 /* The GNU C library defines this for functions which it implements
15582 to always fail with ENOSYS. Some functions are actually named
15583 something starting with __ and the normal name is an alias. */
15584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15587 char (*f) () = $ac_func;
15596 return f != $ac_func;
15601 rm -f conftest.
$ac_objext conftest
$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603 (eval $ac_link) 2>conftest.er1
15605 grep -v '^ *+' conftest.er1
>conftest.err
15607 cat conftest.err
>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try
='test -z "$ac_c_werror_flag"
15611 || test ! -s conftest.err'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; } &&
15617 { ac_try
='test -s conftest$ac_exeext'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 eval "$as_ac_var=yes"
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.
$ac_ext >&5
15628 eval "$as_ac_var=no"
15630 rm -f conftest.err conftest.
$ac_objext \
15631 conftest
$ac_exeext conftest.
$ac_ext
15633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15635 if test `eval echo '${'$as_ac_var'}'` = yes; then
15636 cat >>confdefs.h
<<_ACEOF
15637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15643 echo "$as_me:$LINENO: checking for working mmap" >&5
15644 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15645 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 if test "$cross_compiling" = yes; then
15649 ac_cv_func_mmap_fixed_mapped
=no
15651 cat >conftest.
$ac_ext <<_ACEOF
15654 cat confdefs.h
>>conftest.
$ac_ext
15655 cat >>conftest.
$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 $ac_includes_default
15658 /* malloc might have been renamed as rpl_malloc. */
15661 /* Thanks to Mike Haertel and Jim Avera for this test.
15662 Here is a matrix of mmap possibilities:
15663 mmap private not fixed
15664 mmap private fixed at somewhere currently unmapped
15665 mmap private fixed at somewhere already mapped
15666 mmap shared not fixed
15667 mmap shared fixed at somewhere currently unmapped
15668 mmap shared fixed at somewhere already mapped
15669 For private mappings, we should verify that changes cannot be read()
15670 back from the file, nor mmap's back from the file at a different
15671 address. (There have been systems where private was not correctly
15672 implemented like the infamous i386 svr4.0, and systems where the
15673 VM page cache was not coherent with the file system buffer cache
15674 like early versions of FreeBSD and possibly contemporary NetBSD.)
15675 For shared mappings, we should conversely verify that changes get
15676 propagated back to all the places they're supposed to be.
15678 Grep wants private fixed already mapped.
15679 The main things grep needs to know about mmap are:
15680 * does it exist and is it safe to write into the mmap'd area
15681 * how to use it (BSD variants) */
15684 #include <sys/mman.h>
15686 #if !STDC_HEADERS && !HAVE_STDLIB_H
15690 /* This mess was copied from the GNU getpagesize.h. */
15691 #if !HAVE_GETPAGESIZE
15692 /* Assume that all systems that can run configure have sys/param.h. */
15693 # if !HAVE_SYS_PARAM_H
15694 # define HAVE_SYS_PARAM_H 1
15697 # ifdef _SC_PAGESIZE
15698 # define getpagesize() sysconf(_SC_PAGESIZE)
15699 # else /* no _SC_PAGESIZE */
15700 # if HAVE_SYS_PARAM_H
15701 # include <sys/param.h>
15702 # ifdef EXEC_PAGESIZE
15703 # define getpagesize() EXEC_PAGESIZE
15704 # else /* no EXEC_PAGESIZE */
15706 # define getpagesize() NBPG * CLSIZE
15709 # endif /* no CLSIZE */
15710 # else /* no NBPG */
15712 # define getpagesize() NBPC
15713 # else /* no NBPC */
15715 # define getpagesize() PAGESIZE
15716 # endif /* PAGESIZE */
15717 # endif /* no NBPC */
15718 # endif /* no NBPG */
15719 # endif /* no EXEC_PAGESIZE */
15720 # else /* no HAVE_SYS_PARAM_H */
15721 # define getpagesize() 8192 /* punt totally */
15722 # endif /* no HAVE_SYS_PARAM_H */
15723 # endif /* no _SC_PAGESIZE */
15725 #endif /* no HAVE_GETPAGESIZE */
15730 char *data, *data2, *data3;
15734 pagesize = getpagesize ();
15736 /* First, make a file with some known garbage in it. */
15737 data = (char *) malloc (pagesize);
15740 for (i = 0; i < pagesize; ++i)
15741 *(data + i) = rand ();
15743 fd = creat ("conftest.mmap", 0600);
15746 if (write (fd, data, pagesize) != pagesize)
15750 /* Next, try to mmap the file at a fixed address which already has
15751 something else allocated at it. If we can, also make sure that
15752 we see the same garbage. */
15753 fd = open ("conftest.mmap", O_RDWR);
15756 data2 = (char *) malloc (2 * pagesize);
15759 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15760 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15761 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15763 for (i = 0; i < pagesize; ++i)
15764 if (*(data + i) != *(data2 + i))
15767 /* Finally, make sure that changes to the mapped area do not
15768 percolate back to the file as seen by read(). (This is a bug on
15769 some variants of i386 svr4.0.) */
15770 for (i = 0; i < pagesize; ++i)
15771 *(data2 + i) = *(data2 + i) + 1;
15772 data3 = (char *) malloc (pagesize);
15775 if (read (fd, data3, pagesize) != pagesize)
15777 for (i = 0; i < pagesize; ++i)
15778 if (*(data + i) != *(data3 + i))
15784 rm -f conftest
$ac_exeext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15786 (eval $ac_link) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_func_mmap_fixed_mapped
=yes
15797 echo "$as_me: program exited with status $ac_status" >&5
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.
$ac_ext >&5
15801 ( exit $ac_status )
15802 ac_cv_func_mmap_fixed_mapped
=no
15804 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15807 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15808 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15809 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15811 cat >>confdefs.h
<<\_ACEOF
15812 #define HAVE_MMAP 1
15816 rm -f conftest.mmap
15820 for ac_header
in sys
/select.h sys
/socket.h
15822 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15824 echo "$as_me:$LINENO: checking for $ac_header" >&5
15825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15832 # Is the header compilable?
15833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15835 cat >conftest.
$ac_ext <<_ACEOF
15838 cat confdefs.h
>>conftest.
$ac_ext
15839 cat >>conftest.
$ac_ext <<_ACEOF
15840 /* end confdefs.h. */
15841 $ac_includes_default
15842 #include <$ac_header>
15844 rm -f conftest.
$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>conftest.er1
15848 grep -v '^ *+' conftest.er1
>conftest.err
15850 cat conftest.err
>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try
='test -z "$ac_c_werror_flag"
15854 || test ! -s conftest.err'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try
='test -s conftest.$ac_objext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_header_compiler
=yes
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.
$ac_ext >&5
15871 ac_header_compiler
=no
15873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875 echo "${ECHO_T}$ac_header_compiler" >&6
15877 # Is the header present?
15878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15880 cat >conftest.
$ac_ext <<_ACEOF
15883 cat confdefs.h
>>conftest.
$ac_ext
15884 cat >>conftest.
$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <$ac_header>
15888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15891 grep -v '^ *+' conftest.er1
>conftest.err
15893 cat conftest.err
>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } >/dev
/null
; then
15896 if test -s conftest.err
; then
15897 ac_cpp_err
=$ac_c_preproc_warn_flag
15898 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15905 if test -z "$ac_cpp_err"; then
15906 ac_header_preproc
=yes
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.
$ac_ext >&5
15911 ac_header_preproc
=no
15913 rm -f conftest.err conftest.
$ac_ext
15914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915 echo "${ECHO_T}$ac_header_preproc" >&6
15917 # So? What about this header?
15918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15924 ac_header_preproc
=yes
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15941 ## ------------------------------ ##
15942 ## Report this to admin@amule.org ##
15943 ## ------------------------------ ##
15946 sed "s/^/$as_me: WARNING: /" >&2
15949 echo "$as_me:$LINENO: checking for $ac_header" >&5
15950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15954 eval "$as_ac_Header=\$ac_header_preproc"
15956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15961 cat >>confdefs.h
<<_ACEOF
15962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15969 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15970 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15971 if test "${ac_cv_func_select_args+set}" = set; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
15975 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15976 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
15977 cat >conftest.
$ac_ext <<_ACEOF
15980 cat confdefs.h
>>conftest.
$ac_ext
15981 cat >>conftest.
$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 $ac_includes_default
15984 #if HAVE_SYS_SELECT_H
15985 # include <sys/select.h>
15987 #if HAVE_SYS_SOCKET_H
15988 # include <sys/socket.h>
15994 extern int select ($ac_arg1,
15995 $ac_arg234, $ac_arg234, $ac_arg234,
16001 rm -f conftest.
$ac_objext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16005 grep -v '^ *+' conftest.er1
>conftest.err
16007 cat conftest.err
>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try
='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try
='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.
$ac_ext >&5
16029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16033 # Provide a safe default value.
16034 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16037 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16038 echo "${ECHO_T}$ac_cv_func_select_args" >&6
16039 ac_save_IFS
=$IFS; IFS
=','
16040 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16044 cat >>confdefs.h
<<_ACEOF
16045 #define SELECT_TYPE_ARG1 $1
16049 cat >>confdefs.h
<<_ACEOF
16050 #define SELECT_TYPE_ARG234 ($2)
16054 cat >>confdefs.h
<<_ACEOF
16055 #define SELECT_TYPE_ARG5 ($3)
16060 echo "$as_me:$LINENO: checking for function prototypes" >&5
16061 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
16062 if test "$ac_cv_prog_cc_stdc" != no
; then
16063 echo "$as_me:$LINENO: result: yes" >&5
16064 echo "${ECHO_T}yes" >&6
16066 cat >>confdefs.h
<<\_ACEOF
16067 #define PROTOTYPES 1
16071 cat >>confdefs.h
<<\_ACEOF
16072 #define __PROTOTYPES 1
16076 echo "$as_me:$LINENO: result: no" >&5
16077 echo "${ECHO_T}no" >&6
16080 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
16081 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16082 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 ac_cv_func_setvbuf_reversed
=no
16086 cat >conftest.
$ac_ext <<_ACEOF
16089 cat confdefs.h
>>conftest.
$ac_ext
16090 cat >>conftest.
$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16094 int (setvbuf) (FILE *, int, char *, size_t);
16099 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
16104 rm -f conftest.
$ac_objext conftest
$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>conftest.er1
16108 grep -v '^ *+' conftest.er1
>conftest.err
16110 cat conftest.err
>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try
='test -z "$ac_c_werror_flag"
16114 || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try
='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 cat >conftest.
$ac_ext <<_ACEOF
16129 cat confdefs.h
>>conftest.
$ac_ext
16130 cat >>conftest.
$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16134 int (setvbuf) (FILE *, int, char *, size_t);
16139 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
16144 rm -f conftest.
$ac_objext conftest
$ac_exeext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16146 (eval $ac_link) 2>conftest.er1
16148 grep -v '^ *+' conftest.er1
>conftest.err
16150 cat conftest.err
>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try
='test -z "$ac_c_werror_flag"
16154 || test ! -s conftest.err'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; } &&
16160 { ac_try
='test -s conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 # It compiles and links either way, so it must not be declared
16167 # with a prototype and most likely this is a K&R C compiler.
16169 if test "$cross_compiling" = yes; then
16170 : # Assume setvbuf is not reversed when cross-compiling.
16172 cat >conftest.
$ac_ext <<_ACEOF
16175 cat confdefs.h
>>conftest.
$ac_ext
16176 cat >>conftest.
$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16182 /* This call has the arguments reversed.
16183 A reversed system may check and see that the address of buf
16184 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16186 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
16189 exit (0); /* Non-reversed systems SEGV here. */
16194 rm -f conftest
$ac_exeext
16195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16196 (eval $ac_link) 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_func_setvbuf_reversed
=yes
16207 echo "$as_me: program exited with status $ac_status" >&5
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.
$ac_ext >&5
16211 ( exit $ac_status )
16214 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16216 ac_cv_func_setvbuf_reversed
=yes
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.
$ac_ext >&5
16222 rm -f conftest.err conftest.
$ac_objext \
16223 conftest
$ac_exeext conftest.
$ac_ext
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.
$ac_ext >&5
16229 rm -f conftest.err conftest.
$ac_objext \
16230 conftest
$ac_exeext conftest.
$ac_ext
16232 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
16233 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16234 if test $ac_cv_func_setvbuf_reversed = yes; then
16236 cat >>confdefs.h
<<\_ACEOF
16237 #define SETVBUF_REVERSED 1
16242 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16243 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16244 if test "${ac_cv_type_signal+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 cat >conftest.
$ac_ext <<_ACEOF
16250 cat confdefs.h
>>conftest.
$ac_ext
16251 cat >>conftest.
$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <sys/types.h>
16254 #include <signal.h>
16259 extern "C" void (*signal (int, void (*)(int)))(int);
16261 void (*signal ()) ();
16272 rm -f conftest.
$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>conftest.er1
16276 grep -v '^ *+' conftest.er1
>conftest.err
16278 cat conftest.err
>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try
='test -z "$ac_c_werror_flag"
16282 || test ! -s conftest.err'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try
='test -s conftest.$ac_objext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ac_cv_type_signal
=void
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.
$ac_ext >&5
16299 ac_cv_type_signal
=int
16301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16303 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16304 echo "${ECHO_T}$ac_cv_type_signal" >&6
16306 cat >>confdefs.h
<<_ACEOF
16307 #define RETSIGTYPE $ac_cv_type_signal
16311 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
16312 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
16313 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 if test "$cross_compiling" = yes; then
16317 ac_cv_func_stat_empty_string_bug
=yes
16319 cat >conftest.
$ac_ext <<_ACEOF
16322 cat confdefs.h
>>conftest.
$ac_ext
16323 cat >>conftest.
$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 $ac_includes_default
16330 exit (stat ("", &sbuf) ? 1 : 0);
16335 rm -f conftest
$ac_exeext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_cv_func_stat_empty_string_bug
=yes
16348 echo "$as_me: program exited with status $ac_status" >&5
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.
$ac_ext >&5
16352 ( exit $ac_status )
16353 ac_cv_func_stat_empty_string_bug
=no
16355 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16358 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
16359 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
16360 if test $ac_cv_func_stat_empty_string_bug = yes; then
16362 "stat.$ac_objext" | \
16363 *" stat.$ac_objext" | \
16364 "stat.$ac_objext "* | \
16365 *" stat.$ac_objext "* ) ;;
16366 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
16370 cat >>confdefs.h
<<_ACEOF
16371 #define HAVE_STAT_EMPTY_STRING_BUG 1
16377 for ac_func
in strftime
16379 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16380 echo "$as_me:$LINENO: checking for $ac_func" >&5
16381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16382 if eval "test \"\${$as_ac_var+set}\" = set"; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 cat >conftest.
$ac_ext <<_ACEOF
16388 cat confdefs.h
>>conftest.
$ac_ext
16389 cat >>conftest.
$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16393 #define $ac_func innocuous_$ac_func
16395 /* System header to define __stub macros and hopefully few prototypes,
16396 which can conflict with char $ac_func (); below.
16397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16398 <limits.h> exists even on freestanding compilers. */
16401 # include <limits.h>
16403 # include <assert.h>
16408 /* Override any gcc2 internal prototype to avoid an error. */
16413 /* We use char because int might match the return type of a gcc2
16414 builtin and then its argument prototype would still apply. */
16416 /* The GNU C library defines this for functions which it implements
16417 to always fail with ENOSYS. Some functions are actually named
16418 something starting with __ and the normal name is an alias. */
16419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16422 char (*f) () = $ac_func;
16431 return f != $ac_func;
16436 rm -f conftest.
$ac_objext conftest
$ac_exeext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16438 (eval $ac_link) 2>conftest.er1
16440 grep -v '^ *+' conftest.er1
>conftest.err
16442 cat conftest.err
>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try
='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try
='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 eval "$as_ac_var=yes"
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.
$ac_ext >&5
16463 eval "$as_ac_var=no"
16465 rm -f conftest.err conftest.
$ac_objext \
16466 conftest
$ac_exeext conftest.
$ac_ext
16468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16470 if test `eval echo '${'$as_ac_var'}'` = yes; then
16471 cat >>confdefs.h
<<_ACEOF
16472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16476 # strftime is in -lintl on SCO UNIX.
16477 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16478 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16479 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 ac_check_lib_save_LIBS
=$LIBS
16483 LIBS
="-lintl $LIBS"
16484 cat >conftest.
$ac_ext <<_ACEOF
16487 cat confdefs.h
>>conftest.
$ac_ext
16488 cat >>conftest.
$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16491 /* Override any gcc2 internal prototype to avoid an error. */
16495 /* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16506 rm -f conftest.
$ac_objext conftest
$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>conftest.er1
16510 grep -v '^ *+' conftest.er1
>conftest.err
16512 cat conftest.err
>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try
='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try
='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_lib_intl_strftime
=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.
$ac_ext >&5
16533 ac_cv_lib_intl_strftime
=no
16535 rm -f conftest.err conftest.
$ac_objext \
16536 conftest
$ac_exeext conftest.
$ac_ext
16537 LIBS
=$ac_check_lib_save_LIBS
16539 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16540 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16541 if test $ac_cv_lib_intl_strftime = yes; then
16542 cat >>confdefs.h
<<\_ACEOF
16543 #define HAVE_STRFTIME 1
16546 LIBS
="-lintl $LIBS"
16552 echo "$as_me:$LINENO: checking for working strtod" >&5
16553 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
16554 if test "${ac_cv_func_strtod+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 if test "$cross_compiling" = yes; then
16558 ac_cv_func_strtod
=no
16560 cat >conftest.
$ac_ext <<_ACEOF
16563 cat confdefs.h
>>conftest.
$ac_ext
16564 cat >>conftest.
$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16572 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16573 char *string = " +69";
16576 value = strtod (string, &term);
16577 if (value != 69 || term != (string + 4))
16582 /* Under Solaris 2.4, strtod returns the wrong value for the
16583 terminating character under some conditions. */
16584 char *string = "NaN";
16586 strtod (string, &term);
16587 if (term != string && *(term - 1) == 0)
16594 rm -f conftest
$ac_exeext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596 (eval $ac_link) 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_func_strtod
=yes
16607 echo "$as_me: program exited with status $ac_status" >&5
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.
$ac_ext >&5
16611 ( exit $ac_status )
16612 ac_cv_func_strtod
=no
16614 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16617 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
16618 echo "${ECHO_T}$ac_cv_func_strtod" >&6
16619 if test $ac_cv_func_strtod = no
; then
16621 "strtod.$ac_objext" | \
16622 *" strtod.$ac_objext" | \
16623 "strtod.$ac_objext "* | \
16624 *" strtod.$ac_objext "* ) ;;
16625 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
16628 echo "$as_me:$LINENO: checking for pow" >&5
16629 echo $ECHO_N "checking for pow... $ECHO_C" >&6
16630 if test "${ac_cv_func_pow+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 cat >conftest.
$ac_ext <<_ACEOF
16636 cat confdefs.h
>>conftest.
$ac_ext
16637 cat >>conftest.
$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
16640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16641 #define pow innocuous_pow
16643 /* System header to define __stub macros and hopefully few prototypes,
16644 which can conflict with char pow (); below.
16645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646 <limits.h> exists even on freestanding compilers. */
16649 # include <limits.h>
16651 # include <assert.h>
16656 /* Override any gcc2 internal prototype to avoid an error. */
16661 /* We use char because int might match the return type of a gcc2
16662 builtin and then its argument prototype would still apply. */
16664 /* The GNU C library defines this for functions which it implements
16665 to always fail with ENOSYS. Some functions are actually named
16666 something starting with __ and the normal name is an alias. */
16667 #if defined (__stub_pow) || defined (__stub___pow)
16670 char (*f) () = pow;
16684 rm -f conftest.
$ac_objext conftest
$ac_exeext
16685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16686 (eval $ac_link) 2>conftest.er1
16688 grep -v '^ *+' conftest.er1
>conftest.err
16690 cat conftest.err
>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try
='test -z "$ac_c_werror_flag"
16694 || test ! -s conftest.err'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; } &&
16700 { ac_try
='test -s conftest$ac_exeext'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16708 echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.
$ac_ext >&5
16713 rm -f conftest.err conftest.
$ac_objext \
16714 conftest
$ac_exeext conftest.
$ac_ext
16716 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
16717 echo "${ECHO_T}$ac_cv_func_pow" >&6
16719 if test $ac_cv_func_pow = no
; then
16720 echo "$as_me:$LINENO: checking for pow in -lm" >&5
16721 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
16722 if test "${ac_cv_lib_m_pow+set}" = set; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 ac_check_lib_save_LIBS
=$LIBS
16727 cat >conftest.
$ac_ext <<_ACEOF
16730 cat confdefs.h
>>conftest.
$ac_ext
16731 cat >>conftest.
$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16734 /* Override any gcc2 internal prototype to avoid an error. */
16738 /* We use char because int might match the return type of a gcc2
16739 builtin and then its argument prototype would still apply. */
16749 rm -f conftest.
$ac_objext conftest
$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751 (eval $ac_link) 2>conftest.er1
16753 grep -v '^ *+' conftest.er1
>conftest.err
16755 cat conftest.err
>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try
='test -z "$ac_c_werror_flag"
16759 || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try
='test -s conftest$ac_exeext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_cv_lib_m_pow
=yes
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.
$ac_ext >&5
16778 rm -f conftest.err conftest.
$ac_objext \
16779 conftest
$ac_exeext conftest.
$ac_ext
16780 LIBS
=$ac_check_lib_save_LIBS
16782 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
16783 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
16784 if test $ac_cv_lib_m_pow = yes; then
16787 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
16788 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16796 for ac_func
in vprintf
16798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16799 echo "$as_me:$LINENO: checking for $ac_func" >&5
16800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16801 if eval "test \"\${$as_ac_var+set}\" = set"; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 cat >conftest.
$ac_ext <<_ACEOF
16807 cat confdefs.h
>>conftest.
$ac_ext
16808 cat >>conftest.
$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16812 #define $ac_func innocuous_$ac_func
16814 /* System header to define __stub macros and hopefully few prototypes,
16815 which can conflict with char $ac_func (); below.
16816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16817 <limits.h> exists even on freestanding compilers. */
16820 # include <limits.h>
16822 # include <assert.h>
16827 /* Override any gcc2 internal prototype to avoid an error. */
16832 /* We use char because int might match the return type of a gcc2
16833 builtin and then its argument prototype would still apply. */
16835 /* The GNU C library defines this for functions which it implements
16836 to always fail with ENOSYS. Some functions are actually named
16837 something starting with __ and the normal name is an alias. */
16838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16841 char (*f) () = $ac_func;
16850 return f != $ac_func;
16855 rm -f conftest.
$ac_objext conftest
$ac_exeext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857 (eval $ac_link) 2>conftest.er1
16859 grep -v '^ *+' conftest.er1
>conftest.err
16861 cat conftest.err
>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
16864 { ac_try
='test -z "$ac_c_werror_flag"
16865 || test ! -s conftest.err'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; } &&
16871 { ac_try
='test -s conftest$ac_exeext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 eval "$as_ac_var=yes"
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.
$ac_ext >&5
16882 eval "$as_ac_var=no"
16884 rm -f conftest.err conftest.
$ac_objext \
16885 conftest
$ac_exeext conftest.
$ac_ext
16887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16889 if test `eval echo '${'$as_ac_var'}'` = yes; then
16890 cat >>confdefs.h
<<_ACEOF
16891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16894 echo "$as_me:$LINENO: checking for _doprnt" >&5
16895 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16896 if test "${ac_cv_func__doprnt+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 cat >conftest.
$ac_ext <<_ACEOF
16902 cat confdefs.h
>>conftest.
$ac_ext
16903 cat >>conftest.
$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
16906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16907 #define _doprnt innocuous__doprnt
16909 /* System header to define __stub macros and hopefully few prototypes,
16910 which can conflict with char _doprnt (); below.
16911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16912 <limits.h> exists even on freestanding compilers. */
16915 # include <limits.h>
16917 # include <assert.h>
16922 /* Override any gcc2 internal prototype to avoid an error. */
16927 /* We use char because int might match the return type of a gcc2
16928 builtin and then its argument prototype would still apply. */
16930 /* The GNU C library defines this for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16936 char (*f) () = _doprnt;
16945 return f != _doprnt;
16950 rm -f conftest.
$ac_objext conftest
$ac_exeext
16951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16952 (eval $ac_link) 2>conftest.er1
16954 grep -v '^ *+' conftest.er1
>conftest.err
16956 cat conftest.err
>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } &&
16959 { ac_try
='test -z "$ac_c_werror_flag"
16960 || test ! -s conftest.err'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; } &&
16966 { ac_try
='test -s conftest$ac_exeext'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16972 ac_cv_func__doprnt
=yes
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.
$ac_ext >&5
16977 ac_cv_func__doprnt
=no
16979 rm -f conftest.err conftest.
$ac_objext \
16980 conftest
$ac_exeext conftest.
$ac_ext
16982 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16983 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16984 if test $ac_cv_func__doprnt = yes; then
16986 cat >>confdefs.h
<<\_ACEOF
16987 #define HAVE_DOPRNT 1
16996 if test $cross_compiling = yes -a $gnumalloc = yes ; then
16997 { echo "$as_me:$LINENO: WARNING:
16998 configure cannot check whether malloc() and realloc() are GNU libc
16999 compatible. You have to be ABSOLUTELY sure that they are, otherwise
17000 run configure with the --without-gnu-malloc switch." >&5
17001 echo "$as_me: WARNING:
17002 configure cannot check whether malloc() and realloc() are GNU libc
17003 compatible. You have to be ABSOLUTELY sure that they are, otherwise
17004 run configure with the --without-gnu-malloc switch." >&2;}
17005 ac_cv_func_malloc_0_nonnull
=yes
17006 ac_cv_func_realloc_0_nonnull
=yes
17009 for ac_header
in stdlib.h
17011 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17013 echo "$as_me:$LINENO: checking for $ac_header" >&5
17014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17021 # Is the header compilable?
17022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17024 cat >conftest.
$ac_ext <<_ACEOF
17027 cat confdefs.h
>>conftest.
$ac_ext
17028 cat >>conftest.
$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 $ac_includes_default
17031 #include <$ac_header>
17033 rm -f conftest.
$ac_objext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17035 (eval $ac_compile) 2>conftest.er1
17037 grep -v '^ *+' conftest.er1
>conftest.err
17039 cat conftest.err
>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try
='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try
='test -s conftest.$ac_objext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_header_compiler
=yes
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.
$ac_ext >&5
17060 ac_header_compiler
=no
17062 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17064 echo "${ECHO_T}$ac_header_compiler" >&6
17066 # Is the header present?
17067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17069 cat >conftest.
$ac_ext <<_ACEOF
17072 cat confdefs.h
>>conftest.
$ac_ext
17073 cat >>conftest.
$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 #include <$ac_header>
17077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17078 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17080 grep -v '^ *+' conftest.er1
>conftest.err
17082 cat conftest.err
>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } >/dev
/null
; then
17085 if test -s conftest.err
; then
17086 ac_cpp_err
=$ac_c_preproc_warn_flag
17087 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17094 if test -z "$ac_cpp_err"; then
17095 ac_header_preproc
=yes
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.
$ac_ext >&5
17100 ac_header_preproc
=no
17102 rm -f conftest.err conftest.
$ac_ext
17103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17104 echo "${ECHO_T}$ac_header_preproc" >&6
17106 # So? What about this header?
17107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17113 ac_header_preproc
=yes
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17130 ## ------------------------------ ##
17131 ## Report this to admin@amule.org ##
17132 ## ------------------------------ ##
17135 sed "s/^/$as_me: WARNING: /" >&2
17138 echo "$as_me:$LINENO: checking for $ac_header" >&5
17139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 eval "$as_ac_Header=\$ac_header_preproc"
17145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17150 cat >>confdefs.h
<<_ACEOF
17151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17158 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17159 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17160 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 if test "$cross_compiling" = yes; then
17164 ac_cv_func_malloc_0_nonnull
=no
17166 cat >conftest.
$ac_ext <<_ACEOF
17169 cat confdefs.h
>>conftest.
$ac_ext
17170 cat >>conftest.
$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17172 #if STDC_HEADERS || HAVE_STDLIB_H
17173 # include <stdlib.h>
17181 exit (malloc (0) ? 0 : 1);
17186 rm -f conftest
$ac_exeext
17187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17188 (eval $ac_link) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_cv_func_malloc_0_nonnull
=yes
17199 echo "$as_me: program exited with status $ac_status" >&5
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.
$ac_ext >&5
17203 ( exit $ac_status )
17204 ac_cv_func_malloc_0_nonnull
=no
17206 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17209 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17210 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17211 if test $ac_cv_func_malloc_0_nonnull = yes; then
17213 cat >>confdefs.h
<<\_ACEOF
17214 #define HAVE_MALLOC 1
17218 cat >>confdefs.h
<<\_ACEOF
17219 #define HAVE_MALLOC 0
17223 "malloc.$ac_objext" | \
17224 *" malloc.$ac_objext" | \
17225 "malloc.$ac_objext "* | \
17226 *" malloc.$ac_objext "* ) ;;
17227 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
17231 cat >>confdefs.h
<<\_ACEOF
17232 #define malloc rpl_malloc
17240 for ac_header
in stdlib.h
17242 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17244 echo "$as_me:$LINENO: checking for $ac_header" >&5
17245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17252 # Is the header compilable?
17253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17255 cat >conftest.
$ac_ext <<_ACEOF
17258 cat confdefs.h
>>conftest.
$ac_ext
17259 cat >>conftest.
$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 $ac_includes_default
17262 #include <$ac_header>
17264 rm -f conftest.
$ac_objext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17266 (eval $ac_compile) 2>conftest.er1
17268 grep -v '^ *+' conftest.er1
>conftest.err
17270 cat conftest.err
>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
17273 { ac_try
='test -z "$ac_c_werror_flag"
17274 || test ! -s conftest.err'
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try
='test -s conftest.$ac_objext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_header_compiler
=yes
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.
$ac_ext >&5
17291 ac_header_compiler
=no
17293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17295 echo "${ECHO_T}$ac_header_compiler" >&6
17297 # Is the header present?
17298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17300 cat >conftest.
$ac_ext <<_ACEOF
17303 cat confdefs.h
>>conftest.
$ac_ext
17304 cat >>conftest.
$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17306 #include <$ac_header>
17308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17309 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17311 grep -v '^ *+' conftest.er1
>conftest.err
17313 cat conftest.err
>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } >/dev
/null
; then
17316 if test -s conftest.err
; then
17317 ac_cpp_err
=$ac_c_preproc_warn_flag
17318 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17325 if test -z "$ac_cpp_err"; then
17326 ac_header_preproc
=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.
$ac_ext >&5
17331 ac_header_preproc
=no
17333 rm -f conftest.err conftest.
$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17335 echo "${ECHO_T}$ac_header_preproc" >&6
17337 # So? What about this header?
17338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17344 ac_header_preproc
=yes
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17361 ## ------------------------------ ##
17362 ## Report this to admin@amule.org ##
17363 ## ------------------------------ ##
17366 sed "s/^/$as_me: WARNING: /" >&2
17369 echo "$as_me:$LINENO: checking for $ac_header" >&5
17370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 eval "$as_ac_Header=\$ac_header_preproc"
17376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17381 cat >>confdefs.h
<<_ACEOF
17382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17389 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
17390 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
17391 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 if test "$cross_compiling" = yes; then
17395 ac_cv_func_realloc_0_nonnull
=no
17397 cat >conftest.
$ac_ext <<_ACEOF
17400 cat confdefs.h
>>conftest.
$ac_ext
17401 cat >>conftest.
$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 #if STDC_HEADERS || HAVE_STDLIB_H
17404 # include <stdlib.h>
17412 exit (realloc (0, 0) ? 0 : 1);
17417 rm -f conftest
$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_cv_func_realloc_0_nonnull
=yes
17430 echo "$as_me: program exited with status $ac_status" >&5
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.
$ac_ext >&5
17434 ( exit $ac_status )
17435 ac_cv_func_realloc_0_nonnull
=no
17437 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17440 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
17441 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
17442 if test $ac_cv_func_realloc_0_nonnull = yes; then
17444 cat >>confdefs.h
<<\_ACEOF
17445 #define HAVE_REALLOC 1
17449 cat >>confdefs.h
<<\_ACEOF
17450 #define HAVE_REALLOC 0
17454 "realloc.$ac_objext" | \
17455 *" realloc.$ac_objext" | \
17456 "realloc.$ac_objext "* | \
17457 *" realloc.$ac_objext "* ) ;;
17458 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
17462 cat >>confdefs.h
<<\_ACEOF
17463 #define realloc rpl_realloc
17505 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getmntent getmntinfo getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset munmap nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
17507 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508 echo "$as_me:$LINENO: checking for $ac_func" >&5
17509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17510 if eval "test \"\${$as_ac_var+set}\" = set"; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 cat >conftest.
$ac_ext <<_ACEOF
17516 cat confdefs.h
>>conftest.
$ac_ext
17517 cat >>conftest.
$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17521 #define $ac_func innocuous_$ac_func
17523 /* System header to define __stub macros and hopefully few prototypes,
17524 which can conflict with char $ac_func (); below.
17525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17526 <limits.h> exists even on freestanding compilers. */
17529 # include <limits.h>
17531 # include <assert.h>
17536 /* Override any gcc2 internal prototype to avoid an error. */
17541 /* We use char because int might match the return type of a gcc2
17542 builtin and then its argument prototype would still apply. */
17544 /* The GNU C library defines this for functions which it implements
17545 to always fail with ENOSYS. Some functions are actually named
17546 something starting with __ and the normal name is an alias. */
17547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17550 char (*f) () = $ac_func;
17559 return f != $ac_func;
17564 rm -f conftest.
$ac_objext conftest
$ac_exeext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>conftest.er1
17568 grep -v '^ *+' conftest.er1
>conftest.err
17570 cat conftest.err
>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try
='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try
='test -s conftest$ac_exeext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 eval "$as_ac_var=yes"
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.
$ac_ext >&5
17591 eval "$as_ac_var=no"
17593 rm -f conftest.err conftest.
$ac_objext \
17594 conftest
$ac_exeext conftest.
$ac_ext
17596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17598 if test `eval echo '${'$as_ac_var'}'` = yes; then
17599 cat >>confdefs.h
<<_ACEOF
17600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17606 #-------------------------------------------------------------------------------
17607 # End of autoscan stuff
17608 #-------------------------------------------------------------------------------
17613 for ac_func
in mkdir getrlimit setrlimit
17615 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616 echo "$as_me:$LINENO: checking for $ac_func" >&5
17617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17618 if eval "test \"\${$as_ac_var+set}\" = set"; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 cat >conftest.
$ac_ext <<_ACEOF
17624 cat confdefs.h
>>conftest.
$ac_ext
17625 cat >>conftest.
$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17629 #define $ac_func innocuous_$ac_func
17631 /* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func (); below.
17633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634 <limits.h> exists even on freestanding compilers. */
17637 # include <limits.h>
17639 # include <assert.h>
17644 /* Override any gcc2 internal prototype to avoid an error. */
17649 /* We use char because int might match the return type of a gcc2
17650 builtin and then its argument prototype would still apply. */
17652 /* The GNU C library defines this for functions which it implements
17653 to always fail with ENOSYS. Some functions are actually named
17654 something starting with __ and the normal name is an alias. */
17655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17658 char (*f) () = $ac_func;
17667 return f != $ac_func;
17672 rm -f conftest.
$ac_objext conftest
$ac_exeext
17673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17674 (eval $ac_link) 2>conftest.er1
17676 grep -v '^ *+' conftest.er1
>conftest.err
17678 cat conftest.err
>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try
='test -z "$ac_c_werror_flag"
17682 || test ! -s conftest.err'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; } &&
17688 { ac_try
='test -s conftest$ac_exeext'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 eval "$as_ac_var=yes"
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.
$ac_ext >&5
17699 eval "$as_ac_var=no"
17701 rm -f conftest.err conftest.
$ac_objext \
17702 conftest
$ac_exeext conftest.
$ac_ext
17704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17706 if test `eval echo '${'$as_ac_var'}'` = yes; then
17707 cat >>confdefs.h
<<_ACEOF
17708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17715 # Flush standard test results for speeding cache
17716 cat >confcache
<<\_ACEOF
17717 # This file is a shell script that caches the results of configure
17718 # tests run on this system so they can be shared between configure
17719 # scripts and configure runs, see configure's option --config-cache.
17720 # It is not useful on other systems. If it contains results you don't
17721 # want to keep, you may remove or edit it.
17723 # config.status only pays attention to the cache file if you give it
17724 # the --recheck option to rerun configure.
17726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17728 # following values.
17732 # The following way of writing the cache mishandles newlines in values,
17733 # but we know of no workaround that is simple, portable, and efficient.
17734 # So, don't put newlines in cache variables' values.
17735 # Ultrix sh set writes to stderr and can't be redirected directly,
17736 # and sets the high bit in the cache file unless we assign to the vars.
17739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17741 # `set' does not quote correctly, so add quotes (double-quote
17742 # substitution turns \\\\ into \\, and sed turns \\ into \).
17745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17748 # `set' quotes correctly as required by POSIX, so do not add quotes.
17750 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17759 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17761 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17762 if test -w $cache_file; then
17763 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17764 cat confcache
>$cache_file
17766 echo "not updating unwritable cache $cache_file"
17773 case "$USE_DEBUG" in
17774 yes) DEBUG_FLAGS
="-g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
17775 if test x
$GCC = xyes
; then
17776 DEBUG_FLAGS
="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
17779 if test x
$SYS = xwin32
; then
17780 RCFLAGS
="$RCFLAGS -D__DEBUG__"
17785 if test x
$GCC = xyes
; then
17786 DEBUG_FLAGS
="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef"
17794 # Command line tools
17795 case "$AMULECMD" in
17801 # For proper compilation flags
17803 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
17805 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
17806 WXBASE_CXXFLAGS
="$WX_CXXFLAGS -DwxUSE_GUI=0"
17807 WXBASE_CFLAGS
="$WX_CFLAGS -DwxUSE_GUI=0"
17813 case "$USE_OPTIMIZE" in
17814 yes) OPTIMIZE_FLAGS
="-O2"
17816 *) OPTIMIZE_FLAGS
=""
17821 case "$USE_PROFILE" in
17822 yes) PROFILE_FLAGS
="-pg"
17824 *) PROFILE_FLAGS
=""
17828 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
17829 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
17830 case "$USE_DEBUG_STATIC" in
17831 yes) LDFLAGS
="$LDFLAGS -static"
17834 echo "$as_me:$LINENO: result: $USE_DEBUG_STATIC" >&5
17835 echo "${ECHO_T}$USE_DEBUG_STATIC" >&6
17837 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
17838 echo "$as_me:$LINENO: checking for docdir" >&5
17839 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
17840 if test x
"$docdir" = x
; then
17841 docdir
="$datadir"/doc
/"$PACKAGE_NAME"-"$PACKAGE_VERSION"
17844 echo "$as_me:$LINENO: result: $docdir" >&5
17845 echo "${ECHO_T}$docdir" >&6
17847 # Try to set the SVN checkout-date
17848 echo "$as_me:$LINENO: checking for SVNDATE" >&5
17849 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
17850 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
17852 svndate
=`cat $srcdir/SVNDATE`
17853 elif test -d $srcdir/.svn
# SVNDATE for svn
17855 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
17857 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
17858 echo "${ECHO_T}${svndate:-None required}" >&6
17860 cat >>confdefs.h
<<_ACEOF
17861 #define SVNDATE "$svndate"
17864 test x
$SYS = xwin32
&& test "$svndate" && RCFLAGS
="$RCFLAGS -D__PRERELEASE__"
17869 CXXFLAGS
="$CXXFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17870 CFLAGS
="$CFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17872 LDFLAGS
="$LDFLAGS $PROFILE_FLAGS"
17873 if test x
$SYS != xwin32
; then
17874 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
17875 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
17876 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
17877 LDFLAGS
="$LDFLAGS -pthread"
17878 echo "$as_me:$LINENO: result: yes" >&5
17879 echo "${ECHO_T}yes" >&6
17881 LDFLAGS
="$LDFLAGS -lpthread"
17882 echo "$as_me:$LINENO: result: no" >&5
17883 echo "${ECHO_T}no" >&6
17890 echo "$as_me:$LINENO: checking for requested languages" >&5
17891 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17892 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17894 if test "$AMULE_DAEMON" == "yes"; then
17895 if test "$LINGUAS" = ""; then
17896 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17898 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17899 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17901 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17903 AMULE_DAEMON_MANPAGES
=
17908 if test "$AMULECMD" == "yes"; then
17909 if test "$LINGUAS" = ""; then
17910 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17912 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17913 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17915 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17922 if test "$WEB" == "yes"; then
17923 if test "$LINGUAS" = ""; then
17924 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17926 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17927 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17929 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
17936 if test "$AMULE_GUI" == "yes"; then
17937 if test "$LINGUAS" = ""; then
17938 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17940 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17941 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17943 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17945 AMULE_GUI_MANPAGES
=
17950 if test "$CAS" == "yes"; then
17951 if test "$LINGUAS" = ""; then
17952 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17954 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17955 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17957 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
17964 if test "$WXCAS" == "yes"; then
17965 if test "$LINGUAS" = ""; then
17966 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17968 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17969 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17971 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
17978 if test "$ED2K" == "yes"; then
17979 if test "$LINGUAS" = ""; then
17980 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17982 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17983 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17985 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
17992 if test "$ALC" == "yes"; then
17993 if test "$LINGUAS" = ""; then
17994 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
17996 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17997 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
17999 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18006 if test "$ALCC" == "yes"; then
18007 if test "$LINGUAS" = ""; then
18008 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18010 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18011 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18013 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18020 if test "$MONOLITHIC" == "yes"; then
18021 if test "$LINGUAS" = ""; then
18022 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18024 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18025 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18027 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18029 MONOLITHIC_MANPAGES
=
18033 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18034 echo "${ECHO_T}${LINGUAS:-all}" >&6
18040 echo "$as_me:$LINENO: checking denoising level" >&5
18041 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18042 if test "$denoiselevel" = "yes"; then
18045 if test "$denoiselevel" = "no"; then
18048 if test $denoiselevel -gt 4; then
18049 if test "${svndate:+set}" = "set"; then
18056 echo "$as_me:$LINENO: result: $denoiselevel" >&5
18057 echo "${ECHO_T}$denoiselevel" >&6
18059 ac_config_commands
="$ac_config_commands denoiser"
18065 if test x
$WEB = xyes
; then
18075 if test x
$ED2K = xyes
; then
18085 if test x
$CAS = xyes
; then
18095 if test x
$WXCAS = xyes
; then
18105 if test x
$ALC = xyes
; then
18115 if test x
$ALCC = xyes
; then
18125 if test x
$AMULE_GUI = xyes
; then
18127 AMULE_GUI_FALSE
='#'
18135 if test x
$AMULE_DAEMON = xyes
; then
18137 AMULE_DAEMON_FALSE
='#'
18139 AMULE_DAEMON_TRUE
='#'
18140 AMULE_DAEMON_FALSE
=
18145 if test x
$AMULECMD = xyes
; then
18147 COMPILE_CMD_FALSE
='#'
18149 COMPILE_CMD_TRUE
='#'
18155 if test x
$MONOLITHIC = xyes
; then
18157 MONOLITHIC_FALSE
='#'
18159 MONOLITHIC_TRUE
='#'
18165 if test x
$ENABLE_UPNP = xyes
-a x
$SYS != xwin32
; then
18167 ENABLE_UPNP_FALSE
='#'
18169 ENABLE_UPNP_TRUE
='#'
18175 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18176 ENABLE_IP2COUNTRY_TRUE
=
18177 ENABLE_IP2COUNTRY_FALSE
='#'
18179 ENABLE_IP2COUNTRY_TRUE
='#'
18180 ENABLE_IP2COUNTRY_FALSE
=
18185 if test x
$SYS = xwin32
; then
18187 SYS_WIN32_FALSE
='#'
18195 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18205 if test x
$SYS = xdarwin
; then
18206 NEED_CORESERVICES_TRUE
=
18207 NEED_CORESERVICES_FALSE
='#'
18209 NEED_CORESERVICES_TRUE
='#'
18210 NEED_CORESERVICES_FALSE
=
18215 if test x
$HAVE_GETTEXT = xyes
; then
18217 COMPILE_NLS_FALSE
='#'
18219 COMPILE_NLS_TRUE
='#'
18225 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18226 GENERATE_FLEX_HEADER_TRUE
=
18227 GENERATE_FLEX_HEADER_FALSE
='#'
18229 GENERATE_FLEX_HEADER_TRUE
='#'
18230 GENERATE_FLEX_HEADER_FALSE
=
18234 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18236 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18237 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18238 if test "${vl_cv_lib_readline+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 for readline_lib
in readline edit editline
; do
18244 for termcap_lib
in "" termcap curses ncurses
; do
18245 if test -z "$termcap_lib"; then
18246 TRY_LIB
="-l$readline_lib"
18248 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18250 LIBS
="$ORIG_LIBS $TRY_LIB"
18251 cat >conftest.
$ac_ext <<_ACEOF
18254 cat confdefs.h
>>conftest.
$ac_ext
18255 cat >>conftest.
$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18258 /* Override any gcc2 internal prototype to avoid an error. */
18262 /* We use char because int might match the return type of a gcc2
18263 builtin and then its argument prototype would still apply. */
18273 rm -f conftest.
$ac_objext conftest
$ac_exeext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18275 (eval $ac_link) 2>conftest.er1
18277 grep -v '^ *+' conftest.er1
>conftest.err
18279 cat conftest.err
>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try
='test -z "$ac_c_werror_flag"
18283 || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try
='test -s conftest$ac_exeext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 vl_cv_lib_readline
="$TRY_LIB"
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.
$ac_ext >&5
18301 rm -f conftest.err conftest.
$ac_objext \
18302 conftest
$ac_exeext conftest.
$ac_ext
18303 if test -n "$vl_cv_lib_readline"; then
18307 if test -n "$vl_cv_lib_readline"; then
18311 if test -z "$vl_cv_lib_readline"; then
18312 vl_cv_lib_readline
="no"
18316 READLINE_LIBS
="$vl_cv_lib_readline"
18320 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18321 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18323 if test "$vl_cv_lib_readline" != "no"; then
18325 cat >>confdefs.h
<<\_ACEOF
18326 #define HAVE_LIBREADLINE 1
18331 for ac_header
in readline.h readline
/readline.h
18333 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18335 echo "$as_me:$LINENO: checking for $ac_header" >&5
18336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18343 # Is the header compilable?
18344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18346 cat >conftest.
$ac_ext <<_ACEOF
18349 cat confdefs.h
>>conftest.
$ac_ext
18350 cat >>conftest.
$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352 $ac_includes_default
18353 #include <$ac_header>
18355 rm -f conftest.
$ac_objext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18359 grep -v '^ *+' conftest.er1
>conftest.err
18361 cat conftest.err
>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try
='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try
='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_header_compiler
=yes
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.
$ac_ext >&5
18382 ac_header_compiler
=no
18384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18386 echo "${ECHO_T}$ac_header_compiler" >&6
18388 # Is the header present?
18389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18391 cat >conftest.
$ac_ext <<_ACEOF
18394 cat confdefs.h
>>conftest.
$ac_ext
18395 cat >>conftest.
$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 #include <$ac_header>
18399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18402 grep -v '^ *+' conftest.er1
>conftest.err
18404 cat conftest.err
>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } >/dev
/null
; then
18407 if test -s conftest.err
; then
18408 ac_cpp_err
=$ac_c_preproc_warn_flag
18409 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18416 if test -z "$ac_cpp_err"; then
18417 ac_header_preproc
=yes
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.
$ac_ext >&5
18422 ac_header_preproc
=no
18424 rm -f conftest.err conftest.
$ac_ext
18425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18426 echo "${ECHO_T}$ac_header_preproc" >&6
18428 # So? What about this header?
18429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18435 ac_header_preproc
=yes
18438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18452 ## ------------------------------ ##
18453 ## Report this to admin@amule.org ##
18454 ## ------------------------------ ##
18457 sed "s/^/$as_me: WARNING: /" >&2
18460 echo "$as_me:$LINENO: checking for $ac_header" >&5
18461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 eval "$as_ac_Header=\$ac_header_preproc"
18467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18472 cat >>confdefs.h
<<_ACEOF
18473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18480 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18481 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18482 if test "${vl_cv_lib_readline_history+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18486 vl_cv_lib_readline_history
="no"
18487 cat >conftest.
$ac_ext <<_ACEOF
18490 cat confdefs.h
>>conftest.
$ac_ext
18491 cat >>conftest.
$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18494 /* Override any gcc2 internal prototype to avoid an error. */
18498 /* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
18500 char add_history ();
18509 rm -f conftest.
$ac_objext conftest
$ac_exeext
18510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18511 (eval $ac_link) 2>conftest.er1
18513 grep -v '^ *+' conftest.er1
>conftest.err
18515 cat conftest.err
>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } &&
18518 { ac_try
='test -z "$ac_c_werror_flag"
18519 || test ! -s conftest.err'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; } &&
18525 { ac_try
='test -s conftest$ac_exeext'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; }; then
18531 vl_cv_lib_readline_history
="yes"
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.
$ac_ext >&5
18537 rm -f conftest.err conftest.
$ac_objext \
18538 conftest
$ac_exeext conftest.
$ac_ext
18541 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18542 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18543 if test "$vl_cv_lib_readline_history" = "yes"; then
18545 cat >>confdefs.h
<<\_ACEOF
18546 #define HAVE_READLINE_HISTORY 1
18551 for ac_header
in history.h readline
/history.h
18553 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18555 echo "$as_me:$LINENO: checking for $ac_header" >&5
18556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18563 # Is the header compilable?
18564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18566 cat >conftest.
$ac_ext <<_ACEOF
18569 cat confdefs.h
>>conftest.
$ac_ext
18570 cat >>conftest.
$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18572 $ac_includes_default
18573 #include <$ac_header>
18575 rm -f conftest.
$ac_objext
18576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18577 (eval $ac_compile) 2>conftest.er1
18579 grep -v '^ *+' conftest.er1
>conftest.err
18581 cat conftest.err
>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } &&
18584 { ac_try
='test -z "$ac_c_werror_flag"
18585 || test ! -s conftest.err'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try
='test -s conftest.$ac_objext'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_header_compiler
=yes
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.
$ac_ext >&5
18602 ac_header_compiler
=no
18604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18606 echo "${ECHO_T}$ac_header_compiler" >&6
18608 # Is the header present?
18609 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18611 cat >conftest.
$ac_ext <<_ACEOF
18614 cat confdefs.h
>>conftest.
$ac_ext
18615 cat >>conftest.
$ac_ext <<_ACEOF
18616 /* end confdefs.h. */
18617 #include <$ac_header>
18619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18620 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18622 grep -v '^ *+' conftest.er1
>conftest.err
18624 cat conftest.err
>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } >/dev
/null
; then
18627 if test -s conftest.err
; then
18628 ac_cpp_err
=$ac_c_preproc_warn_flag
18629 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18636 if test -z "$ac_cpp_err"; then
18637 ac_header_preproc
=yes
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.
$ac_ext >&5
18642 ac_header_preproc
=no
18644 rm -f conftest.err conftest.
$ac_ext
18645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18646 echo "${ECHO_T}$ac_header_preproc" >&6
18648 # So? What about this header?
18649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18655 ac_header_preproc
=yes
18658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18672 ## ------------------------------ ##
18673 ## Report this to admin@amule.org ##
18674 ## ------------------------------ ##
18677 sed "s/^/$as_me: WARNING: /" >&2
18680 echo "$as_me:$LINENO: checking for $ac_header" >&5
18681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 eval "$as_ac_Header=\$ac_header_preproc"
18687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18692 cat >>confdefs.h
<<_ACEOF
18693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18707 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18711 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18712 if test "${with_ccache_prefix+set}" = set; then
18713 withval
="$with_ccache_prefix"
18714 ccache_prefix
="$withval"
18720 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18721 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18722 echo "$as_me:$LINENO: result: $ccache" >&5
18723 echo "${ECHO_T}$ccache" >&6
18730 if test x
$ccache_prefix == x
; then
18731 ccache_full
=$
(which ccache
)
18732 ccache_prefix
=$
(dirname ${ccache_full})
18734 $ccache_prefix/ccache
-V > /dev
/null
2>&1
18736 if test "$CCACHE" != 0; then
18741 echo "$as_me:$LINENO: checking for ccache presence" >&5
18742 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18743 echo "$as_me:$LINENO: result: $result" >&5
18744 echo "${ECHO_T}$result" >&6
18748 if [ $CCACHE = 0 ]; then
18749 GCC
="$ccache_prefix/ccache $GCC"
18750 CC
="$ccache_prefix/ccache $CC"
18751 GXX
="$ccache_prefix/ccache $GXX"
18752 CXX
="$ccache_prefix/ccache $CXX"
18753 BUILD_CC
="$ccache_prefix/ccache $BUILD_CC"
18757 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 src/webserver/php-default/Makefile src/webserver/chicane/Makefile src/webserver/litoral/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
18759 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
18761 if test x
$SYS = xwin32
; then
18762 ac_config_files
="$ac_config_files version.rc"
18766 cat >confcache
<<\_ACEOF
18767 # This file is a shell script that caches the results of configure
18768 # tests run on this system so they can be shared between configure
18769 # scripts and configure runs, see configure's option --config-cache.
18770 # It is not useful on other systems. If it contains results you don't
18771 # want to keep, you may remove or edit it.
18773 # config.status only pays attention to the cache file if you give it
18774 # the --recheck option to rerun configure.
18776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18778 # following values.
18782 # The following way of writing the cache mishandles newlines in values,
18783 # but we know of no workaround that is simple, portable, and efficient.
18784 # So, don't put newlines in cache variables' values.
18785 # Ultrix sh set writes to stderr and can't be redirected directly,
18786 # and sets the high bit in the cache file unless we assign to the vars.
18789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18791 # `set' does not quote correctly, so add quotes (double-quote
18792 # substitution turns \\\\ into \\, and sed turns \\ into \).
18795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18798 # `set' quotes correctly as required by POSIX, so do not add quotes.
18800 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18809 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18811 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18812 if test -w $cache_file; then
18813 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18814 cat confcache
>$cache_file
18816 echo "not updating unwritable cache $cache_file"
18821 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18822 # Let make expand exec_prefix.
18823 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18827 # trailing colons and then remove the whole line if VPATH becomes empty
18828 # (actually we leave an empty line to preserve line numbers).
18829 if test "x$srcdir" = x.
; then
18830 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18831 s/:*\$(srcdir):*/:/;
18832 s/:*\${srcdir}:*/:/;
18834 s/^\([^=]*=[ ]*\):*/\1/;
18840 DEFS
=-DHAVE_CONFIG_H
18844 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18845 # 1. Remove the extension, and $U if already installed.
18846 ac_i
=`echo "$ac_i" |
18847 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18849 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18850 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18852 LIBOBJS
=$ac_libobjs
18854 LTLIBOBJS
=$ac_ltlibobjs
18857 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18858 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18859 Usually this means the macro was only invoked conditionally." >&5
18860 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18861 Usually this means the macro was only invoked conditionally." >&2;}
18862 { (exit 1); exit 1; }; }
18864 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18865 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18866 Usually this means the macro was only invoked conditionally." >&5
18867 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18868 Usually this means the macro was only invoked conditionally." >&2;}
18869 { (exit 1); exit 1; }; }
18871 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18872 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18873 Usually this means the macro was only invoked conditionally." >&5
18874 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18875 Usually this means the macro was only invoked conditionally." >&2;}
18876 { (exit 1); exit 1; }; }
18878 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18879 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18880 Usually this means the macro was only invoked conditionally." >&5
18881 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18882 Usually this means the macro was only invoked conditionally." >&2;}
18883 { (exit 1); exit 1; }; }
18885 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
18886 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
18887 Usually this means the macro was only invoked conditionally." >&5
18888 echo "$as_me: error: conditional \"WEB\" was never defined.
18889 Usually this means the macro was only invoked conditionally." >&2;}
18890 { (exit 1); exit 1; }; }
18892 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
18893 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
18894 Usually this means the macro was only invoked conditionally." >&5
18895 echo "$as_me: error: conditional \"ED2K\" was never defined.
18896 Usually this means the macro was only invoked conditionally." >&2;}
18897 { (exit 1); exit 1; }; }
18899 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
18900 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
18901 Usually this means the macro was only invoked conditionally." >&5
18902 echo "$as_me: error: conditional \"CAS\" was never defined.
18903 Usually this means the macro was only invoked conditionally." >&2;}
18904 { (exit 1); exit 1; }; }
18906 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
18907 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
18908 Usually this means the macro was only invoked conditionally." >&5
18909 echo "$as_me: error: conditional \"WXCAS\" was never defined.
18910 Usually this means the macro was only invoked conditionally." >&2;}
18911 { (exit 1); exit 1; }; }
18913 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
18914 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
18915 Usually this means the macro was only invoked conditionally." >&5
18916 echo "$as_me: error: conditional \"ALC\" was never defined.
18917 Usually this means the macro was only invoked conditionally." >&2;}
18918 { (exit 1); exit 1; }; }
18920 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
18921 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
18922 Usually this means the macro was only invoked conditionally." >&5
18923 echo "$as_me: error: conditional \"ALCC\" was never defined.
18924 Usually this means the macro was only invoked conditionally." >&2;}
18925 { (exit 1); exit 1; }; }
18927 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
18928 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
18929 Usually this means the macro was only invoked conditionally." >&5
18930 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
18931 Usually this means the macro was only invoked conditionally." >&2;}
18932 { (exit 1); exit 1; }; }
18934 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
18935 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
18936 Usually this means the macro was only invoked conditionally." >&5
18937 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
18938 Usually this means the macro was only invoked conditionally." >&2;}
18939 { (exit 1); exit 1; }; }
18941 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
18942 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
18943 Usually this means the macro was only invoked conditionally." >&5
18944 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
18945 Usually this means the macro was only invoked conditionally." >&2;}
18946 { (exit 1); exit 1; }; }
18948 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
18949 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
18950 Usually this means the macro was only invoked conditionally." >&5
18951 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
18952 Usually this means the macro was only invoked conditionally." >&2;}
18953 { (exit 1); exit 1; }; }
18955 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
18956 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
18957 Usually this means the macro was only invoked conditionally." >&5
18958 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
18959 Usually this means the macro was only invoked conditionally." >&2;}
18960 { (exit 1); exit 1; }; }
18962 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
18963 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18964 Usually this means the macro was only invoked conditionally." >&5
18965 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18966 Usually this means the macro was only invoked conditionally." >&2;}
18967 { (exit 1); exit 1; }; }
18969 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
18970 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
18971 Usually this means the macro was only invoked conditionally." >&5
18972 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
18973 Usually this means the macro was only invoked conditionally." >&2;}
18974 { (exit 1); exit 1; }; }
18976 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
18977 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
18978 Usually this means the macro was only invoked conditionally." >&5
18979 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
18980 Usually this means the macro was only invoked conditionally." >&2;}
18981 { (exit 1); exit 1; }; }
18983 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
18984 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
18985 Usually this means the macro was only invoked conditionally." >&5
18986 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
18987 Usually this means the macro was only invoked conditionally." >&2;}
18988 { (exit 1); exit 1; }; }
18990 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
18991 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
18992 Usually this means the macro was only invoked conditionally." >&5
18993 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
18994 Usually this means the macro was only invoked conditionally." >&2;}
18995 { (exit 1); exit 1; }; }
18997 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
18998 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&5
19000 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19001 Usually this means the macro was only invoked conditionally." >&2;}
19002 { (exit 1); exit 1; }; }
19005 : ${CONFIG_STATUS=./config.status}
19006 ac_clean_files_save
=$ac_clean_files
19007 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19008 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19009 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19010 cat >$CONFIG_STATUS <<_ACEOF
19012 # Generated by $as_me.
19013 # Run this file to recreate the current configuration.
19014 # Compiler output produced by configure, useful for debugging
19015 # configure, is in config.log if it exists.
19018 ac_cs_recheck=false
19020 SHELL=\${CONFIG_SHELL-$SHELL}
19023 cat >>$CONFIG_STATUS <<\_ACEOF
19024 ## --------------------- ##
19025 ## M4sh Initialization. ##
19026 ## --------------------- ##
19028 # Be Bourne compatible
19029 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19032 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19033 # is contrary to our usage. Disable this feature.
19034 alias -g '${1+"$@"}'='"$@"'
19035 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19038 DUALCASE
=1; export DUALCASE
# for MKS sh
19040 # Support unset when possible.
19041 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19048 # Work around bugs in pre-3.0 UWIN ksh.
19049 $as_unset ENV MAIL MAILPATH
19056 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19057 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19058 LC_TELEPHONE LC_TIME
19060 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19061 eval $as_var=C
; export $as_var
19067 # Required to use basename.
19068 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19074 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19075 as_basename
=basename
19081 # Name of the executable.
19082 as_me
=`$as_basename "$0" ||
19083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19084 X"$0" : 'X\(//\)$' \| \
19085 X"$0" : 'X\(/\)$' \| \
19086 . : '\(.\)' 2>/dev/null ||
19088 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19089 /^X\/\(\/\/\)$/{ s//\1/; q; }
19090 /^X\/\(\/\).*/{ s//\1/; q; }
19094 # PATH needs CR, and LINENO needs CR and PATH.
19095 # Avoid depending upon Character Ranges.
19096 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19097 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19098 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19099 as_cr_digits
='0123456789'
19100 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19102 # The user is always right.
19103 if test "${PATH_SEPARATOR+set}" != set; then
19104 echo "#! /bin/sh" >conf$$.sh
19105 echo "exit 0" >>conf$$.sh
19107 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19116 as_lineno_1
=$LINENO
19117 as_lineno_2
=$LINENO
19118 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19119 test "x$as_lineno_1" != "x$as_lineno_2" &&
19120 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19121 # Find who we are. Look in the path if we contain no path at all
19124 *[\\/]* ) as_myself
=$0 ;;
19125 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19126 for as_dir
in $PATH
19129 test -z "$as_dir" && as_dir
=.
19130 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19135 # We did not find ourselves, most probably we were run as `sh COMMAND'
19136 # in which case we are not to be found in the path.
19137 if test "x$as_myself" = x
; then
19140 if test ! -f "$as_myself"; then
19141 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19142 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19143 { (exit 1); exit 1; }; }
19145 case $CONFIG_SHELL in
19147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19148 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19151 test -z "$as_dir" && as_dir
=.
19152 for as_base
in sh bash ksh sh5
; do
19155 if ("$as_dir/$as_base" -c '
19156 as_lineno_1=$LINENO
19157 as_lineno_2=$LINENO
19158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19159 test "x$as_lineno_1" != "x$as_lineno_2" &&
19160 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19161 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19162 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19163 CONFIG_SHELL
=$as_dir/$as_base
19164 export CONFIG_SHELL
19165 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19173 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19174 # uniformly replaced by the line number. The first 'sed' inserts a
19175 # line-number line before each line; the second 'sed' does the real
19176 # work. The second script uses 'N' to pair each line-number line
19177 # with the numbered line, and appends trailing '-' during
19178 # substitution so that $LINENO is not a special case at line end.
19179 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19180 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19181 sed '=' <$as_myself |
19186 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19189 s,^['$as_cr_digits']*\n,,
19190 ' >$as_me.lineno
&&
19191 chmod +x
$as_me.lineno ||
19192 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19193 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19194 { (exit 1); exit 1; }; }
19196 # Don't try to exec as it changes $[0], causing all sort of problems
19197 # (the dirname of $[0] is not the place where we might find the
19198 # original and so on. Autoconf is especially sensible to this).
19200 # Exit status is that of the last command.
19205 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19206 *c
*,-n*) ECHO_N
= ECHO_C
='
19208 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19209 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19212 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19218 rm -f conf$$ conf$$.exe conf$$.
file
19220 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19221 # We could just check for DJGPP; but this test a) works b) is more generic
19222 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19223 if test -f conf$$.exe
; then
19224 # Don't use ln at all; we don't have any links
19229 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19234 rm -f conf$$ conf$$.exe conf$$.
file
19236 if mkdir
-p .
2>/dev
/null
; then
19239 test -d .
/-p && rmdir .
/-p
19243 as_executable_p
="test -f"
19245 # Sed expression to map a string onto a valid CPP name.
19246 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19248 # Sed expression to map a string onto a valid variable name.
19249 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19253 # We need space, tab and new line, in precisely that order.
19263 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19264 # report actual input values of CONFIG_FILES etc. instead of their
19265 # values after options handling. Logging --version etc. is OK.
19269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19270 ## Running $as_me. ##
19275 This file was extended by aMule $as_me SVN, which was
19276 generated by GNU Autoconf 2.59. Invocation command line was
19278 CONFIG_FILES = $CONFIG_FILES
19279 CONFIG_HEADERS = $CONFIG_HEADERS
19280 CONFIG_LINKS = $CONFIG_LINKS
19281 CONFIG_COMMANDS = $CONFIG_COMMANDS
19285 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19289 # Files that config.status was made for.
19290 if test -n "$ac_config_files"; then
19291 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19294 if test -n "$ac_config_headers"; then
19295 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19298 if test -n "$ac_config_links"; then
19299 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19302 if test -n "$ac_config_commands"; then
19303 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19306 cat >>$CONFIG_STATUS <<\_ACEOF
19309 \`$as_me' instantiates files from templates according to the
19310 current configuration.
19312 Usage: $0 [OPTIONS] [FILE]...
19314 -h, --help print this help, then exit
19315 -V, --version print version number, then exit
19316 -q, --quiet do not print progress messages
19317 -d, --debug don't remove temporary files
19318 --recheck update $as_me by reconfiguring in the same conditions
19319 --file=FILE[:TEMPLATE]
19320 instantiate the configuration file FILE
19321 --header=FILE[:TEMPLATE]
19322 instantiate the configuration header FILE
19324 Configuration files:
19327 Configuration headers:
19330 Configuration commands:
19333 Report bugs to <bug-autoconf@gnu.org>."
19336 cat >>$CONFIG_STATUS <<_ACEOF
19338 aMule config.status SVN
19339 configured by $0, generated by GNU Autoconf 2.59,
19340 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19342 Copyright (C) 2003 Free Software Foundation, Inc.
19343 This config.status script is free software; the Free Software Foundation
19344 gives unlimited permission to copy, distribute and modify it."
19349 cat >>$CONFIG_STATUS <<\_ACEOF
19350 # If no file are specified by the user, then we need to provide default
19351 # value. By we need to know if files were specified by the user.
19357 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19358 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19366 *) # This is not an option, so the user has probably given explicit
19369 ac_need_defaults
=false
;;
19373 # Handling of the options.
19375 cat >>$CONFIG_STATUS <<\_ACEOF
19376 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19378 --version |
--vers* |
-V )
19379 echo "$ac_cs_version"; exit 0 ;;
19381 # Conflict between --help and --header
19382 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19383 Try \`$0 --help' for more information." >&5
19384 echo "$as_me: error: ambiguous option: $1
19385 Try \`$0 --help' for more information." >&2;}
19386 { (exit 1); exit 1; }; };;
19387 --help |
--hel |
-h )
19388 echo "$ac_cs_usage"; exit 0 ;;
19389 --debug |
--d* |
-d )
19391 --file |
--fil |
--fi |
--f )
19393 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19394 ac_need_defaults
=false
;;
19395 --header |
--heade |
--head |
--hea )
19397 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19398 ac_need_defaults
=false
;;
19399 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19400 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19403 # This is an error.
19404 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19405 Try \`$0 --help' for more information." >&5
19406 echo "$as_me: error: unrecognized option: $1
19407 Try \`$0 --help' for more information." >&2;}
19408 { (exit 1); exit 1; }; } ;;
19410 *) ac_config_targets
="$ac_config_targets $1" ;;
19416 ac_configure_extra_args
=
19418 if $ac_cs_silent; then
19420 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19424 cat >>$CONFIG_STATUS <<_ACEOF
19425 if \$ac_cs_recheck; then
19426 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19427 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19432 cat >>$CONFIG_STATUS <<_ACEOF
19434 # INIT-COMMANDS section.
19437 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19438 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19439 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19441 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19442 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19443 LINGUAS="${LINGUAS-%UNSET%}"
19445 level=$denoiselevel
19451 cat >>$CONFIG_STATUS <<\_ACEOF
19452 for ac_config_target
in $ac_config_targets
19454 case "$ac_config_target" in
19455 # Handling of arguments.
19456 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19457 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
19458 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
19459 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
19460 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19461 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
19462 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19463 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
19464 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
19465 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19466 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
19467 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
19468 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19469 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19470 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19471 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
19472 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19473 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19474 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19475 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19476 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19477 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
19478 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19479 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19480 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
19481 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
19482 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
19483 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
19484 "src/webserver/php-default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19485 "src/webserver/chicane/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19486 "src/webserver/litoral/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19487 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
19488 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19489 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
19490 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
19491 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
19492 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
19493 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19494 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
19495 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
19496 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
19497 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19498 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19499 { (exit 1); exit 1; }; };;
19503 # If the user did not use the arguments to specify the items to instantiate,
19504 # then the envvar interface is used. Set only those that are not.
19505 # We use the long form for the default assignment because of an extremely
19506 # bizarre bug on SunOS 4.1.3.
19507 if $ac_need_defaults; then
19508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19513 # Have a temporary directory for convenience. Make it in the build tree
19514 # simply because there is no reason to put it here, and in addition,
19515 # creating and moving files from /tmp can sometimes cause problems.
19516 # Create a temporary directory, and hook for its removal unless debugging.
19519 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19520 trap '{ (exit 1); exit 1; }' 1 2 13 15
19523 # Create a (secure) tmp directory for tmp files.
19526 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19527 test -n "$tmp" && test -d "$tmp"
19530 tmp
=.
/confstat$$
-$RANDOM
19531 (umask 077 && mkdir
$tmp)
19534 echo "$me: cannot create a temporary directory in ." >&2
19535 { (exit 1); exit 1; }
19540 cat >>$CONFIG_STATUS <<_ACEOF
19543 # CONFIG_FILES section.
19546 # No need to generate the scripts if there are no CONFIG_FILES.
19547 # This happens for instance when ./config.status config.h
19548 if test -n "\$CONFIG_FILES"; then
19549 # Protect against being on the right side of a sed subst in config.status.
19550 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19551 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19552 s,@SHELL@,$SHELL,;t t
19553 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19554 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19555 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19556 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19557 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19558 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19559 s,@exec_prefix@,$exec_prefix,;t t
19560 s,@prefix@,$prefix,;t t
19561 s,@program_transform_name@,$program_transform_name,;t t
19562 s,@bindir@,$bindir,;t t
19563 s,@sbindir@,$sbindir,;t t
19564 s,@libexecdir@,$libexecdir,;t t
19565 s,@datadir@,$datadir,;t t
19566 s,@sysconfdir@,$sysconfdir,;t t
19567 s,@sharedstatedir@,$sharedstatedir,;t t
19568 s,@localstatedir@,$localstatedir,;t t
19569 s,@libdir@,$libdir,;t t
19570 s,@includedir@,$includedir,;t t
19571 s,@oldincludedir@,$oldincludedir,;t t
19572 s,@infodir@,$infodir,;t t
19573 s,@mandir@,$mandir,;t t
19574 s,@build_alias@,$build_alias,;t t
19575 s,@host_alias@,$host_alias,;t t
19576 s,@target_alias@,$target_alias,;t t
19577 s,@DEFS@,$DEFS,;t t
19578 s,@ECHO_C@,$ECHO_C,;t t
19579 s,@ECHO_N@,$ECHO_N,;t t
19580 s,@ECHO_T@,$ECHO_T,;t t
19581 s,@LIBS@,$LIBS,;t t
19582 s,@build@,$build,;t t
19583 s,@build_cpu@,$build_cpu,;t t
19584 s,@build_vendor@,$build_vendor,;t t
19585 s,@build_os@,$build_os,;t t
19586 s,@host@,$host,;t t
19587 s,@host_cpu@,$host_cpu,;t t
19588 s,@host_vendor@,$host_vendor,;t t
19589 s,@host_os@,$host_os,;t t
19590 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19591 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19592 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19593 s,@CYGPATH_W@,$CYGPATH_W,;t t
19594 s,@PACKAGE@,$PACKAGE,;t t
19595 s,@VERSION@,$VERSION,;t t
19596 s,@ACLOCAL@,$ACLOCAL,;t t
19597 s,@AUTOCONF@,$AUTOCONF,;t t
19598 s,@AUTOMAKE@,$AUTOMAKE,;t t
19599 s,@AUTOHEADER@,$AUTOHEADER,;t t
19600 s,@MAKEINFO@,$MAKEINFO,;t t
19601 s,@install_sh@,$install_sh,;t t
19602 s,@STRIP@,$STRIP,;t t
19603 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19604 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19605 s,@mkdir_p@,$mkdir_p,;t t
19607 s,@SET_MAKE@,$SET_MAKE,;t t
19608 s,@am__leading_dot@,$am__leading_dot,;t t
19609 s,@AMTAR@,$AMTAR,;t t
19610 s,@am__tar@,$am__tar,;t t
19611 s,@am__untar@,$am__untar,;t t
19612 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19613 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19614 s,@MAINT@,$MAINT,;t t
19615 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19616 s,@X11LIBS@,$X11LIBS,;t t
19618 s,@CXXFLAGS@,$CXXFLAGS,;t t
19619 s,@LDFLAGS@,$LDFLAGS,;t t
19620 s,@CPPFLAGS@,$CPPFLAGS,;t t
19621 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19622 s,@EXEEXT@,$EXEEXT,;t t
19623 s,@OBJEXT@,$OBJEXT,;t t
19624 s,@DEPDIR@,$DEPDIR,;t t
19625 s,@am__include@,$am__include,;t t
19626 s,@am__quote@,$am__quote,;t t
19627 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19628 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19629 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19630 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19631 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19632 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19633 s,@CXXCPP@,$CXXCPP,;t t
19635 s,@CFLAGS@,$CFLAGS,;t t
19636 s,@ac_ct_CC@,$ac_ct_CC,;t t
19637 s,@CCDEPMODE@,$CCDEPMODE,;t t
19638 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19639 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19641 s,@BUILD_CC@,$BUILD_CC,;t t
19642 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19643 s,@EXEEXT@,$EXEEXT,;t t
19644 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19645 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19646 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19647 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19648 s,@EGREP@,$EGREP,;t t
19650 s,@LEXLIB@,$LEXLIB,;t t
19651 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19652 s,@RANLIB@,$RANLIB,;t t
19653 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19654 s,@YACC@,$YACC,;t t
19656 s,@ac_ct_AR@,$ac_ct_AR,;t t
19658 s,@ac_ct_LD@,$ac_ct_LD,;t t
19659 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19660 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19661 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19662 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19663 s,@CAS_DEFS@,$CAS_DEFS,;t t
19664 s,@REGEX_LIB@,$REGEX_LIB,;t t
19665 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19666 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19667 s,@LIBPNG_CXXFLAGS@,$LIBPNG_CXXFLAGS,;t t
19668 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19669 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19670 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19671 s,@GEOIP_INCLUDE@,$GEOIP_INCLUDE,;t t
19672 s,@GEOIP_LIB@,$GEOIP_LIB,;t t
19673 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19674 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19675 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19676 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19677 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19678 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19679 s,@WX_LIBS@,$WX_LIBS,;t t
19680 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19681 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19682 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19683 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19684 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19685 s,@WX_UNICODE@,$WX_UNICODE,;t t
19686 s,@WX_DEBUG@,$WX_DEBUG,;t t
19687 s,@WX_SHARED@,$WX_SHARED,;t t
19688 s,@WX_PORT@,$WX_PORT,;t t
19690 s,@ac_ct_RC@,$ac_ct_RC,;t t
19691 s,@RCFLAGS@,$RCFLAGS,;t t
19692 s,@CRYPTO_PP_PREFIX@,$CRYPTO_PP_PREFIX,;t t
19693 s,@CRYPTO_PP_VERSION_STRING@,$CRYPTO_PP_VERSION_STRING,;t t
19694 s,@CRYPTO_PP_VERSION_NUMBER@,$CRYPTO_PP_VERSION_NUMBER,;t t
19695 s,@CRYPTO_PP_STYLE@,$CRYPTO_PP_STYLE,;t t
19696 s,@CRYPTO_PP_LIB_NAME@,$CRYPTO_PP_LIB_NAME,;t t
19697 s,@CRYPTO_PP_INCLUDE_PREFIX@,$CRYPTO_PP_INCLUDE_PREFIX,;t t
19698 s,@CRYPTO_PP_CXXFLAGS@,$CRYPTO_PP_CXXFLAGS,;t t
19699 s,@CRYPTO_PP_LDFLAGS@,$CRYPTO_PP_LDFLAGS,;t t
19700 s,@CRYPTOLIBS@,$CRYPTOLIBS,;t t
19701 s,@BFD_FLAGS@,$BFD_FLAGS,;t t
19702 s,@BFD_LIB@,$BFD_LIB,;t t
19703 s,@HAVE_GETTEXT@,$HAVE_GETTEXT,;t t
19704 s,@HAVE_FLEX_EXTENDED@,$HAVE_FLEX_EXTENDED,;t t
19705 s,@ALLOCA@,$ALLOCA,;t t
19706 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19707 s,@MSGFMT@,$MSGFMT,;t t
19708 s,@GMSGFMT@,$GMSGFMT,;t t
19709 s,@XGETTEXT@,$XGETTEXT,;t t
19710 s,@MSGMERGE@,$MSGMERGE,;t t
19711 s,@GLIBC21@,$GLIBC21,;t t
19712 s,@LIBICONV@,$LIBICONV,;t t
19713 s,@LTLIBICONV@,$LTLIBICONV,;t t
19714 s,@INTLBISON@,$INTLBISON,;t t
19715 s,@USE_NLS@,$USE_NLS,;t t
19716 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19717 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19718 s,@CATOBJEXT@,$CATOBJEXT,;t t
19719 s,@INTLOBJS@,$INTLOBJS,;t t
19720 s,@DATADIRNAME@,$DATADIRNAME,;t t
19721 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19722 s,@GENCAT@,$GENCAT,;t t
19723 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19724 s,@INTLLIBS@,$INTLLIBS,;t t
19725 s,@LIBINTL@,$LIBINTL,;t t
19726 s,@LTLIBINTL@,$LTLIBINTL,;t t
19727 s,@POSUB@,$POSUB,;t t
19728 s,@LIBOBJS@,$LIBOBJS,;t t
19729 s,@POW_LIB@,$POW_LIB,;t t
19730 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19731 s,@WXBASE_CFLAGS@,$WXBASE_CFLAGS,;t t
19732 s,@WXBASE_CXXFLAGS@,$WXBASE_CXXFLAGS,;t t
19733 s,@docdir@,$docdir,;t t
19734 s,@SVNDATE@,$SVNDATE,;t t
19735 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19736 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19737 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19738 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19739 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19740 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19741 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19742 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19743 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19744 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19745 s,@WEB_TRUE@,$WEB_TRUE,;t t
19746 s,@WEB_FALSE@,$WEB_FALSE,;t t
19747 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19748 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19749 s,@CAS_TRUE@,$CAS_TRUE,;t t
19750 s,@CAS_FALSE@,$CAS_FALSE,;t t
19751 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19752 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19753 s,@ALC_TRUE@,$ALC_TRUE,;t t
19754 s,@ALC_FALSE@,$ALC_FALSE,;t t
19755 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19756 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19757 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19758 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19759 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19760 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19761 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19762 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19763 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19764 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19765 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19766 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19767 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19768 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19769 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19770 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19771 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19772 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19773 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19774 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19775 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19776 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19777 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19778 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19779 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19780 s,@ccache@,$ccache,;t t
19781 s,@CCACHE@,$CCACHE,;t t
19782 s,@ccache_prefix@,$ccache_prefix,;t t
19783 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19788 cat >>$CONFIG_STATUS <<\_ACEOF
19789 # Split the substitutions into bite-sized pieces for seds with
19790 # small command number limits, like on Digital OSF/1 and HP-UX.
19791 ac_max_sed_lines
=48
19792 ac_sed_frag
=1 # Number of current file.
19793 ac_beg
=1 # First line for current file.
19794 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19797 while $ac_more_lines; do
19798 if test $ac_beg -gt 1; then
19799 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19801 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19803 if test ! -s $tmp/subs.frag
; then
19804 ac_more_lines
=false
19806 # The purpose of the label and of the branching condition is to
19807 # speed up the sed processing (if there are no `@' at all, there
19808 # is no need to browse any of the substitutions).
19809 # These are the two extra sed commands mentioned above.
19811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19812 if test -z "$ac_sed_cmds"; then
19813 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19815 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19817 ac_sed_frag
=`expr $ac_sed_frag + 1`
19819 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19822 if test -z "$ac_sed_cmds"; then
19825 fi # test -n "$CONFIG_FILES"
19828 cat >>$CONFIG_STATUS <<\_ACEOF
19829 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19832 - |
*:- |
*:-:* ) # input from stdin
19834 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19835 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19836 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19837 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19838 * ) ac_file_in
=$ac_file.
in ;;
19841 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19842 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19844 X"$ac_file" : 'X\(//\)[^/]' \| \
19845 X"$ac_file" : 'X\(//\)$' \| \
19846 X"$ac_file" : 'X\(/\)' \| \
19847 . : '\(.\)' 2>/dev/null ||
19849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19851 /^X\(\/\/\)$/{ s//\1/; q; }
19852 /^X\(\/\).*/{ s//\1/; q; }
19854 { if $as_mkdir_p; then
19859 while test ! -d "$as_dir"; do
19860 as_dirs
="$as_dir $as_dirs"
19861 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19863 X"$as_dir" : 'X\(//\)[^/]' \| \
19864 X"$as_dir" : 'X\(//\)$' \| \
19865 X"$as_dir" : 'X\(/\)' \| \
19866 . : '\(.\)' 2>/dev/null ||
19868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19870 /^X\(\/\/\)$/{ s//\1/; q; }
19871 /^X\(\/\).*/{ s//\1/; q; }
19874 test ! -n "$as_dirs" || mkdir
$as_dirs
19875 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19876 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19877 { (exit 1); exit 1; }; }; }
19881 if test "$ac_dir" != .
; then
19882 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19883 # A "../" for each directory in $ac_dir_suffix.
19884 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19886 ac_dir_suffix
= ac_top_builddir
=
19890 .
) # No --srcdir option. We are building in place.
19892 if test -z "$ac_top_builddir"; then
19895 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19897 [\\/]* | ?
:[\\/]* ) # Absolute path.
19898 ac_srcdir
=$srcdir$ac_dir_suffix;
19899 ac_top_srcdir
=$srcdir ;;
19900 *) # Relative path.
19901 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19902 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19905 # Do not use `cd foo && pwd` to compute absolute paths, because
19906 # the directories may not exist.
19908 .
) ac_abs_builddir
="$ac_dir";;
19911 .
) ac_abs_builddir
=`pwd`;;
19912 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
19913 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
19916 case $ac_abs_builddir in
19917 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19919 case ${ac_top_builddir}.
in
19920 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
19921 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19922 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
19925 case $ac_abs_builddir in
19926 .
) ac_abs_srcdir
=$ac_srcdir;;
19929 .
) ac_abs_srcdir
=$ac_abs_builddir;;
19930 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
19931 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
19934 case $ac_abs_builddir in
19935 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
19937 case $ac_top_srcdir in
19938 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
19939 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
19940 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
19946 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19947 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19950 if test x
"$ac_file" != x-
; then
19951 { echo "$as_me:$LINENO: creating $ac_file" >&5
19952 echo "$as_me: creating $ac_file" >&6;}
19955 # Let's still pretend it is `configure' which instantiates (i.e., don't
19956 # use $as_me), people would be surprised to read:
19957 # /* config.h. Generated by config.status. */
19958 if test x
"$ac_file" = x-
; then
19961 configure_input
="$ac_file. "
19963 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19964 sed 's,.*/,,'` by configure."
19966 # First look for the input files in the build tree, otherwise in the
19968 ac_file_inputs
=`IFS=:
19969 for f in $ac_file_in; do
19971 -) echo $tmp/stdin ;;
19973 # Absolute (can't be DOS-style, as IFS=:)
19974 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19975 echo "$as_me: error: cannot find input file: $f" >&2;}
19976 { (exit 1); exit 1; }; }
19979 if test -f "$f"; then
19982 elif test -f "$srcdir/$f"; then
19987 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19988 echo "$as_me: error: cannot find input file: $f" >&2;}
19989 { (exit 1); exit 1; }; }
19992 done` ||
{ (exit 1); exit 1; }
19994 cat >>$CONFIG_STATUS <<_ACEOF
19998 cat >>$CONFIG_STATUS <<\_ACEOF
20000 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20001 s
,@configure_input@
,$configure_input,;t t
20002 s
,@srcdir@
,$ac_srcdir,;t t
20003 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20004 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20005 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20006 s
,@builddir@
,$ac_builddir,;t t
20007 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20008 s
,@top_builddir@
,$ac_top_builddir,;t t
20009 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20010 s
,@INSTALL@
,$ac_INSTALL,;t t
20011 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20013 if test x"$ac_file" != x-; then
20014 mv $tmp/out $ac_file
20022 cat >>$CONFIG_STATUS <<\_ACEOF
20025 # CONFIG_HEADER section.
20028 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20029 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20031 # ac_d sets the value in "#define NAME VALUE" lines.
20032 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20033 ac_dB
='[ ].*$,\1#\2'
20036 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20037 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20038 ac_uB
='$,\1#\2define\3'
20042 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20045 - |
*:- |
*:-:* ) # input from stdin
20047 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20048 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20049 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20050 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20051 * ) ac_file_in
=$ac_file.
in ;;
20054 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20055 echo "$as_me: creating $ac_file" >&6;}
20057 # First look for the input files in the build tree, otherwise in the
20059 ac_file_inputs
=`IFS=:
20060 for f in $ac_file_in; do
20062 -) echo $tmp/stdin ;;
20064 # Absolute (can't be DOS-style, as IFS=:)
20065 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20066 echo "$as_me: error: cannot find input file: $f" >&2;}
20067 { (exit 1); exit 1; }; }
20068 # Do quote $f, to prevent DOS paths from being IFS'd.
20071 if test -f "$f"; then
20074 elif test -f "$srcdir/$f"; then
20079 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20080 echo "$as_me: error: cannot find input file: $f" >&2;}
20081 { (exit 1); exit 1; }; }
20084 done` ||
{ (exit 1); exit 1; }
20085 # Remove the trailing spaces.
20086 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20090 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20091 # `conftest.undefs', that substitutes the proper values into
20092 # config.h.in to produce config.h. The first handles `#define'
20093 # templates, and the second `#undef' templates.
20094 # And first: Protect against being on the right side of a sed subst in
20095 # config.status. Protect against being in an unquoted here document
20096 # in config.status.
20097 rm -f conftest.defines conftest.undefs
20098 # Using a here document instead of a string reduces the quoting nightmare.
20099 # Putting comments in sed scripts is not portable.
20101 # `end' is used to avoid that the second main sed command (meant for
20102 # 0-ary CPP macros) applies to n-ary macro definitions.
20103 # See the Autoconf documentation for `clear'.
20104 cat >confdef2sed.
sed <<\_ACEOF
20109 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20111 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20114 # If some macros were called several times there might be several times
20115 # the same #defines, which is useless. Nevertheless, we may not want to
20116 # sort them, since we want the *last* AC-DEFINE to be honored.
20117 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20118 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20119 rm -f confdef2sed.sed
20121 # This sed command replaces #undef with comments. This is necessary, for
20122 # example, in the case of _POSIX_SOURCE, which is predefined and required
20123 # on some systems where configure will not decide to define it.
20124 cat >>conftest.undefs <<\_ACEOF
20125 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20128 # Break up conftest.defines because some shells have a limit on the size
20129 # of here documents, and old seds have small limits too (100 cmds).
20130 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20131 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20132 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20133 echo ' :' >>$CONFIG_STATUS
20134 rm -f conftest.tail
20135 while grep . conftest.defines >/dev/null
20137 # Write a limited-size here document to $tmp/defines.sed.
20138 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20139 # Speed up: don't consider the non `#define' lines.
20140 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20141 # Work around the forget-to-reset-the-flag bug.
20142 echo 't clr' >>$CONFIG_STATUS
20143 echo ': clr' >>$CONFIG_STATUS
20144 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20146 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20148 mv $tmp/out $tmp/in
20150 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20151 rm -f conftest.defines
20152 mv conftest.
tail conftest.defines
20154 rm -f conftest.defines
20155 echo ' fi # grep' >>$CONFIG_STATUS
20156 echo >>$CONFIG_STATUS
20158 # Break up conftest.undefs because some shells have a limit on the size
20159 # of here documents, and old seds have small limits too (100 cmds).
20160 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20161 rm -f conftest.
tail
20162 while grep . conftest.undefs
>/dev
/null
20164 # Write a limited-size here document to $tmp/undefs.sed.
20165 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20166 # Speed up: don't consider the non
`#undef'
20167 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20168 # Work around the forget-to-reset-the-flag bug.
20169 echo 't clr' >>$CONFIG_STATUS
20170 echo ': clr' >>$CONFIG_STATUS
20171 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20173 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20175 mv $tmp/out $tmp/in
20177 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20178 rm -f conftest.undefs
20179 mv conftest.tail conftest.undefs
20181 rm -f conftest.undefs
20183 cat >>$CONFIG_STATUS <<\_ACEOF
20184 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20185 # use $as_me), people would be surprised to read:
20186 # /* config.h. Generated by config.status. */
20187 if test x
"$ac_file" = x-
; then
20188 echo "/* Generated by configure. */" >$tmp/config.h
20190 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20192 cat $tmp/in >>$tmp/config.h
20194 if test x
"$ac_file" != x-
; then
20195 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20196 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20197 echo "$as_me: $ac_file is unchanged" >&6;}
20199 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20201 X"$ac_file" : 'X\(//\)[^/]' \| \
20202 X"$ac_file" : 'X\(//\)$' \| \
20203 X"$ac_file" : 'X\(/\)' \| \
20204 . : '\(.\)' 2>/dev/null ||
20206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20208 /^X\(\/\/\)$/{ s//\1/; q; }
20209 /^X\(\/\).*/{ s//\1/; q; }
20211 { if $as_mkdir_p; then
20216 while test ! -d "$as_dir"; do
20217 as_dirs
="$as_dir $as_dirs"
20218 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20220 X"$as_dir" : 'X\(//\)[^/]' \| \
20221 X"$as_dir" : 'X\(//\)$' \| \
20222 X"$as_dir" : 'X\(/\)' \| \
20223 . : '\(.\)' 2>/dev/null ||
20225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20227 /^X\(\/\/\)$/{ s//\1/; q; }
20228 /^X\(\/\).*/{ s//\1/; q; }
20231 test ! -n "$as_dirs" || mkdir
$as_dirs
20232 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20233 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20234 { (exit 1); exit 1; }; }; }
20237 mv $tmp/config.h
$ac_file
20241 rm -f $tmp/config.h
20243 # Compute $ac_file's index in $config_headers.
20245 for _am_header
in $config_headers :; do
20246 case $_am_header in
20247 $ac_file |
$ac_file:* )
20250 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20253 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20254 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20255 X$ac_file : 'X\(//\)[^/]' \| \
20256 X$ac_file : 'X\(//\)$' \| \
20257 X$ac_file : 'X\(/\)' \| \
20258 . : '\(.\)' 2>/dev/null ||
20260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20262 /^X\(\/\/\)$/{ s//\1/; q; }
20263 /^X\(\/\).*/{ s//\1/; q; }
20264 s/.*/./; q'`/stamp-h
$_am_stamp_count
20267 cat >>$CONFIG_STATUS <<\_ACEOF
20270 # CONFIG_COMMANDS section.
20272 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20273 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20274 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20275 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20276 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20277 X"$ac_dest" : 'X\(//\)[^/]' \| \
20278 X"$ac_dest" : 'X\(//\)$' \| \
20279 X"$ac_dest" : 'X\(/\)' \| \
20280 . : '\(.\)' 2>/dev/null ||
20282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20284 /^X\(\/\/\)$/{ s//\1/; q; }
20285 /^X\(\/\).*/{ s//\1/; q; }
20287 { if $as_mkdir_p; then
20292 while test ! -d "$as_dir"; do
20293 as_dirs
="$as_dir $as_dirs"
20294 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20296 X"$as_dir" : 'X\(//\)[^/]' \| \
20297 X"$as_dir" : 'X\(//\)$' \| \
20298 X"$as_dir" : 'X\(/\)' \| \
20299 . : '\(.\)' 2>/dev/null ||
20301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20303 /^X\(\/\/\)$/{ s//\1/; q; }
20304 /^X\(\/\).*/{ s//\1/; q; }
20307 test ! -n "$as_dirs" || mkdir
$as_dirs
20308 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20309 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20310 { (exit 1); exit 1; }; }; }
20314 if test "$ac_dir" != .
; then
20315 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20316 # A "../" for each directory in $ac_dir_suffix.
20317 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20319 ac_dir_suffix
= ac_top_builddir
=
20323 .
) # No --srcdir option. We are building in place.
20325 if test -z "$ac_top_builddir"; then
20328 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20330 [\\/]* | ?
:[\\/]* ) # Absolute path.
20331 ac_srcdir
=$srcdir$ac_dir_suffix;
20332 ac_top_srcdir
=$srcdir ;;
20333 *) # Relative path.
20334 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20335 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20338 # Do not use `cd foo && pwd` to compute absolute paths, because
20339 # the directories may not exist.
20341 .
) ac_abs_builddir
="$ac_dir";;
20344 .
) ac_abs_builddir
=`pwd`;;
20345 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20346 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20349 case $ac_abs_builddir in
20350 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20352 case ${ac_top_builddir}.
in
20353 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20354 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20355 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20358 case $ac_abs_builddir in
20359 .
) ac_abs_srcdir
=$ac_srcdir;;
20362 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20363 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20364 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20367 case $ac_abs_builddir in
20368 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20370 case $ac_top_srcdir in
20371 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20372 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20373 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20378 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20379 echo "$as_me: executing $ac_dest commands" >&6;}
20381 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20382 # Strip MF so we end up with the name of the file.
20383 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20384 # Check whether this is an Automake generated Makefile or not.
20385 # We used to match only the files named `Makefile.in', but
20386 # some people rename them; so instead we look at the file content.
20387 # Grep'ing the first line is not enough: some people post-process
20388 # each Makefile.in and add a new line on top of each file to say so.
20389 # So let's grep whole file.
20390 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
20391 dirpart
=`(dirname "$mf") 2>/dev/null ||
20392 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20393 X"$mf" : 'X\(//\)[^/]' \| \
20394 X"$mf" : 'X\(//\)$' \| \
20395 X"$mf" : 'X\(/\)' \| \
20396 . : '\(.\)' 2>/dev/null ||
20398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20400 /^X\(\/\/\)$/{ s//\1/; q; }
20401 /^X\(\/\).*/{ s//\1/; q; }
20406 # Extract the definition of DEPDIR, am__include, and am__quote
20407 # from the Makefile without running `make'.
20408 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20409 test -z "$DEPDIR" && continue
20410 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20411 test -z "am__include" && continue
20412 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20413 # When using ansi2knr, U may be empty or an underscore; expand it
20414 U
=`sed -n 's/^U = //p' < "$mf"`
20415 # Find all dependency output files, they are included files with
20416 # $(DEPDIR) in their names. We invoke sed twice because it is the
20417 # simplest approach to changing $(DEPDIR) to its actual value in the
20419 for file in `sed -n "
20420 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20421 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20422 # Make sure the directory exists.
20423 test -f "$dirpart/$file" && continue
20424 fdir
=`(dirname "$file") 2>/dev/null ||
20425 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20426 X"$file" : 'X\(//\)[^/]' \| \
20427 X"$file" : 'X\(//\)$' \| \
20428 X"$file" : 'X\(/\)' \| \
20429 . : '\(.\)' 2>/dev/null ||
20431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20433 /^X\(\/\/\)$/{ s//\1/; q; }
20434 /^X\(\/\).*/{ s//\1/; q; }
20436 { if $as_mkdir_p; then
20437 mkdir
-p $dirpart/$fdir
20439 as_dir
=$dirpart/$fdir
20441 while test ! -d "$as_dir"; do
20442 as_dirs
="$as_dir $as_dirs"
20443 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20445 X"$as_dir" : 'X\(//\)[^/]' \| \
20446 X"$as_dir" : 'X\(//\)$' \| \
20447 X"$as_dir" : 'X\(/\)' \| \
20448 . : '\(.\)' 2>/dev/null ||
20450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20452 /^X\(\/\/\)$/{ s//\1/; q; }
20453 /^X\(\/\).*/{ s//\1/; q; }
20456 test ! -n "$as_dirs" || mkdir
$as_dirs
20457 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20458 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20459 { (exit 1); exit 1; }; }; }
20461 # echo "creating $dirpart/$file"
20462 echo '# dummy' > "$dirpart/$file"
20467 for ac_file
in $CONFIG_FILES; do
20468 # Support "outfile[:infile[:infile...]]"
20470 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
20472 # PO directories have a Makefile.in generated from Makefile.in.in.
20473 case "$ac_file" in */Makefile.
in)
20474 # Adjust a relative srcdir.
20475 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20476 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
20477 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20478 # In autoconf-2.13 it is called $ac_given_srcdir.
20479 # In autoconf-2.50 it is called $srcdir.
20480 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
20481 case "$ac_given_srcdir" in
20482 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
20483 /*) top_srcdir
="$ac_given_srcdir" ;;
20484 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
20486 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20487 rm -f "$ac_dir/POTFILES"
20488 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
20489 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20490 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20491 # on $ac_dir but don't depend on user-specified configuration
20493 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20494 # The LINGUAS file contains the set of available languages.
20495 if test -n "$ALL_LINGUAS"; then
20496 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
20498 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20499 # Hide the ALL_LINGUAS assigment from automake.
20500 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20502 case "$ac_given_srcdir" in
20504 *) srcdirpre
='$(srcdir)/' ;;
20510 for lang
in $ALL_LINGUAS; do
20511 POFILES
="$POFILES $srcdirpre$lang.po"
20512 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
20513 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
20514 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
20516 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20517 # environment variable.
20519 if test -n "$ALL_LINGUAS"; then
20520 for presentlang
in $ALL_LINGUAS; do
20522 if test "%UNSET%" != "$LINGUAS"; then
20523 desiredlanguages
="$LINGUAS"
20525 desiredlanguages
="$ALL_LINGUAS"
20527 for desiredlang
in $desiredlanguages; do
20528 # Use the presentlang catalog if desiredlang is
20529 # a. equal to presentlang, or
20530 # b. a variant of presentlang (because in this case,
20531 # presentlang can be used as a fallback for messages
20532 # which are not translated in the desiredlang catalog).
20533 case "$desiredlang" in
20534 "$presentlang"*) useit
=yes;;
20537 if test $useit = yes; then
20538 INST_LINGUAS
="$INST_LINGUAS $presentlang"
20543 if test -n "$INST_LINGUAS"; then
20544 for lang
in $INST_LINGUAS; do
20545 CATALOGS
="$CATALOGS $lang.gmo"
20548 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
20549 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"
20550 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
20551 if test -f "$f"; then
20553 *.orig |
*.bak |
*~
) ;;
20554 *) cat "$f" >> "$ac_dir/Makefile" ;;
20562 denoiser
) if test $level -gt 0; then
20563 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
20564 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$level/{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" \
20565 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
20566 for i
in `find . -name 'Makefile' -print`; do
20567 if test -n "`head -n 1 $i | grep '^#'`"; then
20568 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
20576 cat >>$CONFIG_STATUS <<\_ACEOF
20578 { (exit 0); exit 0; }
20580 chmod +x
$CONFIG_STATUS
20581 ac_clean_files
=$ac_clean_files_save
20584 # configure is writing to config.log, and then calls config.status.
20585 # config.status does its own redirection, appending to config.log.
20586 # Unfortunately, on DOS this fails, as config.log is still kept open
20587 # by configure, so config.status won't be able to write to it; its
20588 # output is simply discarded. So we exec the FD to /dev/null,
20589 # effectively closing config.log, so it can be properly (re)opened and
20590 # appended to by config.status. When coming back to configure, we
20591 # need to make the FD available again.
20592 if test "$no_create" != yes; then
20594 ac_config_status_args
=
20595 test "$silent" = yes &&
20596 ac_config_status_args
="$ac_config_status_args --quiet"
20598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20601 # would make configure fail if this is the last instruction.
20602 $ac_cs_success ||
{ (exit 1); exit 1; }
20608 echo " Configure script has finished system check."
20610 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20612 echo " aMule enabled options:"
20614 echo " **** aMule Core ****"
20615 echo " Prefix where aMule should be installed? ${prefix:-none}"
20616 echo " Should aMule be compiled with i18n support? ${HAVE_GETTEXT:-no}"
20617 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20618 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20619 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20620 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20621 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20622 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20623 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20624 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20625 echo " Crypto++ library/headers style? ${CRYPTO_PP_STYLE:-not found}"
20628 echo " **** aMule TextClient ****"
20629 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20631 echo " **** aMule WebServer ****"
20632 echo " Should aMule WebServer be built? ${WEB:-no}"
20634 echo " **** aMule ED2K Links Handler ****"
20635 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20637 echo " **** aMuleLinkCreator ****"
20638 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20639 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20641 echo " **** aMule Statistics ****"
20642 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20643 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20646 echo " **** General Libraries and Tools ****"
20647 echo " Should ccache support be enabled? ${ccache:-no}"
20648 echo " Libraries aMule will use to build:"
20650 if test $WX_DEBUG -eq 1; then
20651 wxinfo
="$wxinfo,debug"
20654 if test $WX_SHARED -eq 1; then
20655 wxinfo
="$wxinfo,shared"
20657 wxinfo
="$wxinfo,static"
20660 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20661 echo " crypto++ ${CRYPTO_PP_VERSION_STRING} (${CRYPTO_PP_STYLE})"
20662 if test x
${WEB:-no} != xno
; then
20663 if test $regex_found = no
; then
20664 regex_found
="Not detected"
20666 if test x
$REGEX_LIB = x
; then
20669 regex_found
="standalone (in $REGEX_LIB)"
20674 echo " regex $regex_found"
20676 if test x
$LIBPNG_VERSION != xnot_needed
; then
20677 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20679 if test x
$GDLIB_VERSION != xnot_needed
; then
20680 echo " libgd ${GDLIB_VERSION:-Not detected}"
20682 echo " zlib ${ZLIB_VERSION:-Not detected}"
20683 if test x
$WEB = xdisabled
; then
20686 echo "WARNING! amuleweb has been disabled because configure could not find"
20687 echo "a POSIX compliant regex library."
20690 if test x
"$LIBPNG_VERSION" = x
""; then
20693 echo " WARNING! libpng >= 1.2.0 not found."
20694 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."