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. */
5655 const char zver[] = "\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n";
5663 rm -f conftest.
$ac_objext conftest
$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1
>conftest.err
5669 cat conftest.err
>&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try
='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try
='test -s conftest$ac_exeext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5686 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5687 ac_cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5688 ac_cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5689 ac_cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5690 if test "$ac_cross_zver_max" -gt "1"; then
5692 elif test "$ac_cross_zver_max" -eq "1"; then
5693 if test "$ac_cross_zver_mid" -gt "1"; then
5695 elif "$ac_cross_zver_mid" -eq "1"; then
5696 if test "$ac_cross_zver_min" -ge "4"; then
5701 if test x
$result = xyes
; then
5702 z_version
=" (version $ZLIB_VERSION)"
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.
$ac_ext >&5
5710 rm -f conftest.err conftest.
$ac_objext \
5711 conftest
$ac_exeext conftest.
$ac_ext
5712 echo "$as_me:$LINENO: result: $result$z_version" >&5
5713 echo "${ECHO_T}$result$z_version" >&6
5716 cat >conftest.
$ac_ext <<_ACEOF
5720 cat confdefs.h
>>conftest.
$ac_ext
5721 cat >>conftest.
$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5730 char *zver = zlibVersion();
5731 FILE *f=fopen("conftestval", "w");
5738 zver[4] >= '4'))) ? "yes" : "no");
5740 f=fopen("conftestver", "w");
5742 fprintf(f, "%s", ZLIB_VERSION);
5751 rm -f conftest
$ac_exeext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753 (eval $ac_link) 2>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5763 if test -f conftestval
; then
5764 result
=`cat conftestval`
5768 if test x
$result = xyes
; then
5769 if test -f conftestver
; then
5770 ZLIB_VERSION
=`cat conftestver`
5771 z_version
=" (version $ZLIB_VERSION)"
5776 echo "$as_me:$LINENO: result: $result$z_version" >&5
5777 echo "${ECHO_T}$result$z_version" >&6
5780 echo "$as_me: program exited with status $ac_status" >&5
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5787 echo "$as_me:$LINENO: result: $result" >&5
5788 echo "${ECHO_T}$result" >&6
5791 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5793 if test x
$result = xno
; then
5795 if test "${ac_tmp_CPPFLAGS+set}" = set; then
5796 CPPFLAGS
="$ac_tmp_CPPFLAGS"
5798 if test "${ac_tmp_LDFLAGS+set}" = set; then
5799 LDFLAGS
="$ac_tmp_LDFLAGS"
5802 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5803 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5804 { (exit 1); exit 1; }; }
5811 if test x
$CAS = xyes
-o x
$WEB = xyes
; then
5815 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
5816 if test "${with_gdlib_prefix+set}" = set; then
5817 withval
="$with_gdlib_prefix"
5818 gdlib_config_prefix
="$withval"
5820 gdlib_config_prefix
=""
5823 # Check whether --with-gdlib-config or --without-gdlib-config was given.
5824 if test "${with_gdlib_config+set}" = set; then
5825 withval
="$with_gdlib_config"
5826 gdlib_config_name
="$withval"
5828 gdlib_config_name
=""
5832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5834 if test "${ac_cv_header_stdc+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 cat >conftest.
$ac_ext <<_ACEOF
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5856 rm -f conftest.
$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5860 grep -v '^ *+' conftest.er1
>conftest.err
5862 cat conftest.err
>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try
='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try
='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_header_stdc
=yes
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.
$ac_ext >&5
5883 ac_cv_header_stdc
=no
5885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 if test $ac_cv_header_stdc = yes; then
5888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889 cat >conftest.
$ac_ext <<_ACEOF
5892 cat confdefs.h
>>conftest.
$ac_ext
5893 cat >>conftest.
$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "memchr" >/dev
/null
2>&1; then
5902 ac_cv_header_stdc
=no
5908 if test $ac_cv_header_stdc = yes; then
5909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 $EGREP "free" >/dev
/null
2>&1; then
5923 ac_cv_header_stdc
=no
5929 if test $ac_cv_header_stdc = yes; then
5930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5931 if test "$cross_compiling" = yes; then
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5941 #if ((' ' & 0x0FF) == 0x020)
5942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5945 # define ISLOWER(c) \
5946 (('a' <= (c) && (c) <= 'i') \
5947 || ('j' <= (c) && (c) <= 'r') \
5948 || ('s' <= (c) && (c) <= 'z'))
5949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5957 for (i = 0; i < 256; i++)
5958 if (XOR (islower (i), ISLOWER (i))
5959 || toupper (i) != TOUPPER (i))
5964 rm -f conftest
$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5977 echo "$as_me: program exited with status $ac_status" >&5
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.
$ac_ext >&5
5982 ac_cv_header_stdc
=no
5984 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5988 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5989 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5990 if test $ac_cv_header_stdc = yes; then
5992 cat >>confdefs.h
<<\_ACEOF
5993 #define STDC_HEADERS 1
5998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6008 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6009 inttypes.h stdint.h unistd.h
6011 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 echo "$as_me:$LINENO: checking for $ac_header" >&5
6013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.
$ac_ext <<_ACEOF
6020 cat confdefs.h
>>conftest.
$ac_ext
6021 cat >>conftest.
$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 $ac_includes_default
6025 #include <$ac_header>
6027 rm -f conftest.
$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6031 grep -v '^ *+' conftest.er1
>conftest.err
6033 cat conftest.err
>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try
='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try
='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 eval "$as_ac_Header=yes"
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.
$ac_ext >&5
6054 eval "$as_ac_Header=no"
6056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6061 cat >>confdefs.h
<<_ACEOF
6062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6071 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6072 GDLIB_CONFIG_NAME
=gdlib-config
6074 if test "x$gdlib_config_name" != x
; then
6075 GDLIB_CONFIG_NAME
="$gdlib_config_name"
6078 if test x
$gdlib_config_prefix != x
; then
6079 GDLIB_LOOKUP_PATH
="$gdlib_config_prefix/bin"
6082 if test -x "$GDLIB_CONFIG_NAME" ; then
6083 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6084 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6085 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6086 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6087 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6089 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6090 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6091 echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 case $GDLIB_CONFIG_PATH in
6098 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6102 as_dummy
=""$GDLIB_LOOKUP_PATH:$PATH""
6103 for as_dir
in $as_dummy
6106 test -z "$as_dir" && as_dir
=.
6107 for ac_exec_ext
in '' $ac_executable_extensions; do
6108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6120 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6122 if test -n "$GDLIB_CONFIG_PATH"; then
6123 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6124 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6126 echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6
6132 if test "$GDLIB_CONFIG_PATH" != "no" ; then
6135 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6136 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6138 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6140 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6141 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6142 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6143 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6146 if test $gdlib_config_major_version -gt 2; then
6149 if test $gdlib_config_major_version -eq 2; then
6150 if test $gdlib_config_minor_version -gt 0; then
6153 if test $gdlib_config_minor_version -eq 0; then
6154 if test $gdlib_config_micro_version -ge 0; then
6162 if test x
$gdlib_ver_ok = x
; then
6163 if test x
$GDLIB_VERSION = x
; then
6164 echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6167 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6168 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6172 { echo "$as_me:$LINENO:
6173 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6174 Please check that gdlib-config is in your default path, check out
6175 LD_LIBRARY_PATH or equivalent variable.
6176 Or this might also be that your gdlib-config has other name.
6177 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6178 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6179 If you use compiled packages check if you have devel pack installed.
6180 To download the latest version check http://www.boutell.com/gd
6184 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6185 Please check that gdlib-config is in your default path, check out
6186 LD_LIBRARY_PATH or equivalent variable.
6187 Or this might also be that your gdlib-config has other name.
6188 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6189 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6190 If you use compiled packages check if you have devel pack installed.
6191 To download the latest version check http://www.boutell.com/gd
6197 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6198 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6199 if test "${ac_cv_header_gd_h+set}" = set; then
6200 echo "$as_me:$LINENO: checking for gd.h" >&5
6201 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6202 if test "${ac_cv_header_gd_h+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6206 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6208 # Is the header compilable?
6209 echo "$as_me:$LINENO: checking gd.h usability" >&5
6210 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6211 cat >conftest.
$ac_ext <<_ACEOF
6214 cat confdefs.h
>>conftest.
$ac_ext
6215 cat >>conftest.
$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 $ac_includes_default
6220 rm -f conftest.
$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>conftest.er1
6224 grep -v '^ *+' conftest.er1
>conftest.err
6226 cat conftest.err
>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try
='test -z "$ac_c_werror_flag"
6230 || test ! -s conftest.err'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; } &&
6236 { ac_try
='test -s conftest.$ac_objext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_header_compiler
=yes
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.
$ac_ext >&5
6247 ac_header_compiler
=no
6249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 echo "${ECHO_T}$ac_header_compiler" >&6
6253 # Is the header present?
6254 echo "$as_me:$LINENO: checking gd.h presence" >&5
6255 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6256 cat >conftest.
$ac_ext <<_ACEOF
6259 cat confdefs.h
>>conftest.
$ac_ext
6260 cat >>conftest.
$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6267 grep -v '^ *+' conftest.er1
>conftest.err
6269 cat conftest.err
>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } >/dev
/null
; then
6272 if test -s conftest.err
; then
6273 ac_cpp_err
=$ac_c_preproc_warn_flag
6274 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6281 if test -z "$ac_cpp_err"; then
6282 ac_header_preproc
=yes
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.
$ac_ext >&5
6287 ac_header_preproc
=no
6289 rm -f conftest.err conftest.
$ac_ext
6290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6291 echo "${ECHO_T}$ac_header_preproc" >&6
6293 # So? What about this header?
6294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6296 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6297 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6298 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6299 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6300 ac_header_preproc
=yes
6303 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6304 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6306 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6308 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6310 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6312 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6314 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6317 ## ------------------------------ ##
6318 ## Report this to admin@amule.org ##
6319 ## ------------------------------ ##
6322 sed "s/^/$as_me: WARNING: /" >&2
6325 echo "$as_me:$LINENO: checking for gd.h" >&5
6326 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6327 if test "${ac_cv_header_gd_h+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_header_gd_h
=$ac_header_preproc
6332 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6333 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6338 if test $ac_cv_header_gd_h = yes; then
6339 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6340 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6341 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6344 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6349 { echo "$as_me:$LINENO:
6350 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6356 If you use compiled packages check if you have devel pack installed.
6357 To download the latest version check http://www.boutell.com/gd
6361 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6362 Please check that gdlib-config is in your default path, check out
6363 LD_LIBRARY_PATH or equivalent variable.
6364 Or this might also be that your gdlib-config has other name.
6365 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6366 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6367 If you use compiled packages check if you have devel pack installed.
6368 To download the latest version check http://www.boutell.com/gd
6377 { echo "$as_me:$LINENO:
6378 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6379 Please check that gdlib-config is in your default path, check out
6380 LD_LIBRARY_PATH or equivalent variable.
6381 Or this might also be that your gdlib-config has other name.
6382 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6383 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6384 If you use compiled packages check if you have devel pack installed.
6385 To download the latest version check http://www.boutell.com/gd
6389 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6390 Please check that gdlib-config is in your default path, check out
6391 LD_LIBRARY_PATH or equivalent variable.
6392 Or this might also be that your gdlib-config has other name.
6393 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6394 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6395 If you use compiled packages check if you have devel pack installed.
6396 To download the latest version check http://www.boutell.com/gd
6411 GDLIB_VERSION
="not_needed"
6416 if test x
$WEB = xyes
; then
6418 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6419 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6421 for lib
in '' -lgnurx -lregex; do
6424 cat >conftest.
$ac_ext <<_ACEOF
6428 cat confdefs.h
>>conftest.
$ac_ext
6429 cat >>conftest.
$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6439 regcomp(&preg, "", REG_EXTENDED);
6441 regexec(&preg, "", 0, pmatch, 0);
6449 rm -f conftest.
$ac_objext conftest
$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1
>conftest.err
6455 cat conftest.err
>&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try
='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try
='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.
$ac_ext >&5
6484 rm -f conftest.err conftest.
$ac_objext \
6485 conftest
$ac_exeext conftest.
$ac_ext
6487 echo "$as_me:$LINENO: result: $regex_found" >&5
6488 echo "${ECHO_T}$regex_found" >&6
6489 if test $regex_found = yes; then
6502 if test x
$WEB = xyes
; then
6506 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6507 if test "${with_libpng_prefix+set}" = set; then
6508 withval
="$with_libpng_prefix"
6509 libpng_config_prefix
="$withval"
6511 libpng_config_prefix
=""
6514 # Check whether --with-libpng-config or --without-libpng-config was given.
6515 if test "${with_libpng_config+set}" = set; then
6516 withval
="$with_libpng_config"
6517 libpng_config_name
="$withval"
6519 libpng_config_name
=""
6523 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6524 LIBPNG_CONFIG_NAME
=libpng-config
6526 if test "x$libpng_config_name" != x
; then
6527 LIBPNG_CONFIG_NAME
="$libpng_config_name"
6530 if test x
$libpng_config_prefix != x
; then
6531 LIBPNG_LOOKUP_PATH
="$libpng_config_prefix/bin"
6534 if test -x "$LIBPNG_CONFIG_NAME" ; then
6535 echo "$as_me:$LINENO: checking for libpng-config" >&5
6536 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6537 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6538 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6539 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6541 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6542 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6543 echo "$as_me:$LINENO: checking for $ac_word" >&5
6544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6545 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 case $LIBPNG_CONFIG_PATH in
6550 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6554 as_dummy
=""$LIBPNG_LOOKUP_PATH:$PATH""
6555 for as_dir
in $as_dummy
6558 test -z "$as_dir" && as_dir
=.
6559 for ac_exec_ext
in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6572 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6574 if test -n "$LIBPNG_CONFIG_PATH"; then
6575 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6576 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6578 echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6
6584 if test "$LIBPNG_CONFIG_PATH" != "no" ; then
6587 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6588 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6590 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6592 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6593 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6594 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6595 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6598 if test $libpng_config_major_version -gt 1; then
6601 if test $libpng_config_major_version -eq 1; then
6602 if test $libpng_config_minor_version -gt 2; then
6605 if test $libpng_config_minor_version -eq 2; then
6606 if test $libpng_config_micro_version -ge 0; then
6614 if test x
$libpng_ver_ok = x
; then
6615 if test x
$LIBPNG_VERSION = x
; then
6616 echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6
6619 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6620 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6628 { echo "$as_me:$LINENO:
6629 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6632 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6637 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6638 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6639 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6640 LIBPNG_CXXFLAGS
=$LIBPNG_CFLAGS
6641 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6642 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6643 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6647 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6648 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6650 LIBS
="$LIBS -lpng -lz -lm"
6655 if test "$cross_compiling" = yes; then
6657 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6658 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6659 if test "${ac_cv_header_png_h+set}" = set; then
6660 echo "$as_me:$LINENO: checking for png.h" >&5
6661 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6662 if test "${ac_cv_header_png_h+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6666 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6668 # Is the header compilable?
6669 echo "$as_me:$LINENO: checking png.h usability" >&5
6670 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6671 cat >conftest.
$ac_ext <<_ACEOF
6674 cat confdefs.h
>>conftest.
$ac_ext
6675 cat >>conftest.
$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6680 rm -f conftest.
$ac_objext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682 (eval $ac_compile) 2>conftest.er1
6684 grep -v '^ *+' conftest.er1
>conftest.err
6686 cat conftest.err
>&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try
='test -z "$ac_c_werror_flag"
6690 || test ! -s conftest.err'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; } &&
6696 { ac_try
='test -s conftest.$ac_objext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702 ac_header_compiler
=yes
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.
$ac_ext >&5
6707 ac_header_compiler
=no
6709 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6711 echo "${ECHO_T}$ac_header_compiler" >&6
6713 # Is the header present?
6714 echo "$as_me:$LINENO: checking png.h presence" >&5
6715 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6716 cat >conftest.
$ac_ext <<_ACEOF
6719 cat confdefs.h
>>conftest.
$ac_ext
6720 cat >>conftest.
$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6727 grep -v '^ *+' conftest.er1
>conftest.err
6729 cat conftest.err
>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } >/dev
/null
; then
6732 if test -s conftest.err
; then
6733 ac_cpp_err
=$ac_c_preproc_warn_flag
6734 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6741 if test -z "$ac_cpp_err"; then
6742 ac_header_preproc
=yes
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 ac_header_preproc
=no
6749 rm -f conftest.err conftest.
$ac_ext
6750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6751 echo "${ECHO_T}$ac_header_preproc" >&6
6753 # So? What about this header?
6754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6756 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6757 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6758 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6759 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6760 ac_header_preproc
=yes
6763 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6764 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6765 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6766 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6767 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6768 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6769 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6770 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6772 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6774 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6777 ## ------------------------------ ##
6778 ## Report this to admin@amule.org ##
6779 ## ------------------------------ ##
6782 sed "s/^/$as_me: WARNING: /" >&2
6785 echo "$as_me:$LINENO: checking for png.h" >&5
6786 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6787 if test "${ac_cv_header_png_h+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_header_png_h
=$ac_header_preproc
6792 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6793 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6796 if test $ac_cv_header_png_h = yes; then
6803 if test x
$result = xyes
; then
6804 LIBPNG_VERSION
="detected"
6805 LIBPNG_LIBS
="-lpng -lz -lm"
6809 cat >conftest.
$ac_ext <<_ACEOF
6813 cat confdefs.h
>>conftest.
$ac_ext
6814 cat >>conftest.
$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6820 /* Check linking to png library */
6822 png_check_sig(NULL, 0);
6828 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6829 FILE *f=fopen("conftestval", "w");
6831 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6833 f=fopen("conftestver", "w");
6835 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6844 rm -f conftest
$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6856 if test -f conftestval
; then
6857 result
=`cat conftestval`
6862 if test x
$result = xyes
; then
6863 if test -f conftestver
; then
6864 LIBPNG_VERSION
=`cat conftestver`
6865 lib_version
=" (version $LIBPNG_VERSION)"
6870 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6871 echo "${ECHO_T}$result$lib_version" >&6
6872 LIBPNG_LIBS
="-lpng -lz -lm"
6875 echo "$as_me: program exited with status $ac_status" >&5
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.
$ac_ext >&5
6882 echo "$as_me:$LINENO: result: $result" >&5
6883 echo "${ECHO_T}$result" >&6
6886 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6888 if test x
$result = xyes
; then
6889 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6892 { echo "$as_me:$LINENO:
6893 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6896 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6914 LIBPNG_VERSION
="not_needed"
6920 # Check for perl File::Copy
6921 echo "$as_me:$LINENO: checking for File::Copy" >&5
6922 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6923 if perl
-e "require File::Copy" 2>/dev
/null
; then
6924 echo "$as_me:$LINENO: result: ok" >&5
6925 echo "${ECHO_T}ok" >&6
6927 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6928 echo "$as_me: error: File::Copy perl module is required" >&2;}
6929 { (exit 1); exit 1; }; }
6933 # Check if we need the GUI
6934 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6935 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6936 if test x
$MONOLITHIC = xyes
; then
6940 if test x
$WXCAS = xyes
; then
6944 if test x
$ALC = xyes
; then
6948 if test x
$AMULE_GUI = xyes
; then
6952 if test ${need_gui:+set} != xset
; then
6956 echo "$as_me:$LINENO: result: $need_gui" >&5
6957 echo "${ECHO_T}$need_gui" >&6
6960 # Check for GeoIP (required for IP2Country capability)
6961 if test x
"$ENABLE_IP2COUNTRY" = x
"yes" ; then
6963 CXXFLAGS
="$CXXFLAGS $GEOIP_INCLUDE"
6964 LIBS
="$LIBS $GEOIP_LIB"
6965 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6966 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6967 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6968 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6972 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6974 # Is the header compilable?
6975 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6976 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6977 cat >conftest.
$ac_ext <<_ACEOF
6980 cat confdefs.h
>>conftest.
$ac_ext
6981 cat >>conftest.
$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6986 rm -f conftest.
$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988 (eval $ac_compile) 2>conftest.er1
6990 grep -v '^ *+' conftest.er1
>conftest.err
6992 cat conftest.err
>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } &&
6995 { ac_try
='test -z "$ac_c_werror_flag"
6996 || test ! -s conftest.err'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; } &&
7002 { ac_try
='test -s conftest.$ac_objext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 ac_header_compiler
=yes
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.
$ac_ext >&5
7013 ac_header_compiler
=no
7015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7017 echo "${ECHO_T}$ac_header_compiler" >&6
7019 # Is the header present?
7020 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7021 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7022 cat >conftest.
$ac_ext <<_ACEOF
7025 cat confdefs.h
>>conftest.
$ac_ext
7026 cat >>conftest.
$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7033 grep -v '^ *+' conftest.er1
>conftest.err
7035 cat conftest.err
>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } >/dev
/null
; then
7038 if test -s conftest.err
; then
7039 ac_cpp_err
=$ac_c_preproc_warn_flag
7040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7047 if test -z "$ac_cpp_err"; then
7048 ac_header_preproc
=yes
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.
$ac_ext >&5
7053 ac_header_preproc
=no
7055 rm -f conftest.err conftest.
$ac_ext
7056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7057 echo "${ECHO_T}$ac_header_preproc" >&6
7059 # So? What about this header?
7060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7062 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7063 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7065 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7066 ac_header_preproc
=yes
7069 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7070 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7071 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7072 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7073 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7074 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7075 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7076 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7077 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7078 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7079 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7080 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7083 ## ------------------------------ ##
7084 ## Report this to admin@amule.org ##
7085 ## ------------------------------ ##
7088 sed "s/^/$as_me: WARNING: /" >&2
7091 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7092 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7093 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 ac_cv_header_GeoIP_h
=$ac_header_preproc
7098 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7099 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7102 if test $ac_cv_header_GeoIP_h = yes; then
7105 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7106 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7107 { (exit 1); exit 1; }; }
7111 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7112 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7113 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 ac_check_lib_save_LIBS
=$LIBS
7117 LIBS
="-lGeoIP $LIBS"
7118 cat >conftest.
$ac_ext <<_ACEOF
7121 cat confdefs.h
>>conftest.
$ac_ext
7122 cat >>conftest.
$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7125 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7140 rm -f conftest.
$ac_objext conftest
$ac_exeext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142 (eval $ac_link) 2>conftest.er1
7144 grep -v '^ *+' conftest.er1
>conftest.err
7146 cat conftest.err
>&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try
='test -z "$ac_c_werror_flag"
7150 || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try
='test -s conftest$ac_exeext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_cv_lib_GeoIP_GeoIP_open
=yes
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.
$ac_ext >&5
7167 ac_cv_lib_GeoIP_GeoIP_open
=no
7169 rm -f conftest.err conftest.
$ac_objext \
7170 conftest
$ac_exeext conftest.
$ac_ext
7171 LIBS
=$ac_check_lib_save_LIBS
7173 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7174 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7175 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7177 cat >>confdefs.h
<<\_ACEOF
7178 #define SUPPORT_GEOIP 1
7182 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7183 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7184 { (exit 1); exit 1; }; }
7192 # Check if the compiler is broken, wrt. exceptions.
7195 echo "$as_me:$LINENO: checking for exception-handling" >&5
7196 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
7199 ac_cpp
='$CXXCPP $CPPFLAGS'
7200 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7204 if test "$cross_compiling" = yes; then
7206 echo "$as_me:$LINENO: result: undeterminable" >&5
7207 echo "${ECHO_T}undeterminable" >&6
7208 { echo "$as_me:$LINENO: WARNING:
7209 Cross-compilation detected, so exception handling cannot be tested.
7210 Note that broken exception handling in your compiler may lead to
7211 unexpected crashes." >&5
7212 echo "$as_me: WARNING:
7213 Cross-compilation detected, so exception handling cannot be tested.
7214 Note that broken exception handling in your compiler may lead to
7215 unexpected crashes." >&2;}
7218 cat >conftest.
$ac_ext <<_ACEOF
7222 cat confdefs.h
>>conftest.
$ac_ext
7223 cat >>conftest.
$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7242 rm -f conftest
$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7254 echo "$as_me:$LINENO: result: yes" >&5
7255 echo "${ECHO_T}yes" >&6
7258 echo "$as_me: program exited with status $ac_status" >&5
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.
$ac_ext >&5
7264 echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6
7266 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
7267 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
7268 { (exit 1); exit 1; }; }
7271 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7274 ac_cpp
='$CPP $CPPFLAGS'
7275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7284 # Check whether --with-wxdir or --without-wxdir was given.
7285 if test "${with_wxdir+set}" = set; then
7286 withval
="$with_wxdir"
7287 wx_config_name
="$withval/wx-config"
7288 wx_config_args
="--inplace"
7291 # Check whether --with-wx-config or --without-wx-config was given.
7292 if test "${with_wx_config+set}" = set; then
7293 withval
="$with_wx_config"
7294 wx_config_name
="$withval"
7297 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7298 if test "${with_wx_prefix+set}" = set; then
7299 withval
="$with_wx_prefix"
7300 wx_config_prefix
="$withval"
7305 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7306 if test "${with_wx_exec_prefix+set}" = set; then
7307 withval
="$with_wx_exec_prefix"
7308 wx_config_exec_prefix
="$withval"
7310 wx_config_exec_prefix
=""
7324 # Check whether --with-toolkit or --without-toolkit was given.
7325 if test "${with_toolkit+set}" = set; then
7326 withval
="$with_toolkit"
7332 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7333 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7334 if test "$withval" = "auto" ; then
7335 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7336 echo "${ECHO_T}will be automatically detected" >&6
7341 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7342 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7343 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7344 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7345 "$TOOLKIT" != "base" ; then
7346 { { echo "$as_me:$LINENO: error:
7347 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7349 echo "$as_me: error:
7350 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7352 { (exit 1); exit 1; }; }
7355 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7356 echo "${ECHO_T}$TOOLKIT" >&6
7363 # Check whether --with-wxshared or --without-wxshared was given.
7364 if test "${with_wxshared+set}" = set; then
7365 withval
="$with_wxshared"
7371 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7372 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7373 if test "$withval" = "yes" ; then
7374 echo "$as_me:$LINENO: result: yes" >&5
7375 echo "${ECHO_T}yes" >&6
7378 elif test "1" = "1" -a "$withval" = "no" ; then
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7382 elif test "$withval" = "auto" ; then
7383 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7384 echo "${ECHO_T}will be automatically detected" >&6
7387 { { echo "$as_me:$LINENO: error:
7388 Unrecognized option value (allowed values: yes, auto)
7390 echo "$as_me: error:
7391 Unrecognized option value (allowed values: yes, auto)
7393 { (exit 1); exit 1; }; }
7400 # Check whether --with-wxdebug or --without-wxdebug was given.
7401 if test "${with_wxdebug+set}" = set; then
7402 withval
="$with_wxdebug"
7408 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7409 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7410 if test "$withval" = "yes" ; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7415 elif test "1" = "1" -a "$withval" = "no" ; then
7416 echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7419 elif test "$withval" = "auto" ; then
7420 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7421 echo "${ECHO_T}will be automatically detected" >&6
7424 { { echo "$as_me:$LINENO: error:
7425 Unrecognized option value (allowed values: yes, auto)
7427 echo "$as_me: error:
7428 Unrecognized option value (allowed values: yes, auto)
7430 { (exit 1); exit 1; }; }
7437 # Check whether --with-wxversion or --without-wxversion was given.
7438 if test "${with_wxversion+set}" = set; then
7439 withval
="$with_wxversion"
7445 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7446 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7447 if test "$withval" = "auto" ; then
7448 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7449 echo "${ECHO_T}will be automatically detected" >&6
7453 wx_requested_major_version
=`echo $withval | \
7454 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7455 wx_requested_minor_version
=`echo $withval | \
7456 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7458 if test "${#wx_requested_major_version}" != "1" -o \
7459 "${#wx_requested_minor_version}" != "1" ; then
7460 { { echo "$as_me:$LINENO: error:
7461 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7463 echo "$as_me: error:
7464 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7466 { (exit 1); exit 1; }; }
7469 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7470 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7471 echo "${ECHO_T}$WX_VERSION" >&6
7475 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7476 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7477 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7478 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7479 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7480 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7483 # Force using a static wxWidgets library if the executable is to be linked statically.
7484 if test "$USE_DEBUG_STATIC" = "yes"; then
7488 # Force using a unicode build of the library
7492 if test "$WX_SHARED" = "1" ; then
7493 WXCONFIG_FLAGS
="--static=no "
7494 elif test "$WX_SHARED" = "0" ; then
7495 WXCONFIG_FLAGS
="--static=yes "
7498 if test "$WX_DEBUG" = "1" ; then
7499 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7500 elif test "$WX_DEBUG" = "0" ; then
7501 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7504 if test "$WX_UNICODE" = "1" ; then
7505 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7506 elif test "$WX_UNICODE" = "0" ; then
7507 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7510 if test "$TOOLKIT" != "auto" ; then
7511 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7514 if test "$WX_VERSION" != "auto" ; then
7515 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7518 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7520 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7521 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7525 if test x
${WX_CONFIG_NAME+set} != xset
; then
7526 WX_CONFIG_NAME
=wx-config
7529 if test "x$wx_config_name" != x
; then
7530 WX_CONFIG_NAME
="$wx_config_name"
7533 if test x
$wx_config_exec_prefix != x
; then
7534 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7535 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7537 if test x
$wx_config_prefix != x
; then
7538 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7539 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7541 if test "$cross_compiling" = "yes"; then
7542 wx_config_args
="$wx_config_args --host=$host_alias"
7545 if test -x "$WX_CONFIG_NAME" ; then
7546 echo "$as_me:$LINENO: checking for wx-config" >&5
7547 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7548 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7549 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7550 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7552 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7553 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7554 echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7556 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 case $WX_CONFIG_PATH in
7561 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7565 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7566 for as_dir
in $as_dummy
7569 test -z "$as_dir" && as_dir
=.
7570 for ac_exec_ext
in '' $ac_executable_extensions; do
7571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7583 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7585 if test -n "$WX_CONFIG_PATH"; then
7586 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7587 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7595 if test "$WX_CONFIG_PATH" != "no" ; then
7598 min_wx_version
=2.8.0
7599 if test -z "$WXCONFIG_FLAGS" ; then
7600 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7601 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7603 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7604 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7607 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7609 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7610 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7611 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7612 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7614 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7617 wx_requested_major_version
=`echo $min_wx_version | \
7618 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7619 wx_requested_minor_version
=`echo $min_wx_version | \
7620 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7621 wx_requested_micro_version
=`echo $min_wx_version | \
7622 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7626 if test "x$WX_VERSION_FULL" != x
; then
7627 if test $wx_config_major_version -gt $wx_requested_major_version; then
7630 if test $wx_config_major_version -eq $wx_requested_major_version; then
7631 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7634 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7635 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7645 if test -n "$wx_ver_ok"; then
7647 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7648 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7649 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7651 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7652 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7653 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7654 if test "x$WX_LIBS_STATIC" = "x"; then
7655 echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6
7658 echo "$as_me:$LINENO: result: yes" >&5
7659 echo "${ECHO_T}yes" >&6
7663 if test $wx_config_major_version -gt 2; then
7666 if test $wx_config_major_version -eq 2; then
7667 if test $wx_config_minor_version -gt 2; then
7670 if test $wx_config_minor_version -eq 2; then
7671 if test $wx_config_micro_version -ge 6; then
7680 if test $wx_config_major_version -gt 2; then
7683 if test $wx_config_major_version -eq 2; then
7684 if test $wx_config_minor_version -ge 7; then
7689 if test "x$wx_has_rescomp" = x
; then
7692 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7695 if test "x$wx_has_cppflags" = x
; then
7696 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7697 WX_CPPFLAGS
=$WX_CFLAGS
7698 WX_CXXFLAGS
=$WX_CFLAGS
7700 WX_CFLAGS_ONLY
=$WX_CFLAGS
7701 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7703 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7704 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7705 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7707 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7708 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7715 if test "x$WX_VERSION_FULL" = x
; then
7716 echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6
7719 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7720 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7730 if test ! -z "$WXCONFIG_FLAGS"; then
7733 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7734 build with the following settings:
7736 but such build is not available.
7738 To see the wxWidgets builds available on this system, please use
7739 'wx-config --list' command. To use the default build, returned by
7740 'wx-config --selected-config', use the options with their 'auto'
7746 The requested wxWidgets build couldn't be found.
7749 If you still get this error, then check that 'wx-config' is
7750 in path, the directory where wxWidgets libraries are installed
7751 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7752 or equivalent variable and wxWidgets version is 2.8.0 or above."
7754 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7755 echo "$as_me: error: $wx_error_message" >&2;}
7756 { (exit 1); exit 1; }; }
7782 WX_VERSION_MAJOR
="$wx_config_major_version"
7783 WX_VERSION_MINOR
="$wx_config_minor_version"
7787 if test "$wxWin" != 1; then
7788 { { echo "$as_me:$LINENO: error:
7789 wxWidgets must be installed on your system but wx-config
7790 script couldn't be found. Please check that wx-config is
7791 in path or specified by --with-wx-config=path flag, the
7792 directory where wxWidgets libraries are installed (returned
7793 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7794 equivalent variable and wxWidgets version is 2.8.0 or above.
7796 echo "$as_me: error:
7797 wxWidgets must be installed on your system but wx-config
7798 script couldn't be found. Please check that wx-config is
7799 in path or specified by --with-wx-config=path flag, the
7800 directory where wxWidgets libraries are installed (returned
7801 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7802 equivalent variable and wxWidgets version is 2.8.0 or above.
7804 { (exit 1); exit 1; }; }
7807 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7808 if test $WX_VERSION -lt 26 ; then
7810 { { echo "$as_me:$LINENO: error:
7811 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7812 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7813 version of wxWidgets.
7815 echo "$as_me: error:
7816 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7817 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7818 version of wxWidgets.
7820 { (exit 1); exit 1; }; }
7823 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7825 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7826 echo "[dbg] Using wx-config --selected-config"
7827 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7831 if test $WX_SHARED = "1"; then
7833 elif test $WX_SHARED = "0"; then
7835 elif test $WX_SHARED = "auto"; then
7840 if test "$UNICODE" = "auto" ; then
7842 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7843 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7845 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7847 if test "$WX_UNICODE" != "0"; then
7849 echo "$as_me:$LINENO: result: yes" >&5
7850 echo "${ECHO_T}yes" >&6
7854 echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7864 if test "$DEBUG" = "auto" ; then
7866 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7867 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7869 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7871 if test "$WX_DEBUG" != "0"; then
7873 echo "$as_me:$LINENO: result: yes" >&5
7874 echo "${ECHO_T}yes" >&6
7878 echo "$as_me:$LINENO: result: no" >&5
7879 echo "${ECHO_T}no" >&6
7888 if test "$STATIC" = "auto" ; then
7890 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7891 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7893 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7895 if test "$WX_STATIC" != "0"; then
7897 echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6
7902 echo "$as_me:$LINENO: result: no" >&5
7903 echo "${ECHO_T}no" >&6
7912 if test "$WX_STATIC" != "0"; then
7922 if test "$TOOLKIT" = "auto" ; then
7924 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7925 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7927 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7928 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7929 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7930 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7931 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7932 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7933 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7934 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7935 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7938 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7939 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7940 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7941 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7942 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7943 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7944 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7945 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7946 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7949 if test "$WX_PORT" = "unknown" ; then
7950 { { echo "$as_me:$LINENO: error:
7951 Cannot detect the currently installed wxWidgets port !
7952 Please check your 'wx-config --cxxflags'...
7954 echo "$as_me: error:
7955 Cannot detect the currently installed wxWidgets port !
7956 Please check your 'wx-config --cxxflags'...
7958 { (exit 1); exit 1; }; }
7961 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7962 echo "${ECHO_T}$WX_PORT" >&6
7965 if test -z "$TOOLKIT" ; then
7974 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7975 echo "[dbg] Values of all WX_* options after final detection:"
7976 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7977 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7978 echo "[dbg] WX_SHARED: $WX_SHARED"
7979 echo "[dbg] WX_VERSION: $WX_VERSION"
7980 echo "[dbg] WX_PORT: $WX_PORT"
7983 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7984 { { echo "$as_me:$LINENO: error:
7985 Cannot build shared library against a static build of wxWidgets !
7986 This error happens because the wxWidgets build which was selected
7987 has been detected as static while you asked to build $PACKAGE_NAME
7988 as shared library and this is not possible.
7989 Use the '--disable-shared' option to build $PACKAGE_NAME
7990 as static library or '--with-wxshared' to use wxWidgets as shared library.
7992 echo "$as_me: error:
7993 Cannot build shared library against a static build of wxWidgets !
7994 This error happens because the wxWidgets build which was selected
7995 has been detected as static while you asked to build $PACKAGE_NAME
7996 as shared library and this is not possible.
7997 Use the '--disable-shared' option to build $PACKAGE_NAME
7998 as static library or '--with-wxshared' to use wxWidgets as shared library.
8000 { (exit 1); exit 1; }; }
8003 if test "$DEBUG" = "auto"; then
8006 if test "$DEBUG" = "1"; then
8008 elif test "$DEBUG" = ""; then
8012 if test "$UNICODE" = "auto"; then
8015 if test "$SHARED" = "auto"; then
8018 if test "$TOOLKIT" = "auto"; then
8026 ac_cpp
='$CXXCPP $CPPFLAGS'
8027 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8032 __CPPFLAGS
=${CPPFLAGS}
8033 CPPFLAGS
=${WX_CPPFLAGS}
8035 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8036 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8037 cat >conftest.
$ac_ext <<_ACEOF
8042 #if !HAVE_LARGEFILE_SUPPORT && !defined(__WXMSW__)
8043 #error No LargeFile support!;
8049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8050 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8052 grep -v '^ *+' conftest.er1
>conftest.err
8054 cat conftest.err
>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } >/dev
/null
; then
8057 if test -s conftest.err
; then
8058 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8059 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8066 if test -z "$ac_cpp_err"; then
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.
$ac_ext >&5
8074 rm -f conftest.err conftest.
$ac_ext
8076 if test "x${NO_LF}" != "x";
8078 echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6
8080 { { echo "$as_me:$LINENO: error:
8081 Support for large files in wxWidgets is required by aMule.
8082 To continue you must recompile wxWidgets with support for
8083 large files enabled.
8085 echo "$as_me: error:
8086 Support for large files in wxWidgets is required by aMule.
8087 To continue you must recompile wxWidgets with support for
8088 large files enabled.
8090 { (exit 1); exit 1; }; }
8092 echo "$as_me:$LINENO: result: yes" >&5
8093 echo "${ECHO_T}yes" >&6
8096 CPPFLAGS
=${__CPPFLAGS}
8099 ac_cpp
='$CPP $CPPFLAGS'
8100 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8106 if test x
$SYS = xwin32
; then
8107 if test -n "$ac_tool_prefix"; then
8108 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8109 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8110 echo "$as_me:$LINENO: checking for $ac_word" >&5
8111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8112 if test "${ac_cv_prog_RC+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 if test -n "$RC"; then
8116 ac_cv_prog_RC
="$RC" # Let the user override the test.
8118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8122 test -z "$as_dir" && as_dir
=.
8123 for ac_exec_ext
in '' $ac_executable_extensions; do
8124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_RC
="${ac_tool_prefix}windres"
8126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 if test -n "$RC"; then
8136 echo "$as_me:$LINENO: result: $RC" >&5
8137 echo "${ECHO_T}$RC" >&6
8139 echo "$as_me:$LINENO: result: no" >&5
8140 echo "${ECHO_T}no" >&6
8144 if test -z "$ac_cv_prog_RC"; then
8146 # Extract the first word of "windres", so it can be a program name with args.
8147 set dummy windres
; ac_word
=$2
8148 echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 if test -n "$ac_ct_RC"; then
8154 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
8156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir
=.
8161 for ac_exec_ext
in '' $ac_executable_extensions; do
8162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_ac_ct_RC
="windres"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
8173 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
8174 if test -n "$ac_ct_RC"; then
8175 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8176 echo "${ECHO_T}$ac_ct_RC" >&6
8178 echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6
8188 RCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8194 # Check for Crypto++
8197 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8198 if test "${with_crypto_prefix+set}" = set; then
8199 withval
="$with_crypto_prefix"
8200 CRYPTO_PP_PREFIX
="$withval"
8208 min_crypto_version
=5.1
8209 echo "$as_me:$LINENO: checking for crypto++ version >= $min_crypto_version" >&5
8210 echo $ECHO_N "checking for crypto++ version >= $min_crypto_version... $ECHO_C" >&6
8212 crypto_pp_file_with_version
="cryptlib.h"
8214 CRYPTO_PP_STYLE
="unknown"
8215 CRYPTO_PP_LIB_NAME
="unknown"
8216 crypto_pp_include_i
="unknown"
8217 CRYPTO_PP_INCLUDE_PREFIX
="unknown"
8218 CRYPTO_PP_DEFINE
="unknown"
8219 CRYPTO_PP_LIB
="unknown"
8222 # Set CRYPTO_PP_PREFIX if the user has not set it in the configure command line
8223 # We don't use AC_CHECK_FILE to avoid caching.
8225 if test x
$CRYPTO_PP_PREFIX = x
; then
8226 CRYPTO_PP_PREFIX
="/usr"
8230 # Find the Cryptopp header
8232 if test -f $CRYPTO_PP_PREFIX/$crypto_pp_file_with_version; then
8233 CRYPTO_PP_STYLE
="sources"
8234 CRYPTO_PP_LIB_NAME
="cryptopp"
8235 crypto_pp_include_i
="$CRYPTO_PP_PREFIX"
8236 CRYPTO_PP_INCLUDE_PREFIX
="."
8237 CRYPTO_PP_DEFINE
="__CRYPTO_SOURCE__"
8238 CRYPTO_PP_LIB
="$CRYPTO_PP_PREFIX"
8239 { { echo "$as_me:$LINENO: error:
8240 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8241 will not work because cryptopp uses headers with the same name of system
8242 headers (e.g. zlib.h) and you must be able to distinguish the system
8243 headers from cryptopp headers in an #include directive.
8244 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8245 the cryptopp directory to properly install cryptopp in your system." >&5
8246 echo "$as_me: error:
8247 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8248 will not work because cryptopp uses headers with the same name of system
8249 headers (e.g. zlib.h) and you must be able to distinguish the system
8250 headers from cryptopp headers in an #include directive.
8251 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8252 the cryptopp directory to properly install cryptopp in your system." >&2;}
8253 { (exit 1); exit 1; }; }
8254 elif test -f $CRYPTO_PP_PREFIX/include
/cryptopp
/$crypto_pp_file_with_version; then
8255 CRYPTO_PP_STYLE
="installed"
8256 CRYPTO_PP_LIB_NAME
="cryptopp"
8257 crypto_pp_include_i
="$CRYPTO_PP_PREFIX/include"
8258 CRYPTO_PP_INCLUDE_PREFIX
="$CRYPTO_PP_LIB_NAME"
8259 CRYPTO_PP_DEFINE
="__CRYPTO_INSTALLED__"
8260 CRYPTO_PP_LIB
="$CRYPTO_PP_PREFIX/lib"
8261 elif test -f $CRYPTO_PP_PREFIX/include
/crypto
++/$crypto_pp_file_with_version; then
8262 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8263 CRYPTO_PP_STYLE
="gentoo_debian"
8264 CRYPTO_PP_LIB_NAME
="crypto++"
8265 crypto_pp_include_i
="$CRYPTO_PP_PREFIX/include"
8266 CRYPTO_PP_INCLUDE_PREFIX
="$CRYPTO_PP_LIB_NAME"
8267 CRYPTO_PP_DEFINE
="__CRYPTO_SOURCE__"
8268 CRYPTO_PP_LIB
="$CRYPTO_PP_PREFIX/lib"
8272 # Check for success in finding cryptopp
8274 if test $CRYPTO_PP_STYLE = "unknown"; then
8276 # If the execution reaches here, we have failed.
8278 { { echo "$as_me:$LINENO: error:
8279 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8280 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&5
8281 echo "$as_me: error:
8282 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8283 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&2;}
8284 { (exit 1); exit 1; }; }
8288 # Find out the cryptopp version and check against the minimum required
8290 crypto_pp_include_dir
="$crypto_pp_include_i/$CRYPTO_PP_INCLUDE_PREFIX"
8291 crypto_pp_header_path
="$crypto_pp_include_dir/$crypto_pp_file_with_version"
8293 CRYPTO_PP_VERSION_STRING
=$
(grep "Reference Manual" $crypto_pp_header_path | \
8294 sed -e 's/[^0-9]*\([0-9.]*\).*/\1/')
8296 CRYPTO_PP_VERSION_NUMBER
=$
(echo $CRYPTO_PP_VERSION_STRING | \
8297 $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}')
8299 minvers
=$
(echo $min_crypto_version | \
8300 $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}')
8302 if test -n "$CRYPTO_PP_VERSION_NUMBER" && test "$CRYPTO_PP_VERSION_NUMBER" -ge $minvers; then
8303 result
="yes (version $CRYPTO_PP_VERSION_STRING, $CRYPTO_PP_STYLE)"
8307 echo "$as_me:$LINENO: result: $result" >&5
8308 echo "${ECHO_T}$result" >&6
8313 CRYPTO_PP_CXXFLAGS
="-isystem $crypto_pp_include_i -D$CRYPTO_PP_DEFINE"
8314 CRYPTO_PP_LDFLAGS
="-L$CRYPTO_PP_LIB"
8317 cat >>confdefs.h
<<_ACEOF
8318 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTO_PP_INCLUDE_PREFIX
8335 { echo "$as_me:$LINENO: Crypto++ version number is $CRYPTO_PP_VERSION_NUMBER" >&5
8336 echo "$as_me: Crypto++ version number is $CRYPTO_PP_VERSION_NUMBER" >&6;}
8339 CXXFLAGS
="$CXXFLAGS $CRYPTO_PP_CXXFLAGS"
8340 LDFLAGS
="$LDFLAGS $CRYPTO_PP_LDFLAGS"
8341 CRYPTOLIBS
="-l$CRYPTO_PP_LIB_NAME"
8343 case "$CRYPTO_PP_STYLE" in
8344 gentoo_debian | installed | sources
)
8346 *) { { echo "$as_me:$LINENO: error:
8347 WARNING: crypto++ >= $min_crypto_version is not found.
8348 Please check that cryptopp-headers are in your default include path,
8349 check out LD_LIBRARY_PATH or equivalent variable.
8350 Or this might also be that your cryptopp is installed on other path.
8351 Please try again with --with-crypto-prefix=/my_crypto_prefix
8352 (replace /my_crypto_prefix with a valid path to your crypto directory).
8353 To download the latest version check http://www.cryptopp.com for sources.
8355 echo "$as_me: error:
8356 WARNING: crypto++ >= $min_crypto_version is not found.
8357 Please check that cryptopp-headers are in your default include path,
8358 check out LD_LIBRARY_PATH or equivalent variable.
8359 Or this might also be that your cryptopp is installed on other path.
8360 Please try again with --with-crypto-prefix=/my_crypto_prefix
8361 (replace /my_crypto_prefix with a valid path to your crypto directory).
8362 To download the latest version check http://www.cryptopp.com for sources.
8364 { (exit 1); exit 1; }; }
8368 # Check for CryptoPP >= 5.5
8369 if test $CRYPTO_PP_VERSION_NUMBER -ge "5005000"; then
8370 CXXFLAGS
="$CXXFLAGS -D__WEAK_CRYPTO__"
8376 # Check for bfd.h (to have proper backtraces without using wxExecute)
8378 echo "$as_me:$LINENO: checking for bfd" >&5
8379 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8381 LIBS
="-lbfd -liberty $LIBS"
8382 cat >conftest.
$ac_ext <<_ACEOF
8386 cat confdefs.h
>>conftest.
$ac_ext
8387 cat >>conftest.
$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8390 #include <ansidecl.h>
8397 char *dummy = bfd_errmsg(bfd_get_error());
8404 rm -f conftest.
$ac_objext conftest
$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>conftest.er1
8408 grep -v '^ *+' conftest.er1
>conftest.err
8410 cat conftest.err
>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try
='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try
='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8427 echo "$as_me:$LINENO: result: yes" >&5
8428 echo "${ECHO_T}yes" >&6
8429 BFD_FLAGS
="-DHAVE_BFD"
8430 BFD_LIB
="-lbfd -liberty"
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.
$ac_ext >&5
8437 echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8439 { echo "$as_me:$LINENO: WARNING:
8440 bfd.h not found or unusable, please install binutils development
8441 package if you are a developer or want to help testing aMule" >&5
8442 echo "$as_me: WARNING:
8443 bfd.h not found or unusable, please install binutils development
8444 package if you are a developer or want to help testing aMule" >&2;}
8447 rm -f conftest.err conftest.
$ac_objext \
8448 conftest
$ac_exeext conftest.
$ac_ext
8454 # Ok, we have all needed libs, now checking for other stuff
8457 echo "$as_me:$LINENO: checking for autopoint" >&5
8458 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
8460 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
8461 if test x
$autopoint_version != x
; then
8467 HAVE_GETTEXT
=$result
8469 echo "$as_me:$LINENO: result: $result ($autopoint_version)" >&5
8470 echo "${ECHO_T}$result ($autopoint_version)" >&6
8471 if test x
$result = xno
; then
8472 { echo "$as_me:$LINENO: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&5
8473 echo "$as_me: You need to install GNU gettext/gettext-tools to compile aMule with i18n support" >&6;}
8478 if test "$LEX" = "flex"; then
8481 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8482 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8484 extended_flex
=`flex --help | grep header-file`
8485 if test x
"$extended_flex" != x
""; then
8491 HAVE_FLEX_EXTENDED
=$result
8493 echo "$as_me:$LINENO: result: $result" >&5
8494 echo "${ECHO_T}$result" >&6
8496 if test x
$result = xno
; then
8497 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&5
8498 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&6;}
8505 HAVE_FLEX_EXTENDED
=no
8508 # Flush standard test results for speeding cache
8509 cat >confcache
<<\_ACEOF
8510 # This file is a shell script that caches the results of configure
8511 # tests run on this system so they can be shared between configure
8512 # scripts and configure runs, see configure's option --config-cache.
8513 # It is not useful on other systems. If it contains results you don't
8514 # want to keep, you may remove or edit it.
8516 # config.status only pays attention to the cache file if you give it
8517 # the --recheck option to rerun configure.
8519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8525 # The following way of writing the cache mishandles newlines in values,
8526 # but we know of no workaround that is simple, portable, and efficient.
8527 # So, don't put newlines in cache variables' values.
8528 # Ultrix sh set writes to stderr and can't be redirected directly,
8529 # and sets the high bit in the cache file unless we assign to the vars.
8532 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8534 # `set' does not quote correctly, so add quotes (double-quote
8535 # substitution turns \\\\ into \\, and sed turns \\ into \).
8538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8541 # `set' quotes correctly as required by POSIX, so do not add quotes.
8543 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8552 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8554 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8555 if test -w $cache_file; then
8556 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8557 cat confcache
>$cache_file
8559 echo "not updating unwritable cache $cache_file"
8564 # Checks for header files.
8565 echo "$as_me:$LINENO: checking for X" >&5
8566 echo $ECHO_N "checking for X... $ECHO_C" >&6
8569 # Check whether --with-x or --without-x was given.
8570 if test "${with_x+set}" = set; then
8574 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8575 if test "x$with_x" = xno
; then
8576 # The user explicitly disabled X.
8579 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8580 # Both variables are already set.
8583 if test "${ac_cv_have_x+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 # One or both of the vars are not set, and there is no cached value.
8587 ac_x_includes
=no ac_x_libraries
=no
8589 if mkdir conftest.dir
; then
8591 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8592 cat >Imakefile
<<'_ACEOF'
8594 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8596 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8598 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8599 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8600 for ac_extension
in a so sl
; do
8601 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8602 test -f $ac_im_libdir/libX11.
$ac_extension; then
8603 ac_im_usrlibdir
=$ac_im_libdir; break
8606 # Screen out bogus values from the imake configuration. They are
8607 # bogus both because they are the default anyway, and because
8608 # using them would break gcc on systems where it needs fixed includes.
8609 case $ac_im_incroot in
8611 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8613 case $ac_im_usrlibdir in
8615 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8622 # Standard set of common directories for X headers.
8623 # Check X11 before X11Rn because it is often a symlink to the current release.
8635 /usr/local/X11/include
8636 /usr/local/X11R6/include
8637 /usr/local/X11R5/include
8638 /usr/local/X11R4/include
8640 /usr/local/include/X11
8641 /usr/local/include/X11R6
8642 /usr/local/include/X11R5
8643 /usr/local/include/X11R4
8647 /usr/XFree86/include/X11
8651 /usr/unsupported/include
8653 /usr/local/x11r5/include
8654 /usr/lpp/Xamples/include
8656 /usr/openwin/include
8657 /usr/openwin/share/include'
8659 if test "$ac_x_includes" = no
; then
8660 # Guess where to find include files, by looking for Intrinsic.h.
8661 # First, try using that file with no special directory specified.
8662 cat >conftest.
$ac_ext <<_ACEOF
8665 cat confdefs.h
>>conftest.
$ac_ext
8666 cat >>conftest.
$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 #include <X11/Intrinsic.h>
8670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8673 grep -v '^ *+' conftest.er1
>conftest.err
8675 cat conftest.err
>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } >/dev
/null
; then
8678 if test -s conftest.err
; then
8679 ac_cpp_err
=$ac_c_preproc_warn_flag
8680 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8687 if test -z "$ac_cpp_err"; then
8688 # We can compile using X headers with no special include directory.
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.
$ac_ext >&5
8694 for ac_dir
in $ac_x_header_dirs; do
8695 if test -r "$ac_dir/X11/Intrinsic.h"; then
8696 ac_x_includes
=$ac_dir
8701 rm -f conftest.err conftest.
$ac_ext
8702 fi # $ac_x_includes = no
8704 if test "$ac_x_libraries" = no
; then
8705 # Check for the libraries.
8706 # See if we find them without any special options.
8707 # Don't add to $LIBS permanently.
8710 cat >conftest.
$ac_ext <<_ACEOF
8713 cat confdefs.h
>>conftest.
$ac_ext
8714 cat >>conftest.
$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 #include <X11/Intrinsic.h>
8725 rm -f conftest.
$ac_objext conftest
$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>conftest.er1
8729 grep -v '^ *+' conftest.er1
>conftest.err
8731 cat conftest.err
>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try
='test -z "$ac_c_werror_flag"
8735 || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try
='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8748 # We can link X programs with no special library path.
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.
$ac_ext >&5
8755 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8757 # Don't even attempt the hair of trying to link an X program!
8758 for ac_extension
in a so sl
; do
8759 if test -r $ac_dir/libXt.
$ac_extension; then
8760 ac_x_libraries
=$ac_dir
8766 rm -f conftest.err conftest.
$ac_objext \
8767 conftest
$ac_exeext conftest.
$ac_ext
8768 fi # $ac_x_libraries = no
8770 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8771 # Didn't find X anywhere. Cache the known absence of X.
8772 ac_cv_have_x
="have_x=no"
8774 # Record where we found X for the cache.
8775 ac_cv_have_x
="have_x=yes \
8776 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8781 eval "$ac_cv_have_x"
8784 if test "$have_x" != yes; then
8785 echo "$as_me:$LINENO: result: $have_x" >&5
8786 echo "${ECHO_T}$have_x" >&6
8789 # If each of the values was on the command line, it overrides each guess.
8790 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8791 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8792 # Update the cache value to reflect the command line values.
8793 ac_cv_have_x
="have_x=yes \
8794 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8795 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8796 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8799 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8800 # for constant arguments. Useless!
8801 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8802 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8803 if test "${ac_cv_working_alloca_h+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 cat >conftest.
$ac_ext <<_ACEOF
8809 cat confdefs.h
>>conftest.
$ac_ext
8810 cat >>conftest.
$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8816 char *p = (char *) alloca (2 * sizeof (int));
8821 rm -f conftest.
$ac_objext conftest
$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8825 grep -v '^ *+' conftest.er1
>conftest.err
8827 cat conftest.err
>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try
='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try
='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_working_alloca_h
=yes
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.
$ac_ext >&5
8848 ac_cv_working_alloca_h
=no
8850 rm -f conftest.err conftest.
$ac_objext \
8851 conftest
$ac_exeext conftest.
$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8854 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8855 if test $ac_cv_working_alloca_h = yes; then
8857 cat >>confdefs.h
<<\_ACEOF
8858 #define HAVE_ALLOCA_H 1
8863 echo "$as_me:$LINENO: checking for alloca" >&5
8864 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8865 if test "${ac_cv_func_alloca_works+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 cat >conftest.
$ac_ext <<_ACEOF
8871 cat confdefs.h
>>conftest.
$ac_ext
8872 cat >>conftest.
$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8875 # define alloca __builtin_alloca
8878 # include <malloc.h>
8879 # define alloca _alloca
8882 # include <alloca.h>
8887 # ifndef alloca /* predefined by HP cc +Olibcalls */
8898 char *p = (char *) alloca (1);
8903 rm -f conftest.
$ac_objext conftest
$ac_exeext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>conftest.er1
8907 grep -v '^ *+' conftest.er1
>conftest.err
8909 cat conftest.err
>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try
='test -z "$ac_c_werror_flag"
8913 || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try
='test -s conftest$ac_exeext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_func_alloca_works
=yes
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.
$ac_ext >&5
8930 ac_cv_func_alloca_works
=no
8932 rm -f conftest.err conftest.
$ac_objext \
8933 conftest
$ac_exeext conftest.
$ac_ext
8935 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8936 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8938 if test $ac_cv_func_alloca_works = yes; then
8940 cat >>confdefs.h
<<\_ACEOF
8941 #define HAVE_ALLOCA 1
8945 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8946 # that cause trouble. Some versions do not even contain alloca or
8947 # contain a buggy version. If you still want to use their alloca,
8948 # use ar to extract alloca.o from them instead of compiling alloca.c.
8950 ALLOCA
=alloca.
$ac_objext
8952 cat >>confdefs.h
<<\_ACEOF
8957 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8958 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8959 if test "${ac_cv_os_cray+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 cat >conftest.
$ac_ext <<_ACEOF
8965 cat confdefs.h
>>conftest.
$ac_ext
8966 cat >>conftest.
$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 #if defined(CRAY) && ! defined(CRAY2)
8975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8976 $EGREP "webecray" >/dev
/null
2>&1; then
8984 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8985 echo "${ECHO_T}$ac_cv_os_cray" >&6
8986 if test $ac_cv_os_cray = yes; then
8987 for ac_func
in _getb67 GETB67 getb67
; do
8988 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8989 echo "$as_me:$LINENO: checking for $ac_func" >&5
8990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_var+set}\" = set"; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 cat >conftest.
$ac_ext <<_ACEOF
8997 cat confdefs.h
>>conftest.
$ac_ext
8998 cat >>conftest.
$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9002 #define $ac_func innocuous_$ac_func
9004 /* System header to define __stub macros and hopefully few prototypes,
9005 which can conflict with char $ac_func (); below.
9006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9007 <limits.h> exists even on freestanding compilers. */
9010 # include <limits.h>
9012 # include <assert.h>
9017 /* Override any gcc2 internal prototype to avoid an error. */
9022 /* We use char because int might match the return type of a gcc2
9023 builtin and then its argument prototype would still apply. */
9025 /* The GNU C library defines this for functions which it implements
9026 to always fail with ENOSYS. Some functions are actually named
9027 something starting with __ and the normal name is an alias. */
9028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9031 char (*f) () = $ac_func;
9040 return f != $ac_func;
9045 rm -f conftest.
$ac_objext conftest
$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9049 grep -v '^ *+' conftest.er1
>conftest.err
9051 cat conftest.err
>&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try
='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try
='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 eval "$as_ac_var=yes"
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.
$ac_ext >&5
9072 eval "$as_ac_var=no"
9074 rm -f conftest.err conftest.
$ac_objext \
9075 conftest
$ac_exeext conftest.
$ac_ext
9077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9079 if test `eval echo '${'$as_ac_var'}'` = yes; then
9081 cat >>confdefs.h
<<_ACEOF
9082 #define CRAY_STACKSEG_END $ac_func
9091 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9092 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9093 if test "${ac_cv_c_stack_direction+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 if test "$cross_compiling" = yes; then
9097 ac_cv_c_stack_direction
=0
9099 cat >conftest.
$ac_ext <<_ACEOF
9102 cat confdefs.h
>>conftest.
$ac_ext
9103 cat >>conftest.
$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 find_stack_direction ()
9108 static char *addr = 0;
9113 return find_stack_direction ();
9116 return (&dummy > addr) ? 1 : -1;
9122 exit (find_stack_direction () < 0);
9125 rm -f conftest
$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_c_stack_direction
=1
9138 echo "$as_me: program exited with status $ac_status" >&5
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9143 ac_cv_c_stack_direction
=-1
9145 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9149 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9151 cat >>confdefs.h
<<_ACEOF
9152 #define STACK_DIRECTION $ac_cv_c_stack_direction
9164 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9165 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9166 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9167 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 cat >conftest.
$ac_ext <<_ACEOF
9174 cat confdefs.h
>>conftest.
$ac_ext
9175 cat >>conftest.
$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 #include <sys/types.h>
9189 rm -f conftest.
$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try
='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try
='test -s conftest.$ac_objext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 eval "$as_ac_Header=yes"
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.
$ac_ext >&5
9216 eval "$as_ac_Header=no"
9218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9223 cat >>confdefs.h
<<_ACEOF
9224 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9227 ac_header_dirent
=$ac_hdr; break
9231 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9232 if test $ac_header_dirent = dirent.h
; then
9233 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9234 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9235 if test "${ac_cv_search_opendir+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 ac_func_search_save_LIBS
=$LIBS
9239 ac_cv_search_opendir
=no
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9262 rm -f conftest.
$ac_objext conftest
$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9266 grep -v '^ *+' conftest.er1
>conftest.err
9268 cat conftest.err
>&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try
='test -z "$ac_c_werror_flag"
9272 || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try
='test -s conftest$ac_exeext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_cv_search_opendir
="none required"
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.
$ac_ext >&5
9290 rm -f conftest.err conftest.
$ac_objext \
9291 conftest
$ac_exeext conftest.
$ac_ext
9292 if test "$ac_cv_search_opendir" = no
; then
9293 for ac_lib
in dir
; do
9294 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9295 cat >conftest.
$ac_ext <<_ACEOF
9298 cat confdefs.h
>>conftest.
$ac_ext
9299 cat >>conftest.
$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9302 /* Override any gcc2 internal prototype to avoid an error. */
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9317 rm -f conftest.
$ac_objext conftest
$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
9321 grep -v '^ *+' conftest.er1
>conftest.err
9323 cat conftest.err
>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try
='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try
='test -s conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_cv_search_opendir
="-l$ac_lib"
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.
$ac_ext >&5
9346 rm -f conftest.err conftest.
$ac_objext \
9347 conftest
$ac_exeext conftest.
$ac_ext
9350 LIBS
=$ac_func_search_save_LIBS
9352 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9353 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9354 if test "$ac_cv_search_opendir" != no
; then
9355 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9360 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9361 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9362 if test "${ac_cv_search_opendir+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 ac_func_search_save_LIBS
=$LIBS
9366 ac_cv_search_opendir
=no
9367 cat >conftest.
$ac_ext <<_ACEOF
9370 cat confdefs.h
>>conftest.
$ac_ext
9371 cat >>conftest.
$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9374 /* Override any gcc2 internal prototype to avoid an error. */
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9389 rm -f conftest.
$ac_objext conftest
$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>conftest.er1
9393 grep -v '^ *+' conftest.er1
>conftest.err
9395 cat conftest.err
>&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try
='test -z "$ac_c_werror_flag"
9399 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try
='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_search_opendir
="none required"
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.
$ac_ext >&5
9417 rm -f conftest.err conftest.
$ac_objext \
9418 conftest
$ac_exeext conftest.
$ac_ext
9419 if test "$ac_cv_search_opendir" = no
; then
9421 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9422 cat >conftest.
$ac_ext <<_ACEOF
9425 cat confdefs.h
>>conftest.
$ac_ext
9426 cat >>conftest.
$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 /* Override any gcc2 internal prototype to avoid an error. */
9433 /* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9444 rm -f conftest.
$ac_objext conftest
$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9448 grep -v '^ *+' conftest.er1
>conftest.err
9450 cat conftest.err
>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try
='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try
='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_search_opendir
="-l$ac_lib"
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.
$ac_ext >&5
9473 rm -f conftest.err conftest.
$ac_objext \
9474 conftest
$ac_exeext conftest.
$ac_ext
9477 LIBS
=$ac_func_search_save_LIBS
9479 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9480 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9481 if test "$ac_cv_search_opendir" != no
; then
9482 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9488 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9490 if test "${ac_cv_header_stdc+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 cat >conftest.
$ac_ext <<_ACEOF
9496 cat confdefs.h
>>conftest.
$ac_ext
9497 cat >>conftest.
$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9512 rm -f conftest.
$ac_objext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9514 (eval $ac_compile) 2>conftest.er1
9516 grep -v '^ *+' conftest.er1
>conftest.err
9518 cat conftest.err
>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try
='test -z "$ac_c_werror_flag"
9522 || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try
='test -s conftest.$ac_objext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_header_stdc
=yes
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.
$ac_ext >&5
9539 ac_cv_header_stdc
=no
9541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9543 if test $ac_cv_header_stdc = yes; then
9544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9545 cat >conftest.
$ac_ext <<_ACEOF
9548 cat confdefs.h
>>conftest.
$ac_ext
9549 cat >>conftest.
$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9555 $EGREP "memchr" >/dev
/null
2>&1; then
9558 ac_cv_header_stdc
=no
9564 if test $ac_cv_header_stdc = yes; then
9565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9566 cat >conftest.
$ac_ext <<_ACEOF
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9576 $EGREP "free" >/dev
/null
2>&1; then
9579 ac_cv_header_stdc
=no
9585 if test $ac_cv_header_stdc = yes; then
9586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9587 if test "$cross_compiling" = yes; then
9590 cat >conftest.
$ac_ext <<_ACEOF
9593 cat confdefs.h
>>conftest.
$ac_ext
9594 cat >>conftest.
$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 #if ((' ' & 0x0FF) == 0x020)
9598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9601 # define ISLOWER(c) \
9602 (('a' <= (c) && (c) <= 'i') \
9603 || ('j' <= (c) && (c) <= 'r') \
9604 || ('s' <= (c) && (c) <= 'z'))
9605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9613 for (i = 0; i < 256; i++)
9614 if (XOR (islower (i), ISLOWER (i))
9615 || toupper (i) != TOUPPER (i))
9620 rm -f conftest
$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9633 echo "$as_me: program exited with status $ac_status" >&5
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.
$ac_ext >&5
9638 ac_cv_header_stdc
=no
9640 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9644 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9645 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9646 if test $ac_cv_header_stdc = yes; then
9648 cat >>confdefs.h
<<\_ACEOF
9649 #define STDC_HEADERS 1
9684 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
9686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688 echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696 # Is the header compilable?
9697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9699 cat >conftest.
$ac_ext <<_ACEOF
9702 cat confdefs.h
>>conftest.
$ac_ext
9703 cat >>conftest.
$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9708 rm -f conftest.
$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1
>conftest.err
9714 cat conftest.err
>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try
='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try
='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_header_compiler
=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.
$ac_ext >&5
9735 ac_header_compiler
=no
9737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9739 echo "${ECHO_T}$ac_header_compiler" >&6
9741 # Is the header present?
9742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9744 cat >conftest.
$ac_ext <<_ACEOF
9747 cat confdefs.h
>>conftest.
$ac_ext
9748 cat >>conftest.
$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 #include <$ac_header>
9752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1
>conftest.err
9757 cat conftest.err
>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } >/dev
/null
; then
9760 if test -s conftest.err
; then
9761 ac_cpp_err
=$ac_c_preproc_warn_flag
9762 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9769 if test -z "$ac_cpp_err"; then
9770 ac_header_preproc
=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.
$ac_ext >&5
9775 ac_header_preproc
=no
9777 rm -f conftest.err conftest.
$ac_ext
9778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779 echo "${ECHO_T}$ac_header_preproc" >&6
9781 # So? What about this header?
9782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788 ac_header_preproc
=yes
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9805 ## ------------------------------ ##
9806 ## Report this to admin@amule.org ##
9807 ## ------------------------------ ##
9810 sed "s/^/$as_me: WARNING: /" >&2
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 eval "$as_ac_Header=\$ac_header_preproc"
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h
<<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9833 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9834 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9835 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 cat >conftest.
$ac_ext <<_ACEOF
9841 cat confdefs.h
>>conftest.
$ac_ext
9842 cat >>conftest.
$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 #include <sys/types.h>
9845 #include <sys/wait.h>
9847 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9850 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9858 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9863 rm -f conftest.
$ac_objext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9865 (eval $ac_compile) 2>conftest.er1
9867 grep -v '^ *+' conftest.er1
>conftest.err
9869 cat conftest.err
>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try
='test -z "$ac_c_werror_flag"
9873 || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try
='test -s conftest.$ac_objext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_header_sys_wait_h
=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.
$ac_ext >&5
9890 ac_cv_header_sys_wait_h
=no
9892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9894 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9895 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9896 if test $ac_cv_header_sys_wait_h = yes; then
9898 cat >>confdefs.h
<<\_ACEOF
9899 #define HAVE_SYS_WAIT_H 1
9905 # Checks for typedefs, structures, and compiler characteristics.
9906 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9907 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9908 if test "${ac_cv_header_stdbool_h+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.
$ac_ext <<_ACEOF
9914 cat confdefs.h
>>conftest.
$ac_ext
9915 cat >>conftest.
$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 #include <stdbool.h>
9920 # error bool is not defined
9923 # error false is not defined
9926 # error false is not 0
9929 # error true is not defined
9932 # error true is not 1
9934 #ifndef __bool_true_false_are_defined
9935 # error __bool_true_false_are_defined is not defined
9938 struct s { _Bool s: 1; _Bool t; } s;
9940 char a[true == 1 ? 1 : -1];
9941 char b[false == 0 ? 1 : -1];
9942 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9943 char d[(bool) -0.5 == true ? 1 : -1];
9945 char f[(_Bool) -0.0 == false ? 1 : -1];
9947 char h[sizeof (_Bool)];
9953 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9958 rm -f conftest.
$ac_objext
9959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9960 (eval $ac_compile) 2>conftest.er1
9962 grep -v '^ *+' conftest.er1
>conftest.err
9964 cat conftest.err
>&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try
='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try
='test -s conftest.$ac_objext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_header_stdbool_h
=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.
$ac_ext >&5
9985 ac_cv_header_stdbool_h
=no
9987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9989 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9990 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9991 echo "$as_me:$LINENO: checking for _Bool" >&5
9992 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9993 if test "${ac_cv_type__Bool+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 cat >conftest.
$ac_ext <<_ACEOF
9999 cat confdefs.h
>>conftest.
$ac_ext
10000 cat >>conftest.
$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 $ac_includes_default
10008 if (sizeof (_Bool))
10014 rm -f conftest.
$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1
>conftest.err
10020 cat conftest.err
>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try
='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try
='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_type__Bool
=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.
$ac_ext >&5
10041 ac_cv_type__Bool
=no
10043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10045 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10046 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10047 if test $ac_cv_type__Bool = yes; then
10049 cat >>confdefs.h
<<_ACEOF
10050 #define HAVE__BOOL 1
10056 if test $ac_cv_header_stdbool_h = yes; then
10058 cat >>confdefs.h
<<\_ACEOF
10059 #define HAVE_STDBOOL_H 1
10064 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10065 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10066 if test "${ac_cv_c_const+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10072 cat confdefs.h
>>conftest.
$ac_ext
10073 cat >>conftest.
$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10079 /* FIXME: Include the comments suggested by Paul. */
10080 #ifndef __cplusplus
10081 /* Ultrix mips cc rejects this. */
10082 typedef int charset[2];
10084 /* SunOS 4.1.1 cc rejects this. */
10085 char const *const *ccp;
10087 /* NEC SVR4.0.2 mips cc rejects this. */
10088 struct point {int x, y;};
10089 static struct point const zero = {0,0};
10090 /* AIX XL C 1.02.0.0 rejects this.
10091 It does not let you subtract one const X* pointer from another in
10092 an arm of an if-expression whose if-part is not a constant
10094 const char *g = "string";
10095 ccp = &g + (g ? g-g : 0);
10096 /* HPUX 7.0 cc rejects these. */
10099 ccp = (char const *const *) p;
10100 { /* SCO 3.2v4 cc rejects this. */
10102 char const *s = 0 ? (char *) 0 : (char const *) 0;
10106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10107 int x[] = {25, 17};
10108 const int *foo = &x[0];
10111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10112 typedef const int *iptr;
10116 { /* AIX XL C 1.02.0.0 rejects this saying
10117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10118 struct s { int j; const int *ap[3]; };
10119 struct s *b; b->j = 5;
10121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10122 const int foo = 10;
10130 rm -f conftest.
$ac_objext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10132 (eval $ac_compile) 2>conftest.er1
10134 grep -v '^ *+' conftest.er1
>conftest.err
10136 cat conftest.err
>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try
='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try
='test -s conftest.$ac_objext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.
$ac_ext >&5
10159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10162 echo "${ECHO_T}$ac_cv_c_const" >&6
10163 if test $ac_cv_c_const = no
; then
10165 cat >>confdefs.h
<<\_ACEOF
10171 echo "$as_me:$LINENO: checking for inline" >&5
10172 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10173 if test "${ac_cv_c_inline+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 for ac_kw
in inline __inline__ __inline
; do
10178 cat >conftest.
$ac_ext <<_ACEOF
10181 cat confdefs.h
>>conftest.
$ac_ext
10182 cat >>conftest.
$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #ifndef __cplusplus
10186 static $ac_kw foo_t static_foo () {return 0; }
10187 $ac_kw foo_t foo () {return 0; }
10191 rm -f conftest.
$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10195 grep -v '^ *+' conftest.er1
>conftest.err
10197 cat conftest.err
>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try
='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try
='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_c_inline
=$ac_kw; break
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.
$ac_ext >&5
10219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10224 echo "${ECHO_T}$ac_cv_c_inline" >&6
10227 case $ac_cv_c_inline in
10230 case $ac_cv_c_inline in
10232 *) ac_val
=$ac_cv_c_inline;;
10234 cat >>confdefs.h
<<_ACEOF
10235 #ifndef __cplusplus
10236 #define inline $ac_val
10242 echo "$as_me:$LINENO: checking for mode_t" >&5
10243 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10244 if test "${ac_cv_type_mode_t+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 cat >conftest.
$ac_ext <<_ACEOF
10250 cat confdefs.h
>>conftest.
$ac_ext
10251 cat >>conftest.
$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 $ac_includes_default
10259 if (sizeof (mode_t))
10265 rm -f conftest.
$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>conftest.er1
10269 grep -v '^ *+' conftest.er1
>conftest.err
10271 cat conftest.err
>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try
='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try
='test -s conftest.$ac_objext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 ac_cv_type_mode_t
=yes
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.
$ac_ext >&5
10292 ac_cv_type_mode_t
=no
10294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10297 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10298 if test $ac_cv_type_mode_t = yes; then
10302 cat >>confdefs.h
<<_ACEOF
10308 echo "$as_me:$LINENO: checking for off_t" >&5
10309 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10310 if test "${ac_cv_type_off_t+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 cat >conftest.
$ac_ext <<_ACEOF
10316 cat confdefs.h
>>conftest.
$ac_ext
10317 cat >>conftest.
$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 $ac_includes_default
10325 if (sizeof (off_t))
10331 rm -f conftest.
$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try
='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try
='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_type_off_t
=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.
$ac_ext >&5
10358 ac_cv_type_off_t
=no
10360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10363 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10364 if test $ac_cv_type_off_t = yes; then
10368 cat >>confdefs.h
<<_ACEOF
10374 echo "$as_me:$LINENO: checking for size_t" >&5
10375 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10376 if test "${ac_cv_type_size_t+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.
$ac_ext <<_ACEOF
10382 cat confdefs.h
>>conftest.
$ac_ext
10383 cat >>conftest.
$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10391 if (sizeof (size_t))
10397 rm -f conftest.
$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>conftest.er1
10401 grep -v '^ *+' conftest.er1
>conftest.err
10403 cat conftest.err
>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try
='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try
='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_type_size_t
=yes
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.
$ac_ext >&5
10424 ac_cv_type_size_t
=no
10426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10428 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10429 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10430 if test $ac_cv_type_size_t = yes; then
10434 cat >>confdefs.h
<<_ACEOF
10435 #define size_t unsigned
10440 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10441 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10442 if test "${ac_cv_header_time+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 cat >conftest.
$ac_ext <<_ACEOF
10448 cat confdefs.h
>>conftest.
$ac_ext
10449 cat >>conftest.
$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <sys/types.h>
10452 #include <sys/time.h>
10458 if ((struct tm *) 0)
10464 rm -f conftest.
$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466 (eval $ac_compile) 2>conftest.er1
10468 grep -v '^ *+' conftest.er1
>conftest.err
10470 cat conftest.err
>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try
='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try
='test -s conftest.$ac_objext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_header_time
=yes
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.
$ac_ext >&5
10491 ac_cv_header_time
=no
10493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10496 echo "${ECHO_T}$ac_cv_header_time" >&6
10497 if test $ac_cv_header_time = yes; then
10499 cat >>confdefs.h
<<\_ACEOF
10500 #define TIME_WITH_SYS_TIME 1
10505 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10506 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10507 if test "${ac_cv_struct_tm+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 cat >conftest.
$ac_ext <<_ACEOF
10513 cat confdefs.h
>>conftest.
$ac_ext
10514 cat >>conftest.
$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 #include <sys/types.h>
10522 struct tm *tp; tp->tm_sec;
10527 rm -f conftest.
$ac_objext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10529 (eval $ac_compile) 2>conftest.er1
10531 grep -v '^ *+' conftest.er1
>conftest.err
10533 cat conftest.err
>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try
='test -z "$ac_c_werror_flag"
10537 || test ! -s conftest.err'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try
='test -s conftest.$ac_objext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 ac_cv_struct_tm
=time.h
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.
$ac_ext >&5
10554 ac_cv_struct_tm
=sys
/time.h
10556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10558 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10559 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10560 if test $ac_cv_struct_tm = sys
/time.h
; then
10562 cat >>confdefs.h
<<\_ACEOF
10563 #define TM_IN_SYS_TIME 1
10568 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10569 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10570 if test "${ac_cv_type_uid_t+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 cat >conftest.
$ac_ext <<_ACEOF
10576 cat confdefs.h
>>conftest.
$ac_ext
10577 cat >>conftest.
$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <sys/types.h>
10582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10583 $EGREP "uid_t" >/dev
/null
2>&1; then
10584 ac_cv_type_uid_t
=yes
10586 ac_cv_type_uid_t
=no
10591 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10592 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10593 if test $ac_cv_type_uid_t = no
; then
10595 cat >>confdefs.h
<<\_ACEOF
10600 cat >>confdefs.h
<<\_ACEOF
10606 echo "$as_me:$LINENO: checking for working volatile" >&5
10607 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10608 if test "${ac_cv_c_volatile+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 cat >conftest.
$ac_ext <<_ACEOF
10614 cat confdefs.h
>>conftest.
$ac_ext
10615 cat >>conftest.
$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10628 rm -f conftest.
$ac_objext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10630 (eval $ac_compile) 2>conftest.er1
10632 grep -v '^ *+' conftest.er1
>conftest.err
10634 cat conftest.err
>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try
='test -z "$ac_c_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try
='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_c_volatile
=yes
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.
$ac_ext >&5
10655 ac_cv_c_volatile
=no
10657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10659 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10660 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10661 if test $ac_cv_c_volatile = no
; then
10663 cat >>confdefs.h
<<\_ACEOF
10669 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10670 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10671 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 cat >conftest.
$ac_ext <<_ACEOF
10677 cat confdefs.h
>>conftest.
$ac_ext
10678 cat >>conftest.
$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10684 if ((ptrdiff_t *) 0)
10686 if (sizeof (ptrdiff_t))
10692 rm -f conftest.
$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10696 grep -v '^ *+' conftest.er1
>conftest.err
10698 cat conftest.err
>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try
='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; } &&
10708 { ac_try
='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_type_ptrdiff_t
=yes
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.
$ac_ext >&5
10719 ac_cv_type_ptrdiff_t
=no
10721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10724 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10725 if test $ac_cv_type_ptrdiff_t = yes; then
10727 cat >>confdefs.h
<<_ACEOF
10728 #define HAVE_PTRDIFF_T 1
10735 # Checks for library functions.
10736 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10737 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10738 if test "${ac_cv_func_closedir_void+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 if test "$cross_compiling" = yes; then
10742 ac_cv_func_closedir_void
=yes
10744 cat >conftest.
$ac_ext <<_ACEOF
10747 cat confdefs.h
>>conftest.
$ac_ext
10748 cat >>conftest.
$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 #include <$ac_header_dirent>
10752 #ifndef __cplusplus
10759 exit (closedir (opendir (".")) != 0);
10764 rm -f conftest
$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_func_closedir_void
=no
10777 echo "$as_me: program exited with status $ac_status" >&5
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.
$ac_ext >&5
10781 ( exit $ac_status )
10782 ac_cv_func_closedir_void
=yes
10784 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10787 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10788 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10789 if test $ac_cv_func_closedir_void = yes; then
10791 cat >>confdefs.h
<<\_ACEOF
10792 #define CLOSEDIR_VOID 1
10799 if test -n "$ac_aux_dir"; then
10800 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
10802 if test -z "$MKINSTALLDIRS"; then
10803 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
10810 # Extract the first word of "msgfmt", so it can be a program name with args.
10811 set dummy msgfmt
; ac_word
=$2
10812 echo "$as_me:$LINENO: checking for $ac_word" >&5
10813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10814 if test "${ac_cv_path_MSGFMT+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
10822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
10823 for ac_dir
in $PATH; do
10824 test -z "$ac_dir" && ac_dir
=.
10825 if test -f $ac_dir/$ac_word; then
10826 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
10827 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
10828 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
10834 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
10838 MSGFMT
="$ac_cv_path_MSGFMT"
10839 if test "$MSGFMT" != ":"; then
10840 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10841 echo "${ECHO_T}$MSGFMT" >&6
10843 echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10847 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10848 set dummy gmsgfmt
; ac_word
=$2
10849 echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
10859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10860 for as_dir
in $PATH
10863 test -z "$as_dir" && as_dir
=.
10864 for ac_exec_ext
in '' $ac_executable_extensions; do
10865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10873 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
10877 GMSGFMT
=$ac_cv_path_GMSGFMT
10879 if test -n "$GMSGFMT"; then
10880 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10881 echo "${ECHO_T}$GMSGFMT" >&6
10883 echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6
10888 # Extract the first word of "xgettext", so it can be a program name with args.
10889 set dummy xgettext
; ac_word
=$2
10890 echo "$as_me:$LINENO: checking for $ac_word" >&5
10891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10892 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 case "$XGETTEXT" in
10897 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
10900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
10901 for ac_dir
in $PATH; do
10902 test -z "$ac_dir" && ac_dir
=.
10903 if test -f $ac_dir/$ac_word; then
10904 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
10905 (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
10906 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
10912 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
10916 XGETTEXT
="$ac_cv_path_XGETTEXT"
10917 if test "$XGETTEXT" != ":"; then
10918 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10919 echo "${ECHO_T}$XGETTEXT" >&6
10921 echo "$as_me:$LINENO: result: no" >&5
10922 echo "${ECHO_T}no" >&6
10927 # Extract the first word of "msgmerge", so it can be a program name with args.
10928 set dummy msgmerge
; ac_word
=$2
10929 echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10931 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 case "$MSGMERGE" in
10936 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
10939 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
10940 for ac_dir
in $PATH; do
10941 test -z "$ac_dir" && ac_dir
=.
10942 if test -f $ac_dir/$ac_word; then
10943 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
10944 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
10950 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
10954 MSGMERGE
="$ac_cv_path_MSGMERGE"
10955 if test "$MSGMERGE" != ":"; then
10956 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10957 echo "${ECHO_T}$MSGMERGE" >&6
10959 echo "$as_me:$LINENO: result: no" >&5
10960 echo "${ECHO_T}no" >&6
10964 if test "$GMSGFMT" != ":"; then
10965 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
10966 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
10969 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10970 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10971 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10976 if test "$XGETTEXT" != ":"; then
10977 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
10978 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
10981 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10982 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10988 ac_config_commands
="$ac_config_commands default-1"
10991 echo "$as_me:$LINENO: checking for library containing strerror" >&5
10992 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
10993 if test "${ac_cv_search_strerror+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 ac_func_search_save_LIBS
=$LIBS
10997 ac_cv_search_strerror
=no
10998 cat >conftest.
$ac_ext <<_ACEOF
11001 cat confdefs.h
>>conftest.
$ac_ext
11002 cat >>conftest.
$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11005 /* Override any gcc2 internal prototype to avoid an error. */
11009 /* We use char because int might match the return type of a gcc2
11010 builtin and then its argument prototype would still apply. */
11020 rm -f conftest.
$ac_objext conftest
$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>conftest.er1
11024 grep -v '^ *+' conftest.er1
>conftest.err
11026 cat conftest.err
>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try
='test -z "$ac_c_werror_flag"
11030 || test ! -s conftest.err'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try
='test -s conftest$ac_exeext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 ac_cv_search_strerror
="none required"
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.
$ac_ext >&5
11048 rm -f conftest.err conftest.
$ac_objext \
11049 conftest
$ac_exeext conftest.
$ac_ext
11050 if test "$ac_cv_search_strerror" = no
; then
11051 for ac_lib
in cposix
; do
11052 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11053 cat >conftest.
$ac_ext <<_ACEOF
11056 cat confdefs.h
>>conftest.
$ac_ext
11057 cat >>conftest.
$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11060 /* Override any gcc2 internal prototype to avoid an error. */
11064 /* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11075 rm -f conftest.
$ac_objext conftest
$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077 (eval $ac_link) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1
>conftest.err
11081 cat conftest.err
>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try
='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try
='test -s conftest$ac_exeext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_search_strerror
="-l$ac_lib"
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.
$ac_ext >&5
11104 rm -f conftest.err conftest.
$ac_objext \
11105 conftest
$ac_exeext conftest.
$ac_ext
11108 LIBS
=$ac_func_search_save_LIBS
11110 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11111 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11112 if test "$ac_cv_search_strerror" != no
; then
11113 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
11119 for ac_header
in stdlib.h unistd.h
11121 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11123 echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11131 # Is the header compilable?
11132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11134 cat >conftest.
$ac_ext <<_ACEOF
11137 cat confdefs.h
>>conftest.
$ac_ext
11138 cat >>conftest.
$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 $ac_includes_default
11141 #include <$ac_header>
11143 rm -f conftest.
$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145 (eval $ac_compile) 2>conftest.er1
11147 grep -v '^ *+' conftest.er1
>conftest.err
11149 cat conftest.err
>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try
='test -z "$ac_c_werror_flag"
11153 || test ! -s conftest.err'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try
='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_header_compiler
=yes
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.
$ac_ext >&5
11170 ac_header_compiler
=no
11172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11174 echo "${ECHO_T}$ac_header_compiler" >&6
11176 # Is the header present?
11177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11179 cat >conftest.
$ac_ext <<_ACEOF
11182 cat confdefs.h
>>conftest.
$ac_ext
11183 cat >>conftest.
$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 #include <$ac_header>
11187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11190 grep -v '^ *+' conftest.er1
>conftest.err
11192 cat conftest.err
>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev
/null
; then
11195 if test -s conftest.err
; then
11196 ac_cpp_err
=$ac_c_preproc_warn_flag
11197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11204 if test -z "$ac_cpp_err"; then
11205 ac_header_preproc
=yes
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.
$ac_ext >&5
11210 ac_header_preproc
=no
11212 rm -f conftest.err conftest.
$ac_ext
11213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11214 echo "${ECHO_T}$ac_header_preproc" >&6
11216 # So? What about this header?
11217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11223 ac_header_preproc
=yes
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11240 ## ------------------------------ ##
11241 ## Report this to admin@amule.org ##
11242 ## ------------------------------ ##
11245 sed "s/^/$as_me: WARNING: /" >&2
11248 echo "$as_me:$LINENO: checking for $ac_header" >&5
11249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 eval "$as_ac_Header=\$ac_header_preproc"
11255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11260 cat >>confdefs.h
<<_ACEOF
11261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11269 for ac_func
in getpagesize
11271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11272 echo "$as_me:$LINENO: checking for $ac_func" >&5
11273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11274 if eval "test \"\${$as_ac_var+set}\" = set"; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 cat >conftest.
$ac_ext <<_ACEOF
11280 cat confdefs.h
>>conftest.
$ac_ext
11281 cat >>conftest.
$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11285 #define $ac_func innocuous_$ac_func
11287 /* System header to define __stub macros and hopefully few prototypes,
11288 which can conflict with char $ac_func (); below.
11289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290 <limits.h> exists even on freestanding compilers. */
11293 # include <limits.h>
11295 # include <assert.h>
11300 /* Override any gcc2 internal prototype to avoid an error. */
11305 /* We use char because int might match the return type of a gcc2
11306 builtin and then its argument prototype would still apply. */
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11314 char (*f) () = $ac_func;
11323 return f != $ac_func;
11328 rm -f conftest.
$ac_objext conftest
$ac_exeext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11330 (eval $ac_link) 2>conftest.er1
11332 grep -v '^ *+' conftest.er1
>conftest.err
11334 cat conftest.err
>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try
='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try
='test -s conftest$ac_exeext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 eval "$as_ac_var=yes"
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11355 eval "$as_ac_var=no"
11357 rm -f conftest.err conftest.
$ac_objext \
11358 conftest
$ac_exeext conftest.
$ac_ext
11360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h
<<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 echo "$as_me:$LINENO: checking for working mmap" >&5
11371 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11372 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 if test "$cross_compiling" = yes; then
11376 ac_cv_func_mmap_fixed_mapped
=no
11378 cat >conftest.
$ac_ext <<_ACEOF
11381 cat confdefs.h
>>conftest.
$ac_ext
11382 cat >>conftest.
$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 /* malloc might have been renamed as rpl_malloc. */
11388 /* Thanks to Mike Haertel and Jim Avera for this test.
11389 Here is a matrix of mmap possibilities:
11390 mmap private not fixed
11391 mmap private fixed at somewhere currently unmapped
11392 mmap private fixed at somewhere already mapped
11393 mmap shared not fixed
11394 mmap shared fixed at somewhere currently unmapped
11395 mmap shared fixed at somewhere already mapped
11396 For private mappings, we should verify that changes cannot be read()
11397 back from the file, nor mmap's back from the file at a different
11398 address. (There have been systems where private was not correctly
11399 implemented like the infamous i386 svr4.0, and systems where the
11400 VM page cache was not coherent with the file system buffer cache
11401 like early versions of FreeBSD and possibly contemporary NetBSD.)
11402 For shared mappings, we should conversely verify that changes get
11403 propagated back to all the places they're supposed to be.
11405 Grep wants private fixed already mapped.
11406 The main things grep needs to know about mmap are:
11407 * does it exist and is it safe to write into the mmap'd area
11408 * how to use it (BSD variants) */
11411 #include <sys/mman.h>
11413 #if !STDC_HEADERS && !HAVE_STDLIB_H
11417 /* This mess was copied from the GNU getpagesize.h. */
11418 #if !HAVE_GETPAGESIZE
11419 /* Assume that all systems that can run configure have sys/param.h. */
11420 # if !HAVE_SYS_PARAM_H
11421 # define HAVE_SYS_PARAM_H 1
11424 # ifdef _SC_PAGESIZE
11425 # define getpagesize() sysconf(_SC_PAGESIZE)
11426 # else /* no _SC_PAGESIZE */
11427 # if HAVE_SYS_PARAM_H
11428 # include <sys/param.h>
11429 # ifdef EXEC_PAGESIZE
11430 # define getpagesize() EXEC_PAGESIZE
11431 # else /* no EXEC_PAGESIZE */
11433 # define getpagesize() NBPG * CLSIZE
11436 # endif /* no CLSIZE */
11437 # else /* no NBPG */
11439 # define getpagesize() NBPC
11440 # else /* no NBPC */
11442 # define getpagesize() PAGESIZE
11443 # endif /* PAGESIZE */
11444 # endif /* no NBPC */
11445 # endif /* no NBPG */
11446 # endif /* no EXEC_PAGESIZE */
11447 # else /* no HAVE_SYS_PARAM_H */
11448 # define getpagesize() 8192 /* punt totally */
11449 # endif /* no HAVE_SYS_PARAM_H */
11450 # endif /* no _SC_PAGESIZE */
11452 #endif /* no HAVE_GETPAGESIZE */
11457 char *data, *data2, *data3;
11461 pagesize = getpagesize ();
11463 /* First, make a file with some known garbage in it. */
11464 data = (char *) malloc (pagesize);
11467 for (i = 0; i < pagesize; ++i)
11468 *(data + i) = rand ();
11470 fd = creat ("conftest.mmap", 0600);
11473 if (write (fd, data, pagesize) != pagesize)
11477 /* Next, try to mmap the file at a fixed address which already has
11478 something else allocated at it. If we can, also make sure that
11479 we see the same garbage. */
11480 fd = open ("conftest.mmap", O_RDWR);
11483 data2 = (char *) malloc (2 * pagesize);
11486 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
11487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11490 for (i = 0; i < pagesize; ++i)
11491 if (*(data + i) != *(data2 + i))
11494 /* Finally, make sure that changes to the mapped area do not
11495 percolate back to the file as seen by read(). (This is a bug on
11496 some variants of i386 svr4.0.) */
11497 for (i = 0; i < pagesize; ++i)
11498 *(data2 + i) = *(data2 + i) + 1;
11499 data3 = (char *) malloc (pagesize);
11502 if (read (fd, data3, pagesize) != pagesize)
11504 for (i = 0; i < pagesize; ++i)
11505 if (*(data + i) != *(data3 + i))
11511 rm -f conftest
$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 ac_cv_func_mmap_fixed_mapped
=yes
11524 echo "$as_me: program exited with status $ac_status" >&5
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.
$ac_ext >&5
11528 ( exit $ac_status )
11529 ac_cv_func_mmap_fixed_mapped
=no
11531 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11534 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11535 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11536 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11538 cat >>confdefs.h
<<\_ACEOF
11539 #define HAVE_MMAP 1
11543 rm -f conftest.mmap
11546 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11547 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11548 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 cat >conftest.
$ac_ext <<_ACEOF
11554 cat confdefs.h
>>conftest.
$ac_ext
11555 cat >>conftest.
$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11558 #include <features.h>
11559 #ifdef __GNU_LIBRARY__
11560 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11567 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
11568 ac_cv_gnu_library_2_1
=yes
11570 ac_cv_gnu_library_2_1
=no
11577 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11578 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11580 GLIBC21
="$ac_cv_gnu_library_2_1"
11585 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
11586 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
11587 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 if test "$cross_compiling" = yes; then
11593 # Guess based on the CPU.
11594 case "$host_cpu" in
11595 alpha
* | i3456786 | m68k | s390
*)
11596 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
11598 gt_cv_int_divbyzero_sigfpe
="guessing no";;
11602 cat >conftest.
$ac_ext <<_ACEOF
11605 cat confdefs.h
>>conftest.
$ac_ext
11606 cat >>conftest.
$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 #include <stdlib.h>
11610 #include <signal.h>
11614 sigfpe_handler (int sig)
11616 sigfpe_handler (sig) int sig;
11619 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11620 exit (sig != SIGFPE);
11630 signal (SIGFPE, sigfpe_handler);
11631 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11632 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11633 signal (SIGTRAP, sigfpe_handler);
11635 /* Linux/SPARC yields signal SIGILL. */
11636 #if defined (__sparc__) && defined (__linux__)
11637 signal (SIGILL, sigfpe_handler);
11646 rm -f conftest
$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 gt_cv_int_divbyzero_sigfpe
=yes
11659 echo "$as_me: program exited with status $ac_status" >&5
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.
$ac_ext >&5
11663 ( exit $ac_status )
11664 gt_cv_int_divbyzero_sigfpe
=no
11666 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11670 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
11671 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
11672 case "$gt_cv_int_divbyzero_sigfpe" in
11677 cat >>confdefs.h
<<_ACEOF
11678 #define INTDIV0_RAISES_SIGFPE $value
11683 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11684 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11685 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 cat >conftest.
$ac_ext <<_ACEOF
11691 cat confdefs.h
>>conftest.
$ac_ext
11692 cat >>conftest.
$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 #include <sys/types.h>
11695 #include <inttypes.h>
11699 uintmax_t i = (uintmax_t) -1;
11704 rm -f conftest.
$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>conftest.er1
11708 grep -v '^ *+' conftest.er1
>conftest.err
11710 cat conftest.err
>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try
='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try
='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 jm_ac_cv_header_inttypes_h
=yes
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.
$ac_ext >&5
11731 jm_ac_cv_header_inttypes_h
=no
11733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11735 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
11736 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
11737 if test $jm_ac_cv_header_inttypes_h = yes; then
11739 cat >>confdefs.h
<<_ACEOF
11740 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11746 echo "$as_me:$LINENO: checking for stdint.h" >&5
11747 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11748 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 cat >conftest.
$ac_ext <<_ACEOF
11754 cat confdefs.h
>>conftest.
$ac_ext
11755 cat >>conftest.
$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 #include <sys/types.h>
11758 #include <stdint.h>
11762 uintmax_t i = (uintmax_t) -1;
11767 rm -f conftest.
$ac_objext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>conftest.er1
11771 grep -v '^ *+' conftest.er1
>conftest.err
11773 cat conftest.err
>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try
='test -z "$ac_c_werror_flag"
11777 || test ! -s conftest.err'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try
='test -s conftest.$ac_objext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 jm_ac_cv_header_stdint_h
=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.
$ac_ext >&5
11794 jm_ac_cv_header_stdint_h
=no
11796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11798 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
11799 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
11800 if test $jm_ac_cv_header_stdint_h = yes; then
11802 cat >>confdefs.h
<<_ACEOF
11803 #define HAVE_STDINT_H_WITH_UINTMAX 1
11809 echo "$as_me:$LINENO: checking for unsigned long long" >&5
11810 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11811 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 cat >conftest.
$ac_ext <<_ACEOF
11817 cat confdefs.h
>>conftest.
$ac_ext
11818 cat >>conftest.
$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 unsigned long long ull = 1; int i = 63;
11824 unsigned long long ullmax = (unsigned long long) -1;
11825 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11830 rm -f conftest.
$ac_objext conftest
$ac_exeext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11832 (eval $ac_link) 2>conftest.er1
11834 grep -v '^ *+' conftest.er1
>conftest.err
11836 cat conftest.err
>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try
='test -z "$ac_c_werror_flag"
11840 || test ! -s conftest.err'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try
='test -s conftest$ac_exeext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_cv_type_unsigned_long_long
=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.
$ac_ext >&5
11857 ac_cv_type_unsigned_long_long
=no
11859 rm -f conftest.err conftest.
$ac_objext \
11860 conftest
$ac_exeext conftest.
$ac_ext
11862 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11863 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11864 if test $ac_cv_type_unsigned_long_long = yes; then
11866 cat >>confdefs.h
<<\_ACEOF
11867 #define HAVE_UNSIGNED_LONG_LONG 1
11875 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
11877 test $ac_cv_type_unsigned_long_long = yes \
11878 && ac_type
='unsigned long long' \
11879 || ac_type
='unsigned long'
11881 cat >>confdefs.h
<<_ACEOF
11882 #define uintmax_t $ac_type
11888 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11889 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11890 if test "${gt_cv_header_inttypes_h+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.
$ac_ext <<_ACEOF
11897 cat confdefs.h
>>conftest.
$ac_ext
11898 cat >>conftest.
$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 #include <sys/types.h>
11901 #include <inttypes.h>
11910 rm -f conftest.
$ac_objext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11912 (eval $ac_compile) 2>conftest.er1
11914 grep -v '^ *+' conftest.er1
>conftest.err
11916 cat conftest.err
>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try
='test -z "$ac_c_werror_flag"
11920 || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try
='test -s conftest.$ac_objext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 gt_cv_header_inttypes_h
=yes
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.
$ac_ext >&5
11937 gt_cv_header_inttypes_h
=no
11939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11942 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
11943 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
11944 if test $gt_cv_header_inttypes_h = yes; then
11946 cat >>confdefs.h
<<_ACEOF
11947 #define HAVE_INTTYPES_H 1
11954 if test $gt_cv_header_inttypes_h = yes; then
11955 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
11956 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
11957 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
11958 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 #include <inttypes.h>
11980 rm -f conftest.
$ac_objext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>conftest.er1
11984 grep -v '^ *+' conftest.er1
>conftest.err
11986 cat conftest.err
>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try
='test -z "$ac_c_werror_flag"
11990 || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try
='test -s conftest.$ac_objext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 gt_cv_inttypes_pri_broken
=no
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.
$ac_ext >&5
12007 gt_cv_inttypes_pri_broken
=yes
12009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12012 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
12013 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
12015 if test "$gt_cv_inttypes_pri_broken" = yes; then
12017 cat >>confdefs.h
<<_ACEOF
12018 #define PRI_MACROS_BROKEN 1
12024 if test "X$prefix" = "XNONE"; then
12025 acl_final_prefix
="$ac_default_prefix"
12027 acl_final_prefix
="$prefix"
12029 if test "X$exec_prefix" = "XNONE"; then
12030 acl_final_exec_prefix
='${prefix}'
12032 acl_final_exec_prefix
="$exec_prefix"
12034 acl_save_prefix
="$prefix"
12035 prefix
="$acl_final_prefix"
12036 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
12037 prefix
="$acl_save_prefix"
12040 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12041 if test "${with_gnu_ld+set}" = set; then
12042 withval
="$with_gnu_ld"
12043 test "$withval" = no || with_gnu_ld
=yes
12048 if test "$GCC" = yes; then
12049 # Check if gcc -print-prog-name=ld gives a path.
12050 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12051 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
12054 # gcc leaves a trailing carriage return which upsets mingw
12055 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12057 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12060 # Accept absolute paths.
12061 [\\/]* |
[A-Za-z
]:[\\/]*)
12062 re_direlt
='/[^/][^/]*/\.\./'
12063 # Canonicalize the path of ld
12064 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
12065 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
12066 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
12068 test -z "$LD" && LD
="$ac_prog"
12071 # If it fails, then pretend we aren't using GCC.
12075 # If it is relative, then search for the first ld in PATH.
12076 with_gnu_ld
=unknown
12079 elif test "$with_gnu_ld" = yes; then
12080 echo "$as_me:$LINENO: checking for GNU ld" >&5
12081 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12083 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12084 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12086 if test "${acl_cv_path_LD+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 if test -z "$LD"; then
12090 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12091 for ac_dir
in $PATH; do
12092 test -z "$ac_dir" && ac_dir
=.
12093 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12094 acl_cv_path_LD
="$ac_dir/$ac_prog"
12095 # Check to see if the program is GNU ld. I'd rather use --version,
12096 # but apparently some GNU ld's only accept -v.
12097 # Break only if it was the GNU/non-GNU ld that we prefer.
12098 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
12099 test "$with_gnu_ld" != no
&& break
12101 test "$with_gnu_ld" != yes && break
12107 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
12111 LD
="$acl_cv_path_LD"
12112 if test -n "$LD"; then
12113 echo "$as_me:$LINENO: result: $LD" >&5
12114 echo "${ECHO_T}$LD" >&6
12116 echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6
12119 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12120 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12121 { (exit 1); exit 1; }; }
12122 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12123 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12124 if test "${acl_cv_prog_gnu_ld+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12128 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
12129 acl_cv_prog_gnu_ld
=yes
12131 acl_cv_prog_gnu_ld
=no
12134 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12135 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
12136 with_gnu_ld
=$acl_cv_prog_gnu_ld
12140 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12141 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
12142 if test "${acl_cv_rpath+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
12147 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12149 rm -f .
/conftest.sh
12153 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12154 echo "${ECHO_T}$acl_cv_rpath" >&6
12156 libext
="$acl_cv_libext"
12157 shlibext
="$acl_cv_shlibext"
12158 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
12159 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
12160 hardcode_direct
="$acl_cv_hardcode_direct"
12161 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
12162 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
12163 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
12164 # Check whether --enable-rpath or --disable-rpath was given.
12165 if test "${enable_rpath+set}" = set; then
12166 enableval
="$enable_rpath"
12180 acl_save_prefix
="$prefix"
12181 prefix
="$acl_final_prefix"
12182 acl_save_exec_prefix
="$exec_prefix"
12183 exec_prefix
="$acl_final_exec_prefix"
12185 eval additional_includedir
=\"$includedir\"
12186 eval additional_libdir
=\"$libdir\"
12188 exec_prefix
="$acl_save_exec_prefix"
12189 prefix
="$acl_save_prefix"
12192 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12193 if test "${with_libiconv_prefix+set}" = set; then
12194 withval
="$with_libiconv_prefix"
12196 if test "X$withval" = "Xno"; then
12199 if test "X$withval" = "X"; then
12201 acl_save_prefix
="$prefix"
12202 prefix
="$acl_final_prefix"
12203 acl_save_exec_prefix
="$exec_prefix"
12204 exec_prefix
="$acl_final_exec_prefix"
12206 eval additional_includedir
=\"$includedir\"
12207 eval additional_libdir
=\"$libdir\"
12209 exec_prefix
="$acl_save_exec_prefix"
12210 prefix
="$acl_save_prefix"
12213 additional_includedir
="$withval/include"
12214 additional_libdir
="$withval/lib"
12224 names_already_handled
=
12225 names_next_round
='iconv '
12226 while test -n "$names_next_round"; do
12227 names_this_round
="$names_next_round"
12229 for name
in $names_this_round; do
12231 for n
in $names_already_handled; do
12232 if test "$n" = "$name"; then
12233 already_handled
=yes
12237 if test -z "$already_handled"; then
12238 names_already_handled
="$names_already_handled $name"
12239 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12240 eval value
=\"\
$HAVE_LIB$uppername\"
12241 if test -n "$value"; then
12242 if test "$value" = yes; then
12243 eval value
=\"\
$LIB$uppername\"
12244 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
12245 eval value
=\"\
$LTLIB$uppername\"
12246 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
12255 if test $use_additional = yes; then
12256 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12257 found_dir
="$additional_libdir"
12258 found_so
="$additional_libdir/lib$name.$shlibext"
12259 if test -f "$additional_libdir/lib$name.la"; then
12260 found_la
="$additional_libdir/lib$name.la"
12263 if test -f "$additional_libdir/lib$name.$libext"; then
12264 found_dir
="$additional_libdir"
12265 found_a
="$additional_libdir/lib$name.$libext"
12266 if test -f "$additional_libdir/lib$name.la"; then
12267 found_la
="$additional_libdir/lib$name.la"
12272 if test "X$found_dir" = "X"; then
12273 for x
in $LDFLAGS $LTLIBICONV; do
12275 acl_save_prefix
="$prefix"
12276 prefix
="$acl_final_prefix"
12277 acl_save_exec_prefix
="$exec_prefix"
12278 exec_prefix
="$acl_final_exec_prefix"
12280 exec_prefix
="$acl_save_exec_prefix"
12281 prefix
="$acl_save_prefix"
12285 dir
=`echo "X$x" | sed -e 's/^X-L//'`
12286 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12288 found_so
="$dir/lib$name.$shlibext"
12289 if test -f "$dir/lib$name.la"; then
12290 found_la
="$dir/lib$name.la"
12293 if test -f "$dir/lib$name.$libext"; then
12295 found_a
="$dir/lib$name.$libext"
12296 if test -f "$dir/lib$name.la"; then
12297 found_la
="$dir/lib$name.la"
12303 if test "X$found_dir" != "X"; then
12308 if test "X$found_dir" != "X"; then
12309 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12310 if test "X$found_so" != "X"; then
12311 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
12312 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12315 for x
in $ltrpathdirs; do
12316 if test "X$x" = "X$found_dir"; then
12321 if test -z "$haveit"; then
12322 ltrpathdirs
="$ltrpathdirs $found_dir"
12324 if test "$hardcode_direct" = yes; then
12325 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12327 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
12328 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12330 for x
in $rpathdirs; do
12331 if test "X$x" = "X$found_dir"; then
12336 if test -z "$haveit"; then
12337 rpathdirs
="$rpathdirs $found_dir"
12341 for x
in $LDFLAGS $LIBICONV; do
12343 acl_save_prefix
="$prefix"
12344 prefix
="$acl_final_prefix"
12345 acl_save_exec_prefix
="$exec_prefix"
12346 exec_prefix
="$acl_final_exec_prefix"
12348 exec_prefix
="$acl_save_exec_prefix"
12349 prefix
="$acl_save_prefix"
12351 if test "X$x" = "X-L$found_dir"; then
12356 if test -z "$haveit"; then
12357 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12359 if test "$hardcode_minus_L" != no
; then
12360 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12362 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12368 if test "X$found_a" != "X"; then
12369 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
12371 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12374 additional_includedir
=
12375 case "$found_dir" in
12377 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12378 additional_includedir
="$basedir/include"
12381 if test "X$additional_includedir" != "X"; then
12382 if test "X$additional_includedir" != "X/usr/include"; then
12384 if test "X$additional_includedir" = "X/usr/local/include"; then
12385 if test -n "$GCC"; then
12387 linux
*) haveit
=yes;;
12391 if test -z "$haveit"; then
12392 for x
in $CPPFLAGS $INCICONV; do
12394 acl_save_prefix
="$prefix"
12395 prefix
="$acl_final_prefix"
12396 acl_save_exec_prefix
="$exec_prefix"
12397 exec_prefix
="$acl_final_exec_prefix"
12399 exec_prefix
="$acl_save_exec_prefix"
12400 prefix
="$acl_save_prefix"
12402 if test "X$x" = "X-I$additional_includedir"; then
12407 if test -z "$haveit"; then
12408 if test -d "$additional_includedir"; then
12409 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12415 if test -n "$found_la"; then
12416 save_libdir
="$libdir"
12417 case "$found_la" in
12418 */* |
*\\*) .
"$found_la" ;;
12419 *) .
"./$found_la" ;;
12421 libdir
="$save_libdir"
12422 for dep
in $dependency_libs; do
12425 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12426 if test "X$additional_libdir" != "X/usr/lib"; then
12428 if test "X$additional_libdir" = "X/usr/local/lib"; then
12429 if test -n "$GCC"; then
12431 linux
*) haveit
=yes;;
12435 if test -z "$haveit"; then
12437 for x
in $LDFLAGS $LIBICONV; do
12439 acl_save_prefix
="$prefix"
12440 prefix
="$acl_final_prefix"
12441 acl_save_exec_prefix
="$exec_prefix"
12442 exec_prefix
="$acl_final_exec_prefix"
12444 exec_prefix
="$acl_save_exec_prefix"
12445 prefix
="$acl_save_prefix"
12447 if test "X$x" = "X-L$additional_libdir"; then
12452 if test -z "$haveit"; then
12453 if test -d "$additional_libdir"; then
12454 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12458 for x
in $LDFLAGS $LTLIBICONV; do
12460 acl_save_prefix
="$prefix"
12461 prefix
="$acl_final_prefix"
12462 acl_save_exec_prefix
="$exec_prefix"
12463 exec_prefix
="$acl_final_exec_prefix"
12465 exec_prefix
="$acl_save_exec_prefix"
12466 prefix
="$acl_save_prefix"
12468 if test "X$x" = "X-L$additional_libdir"; then
12473 if test -z "$haveit"; then
12474 if test -d "$additional_libdir"; then
12475 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12482 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12483 if test "$enable_rpath" != no
; then
12485 for x
in $rpathdirs; do
12486 if test "X$x" = "X$dir"; then
12491 if test -z "$haveit"; then
12492 rpathdirs
="$rpathdirs $dir"
12495 for x
in $ltrpathdirs; do
12496 if test "X$x" = "X$dir"; then
12501 if test -z "$haveit"; then
12502 ltrpathdirs
="$ltrpathdirs $dir"
12507 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12510 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12513 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
12514 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12520 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12521 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12527 if test "X$rpathdirs" != "X"; then
12528 if test -n "$hardcode_libdir_separator"; then
12530 for found_dir
in $rpathdirs; do
12531 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12533 acl_save_libdir
="$libdir"
12535 eval flag
=\"$hardcode_libdir_flag_spec\"
12536 libdir
="$acl_save_libdir"
12537 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12539 for found_dir
in $rpathdirs; do
12540 acl_save_libdir
="$libdir"
12541 libdir
="$found_dir"
12542 eval flag
=\"$hardcode_libdir_flag_spec\"
12543 libdir
="$acl_save_libdir"
12544 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12548 if test "X$ltrpathdirs" != "X"; then
12549 for found_dir
in $ltrpathdirs; do
12550 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12567 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12568 stdlib.h string.h unistd.h sys
/param.h
12570 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12572 echo "$as_me:$LINENO: checking for $ac_header" >&5
12573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12580 # Is the header compilable?
12581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12583 cat >conftest.
$ac_ext <<_ACEOF
12586 cat confdefs.h
>>conftest.
$ac_ext
12587 cat >>conftest.
$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 $ac_includes_default
12590 #include <$ac_header>
12592 rm -f conftest.
$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594 (eval $ac_compile) 2>conftest.er1
12596 grep -v '^ *+' conftest.er1
>conftest.err
12598 cat conftest.err
>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try
='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try
='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_header_compiler
=yes
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.
$ac_ext >&5
12619 ac_header_compiler
=no
12621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623 echo "${ECHO_T}$ac_header_compiler" >&6
12625 # Is the header present?
12626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12628 cat >conftest.
$ac_ext <<_ACEOF
12631 cat confdefs.h
>>conftest.
$ac_ext
12632 cat >>conftest.
$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634 #include <$ac_header>
12636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12637 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12639 grep -v '^ *+' conftest.er1
>conftest.err
12641 cat conftest.err
>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } >/dev
/null
; then
12644 if test -s conftest.err
; then
12645 ac_cpp_err
=$ac_c_preproc_warn_flag
12646 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12653 if test -z "$ac_cpp_err"; then
12654 ac_header_preproc
=yes
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12659 ac_header_preproc
=no
12661 rm -f conftest.err conftest.
$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663 echo "${ECHO_T}$ac_header_preproc" >&6
12665 # So? What about this header?
12666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12672 ac_header_preproc
=yes
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12689 ## ------------------------------ ##
12690 ## Report this to admin@amule.org ##
12691 ## ------------------------------ ##
12694 sed "s/^/$as_me: WARNING: /" >&2
12697 echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 eval "$as_ac_Header=\$ac_header_preproc"
12704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12709 cat >>confdefs.h
<<_ACEOF
12710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12738 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12739 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12740 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12742 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12743 echo "$as_me:$LINENO: checking for $ac_func" >&5
12744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12745 if eval "test \"\${$as_ac_var+set}\" = set"; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 cat >conftest.
$ac_ext <<_ACEOF
12751 cat confdefs.h
>>conftest.
$ac_ext
12752 cat >>conftest.
$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12756 #define $ac_func innocuous_$ac_func
12758 /* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func (); below.
12760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 <limits.h> exists even on freestanding compilers. */
12764 # include <limits.h>
12766 # include <assert.h>
12771 /* Override any gcc2 internal prototype to avoid an error. */
12776 /* We use char because int might match the return type of a gcc2
12777 builtin and then its argument prototype would still apply. */
12779 /* The GNU C library defines this for functions which it implements
12780 to always fail with ENOSYS. Some functions are actually named
12781 something starting with __ and the normal name is an alias. */
12782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12785 char (*f) () = $ac_func;
12794 return f != $ac_func;
12799 rm -f conftest.
$ac_objext conftest
$ac_exeext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12801 (eval $ac_link) 2>conftest.er1
12803 grep -v '^ *+' conftest.er1
>conftest.err
12805 cat conftest.err
>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try
='test -z "$ac_c_werror_flag"
12809 || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try
='test -s conftest$ac_exeext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 eval "$as_ac_var=yes"
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.
$ac_ext >&5
12826 eval "$as_ac_var=no"
12828 rm -f conftest.err conftest.
$ac_objext \
12829 conftest
$ac_exeext conftest.
$ac_ext
12831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12833 if test `eval echo '${'$as_ac_var'}'` = yes; then
12834 cat >>confdefs.h
<<_ACEOF
12835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847 am_save_CPPFLAGS
="$CPPFLAGS"
12849 for element
in $INCICONV; do
12851 for x
in $CPPFLAGS; do
12853 acl_save_prefix
="$prefix"
12854 prefix
="$acl_final_prefix"
12855 acl_save_exec_prefix
="$exec_prefix"
12856 exec_prefix
="$acl_final_exec_prefix"
12858 exec_prefix
="$acl_save_exec_prefix"
12859 prefix
="$acl_save_prefix"
12861 if test "X$x" = "X$element"; then
12866 if test -z "$haveit"; then
12867 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12872 echo "$as_me:$LINENO: checking for iconv" >&5
12873 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12874 if test "${am_cv_func_iconv+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 am_cv_func_iconv
="no, consider installing GNU libiconv"
12880 cat >conftest.
$ac_ext <<_ACEOF
12883 cat confdefs.h
>>conftest.
$ac_ext
12884 cat >>conftest.
$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include <stdlib.h>
12891 iconv_t cd = iconv_open("","");
12892 iconv(cd,NULL,NULL,NULL,NULL);
12898 rm -f conftest.
$ac_objext conftest
$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>conftest.er1
12902 grep -v '^ *+' conftest.er1
>conftest.err
12904 cat conftest.err
>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try
='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try
='test -s conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 am_cv_func_iconv
=yes
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.
$ac_ext >&5
12926 rm -f conftest.err conftest.
$ac_objext \
12927 conftest
$ac_exeext conftest.
$ac_ext
12928 if test "$am_cv_func_iconv" != yes; then
12929 am_save_LIBS
="$LIBS"
12930 LIBS
="$LIBS $LIBICONV"
12931 cat >conftest.
$ac_ext <<_ACEOF
12934 cat confdefs.h
>>conftest.
$ac_ext
12935 cat >>conftest.
$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <stdlib.h>
12942 iconv_t cd = iconv_open("","");
12943 iconv(cd,NULL,NULL,NULL,NULL);
12949 rm -f conftest.
$ac_objext conftest
$ac_exeext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>conftest.er1
12953 grep -v '^ *+' conftest.er1
>conftest.err
12955 cat conftest.err
>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try
='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try
='test -s conftest$ac_exeext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 am_cv_lib_iconv
=yes
12972 am_cv_func_iconv
=yes
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.
$ac_ext >&5
12978 rm -f conftest.err conftest.
$ac_objext \
12979 conftest
$ac_exeext conftest.
$ac_ext
12980 LIBS
="$am_save_LIBS"
12984 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12985 echo "${ECHO_T}$am_cv_func_iconv" >&6
12986 if test "$am_cv_func_iconv" = yes; then
12988 cat >>confdefs.h
<<\_ACEOF
12989 #define HAVE_ICONV 1
12993 if test "$am_cv_lib_iconv" = yes; then
12994 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12995 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12996 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12997 echo "${ECHO_T}$LIBICONV" >&6
12999 CPPFLAGS
="$am_save_CPPFLAGS"
13006 if test "$am_cv_func_iconv" = yes; then
13007 echo "$as_me:$LINENO: checking for iconv declaration" >&5
13008 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13009 if test "${am_cv_proto_iconv+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 cat >conftest.
$ac_ext <<_ACEOF
13016 cat confdefs.h
>>conftest.
$ac_ext
13017 cat >>conftest.
$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13020 #include <stdlib.h>
13026 #if defined(__STDC__) || defined(__cplusplus)
13027 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13040 rm -f conftest.
$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13044 grep -v '^ *+' conftest.er1
>conftest.err
13046 cat conftest.err
>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try
='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try
='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 am_cv_proto_iconv_arg1
=""
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.
$ac_ext >&5
13067 am_cv_proto_iconv_arg1
="const"
13069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13070 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);"
13073 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13074 echo "$as_me:$LINENO: result: ${ac_t:-
13075 }$am_cv_proto_iconv" >&5
13076 echo "${ECHO_T}${ac_t:-
13077 }$am_cv_proto_iconv" >&6
13079 cat >>confdefs.h
<<_ACEOF
13080 #define ICONV_CONST $am_cv_proto_iconv_arg1
13086 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13087 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13088 if test "${am_cv_langinfo_codeset+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 cat >conftest.
$ac_ext <<_ACEOF
13094 cat confdefs.h
>>conftest.
$ac_ext
13095 cat >>conftest.
$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 #include <langinfo.h>
13101 char* cs = nl_langinfo(CODESET);
13106 rm -f conftest.
$ac_objext conftest
$ac_exeext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13108 (eval $ac_link) 2>conftest.er1
13110 grep -v '^ *+' conftest.er1
>conftest.err
13112 cat conftest.err
>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try
='test -z "$ac_c_werror_flag"
13116 || test ! -s conftest.err'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; } &&
13122 { ac_try
='test -s conftest$ac_exeext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 am_cv_langinfo_codeset
=yes
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.
$ac_ext >&5
13133 am_cv_langinfo_codeset
=no
13135 rm -f conftest.err conftest.
$ac_objext \
13136 conftest
$ac_exeext conftest.
$ac_ext
13139 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13140 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13141 if test $am_cv_langinfo_codeset = yes; then
13143 cat >>confdefs.h
<<\_ACEOF
13144 #define HAVE_LANGINFO_CODESET 1
13149 if test $ac_cv_header_locale_h = yes; then
13151 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13152 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13153 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 cat >conftest.
$ac_ext <<_ACEOF
13159 cat confdefs.h
>>conftest.
$ac_ext
13160 cat >>conftest.
$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #include <locale.h>
13171 rm -f conftest.
$ac_objext conftest
$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>conftest.er1
13175 grep -v '^ *+' conftest.er1
>conftest.err
13177 cat conftest.err
>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try
='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try
='test -s conftest$ac_exeext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 am_cv_val_LC_MESSAGES
=yes
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.
$ac_ext >&5
13198 am_cv_val_LC_MESSAGES
=no
13200 rm -f conftest.err conftest.
$ac_objext \
13201 conftest
$ac_exeext conftest.
$ac_ext
13203 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13204 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13205 if test $am_cv_val_LC_MESSAGES = yes; then
13207 cat >>confdefs.h
<<\_ACEOF
13208 #define HAVE_LC_MESSAGES 1
13215 for ac_prog
in bison
13217 # Extract the first word of "$ac_prog", so it can be a program name with args.
13218 set dummy
$ac_prog; ac_word
=$2
13219 echo "$as_me:$LINENO: checking for $ac_word" >&5
13220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13221 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 if test -n "$INTLBISON"; then
13225 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
13227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13228 for as_dir
in $PATH
13231 test -z "$as_dir" && as_dir
=.
13232 for ac_exec_ext
in '' $ac_executable_extensions; do
13233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234 ac_cv_prog_INTLBISON
="$ac_prog"
13235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 INTLBISON
=$ac_cv_prog_INTLBISON
13244 if test -n "$INTLBISON"; then
13245 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13246 echo "${ECHO_T}$INTLBISON" >&6
13248 echo "$as_me:$LINENO: result: no" >&5
13249 echo "${ECHO_T}no" >&6
13252 test -n "$INTLBISON" && break
13255 if test -z "$INTLBISON"; then
13258 echo "$as_me:$LINENO: checking version of bison" >&5
13259 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13260 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13261 case $ac_prog_version in
13262 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
13263 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
13264 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
13265 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
13267 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13268 echo "${ECHO_T}$ac_prog_version" >&6
13270 if test $ac_verc_fail = yes; then
13288 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13289 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13290 # Check whether --enable-nls or --disable-nls was given.
13291 if test "${enable_nls+set}" = set; then
13292 enableval
="$enable_nls"
13297 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13298 echo "${ECHO_T}$USE_NLS" >&6
13302 BUILD_INCLUDED_LIBINTL
=no
13303 USE_INCLUDED_LIBINTL
=no
13309 if test "$USE_NLS" = "yes"; then
13310 gt_use_preinstalled_gnugettext
=no
13312 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13313 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13315 # Check whether --with-included-gettext or --without-included-gettext was given.
13316 if test "${with_included_gettext+set}" = set; then
13317 withval
="$with_included_gettext"
13318 nls_cv_force_use_gnu_gettext
=$withval
13320 nls_cv_force_use_gnu_gettext
=no
13322 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13323 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13325 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
13326 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13333 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13334 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13335 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 cat >conftest.
$ac_ext <<_ACEOF
13341 cat confdefs.h
>>conftest.
$ac_ext
13342 cat >>conftest.
$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13344 #include <libintl.h>
13345 extern int _nl_msg_cat_cntr;
13346 extern int *_nl_domain_bindings;
13350 bindtextdomain ("", "");
13351 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13356 rm -f conftest.
$ac_objext conftest
$ac_exeext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13358 (eval $ac_link) 2>conftest.er1
13360 grep -v '^ *+' conftest.er1
>conftest.err
13362 cat conftest.err
>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try
='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try
='test -s conftest$ac_exeext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 gt_cv_func_gnugettext1_libc
=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.
$ac_ext >&5
13383 gt_cv_func_gnugettext1_libc
=no
13385 rm -f conftest.err conftest.
$ac_objext \
13386 conftest
$ac_exeext conftest.
$ac_ext
13388 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13389 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13391 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13397 acl_save_prefix
="$prefix"
13398 prefix
="$acl_final_prefix"
13399 acl_save_exec_prefix
="$exec_prefix"
13400 exec_prefix
="$acl_final_exec_prefix"
13402 eval additional_includedir
=\"$includedir\"
13403 eval additional_libdir
=\"$libdir\"
13405 exec_prefix
="$acl_save_exec_prefix"
13406 prefix
="$acl_save_prefix"
13409 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
13410 if test "${with_libintl_prefix+set}" = set; then
13411 withval
="$with_libintl_prefix"
13413 if test "X$withval" = "Xno"; then
13416 if test "X$withval" = "X"; then
13418 acl_save_prefix
="$prefix"
13419 prefix
="$acl_final_prefix"
13420 acl_save_exec_prefix
="$exec_prefix"
13421 exec_prefix
="$acl_final_exec_prefix"
13423 eval additional_includedir
=\"$includedir\"
13424 eval additional_libdir
=\"$libdir\"
13426 exec_prefix
="$acl_save_exec_prefix"
13427 prefix
="$acl_save_prefix"
13430 additional_includedir
="$withval/include"
13431 additional_libdir
="$withval/lib"
13441 names_already_handled
=
13442 names_next_round
='intl '
13443 while test -n "$names_next_round"; do
13444 names_this_round
="$names_next_round"
13446 for name
in $names_this_round; do
13448 for n
in $names_already_handled; do
13449 if test "$n" = "$name"; then
13450 already_handled
=yes
13454 if test -z "$already_handled"; then
13455 names_already_handled
="$names_already_handled $name"
13456 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13457 eval value
=\"\
$HAVE_LIB$uppername\"
13458 if test -n "$value"; then
13459 if test "$value" = yes; then
13460 eval value
=\"\
$LIB$uppername\"
13461 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
13462 eval value
=\"\
$LTLIB$uppername\"
13463 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
13472 if test $use_additional = yes; then
13473 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13474 found_dir
="$additional_libdir"
13475 found_so
="$additional_libdir/lib$name.$shlibext"
13476 if test -f "$additional_libdir/lib$name.la"; then
13477 found_la
="$additional_libdir/lib$name.la"
13480 if test -f "$additional_libdir/lib$name.$libext"; then
13481 found_dir
="$additional_libdir"
13482 found_a
="$additional_libdir/lib$name.$libext"
13483 if test -f "$additional_libdir/lib$name.la"; then
13484 found_la
="$additional_libdir/lib$name.la"
13489 if test "X$found_dir" = "X"; then
13490 for x
in $LDFLAGS $LTLIBINTL; do
13492 acl_save_prefix
="$prefix"
13493 prefix
="$acl_final_prefix"
13494 acl_save_exec_prefix
="$exec_prefix"
13495 exec_prefix
="$acl_final_exec_prefix"
13497 exec_prefix
="$acl_save_exec_prefix"
13498 prefix
="$acl_save_prefix"
13502 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13503 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13505 found_so
="$dir/lib$name.$shlibext"
13506 if test -f "$dir/lib$name.la"; then
13507 found_la
="$dir/lib$name.la"
13510 if test -f "$dir/lib$name.$libext"; then
13512 found_a
="$dir/lib$name.$libext"
13513 if test -f "$dir/lib$name.la"; then
13514 found_la
="$dir/lib$name.la"
13520 if test "X$found_dir" != "X"; then
13525 if test "X$found_dir" != "X"; then
13526 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13527 if test "X$found_so" != "X"; then
13528 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13529 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13532 for x
in $ltrpathdirs; do
13533 if test "X$x" = "X$found_dir"; then
13538 if test -z "$haveit"; then
13539 ltrpathdirs
="$ltrpathdirs $found_dir"
13541 if test "$hardcode_direct" = yes; then
13542 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13544 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13545 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13547 for x
in $rpathdirs; do
13548 if test "X$x" = "X$found_dir"; then
13553 if test -z "$haveit"; then
13554 rpathdirs
="$rpathdirs $found_dir"
13558 for x
in $LDFLAGS $LIBINTL; do
13560 acl_save_prefix
="$prefix"
13561 prefix
="$acl_final_prefix"
13562 acl_save_exec_prefix
="$exec_prefix"
13563 exec_prefix
="$acl_final_exec_prefix"
13565 exec_prefix
="$acl_save_exec_prefix"
13566 prefix
="$acl_save_prefix"
13568 if test "X$x" = "X-L$found_dir"; then
13573 if test -z "$haveit"; then
13574 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13576 if test "$hardcode_minus_L" != no
; then
13577 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13579 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13585 if test "X$found_a" != "X"; then
13586 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
13588 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13591 additional_includedir
=
13592 case "$found_dir" in
13594 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13595 additional_includedir
="$basedir/include"
13598 if test "X$additional_includedir" != "X"; then
13599 if test "X$additional_includedir" != "X/usr/include"; then
13601 if test "X$additional_includedir" = "X/usr/local/include"; then
13602 if test -n "$GCC"; then
13604 linux
*) haveit
=yes;;
13608 if test -z "$haveit"; then
13609 for x
in $CPPFLAGS $INCINTL; do
13611 acl_save_prefix
="$prefix"
13612 prefix
="$acl_final_prefix"
13613 acl_save_exec_prefix
="$exec_prefix"
13614 exec_prefix
="$acl_final_exec_prefix"
13616 exec_prefix
="$acl_save_exec_prefix"
13617 prefix
="$acl_save_prefix"
13619 if test "X$x" = "X-I$additional_includedir"; then
13624 if test -z "$haveit"; then
13625 if test -d "$additional_includedir"; then
13626 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13632 if test -n "$found_la"; then
13633 save_libdir
="$libdir"
13634 case "$found_la" in
13635 */* |
*\\*) .
"$found_la" ;;
13636 *) .
"./$found_la" ;;
13638 libdir
="$save_libdir"
13639 for dep
in $dependency_libs; do
13642 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13643 if test "X$additional_libdir" != "X/usr/lib"; then
13645 if test "X$additional_libdir" = "X/usr/local/lib"; then
13646 if test -n "$GCC"; then
13648 linux
*) haveit
=yes;;
13652 if test -z "$haveit"; then
13654 for x
in $LDFLAGS $LIBINTL; do
13656 acl_save_prefix
="$prefix"
13657 prefix
="$acl_final_prefix"
13658 acl_save_exec_prefix
="$exec_prefix"
13659 exec_prefix
="$acl_final_exec_prefix"
13661 exec_prefix
="$acl_save_exec_prefix"
13662 prefix
="$acl_save_prefix"
13664 if test "X$x" = "X-L$additional_libdir"; then
13669 if test -z "$haveit"; then
13670 if test -d "$additional_libdir"; then
13671 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13675 for x
in $LDFLAGS $LTLIBINTL; do
13677 acl_save_prefix
="$prefix"
13678 prefix
="$acl_final_prefix"
13679 acl_save_exec_prefix
="$exec_prefix"
13680 exec_prefix
="$acl_final_exec_prefix"
13682 exec_prefix
="$acl_save_exec_prefix"
13683 prefix
="$acl_save_prefix"
13685 if test "X$x" = "X-L$additional_libdir"; then
13690 if test -z "$haveit"; then
13691 if test -d "$additional_libdir"; then
13692 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13699 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13700 if test "$enable_rpath" != no
; then
13702 for x
in $rpathdirs; do
13703 if test "X$x" = "X$dir"; then
13708 if test -z "$haveit"; then
13709 rpathdirs
="$rpathdirs $dir"
13712 for x
in $ltrpathdirs; do
13713 if test "X$x" = "X$dir"; then
13718 if test -z "$haveit"; then
13719 ltrpathdirs
="$ltrpathdirs $dir"
13724 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13727 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13730 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
13731 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13737 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13738 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13744 if test "X$rpathdirs" != "X"; then
13745 if test -n "$hardcode_libdir_separator"; then
13747 for found_dir
in $rpathdirs; do
13748 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13750 acl_save_libdir
="$libdir"
13752 eval flag
=\"$hardcode_libdir_flag_spec\"
13753 libdir
="$acl_save_libdir"
13754 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13756 for found_dir
in $rpathdirs; do
13757 acl_save_libdir
="$libdir"
13758 libdir
="$found_dir"
13759 eval flag
=\"$hardcode_libdir_flag_spec\"
13760 libdir
="$acl_save_libdir"
13761 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13765 if test "X$ltrpathdirs" != "X"; then
13766 for found_dir
in $ltrpathdirs; do
13767 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13771 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13772 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13773 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 gt_save_CPPFLAGS
="$CPPFLAGS"
13777 CPPFLAGS
="$CPPFLAGS $INCINTL"
13778 gt_save_LIBS
="$LIBS"
13779 LIBS
="$LIBS $LIBINTL"
13780 cat >conftest.
$ac_ext <<_ACEOF
13783 cat confdefs.h
>>conftest.
$ac_ext
13784 cat >>conftest.
$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 #include <libintl.h>
13787 extern int _nl_msg_cat_cntr;
13792 const char *_nl_expand_alias ();
13796 bindtextdomain ("", "");
13797 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13802 rm -f conftest.
$ac_objext conftest
$ac_exeext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13804 (eval $ac_link) 2>conftest.er1
13806 grep -v '^ *+' conftest.er1
>conftest.err
13808 cat conftest.err
>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try
='test -z "$ac_c_werror_flag"
13812 || test ! -s conftest.err'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try
='test -s conftest$ac_exeext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 gt_cv_func_gnugettext1_libintl
=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.
$ac_ext >&5
13829 gt_cv_func_gnugettext1_libintl
=no
13831 rm -f conftest.err conftest.
$ac_objext \
13832 conftest
$ac_exeext conftest.
$ac_ext
13833 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13834 LIBS
="$LIBS $LIBICONV"
13835 cat >conftest.
$ac_ext <<_ACEOF
13838 cat confdefs.h
>>conftest.
$ac_ext
13839 cat >>conftest.
$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 #include <libintl.h>
13842 extern int _nl_msg_cat_cntr;
13847 const char *_nl_expand_alias ();
13851 bindtextdomain ("", "");
13852 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13857 rm -f conftest.
$ac_objext conftest
$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859 (eval $ac_link) 2>conftest.er1
13861 grep -v '^ *+' conftest.er1
>conftest.err
13863 cat conftest.err
>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try
='test -z "$ac_c_werror_flag"
13867 || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } &&
13873 { ac_try
='test -s conftest$ac_exeext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 LIBINTL
="$LIBINTL $LIBICONV"
13880 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
13881 gt_cv_func_gnugettext1_libintl
=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.
$ac_ext >&5
13888 rm -f conftest.err conftest.
$ac_objext \
13889 conftest
$ac_exeext conftest.
$ac_ext
13891 CPPFLAGS
="$gt_save_CPPFLAGS"
13892 LIBS
="$gt_save_LIBS"
13894 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13895 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13898 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13899 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13900 && test "$PACKAGE" != gettext; }; then
13901 gt_use_preinstalled_gnugettext
=yes
13909 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13910 nls_cv_use_gnu_gettext
=yes
13914 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13915 INTLOBJS
="\$(GETTOBJS)"
13916 BUILD_INCLUDED_LIBINTL
=yes
13917 USE_INCLUDED_LIBINTL
=yes
13918 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
13919 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13920 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13923 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13924 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
13929 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13930 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
13932 cat >>confdefs.h
<<\_ACEOF
13933 #define ENABLE_NLS 1
13941 if test "$USE_NLS" = "yes"; then
13943 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13944 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13945 echo "$as_me:$LINENO: checking how to link with libintl" >&5
13946 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13947 echo "$as_me:$LINENO: result: $LIBINTL" >&5
13948 echo "${ECHO_T}$LIBINTL" >&6
13950 for element
in $INCINTL; do
13952 for x
in $CPPFLAGS; do
13954 acl_save_prefix
="$prefix"
13955 prefix
="$acl_final_prefix"
13956 acl_save_exec_prefix
="$exec_prefix"
13957 exec_prefix
="$acl_final_exec_prefix"
13959 exec_prefix
="$acl_save_exec_prefix"
13960 prefix
="$acl_save_prefix"
13962 if test "X$x" = "X$element"; then
13967 if test -z "$haveit"; then
13968 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13975 cat >>confdefs.h
<<\_ACEOF
13976 #define HAVE_GETTEXT 1
13980 cat >>confdefs.h
<<\_ACEOF
13981 #define HAVE_DCGETTEXT 1
13990 if test "$PACKAGE" = gettext; then
13991 BUILD_INCLUDED_LIBINTL
=yes
13999 nls_cv_header_intl
=
14000 nls_cv_header_libgt
=
14011 INTL_LIBTOOL_SUFFIX_PREFIX
=
14015 INTLLIBS
="$LIBINTL"
14022 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
14023 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
14024 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
14025 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 ac_check_lib_save_LIBS
=$LIBS
14030 cat >conftest.
$ac_ext <<_ACEOF
14033 cat confdefs.h
>>conftest.
$ac_ext
14034 cat >>conftest.
$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 /* Override any gcc2 internal prototype to avoid an error. */
14041 /* We use char because int might match the return type of a gcc2
14042 builtin and then its argument prototype would still apply. */
14052 rm -f conftest.
$ac_objext conftest
$ac_exeext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054 (eval $ac_link) 2>conftest.er1
14056 grep -v '^ *+' conftest.er1
>conftest.err
14058 cat conftest.err
>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try
='test -z "$ac_c_werror_flag"
14062 || test ! -s conftest.err'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try
='test -s conftest$ac_exeext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 ac_cv_lib_sun_getmntent
=yes
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.
$ac_ext >&5
14079 ac_cv_lib_sun_getmntent
=no
14081 rm -f conftest.err conftest.
$ac_objext \
14082 conftest
$ac_exeext conftest.
$ac_ext
14083 LIBS
=$ac_check_lib_save_LIBS
14085 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
14086 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
14087 if test $ac_cv_lib_sun_getmntent = yes; then
14090 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
14091 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
14092 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 ac_check_lib_save_LIBS
=$LIBS
14097 cat >conftest.
$ac_ext <<_ACEOF
14100 cat confdefs.h
>>conftest.
$ac_ext
14101 cat >>conftest.
$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14104 /* Override any gcc2 internal prototype to avoid an error. */
14108 /* We use char because int might match the return type of a gcc2
14109 builtin and then its argument prototype would still apply. */
14119 rm -f conftest.
$ac_objext conftest
$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>conftest.er1
14123 grep -v '^ *+' conftest.er1
>conftest.err
14125 cat conftest.err
>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try
='test -z "$ac_c_werror_flag"
14129 || test ! -s conftest.err'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try
='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_lib_seq_getmntent
=yes
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.
$ac_ext >&5
14146 ac_cv_lib_seq_getmntent
=no
14148 rm -f conftest.err conftest.
$ac_objext \
14149 conftest
$ac_exeext conftest.
$ac_ext
14150 LIBS
=$ac_check_lib_save_LIBS
14152 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
14153 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
14154 if test $ac_cv_lib_seq_getmntent = yes; then
14157 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
14158 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
14159 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 ac_check_lib_save_LIBS
=$LIBS
14164 cat >conftest.
$ac_ext <<_ACEOF
14167 cat confdefs.h
>>conftest.
$ac_ext
14168 cat >>conftest.
$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14171 /* Override any gcc2 internal prototype to avoid an error. */
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14186 rm -f conftest.
$ac_objext conftest
$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>conftest.er1
14190 grep -v '^ *+' conftest.er1
>conftest.err
14192 cat conftest.err
>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try
='test -z "$ac_c_werror_flag"
14196 || test ! -s conftest.err'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try
='test -s conftest$ac_exeext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_lib_gen_getmntent
=yes
14210 echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.
$ac_ext >&5
14213 ac_cv_lib_gen_getmntent
=no
14215 rm -f conftest.err conftest.
$ac_objext \
14216 conftest
$ac_exeext conftest.
$ac_ext
14217 LIBS
=$ac_check_lib_save_LIBS
14219 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
14220 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
14221 if test $ac_cv_lib_gen_getmntent = yes; then
14230 for ac_func
in getmntent
14232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14233 echo "$as_me:$LINENO: checking for $ac_func" >&5
14234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14235 if eval "test \"\${$as_ac_var+set}\" = set"; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.
$ac_ext <<_ACEOF
14241 cat confdefs.h
>>conftest.
$ac_ext
14242 cat >>conftest.
$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246 #define $ac_func innocuous_$ac_func
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
14254 # include <limits.h>
14256 # include <assert.h>
14261 /* Override any gcc2 internal prototype to avoid an error. */
14266 /* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14269 /* The GNU C library defines this for functions which it implements
14270 to always fail with ENOSYS. Some functions are actually named
14271 something starting with __ and the normal name is an alias. */
14272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14275 char (*f) () = $ac_func;
14284 return f != $ac_func;
14289 rm -f conftest.
$ac_objext conftest
$ac_exeext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14291 (eval $ac_link) 2>conftest.er1
14293 grep -v '^ *+' conftest.er1
>conftest.err
14295 cat conftest.err
>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try
='test -z "$ac_c_werror_flag"
14299 || test ! -s conftest.err'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try
='test -s conftest$ac_exeext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 eval "$as_ac_var=yes"
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.
$ac_ext >&5
14316 eval "$as_ac_var=no"
14318 rm -f conftest.err conftest.
$ac_objext \
14319 conftest
$ac_exeext conftest.
$ac_ext
14321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14323 if test `eval echo '${'$as_ac_var'}'` = yes; then
14324 cat >>confdefs.h
<<_ACEOF
14325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14332 if test $ac_cv_c_compiler_gnu = yes; then
14333 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
14334 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
14335 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 ac_pattern
="Autoconf.*'x'"
14339 cat >conftest.
$ac_ext <<_ACEOF
14342 cat confdefs.h
>>conftest.
$ac_ext
14343 cat >>conftest.
$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14349 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
14350 ac_cv_prog_gcc_traditional
=yes
14352 ac_cv_prog_gcc_traditional
=no
14357 if test $ac_cv_prog_gcc_traditional = no
; then
14358 cat >conftest.
$ac_ext <<_ACEOF
14361 cat confdefs.h
>>conftest.
$ac_ext
14362 cat >>conftest.
$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 #include <termio.h>
14367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14368 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
14369 ac_cv_prog_gcc_traditional
=yes
14375 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14376 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14377 if test $ac_cv_prog_gcc_traditional = yes; then
14378 CC
="$CC -traditional"
14382 echo "$as_me:$LINENO: checking for pid_t" >&5
14383 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14384 if test "${ac_cv_type_pid_t+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 cat >conftest.
$ac_ext <<_ACEOF
14390 cat confdefs.h
>>conftest.
$ac_ext
14391 cat >>conftest.
$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14399 if (sizeof (pid_t))
14405 rm -f conftest.
$ac_objext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14407 (eval $ac_compile) 2>conftest.er1
14409 grep -v '^ *+' conftest.er1
>conftest.err
14411 cat conftest.err
>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try
='test -z "$ac_c_werror_flag"
14415 || test ! -s conftest.err'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; } &&
14421 { ac_try
='test -s conftest.$ac_objext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 ac_cv_type_pid_t
=yes
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.
$ac_ext >&5
14432 ac_cv_type_pid_t
=no
14434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14436 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14437 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14438 if test $ac_cv_type_pid_t = yes; then
14442 cat >>confdefs.h
<<_ACEOF
14450 for ac_header
in unistd.h vfork.h
14452 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14454 echo "$as_me:$LINENO: checking for $ac_header" >&5
14455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14462 # Is the header compilable?
14463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14465 cat >conftest.
$ac_ext <<_ACEOF
14468 cat confdefs.h
>>conftest.
$ac_ext
14469 cat >>conftest.
$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 $ac_includes_default
14472 #include <$ac_header>
14474 rm -f conftest.
$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>conftest.er1
14478 grep -v '^ *+' conftest.er1
>conftest.err
14480 cat conftest.err
>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try
='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try
='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_header_compiler
=yes
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.
$ac_ext >&5
14501 ac_header_compiler
=no
14503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 echo "${ECHO_T}$ac_header_compiler" >&6
14507 # Is the header present?
14508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14510 cat >conftest.
$ac_ext <<_ACEOF
14513 cat confdefs.h
>>conftest.
$ac_ext
14514 cat >>conftest.
$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14521 grep -v '^ *+' conftest.er1
>conftest.err
14523 cat conftest.err
>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } >/dev
/null
; then
14526 if test -s conftest.err
; then
14527 ac_cpp_err
=$ac_c_preproc_warn_flag
14528 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14535 if test -z "$ac_cpp_err"; then
14536 ac_header_preproc
=yes
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.
$ac_ext >&5
14541 ac_header_preproc
=no
14543 rm -f conftest.err conftest.
$ac_ext
14544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14545 echo "${ECHO_T}$ac_header_preproc" >&6
14547 # So? What about this header?
14548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14554 ac_header_preproc
=yes
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14571 ## ------------------------------ ##
14572 ## Report this to admin@amule.org ##
14573 ## ------------------------------ ##
14576 sed "s/^/$as_me: WARNING: /" >&2
14579 echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 eval "$as_ac_Header=\$ac_header_preproc"
14586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14591 cat >>confdefs.h
<<_ACEOF
14592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14601 for ac_func
in fork vfork
14603 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14604 echo "$as_me:$LINENO: checking for $ac_func" >&5
14605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14606 if eval "test \"\${$as_ac_var+set}\" = set"; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 cat >conftest.
$ac_ext <<_ACEOF
14612 cat confdefs.h
>>conftest.
$ac_ext
14613 cat >>conftest.
$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14617 #define $ac_func innocuous_$ac_func
14619 /* System header to define __stub macros and hopefully few prototypes,
14620 which can conflict with char $ac_func (); below.
14621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14622 <limits.h> exists even on freestanding compilers. */
14625 # include <limits.h>
14627 # include <assert.h>
14632 /* Override any gcc2 internal prototype to avoid an error. */
14637 /* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14640 /* The GNU C library defines this for functions which it implements
14641 to always fail with ENOSYS. Some functions are actually named
14642 something starting with __ and the normal name is an alias. */
14643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14646 char (*f) () = $ac_func;
14655 return f != $ac_func;
14660 rm -f conftest.
$ac_objext conftest
$ac_exeext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>conftest.er1
14664 grep -v '^ *+' conftest.er1
>conftest.err
14666 cat conftest.err
>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try
='test -z "$ac_c_werror_flag"
14670 || test ! -s conftest.err'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try
='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 eval "$as_ac_var=yes"
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.
$ac_ext >&5
14687 eval "$as_ac_var=no"
14689 rm -f conftest.err conftest.
$ac_objext \
14690 conftest
$ac_exeext conftest.
$ac_ext
14692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14694 if test `eval echo '${'$as_ac_var'}'` = yes; then
14695 cat >>confdefs.h
<<_ACEOF
14696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14702 if test "x$ac_cv_func_fork" = xyes
; then
14703 echo "$as_me:$LINENO: checking for working fork" >&5
14704 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14705 if test "${ac_cv_func_fork_works+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 if test "$cross_compiling" = yes; then
14709 ac_cv_func_fork_works
=cross
14711 cat >conftest.
$ac_ext <<_ACEOF
14712 /* By Ruediger Kuhlmann. */
14713 #include <sys/types.h>
14715 # include <unistd.h>
14717 /* Some systems only have a dummy stub for fork() */
14725 rm -f conftest
$ac_exeext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14727 (eval $ac_link) 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 ac_cv_func_fork_works
=yes
14738 echo "$as_me: program exited with status $ac_status" >&5
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.
$ac_ext >&5
14742 ( exit $ac_status )
14743 ac_cv_func_fork_works
=no
14745 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14748 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14749 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14752 ac_cv_func_fork_works
=$ac_cv_func_fork
14754 if test "x$ac_cv_func_fork_works" = xcross
; then
14756 *-*-amigaos* |
*-*-msdosdjgpp*)
14757 # Override, as these systems have only a dummy fork() stub
14758 ac_cv_func_fork_works
=no
14761 ac_cv_func_fork_works
=yes
14764 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14765 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14767 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14768 if test "x$ac_cv_func_vfork" = xyes
; then
14769 echo "$as_me:$LINENO: checking for working vfork" >&5
14770 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14771 if test "${ac_cv_func_vfork_works+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 if test "$cross_compiling" = yes; then
14775 ac_cv_func_vfork_works
=cross
14777 cat >conftest.
$ac_ext <<_ACEOF
14780 cat confdefs.h
>>conftest.
$ac_ext
14781 cat >>conftest.
$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 /* Thanks to Paul Eggert for this test. */
14785 #include <stdlib.h>
14786 #include <sys/types.h>
14787 #include <sys/stat.h>
14788 #include <sys/wait.h>
14790 # include <unistd.h>
14793 # include <vfork.h>
14795 /* On some sparc systems, changes by the child to local and incoming
14796 argument registers are propagated back to the parent. The compiler
14797 is told about this with #include <vfork.h>, but some compilers
14798 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14799 static variable whose address is put into a register that is
14800 clobbered by the vfork. */
14803 sparc_address_test (int arg)
14805 sparc_address_test (arg) int arg;
14808 static pid_t child;
14826 pid_t parent = getpid ();
14829 sparc_address_test (0);
14834 /* Here is another test for sparc vfork register problems. This
14835 test uses lots of local variables, at least as many local
14836 variables as main has allocated so far including compiler
14837 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14838 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14839 reuse the register of parent for one of the local variables,
14840 since it will think that parent can't possibly be used any more
14841 in this routine. Assigning to the local variable will thus
14842 munge parent in the parent process. */
14844 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14845 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14846 /* Convince the compiler that p..p7 are live; otherwise, it might
14847 use the same hardware register for all 8 local variables. */
14848 if (p != p1 || p != p2 || p != p3 || p != p4
14849 || p != p5 || p != p6 || p != p7)
14852 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14853 from child file descriptors. If the child closes a descriptor
14854 before it execs or exits, this munges the parent's descriptor
14855 as well. Test for this by closing stdout in the child. */
14856 _exit(close(fileno(stdout)) != 0);
14861 while (wait(&status) != child)
14864 /* Was there some problem with vforking? */
14867 /* Did the child fail? (This shouldn't happen.) */
14870 /* Did the vfork/compiler bug occur? */
14871 || parent != getpid()
14873 /* Did the file descriptor bug occur? */
14874 || fstat(fileno(stdout), &st) != 0
14879 rm -f conftest
$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_cv_func_vfork_works
=yes
14892 echo "$as_me: program exited with status $ac_status" >&5
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.
$ac_ext >&5
14896 ( exit $ac_status )
14897 ac_cv_func_vfork_works
=no
14899 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14902 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14903 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
14906 if test "x$ac_cv_func_fork_works" = xcross
; then
14907 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14908 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14909 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14912 if test "x$ac_cv_func_vfork_works" = xyes
; then
14914 cat >>confdefs.h
<<\_ACEOF
14915 #define HAVE_WORKING_VFORK 1
14920 cat >>confdefs.h
<<\_ACEOF
14925 if test "x$ac_cv_func_fork_works" = xyes
; then
14927 cat >>confdefs.h
<<\_ACEOF
14928 #define HAVE_WORKING_FORK 1
14933 if test x
$SYS != xwin32
; then
14934 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14935 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
14936 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 rm -f conftest.sym conftest.
file
14940 echo >conftest.
file
14941 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14942 if test "$cross_compiling" = yes; then
14943 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14945 cat >conftest.
$ac_ext <<_ACEOF
14948 cat confdefs.h
>>conftest.
$ac_ext
14949 cat >>conftest.
$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 $ac_includes_default
14956 /* Linux will dereference the symlink and fail.
14957 That is better in the sense that it means we will not
14958 have to compile and use the lstat wrapper. */
14959 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
14964 rm -f conftest
$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14977 echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.
$ac_ext >&5
14981 ( exit $ac_status )
14982 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14984 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14987 # If the `ln -s' command failed, then we probably don't even
14988 # have an lstat function.
14989 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14991 rm -f conftest.sym conftest.
file
14994 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14995 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
14997 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14999 cat >>confdefs.h
<<_ACEOF
15000 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15004 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
15006 "lstat.$ac_objext" | \
15007 *" lstat.$ac_objext" | \
15008 "lstat.$ac_objext "* | \
15009 *" lstat.$ac_objext "* ) ;;
15010 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
15015 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
15016 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
15017 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 if test "$cross_compiling" = yes; then
15021 ac_cv_func_lstat_empty_string_bug
=yes
15023 cat >conftest.
$ac_ext <<_ACEOF
15026 cat confdefs.h
>>conftest.
$ac_ext
15027 cat >>conftest.
$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15034 exit (lstat ("", &sbuf) ? 1 : 0);
15039 rm -f conftest
$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_cv_func_lstat_empty_string_bug
=yes
15052 echo "$as_me: program exited with status $ac_status" >&5
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.
$ac_ext >&5
15056 ( exit $ac_status )
15057 ac_cv_func_lstat_empty_string_bug
=no
15059 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15062 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
15063 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
15064 if test $ac_cv_func_lstat_empty_string_bug = yes; then
15066 "lstat.$ac_objext" | \
15067 *" lstat.$ac_objext" | \
15068 "lstat.$ac_objext "* | \
15069 *" lstat.$ac_objext "* ) ;;
15070 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
15074 cat >>confdefs.h
<<_ACEOF
15075 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
15080 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15081 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15082 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 rm -f conftest.sym conftest.
file
15086 echo >conftest.
file
15087 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
15088 if test "$cross_compiling" = yes; then
15089 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15091 cat >conftest.
$ac_ext <<_ACEOF
15094 cat confdefs.h
>>conftest.
$ac_ext
15095 cat >>conftest.
$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 $ac_includes_default
15102 /* Linux will dereference the symlink and fail.
15103 That is better in the sense that it means we will not
15104 have to compile and use the lstat wrapper. */
15105 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15110 rm -f conftest
$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
15123 echo "$as_me: program exited with status $ac_status" >&5
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.
$ac_ext >&5
15127 ( exit $ac_status )
15128 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15130 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15133 # If the `ln -s' command failed, then we probably don't even
15134 # have an lstat function.
15135 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15137 rm -f conftest.sym conftest.
file
15140 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15141 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15143 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15145 cat >>confdefs.h
<<_ACEOF
15146 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15150 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
15152 "lstat.$ac_objext" | \
15153 *" lstat.$ac_objext" | \
15154 "lstat.$ac_objext "* | \
15155 *" lstat.$ac_objext "* ) ;;
15156 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
15162 echo "$as_me:$LINENO: checking for working memcmp" >&5
15163 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
15164 if test "${ac_cv_func_memcmp_working+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 if test "$cross_compiling" = yes; then
15168 ac_cv_func_memcmp_working
=no
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 /* Some versions of memcmp are not 8-bit clean. */
15182 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15183 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15186 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15187 or more and with at least one buffer not starting on a 4-byte boundary.
15188 William Lewis provided this test program. */
15193 for (i = 0; i < 4; i++)
15197 strcpy (a, "--------01111111");
15198 strcpy (b, "--------10000000");
15199 if (memcmp (a, b, 16) >= 0)
15209 rm -f conftest
$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_func_memcmp_working
=yes
15222 echo "$as_me: program exited with status $ac_status" >&5
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.
$ac_ext >&5
15226 ( exit $ac_status )
15227 ac_cv_func_memcmp_working
=no
15229 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15233 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
15234 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
15235 "memcmp.$ac_objext" | \
15236 *" memcmp.$ac_objext" | \
15237 "memcmp.$ac_objext "* | \
15238 *" memcmp.$ac_objext "* ) ;;
15239 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
15245 for ac_header
in stdlib.h unistd.h
15247 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15249 echo "$as_me:$LINENO: checking for $ac_header" >&5
15250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15257 # Is the header compilable?
15258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15260 cat >conftest.
$ac_ext <<_ACEOF
15263 cat confdefs.h
>>conftest.
$ac_ext
15264 cat >>conftest.
$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15267 #include <$ac_header>
15269 rm -f conftest.
$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>conftest.er1
15273 grep -v '^ *+' conftest.er1
>conftest.err
15275 cat conftest.err
>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try
='test -z "$ac_c_werror_flag"
15279 || test ! -s conftest.err'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try
='test -s conftest.$ac_objext'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; }; then
15291 ac_header_compiler
=yes
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.
$ac_ext >&5
15296 ac_header_compiler
=no
15298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15300 echo "${ECHO_T}$ac_header_compiler" >&6
15302 # Is the header present?
15303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15305 cat >conftest.
$ac_ext <<_ACEOF
15308 cat confdefs.h
>>conftest.
$ac_ext
15309 cat >>conftest.
$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 #include <$ac_header>
15313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15314 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15316 grep -v '^ *+' conftest.er1
>conftest.err
15318 cat conftest.err
>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } >/dev
/null
; then
15321 if test -s conftest.err
; then
15322 ac_cpp_err
=$ac_c_preproc_warn_flag
15323 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15330 if test -z "$ac_cpp_err"; then
15331 ac_header_preproc
=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.
$ac_ext >&5
15336 ac_header_preproc
=no
15338 rm -f conftest.err conftest.
$ac_ext
15339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15340 echo "${ECHO_T}$ac_header_preproc" >&6
15342 # So? What about this header?
15343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15349 ac_header_preproc
=yes
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15366 ## ------------------------------ ##
15367 ## Report this to admin@amule.org ##
15368 ## ------------------------------ ##
15371 sed "s/^/$as_me: WARNING: /" >&2
15374 echo "$as_me:$LINENO: checking for $ac_header" >&5
15375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 eval "$as_ac_Header=\$ac_header_preproc"
15381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15386 cat >>confdefs.h
<<_ACEOF
15387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15395 for ac_func
in getpagesize
15397 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15398 echo "$as_me:$LINENO: checking for $ac_func" >&5
15399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15400 if eval "test \"\${$as_ac_var+set}\" = set"; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 cat >conftest.
$ac_ext <<_ACEOF
15406 cat confdefs.h
>>conftest.
$ac_ext
15407 cat >>conftest.
$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15411 #define $ac_func innocuous_$ac_func
15413 /* System header to define __stub macros and hopefully few prototypes,
15414 which can conflict with char $ac_func (); below.
15415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15416 <limits.h> exists even on freestanding compilers. */
15419 # include <limits.h>
15421 # include <assert.h>
15426 /* Override any gcc2 internal prototype to avoid an error. */
15431 /* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15434 /* The GNU C library defines this for functions which it implements
15435 to always fail with ENOSYS. Some functions are actually named
15436 something starting with __ and the normal name is an alias. */
15437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15440 char (*f) () = $ac_func;
15449 return f != $ac_func;
15454 rm -f conftest.
$ac_objext conftest
$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15458 grep -v '^ *+' conftest.er1
>conftest.err
15460 cat conftest.err
>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try
='test -z "$ac_c_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try
='test -s conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 eval "$as_ac_var=yes"
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.
$ac_ext >&5
15481 eval "$as_ac_var=no"
15483 rm -f conftest.err conftest.
$ac_objext \
15484 conftest
$ac_exeext conftest.
$ac_ext
15486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15488 if test `eval echo '${'$as_ac_var'}'` = yes; then
15489 cat >>confdefs.h
<<_ACEOF
15490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15496 echo "$as_me:$LINENO: checking for working mmap" >&5
15497 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15498 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 if test "$cross_compiling" = yes; then
15502 ac_cv_func_mmap_fixed_mapped
=no
15504 cat >conftest.
$ac_ext <<_ACEOF
15507 cat confdefs.h
>>conftest.
$ac_ext
15508 cat >>conftest.
$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 $ac_includes_default
15511 /* malloc might have been renamed as rpl_malloc. */
15514 /* Thanks to Mike Haertel and Jim Avera for this test.
15515 Here is a matrix of mmap possibilities:
15516 mmap private not fixed
15517 mmap private fixed at somewhere currently unmapped
15518 mmap private fixed at somewhere already mapped
15519 mmap shared not fixed
15520 mmap shared fixed at somewhere currently unmapped
15521 mmap shared fixed at somewhere already mapped
15522 For private mappings, we should verify that changes cannot be read()
15523 back from the file, nor mmap's back from the file at a different
15524 address. (There have been systems where private was not correctly
15525 implemented like the infamous i386 svr4.0, and systems where the
15526 VM page cache was not coherent with the file system buffer cache
15527 like early versions of FreeBSD and possibly contemporary NetBSD.)
15528 For shared mappings, we should conversely verify that changes get
15529 propagated back to all the places they're supposed to be.
15531 Grep wants private fixed already mapped.
15532 The main things grep needs to know about mmap are:
15533 * does it exist and is it safe to write into the mmap'd area
15534 * how to use it (BSD variants) */
15537 #include <sys/mman.h>
15539 #if !STDC_HEADERS && !HAVE_STDLIB_H
15543 /* This mess was copied from the GNU getpagesize.h. */
15544 #if !HAVE_GETPAGESIZE
15545 /* Assume that all systems that can run configure have sys/param.h. */
15546 # if !HAVE_SYS_PARAM_H
15547 # define HAVE_SYS_PARAM_H 1
15550 # ifdef _SC_PAGESIZE
15551 # define getpagesize() sysconf(_SC_PAGESIZE)
15552 # else /* no _SC_PAGESIZE */
15553 # if HAVE_SYS_PARAM_H
15554 # include <sys/param.h>
15555 # ifdef EXEC_PAGESIZE
15556 # define getpagesize() EXEC_PAGESIZE
15557 # else /* no EXEC_PAGESIZE */
15559 # define getpagesize() NBPG * CLSIZE
15562 # endif /* no CLSIZE */
15563 # else /* no NBPG */
15565 # define getpagesize() NBPC
15566 # else /* no NBPC */
15568 # define getpagesize() PAGESIZE
15569 # endif /* PAGESIZE */
15570 # endif /* no NBPC */
15571 # endif /* no NBPG */
15572 # endif /* no EXEC_PAGESIZE */
15573 # else /* no HAVE_SYS_PARAM_H */
15574 # define getpagesize() 8192 /* punt totally */
15575 # endif /* no HAVE_SYS_PARAM_H */
15576 # endif /* no _SC_PAGESIZE */
15578 #endif /* no HAVE_GETPAGESIZE */
15583 char *data, *data2, *data3;
15587 pagesize = getpagesize ();
15589 /* First, make a file with some known garbage in it. */
15590 data = (char *) malloc (pagesize);
15593 for (i = 0; i < pagesize; ++i)
15594 *(data + i) = rand ();
15596 fd = creat ("conftest.mmap", 0600);
15599 if (write (fd, data, pagesize) != pagesize)
15603 /* Next, try to mmap the file at a fixed address which already has
15604 something else allocated at it. If we can, also make sure that
15605 we see the same garbage. */
15606 fd = open ("conftest.mmap", O_RDWR);
15609 data2 = (char *) malloc (2 * pagesize);
15612 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15613 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15614 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15616 for (i = 0; i < pagesize; ++i)
15617 if (*(data + i) != *(data2 + i))
15620 /* Finally, make sure that changes to the mapped area do not
15621 percolate back to the file as seen by read(). (This is a bug on
15622 some variants of i386 svr4.0.) */
15623 for (i = 0; i < pagesize; ++i)
15624 *(data2 + i) = *(data2 + i) + 1;
15625 data3 = (char *) malloc (pagesize);
15628 if (read (fd, data3, pagesize) != pagesize)
15630 for (i = 0; i < pagesize; ++i)
15631 if (*(data + i) != *(data3 + i))
15637 rm -f conftest
$ac_exeext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15639 (eval $ac_link) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_cv_func_mmap_fixed_mapped
=yes
15650 echo "$as_me: program exited with status $ac_status" >&5
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.
$ac_ext >&5
15654 ( exit $ac_status )
15655 ac_cv_func_mmap_fixed_mapped
=no
15657 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15661 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15664 cat >>confdefs.h
<<\_ACEOF
15665 #define HAVE_MMAP 1
15669 rm -f conftest.mmap
15673 for ac_header
in sys
/select.h sys
/socket.h
15675 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15677 echo "$as_me:$LINENO: checking for $ac_header" >&5
15678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15685 # Is the header compilable?
15686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15688 cat >conftest.
$ac_ext <<_ACEOF
15691 cat confdefs.h
>>conftest.
$ac_ext
15692 cat >>conftest.
$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 $ac_includes_default
15695 #include <$ac_header>
15697 rm -f conftest.
$ac_objext
15698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15699 (eval $ac_compile) 2>conftest.er1
15701 grep -v '^ *+' conftest.er1
>conftest.err
15703 cat conftest.err
>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try
='test -z "$ac_c_werror_flag"
15707 || test ! -s conftest.err'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; } &&
15713 { ac_try
='test -s conftest.$ac_objext'
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 ac_header_compiler
=yes
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.
$ac_ext >&5
15724 ac_header_compiler
=no
15726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 echo "${ECHO_T}$ac_header_compiler" >&6
15730 # Is the header present?
15731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15733 cat >conftest.
$ac_ext <<_ACEOF
15736 cat confdefs.h
>>conftest.
$ac_ext
15737 cat >>conftest.
$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <$ac_header>
15741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15742 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15744 grep -v '^ *+' conftest.er1
>conftest.err
15746 cat conftest.err
>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } >/dev
/null
; then
15749 if test -s conftest.err
; then
15750 ac_cpp_err
=$ac_c_preproc_warn_flag
15751 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15758 if test -z "$ac_cpp_err"; then
15759 ac_header_preproc
=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.
$ac_ext >&5
15764 ac_header_preproc
=no
15766 rm -f conftest.err conftest.
$ac_ext
15767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15768 echo "${ECHO_T}$ac_header_preproc" >&6
15770 # So? What about this header?
15771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15777 ac_header_preproc
=yes
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15794 ## ------------------------------ ##
15795 ## Report this to admin@amule.org ##
15796 ## ------------------------------ ##
15799 sed "s/^/$as_me: WARNING: /" >&2
15802 echo "$as_me:$LINENO: checking for $ac_header" >&5
15803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 eval "$as_ac_Header=\$ac_header_preproc"
15809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15814 cat >>confdefs.h
<<_ACEOF
15815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15822 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15823 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15824 if test "${ac_cv_func_select_args+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
15828 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15829 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
15830 cat >conftest.
$ac_ext <<_ACEOF
15833 cat confdefs.h
>>conftest.
$ac_ext
15834 cat >>conftest.
$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15837 #if HAVE_SYS_SELECT_H
15838 # include <sys/select.h>
15840 #if HAVE_SYS_SOCKET_H
15841 # include <sys/socket.h>
15847 extern int select ($ac_arg1,
15848 $ac_arg234, $ac_arg234, $ac_arg234,
15854 rm -f conftest.
$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>conftest.er1
15858 grep -v '^ *+' conftest.er1
>conftest.err
15860 cat conftest.err
>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try
='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try
='test -s conftest.$ac_objext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.
$ac_ext >&5
15882 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15886 # Provide a safe default value.
15887 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15890 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15891 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15892 ac_save_IFS
=$IFS; IFS
=','
15893 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15897 cat >>confdefs.h
<<_ACEOF
15898 #define SELECT_TYPE_ARG1 $1
15902 cat >>confdefs.h
<<_ACEOF
15903 #define SELECT_TYPE_ARG234 ($2)
15907 cat >>confdefs.h
<<_ACEOF
15908 #define SELECT_TYPE_ARG5 ($3)
15913 echo "$as_me:$LINENO: checking for function prototypes" >&5
15914 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
15915 if test "$ac_cv_prog_cc_stdc" != no
; then
15916 echo "$as_me:$LINENO: result: yes" >&5
15917 echo "${ECHO_T}yes" >&6
15919 cat >>confdefs.h
<<\_ACEOF
15920 #define PROTOTYPES 1
15924 cat >>confdefs.h
<<\_ACEOF
15925 #define __PROTOTYPES 1
15929 echo "$as_me:$LINENO: result: no" >&5
15930 echo "${ECHO_T}no" >&6
15933 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
15934 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
15935 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 ac_cv_func_setvbuf_reversed
=no
15939 cat >conftest.
$ac_ext <<_ACEOF
15942 cat confdefs.h
>>conftest.
$ac_ext
15943 cat >>conftest.
$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15947 int (setvbuf) (FILE *, int, char *, size_t);
15952 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
15957 rm -f conftest.
$ac_objext conftest
$ac_exeext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>conftest.er1
15961 grep -v '^ *+' conftest.er1
>conftest.err
15963 cat conftest.err
>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try
='test -z "$ac_c_werror_flag"
15967 || test ! -s conftest.err'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; } &&
15973 { ac_try
='test -s conftest$ac_exeext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 cat >conftest.
$ac_ext <<_ACEOF
15982 cat confdefs.h
>>conftest.
$ac_ext
15983 cat >>conftest.
$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15987 int (setvbuf) (FILE *, int, char *, size_t);
15992 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
15997 rm -f conftest.
$ac_objext conftest
$ac_exeext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15999 (eval $ac_link) 2>conftest.er1
16001 grep -v '^ *+' conftest.er1
>conftest.err
16003 cat conftest.err
>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try
='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try
='test -s conftest$ac_exeext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 # It compiles and links either way, so it must not be declared
16020 # with a prototype and most likely this is a K&R C compiler.
16022 if test "$cross_compiling" = yes; then
16023 : # Assume setvbuf is not reversed when cross-compiling.
16025 cat >conftest.
$ac_ext <<_ACEOF
16028 cat confdefs.h
>>conftest.
$ac_ext
16029 cat >>conftest.
$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16035 /* This call has the arguments reversed.
16036 A reversed system may check and see that the address of buf
16037 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16039 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
16042 exit (0); /* Non-reversed systems SEGV here. */
16047 rm -f conftest
$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_func_setvbuf_reversed
=yes
16060 echo "$as_me: program exited with status $ac_status" >&5
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.
$ac_ext >&5
16064 ( exit $ac_status )
16067 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16069 ac_cv_func_setvbuf_reversed
=yes
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.
$ac_ext >&5
16075 rm -f conftest.err conftest.
$ac_objext \
16076 conftest
$ac_exeext conftest.
$ac_ext
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.
$ac_ext >&5
16082 rm -f conftest.err conftest.
$ac_objext \
16083 conftest
$ac_exeext conftest.
$ac_ext
16085 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
16086 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16087 if test $ac_cv_func_setvbuf_reversed = yes; then
16089 cat >>confdefs.h
<<\_ACEOF
16090 #define SETVBUF_REVERSED 1
16095 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16096 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16097 if test "${ac_cv_type_signal+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 cat >conftest.
$ac_ext <<_ACEOF
16103 cat confdefs.h
>>conftest.
$ac_ext
16104 cat >>conftest.
$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #include <sys/types.h>
16107 #include <signal.h>
16112 extern "C" void (*signal (int, void (*)(int)))(int);
16114 void (*signal ()) ();
16125 rm -f conftest.
$ac_objext
16126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127 (eval $ac_compile) 2>conftest.er1
16129 grep -v '^ *+' conftest.er1
>conftest.err
16131 cat conftest.err
>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try
='test -z "$ac_c_werror_flag"
16135 || test ! -s conftest.err'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try
='test -s conftest.$ac_objext'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 ac_cv_type_signal
=void
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.
$ac_ext >&5
16152 ac_cv_type_signal
=int
16154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16156 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16157 echo "${ECHO_T}$ac_cv_type_signal" >&6
16159 cat >>confdefs.h
<<_ACEOF
16160 #define RETSIGTYPE $ac_cv_type_signal
16164 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
16165 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
16166 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 if test "$cross_compiling" = yes; then
16170 ac_cv_func_stat_empty_string_bug
=yes
16172 cat >conftest.
$ac_ext <<_ACEOF
16175 cat confdefs.h
>>conftest.
$ac_ext
16176 cat >>conftest.
$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16183 exit (stat ("", &sbuf) ? 1 : 0);
16188 rm -f conftest
$ac_exeext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16190 (eval $ac_link) 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_func_stat_empty_string_bug
=yes
16201 echo "$as_me: program exited with status $ac_status" >&5
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.
$ac_ext >&5
16205 ( exit $ac_status )
16206 ac_cv_func_stat_empty_string_bug
=no
16208 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16211 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
16212 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
16213 if test $ac_cv_func_stat_empty_string_bug = yes; then
16215 "stat.$ac_objext" | \
16216 *" stat.$ac_objext" | \
16217 "stat.$ac_objext "* | \
16218 *" stat.$ac_objext "* ) ;;
16219 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
16223 cat >>confdefs.h
<<_ACEOF
16224 #define HAVE_STAT_EMPTY_STRING_BUG 1
16230 for ac_func
in strftime
16232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16233 echo "$as_me:$LINENO: checking for $ac_func" >&5
16234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16235 if eval "test \"\${$as_ac_var+set}\" = set"; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 cat >conftest.
$ac_ext <<_ACEOF
16241 cat confdefs.h
>>conftest.
$ac_ext
16242 cat >>conftest.
$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16246 #define $ac_func innocuous_$ac_func
16248 /* System header to define __stub macros and hopefully few prototypes,
16249 which can conflict with char $ac_func (); below.
16250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16251 <limits.h> exists even on freestanding compilers. */
16254 # include <limits.h>
16256 # include <assert.h>
16261 /* Override any gcc2 internal prototype to avoid an error. */
16266 /* We use char because int might match the return type of a gcc2
16267 builtin and then its argument prototype would still apply. */
16269 /* The GNU C library defines this for functions which it implements
16270 to always fail with ENOSYS. Some functions are actually named
16271 something starting with __ and the normal name is an alias. */
16272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16275 char (*f) () = $ac_func;
16284 return f != $ac_func;
16289 rm -f conftest.
$ac_objext conftest
$ac_exeext
16290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16291 (eval $ac_link) 2>conftest.er1
16293 grep -v '^ *+' conftest.er1
>conftest.err
16295 cat conftest.err
>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } &&
16298 { ac_try
='test -z "$ac_c_werror_flag"
16299 || test ! -s conftest.err'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; } &&
16305 { ac_try
='test -s conftest$ac_exeext'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16311 eval "$as_ac_var=yes"
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.
$ac_ext >&5
16316 eval "$as_ac_var=no"
16318 rm -f conftest.err conftest.
$ac_objext \
16319 conftest
$ac_exeext conftest.
$ac_ext
16321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16323 if test `eval echo '${'$as_ac_var'}'` = yes; then
16324 cat >>confdefs.h
<<_ACEOF
16325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16329 # strftime is in -lintl on SCO UNIX.
16330 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16331 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16332 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 ac_check_lib_save_LIBS
=$LIBS
16336 LIBS
="-lintl $LIBS"
16337 cat >conftest.
$ac_ext <<_ACEOF
16340 cat confdefs.h
>>conftest.
$ac_ext
16341 cat >>conftest.
$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16344 /* Override any gcc2 internal prototype to avoid an error. */
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16359 rm -f conftest.
$ac_objext conftest
$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16363 grep -v '^ *+' conftest.er1
>conftest.err
16365 cat conftest.err
>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try
='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try
='test -s conftest$ac_exeext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_lib_intl_strftime
=yes
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.
$ac_ext >&5
16386 ac_cv_lib_intl_strftime
=no
16388 rm -f conftest.err conftest.
$ac_objext \
16389 conftest
$ac_exeext conftest.
$ac_ext
16390 LIBS
=$ac_check_lib_save_LIBS
16392 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16393 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16394 if test $ac_cv_lib_intl_strftime = yes; then
16395 cat >>confdefs.h
<<\_ACEOF
16396 #define HAVE_STRFTIME 1
16399 LIBS
="-lintl $LIBS"
16405 echo "$as_me:$LINENO: checking for working strtod" >&5
16406 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
16407 if test "${ac_cv_func_strtod+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 if test "$cross_compiling" = yes; then
16411 ac_cv_func_strtod
=no
16413 cat >conftest.
$ac_ext <<_ACEOF
16416 cat confdefs.h
>>conftest.
$ac_ext
16417 cat >>conftest.
$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16425 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16426 char *string = " +69";
16429 value = strtod (string, &term);
16430 if (value != 69 || term != (string + 4))
16435 /* Under Solaris 2.4, strtod returns the wrong value for the
16436 terminating character under some conditions. */
16437 char *string = "NaN";
16439 strtod (string, &term);
16440 if (term != string && *(term - 1) == 0)
16447 rm -f conftest
$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && { ac_try
='./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 ac_cv_func_strtod
=yes
16460 echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.
$ac_ext >&5
16464 ( exit $ac_status )
16465 ac_cv_func_strtod
=no
16467 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16470 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
16471 echo "${ECHO_T}$ac_cv_func_strtod" >&6
16472 if test $ac_cv_func_strtod = no
; then
16474 "strtod.$ac_objext" | \
16475 *" strtod.$ac_objext" | \
16476 "strtod.$ac_objext "* | \
16477 *" strtod.$ac_objext "* ) ;;
16478 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
16481 echo "$as_me:$LINENO: checking for pow" >&5
16482 echo $ECHO_N "checking for pow... $ECHO_C" >&6
16483 if test "${ac_cv_func_pow+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 cat >conftest.
$ac_ext <<_ACEOF
16489 cat confdefs.h
>>conftest.
$ac_ext
16490 cat >>conftest.
$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
16493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16494 #define pow innocuous_pow
16496 /* System header to define __stub macros and hopefully few prototypes,
16497 which can conflict with char pow (); below.
16498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16499 <limits.h> exists even on freestanding compilers. */
16502 # include <limits.h>
16504 # include <assert.h>
16509 /* Override any gcc2 internal prototype to avoid an error. */
16514 /* We use char because int might match the return type of a gcc2
16515 builtin and then its argument prototype would still apply. */
16517 /* The GNU C library defines this for functions which it implements
16518 to always fail with ENOSYS. Some functions are actually named
16519 something starting with __ and the normal name is an alias. */
16520 #if defined (__stub_pow) || defined (__stub___pow)
16523 char (*f) () = pow;
16537 rm -f conftest.
$ac_objext conftest
$ac_exeext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16539 (eval $ac_link) 2>conftest.er1
16541 grep -v '^ *+' conftest.er1
>conftest.err
16543 cat conftest.err
>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try
='test -z "$ac_c_werror_flag"
16547 || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try
='test -s conftest$ac_exeext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.
$ac_ext >&5
16566 rm -f conftest.err conftest.
$ac_objext \
16567 conftest
$ac_exeext conftest.
$ac_ext
16569 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
16570 echo "${ECHO_T}$ac_cv_func_pow" >&6
16572 if test $ac_cv_func_pow = no
; then
16573 echo "$as_me:$LINENO: checking for pow in -lm" >&5
16574 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
16575 if test "${ac_cv_lib_m_pow+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 ac_check_lib_save_LIBS
=$LIBS
16580 cat >conftest.
$ac_ext <<_ACEOF
16583 cat confdefs.h
>>conftest.
$ac_ext
16584 cat >>conftest.
$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16587 /* Override any gcc2 internal prototype to avoid an error. */
16591 /* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16602 rm -f conftest.
$ac_objext conftest
$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>conftest.er1
16606 grep -v '^ *+' conftest.er1
>conftest.err
16608 cat conftest.err
>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try
='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try
='test -s conftest$ac_exeext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_m_pow
=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.
$ac_ext >&5
16631 rm -f conftest.err conftest.
$ac_objext \
16632 conftest
$ac_exeext conftest.
$ac_ext
16633 LIBS
=$ac_check_lib_save_LIBS
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
16636 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
16637 if test $ac_cv_lib_m_pow = yes; then
16640 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
16641 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16649 for ac_func
in vprintf
16651 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16652 echo "$as_me:$LINENO: checking for $ac_func" >&5
16653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16654 if eval "test \"\${$as_ac_var+set}\" = set"; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 cat >conftest.
$ac_ext <<_ACEOF
16660 cat confdefs.h
>>conftest.
$ac_ext
16661 cat >>conftest.
$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16665 #define $ac_func innocuous_$ac_func
16667 /* System header to define __stub macros and hopefully few prototypes,
16668 which can conflict with char $ac_func (); below.
16669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16670 <limits.h> exists even on freestanding compilers. */
16673 # include <limits.h>
16675 # include <assert.h>
16680 /* Override any gcc2 internal prototype to avoid an error. */
16685 /* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16688 /* The GNU C library defines this for functions which it implements
16689 to always fail with ENOSYS. Some functions are actually named
16690 something starting with __ and the normal name is an alias. */
16691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16694 char (*f) () = $ac_func;
16703 return f != $ac_func;
16708 rm -f conftest.
$ac_objext conftest
$ac_exeext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710 (eval $ac_link) 2>conftest.er1
16712 grep -v '^ *+' conftest.er1
>conftest.err
16714 cat conftest.err
>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try
='test -z "$ac_c_werror_flag"
16718 || test ! -s conftest.err'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try
='test -s conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 eval "$as_ac_var=yes"
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.
$ac_ext >&5
16735 eval "$as_ac_var=no"
16737 rm -f conftest.err conftest.
$ac_objext \
16738 conftest
$ac_exeext conftest.
$ac_ext
16740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16742 if test `eval echo '${'$as_ac_var'}'` = yes; then
16743 cat >>confdefs.h
<<_ACEOF
16744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16747 echo "$as_me:$LINENO: checking for _doprnt" >&5
16748 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16749 if test "${ac_cv_func__doprnt+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 cat >conftest.
$ac_ext <<_ACEOF
16755 cat confdefs.h
>>conftest.
$ac_ext
16756 cat >>conftest.
$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define _doprnt innocuous__doprnt
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char _doprnt (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16768 # include <limits.h>
16770 # include <assert.h>
16775 /* Override any gcc2 internal prototype to avoid an error. */
16780 /* We use char because int might match the return type of a gcc2
16781 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16789 char (*f) () = _doprnt;
16798 return f != _doprnt;
16803 rm -f conftest.
$ac_objext conftest
$ac_exeext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16805 (eval $ac_link) 2>conftest.er1
16807 grep -v '^ *+' conftest.er1
>conftest.err
16809 cat conftest.err
>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try
='test -z "$ac_c_werror_flag"
16813 || test ! -s conftest.err'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try
='test -s conftest$ac_exeext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 ac_cv_func__doprnt
=yes
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.
$ac_ext >&5
16830 ac_cv_func__doprnt
=no
16832 rm -f conftest.err conftest.
$ac_objext \
16833 conftest
$ac_exeext conftest.
$ac_ext
16835 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16836 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16837 if test $ac_cv_func__doprnt = yes; then
16839 cat >>confdefs.h
<<\_ACEOF
16840 #define HAVE_DOPRNT 1
16849 if test $cross_compiling = yes -a $gnumalloc = yes ; then
16850 { echo "$as_me:$LINENO: WARNING:
16851 configure cannot check whether malloc() and realloc() are GNU libc
16852 compatible. You have to be ABSOLUTELY sure that they are, otherwise
16853 run configure with the --without-gnu-malloc switch." >&5
16854 echo "$as_me: WARNING:
16855 configure cannot check whether malloc() and realloc() are GNU libc
16856 compatible. You have to be ABSOLUTELY sure that they are, otherwise
16857 run configure with the --without-gnu-malloc switch." >&2;}
16858 ac_cv_func_malloc_0_nonnull
=yes
16859 ac_cv_func_realloc_0_nonnull
=yes
16862 for ac_header
in stdlib.h
16864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16874 # Is the header compilable?
16875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16877 cat >conftest.
$ac_ext <<_ACEOF
16880 cat confdefs.h
>>conftest.
$ac_ext
16881 cat >>conftest.
$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 $ac_includes_default
16884 #include <$ac_header>
16886 rm -f conftest.
$ac_objext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16888 (eval $ac_compile) 2>conftest.er1
16890 grep -v '^ *+' conftest.er1
>conftest.err
16892 cat conftest.err
>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try
='test -z "$ac_c_werror_flag"
16896 || test ! -s conftest.err'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try
='test -s conftest.$ac_objext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_header_compiler
=yes
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.
$ac_ext >&5
16913 ac_header_compiler
=no
16915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16917 echo "${ECHO_T}$ac_header_compiler" >&6
16919 # Is the header present?
16920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16922 cat >conftest.
$ac_ext <<_ACEOF
16925 cat confdefs.h
>>conftest.
$ac_ext
16926 cat >>conftest.
$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 #include <$ac_header>
16930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16933 grep -v '^ *+' conftest.er1
>conftest.err
16935 cat conftest.err
>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } >/dev
/null
; then
16938 if test -s conftest.err
; then
16939 ac_cpp_err
=$ac_c_preproc_warn_flag
16940 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16947 if test -z "$ac_cpp_err"; then
16948 ac_header_preproc
=yes
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.
$ac_ext >&5
16953 ac_header_preproc
=no
16955 rm -f conftest.err conftest.
$ac_ext
16956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16957 echo "${ECHO_T}$ac_header_preproc" >&6
16959 # So? What about this header?
16960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16966 ac_header_preproc
=yes
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16983 ## ------------------------------ ##
16984 ## Report this to admin@amule.org ##
16985 ## ------------------------------ ##
16988 sed "s/^/$as_me: WARNING: /" >&2
16991 echo "$as_me:$LINENO: checking for $ac_header" >&5
16992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 eval "$as_ac_Header=\$ac_header_preproc"
16998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17003 cat >>confdefs.h
<<_ACEOF
17004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17011 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17012 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17013 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 if test "$cross_compiling" = yes; then
17017 ac_cv_func_malloc_0_nonnull
=no
17019 cat >conftest.
$ac_ext <<_ACEOF
17022 cat confdefs.h
>>conftest.
$ac_ext
17023 cat >>conftest.
$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #if STDC_HEADERS || HAVE_STDLIB_H
17026 # include <stdlib.h>
17034 exit (malloc (0) ? 0 : 1);
17039 rm -f conftest
$ac_exeext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_func_malloc_0_nonnull
=yes
17052 echo "$as_me: program exited with status $ac_status" >&5
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.
$ac_ext >&5
17056 ( exit $ac_status )
17057 ac_cv_func_malloc_0_nonnull
=no
17059 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17062 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17063 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17064 if test $ac_cv_func_malloc_0_nonnull = yes; then
17066 cat >>confdefs.h
<<\_ACEOF
17067 #define HAVE_MALLOC 1
17071 cat >>confdefs.h
<<\_ACEOF
17072 #define HAVE_MALLOC 0
17076 "malloc.$ac_objext" | \
17077 *" malloc.$ac_objext" | \
17078 "malloc.$ac_objext "* | \
17079 *" malloc.$ac_objext "* ) ;;
17080 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
17084 cat >>confdefs.h
<<\_ACEOF
17085 #define malloc rpl_malloc
17093 for ac_header
in stdlib.h
17095 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17097 echo "$as_me:$LINENO: checking for $ac_header" >&5
17098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17105 # Is the header compilable?
17106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17108 cat >conftest.
$ac_ext <<_ACEOF
17111 cat confdefs.h
>>conftest.
$ac_ext
17112 cat >>conftest.
$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 $ac_includes_default
17115 #include <$ac_header>
17117 rm -f conftest.
$ac_objext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>conftest.er1
17121 grep -v '^ *+' conftest.er1
>conftest.err
17123 cat conftest.err
>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try
='test -z "$ac_c_werror_flag"
17127 || test ! -s conftest.err'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
17133 { ac_try
='test -s conftest.$ac_objext'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 ac_header_compiler
=yes
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.
$ac_ext >&5
17144 ac_header_compiler
=no
17146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17148 echo "${ECHO_T}$ac_header_compiler" >&6
17150 # Is the header present?
17151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17153 cat >conftest.
$ac_ext <<_ACEOF
17156 cat confdefs.h
>>conftest.
$ac_ext
17157 cat >>conftest.
$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159 #include <$ac_header>
17161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17164 grep -v '^ *+' conftest.er1
>conftest.err
17166 cat conftest.err
>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } >/dev
/null
; then
17169 if test -s conftest.err
; then
17170 ac_cpp_err
=$ac_c_preproc_warn_flag
17171 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17178 if test -z "$ac_cpp_err"; then
17179 ac_header_preproc
=yes
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.
$ac_ext >&5
17184 ac_header_preproc
=no
17186 rm -f conftest.err conftest.
$ac_ext
17187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17188 echo "${ECHO_T}$ac_header_preproc" >&6
17190 # So? What about this header?
17191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17197 ac_header_preproc
=yes
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17214 ## ------------------------------ ##
17215 ## Report this to admin@amule.org ##
17216 ## ------------------------------ ##
17219 sed "s/^/$as_me: WARNING: /" >&2
17222 echo "$as_me:$LINENO: checking for $ac_header" >&5
17223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 eval "$as_ac_Header=\$ac_header_preproc"
17229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17234 cat >>confdefs.h
<<_ACEOF
17235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17242 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
17243 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
17244 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 if test "$cross_compiling" = yes; then
17248 ac_cv_func_realloc_0_nonnull
=no
17250 cat >conftest.
$ac_ext <<_ACEOF
17253 cat confdefs.h
>>conftest.
$ac_ext
17254 cat >>conftest.
$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #if STDC_HEADERS || HAVE_STDLIB_H
17257 # include <stdlib.h>
17265 exit (realloc (0, 0) ? 0 : 1);
17270 rm -f conftest
$ac_exeext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17272 (eval $ac_link) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_func_realloc_0_nonnull
=yes
17283 echo "$as_me: program exited with status $ac_status" >&5
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.
$ac_ext >&5
17287 ( exit $ac_status )
17288 ac_cv_func_realloc_0_nonnull
=no
17290 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17293 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
17294 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
17295 if test $ac_cv_func_realloc_0_nonnull = yes; then
17297 cat >>confdefs.h
<<\_ACEOF
17298 #define HAVE_REALLOC 1
17302 cat >>confdefs.h
<<\_ACEOF
17303 #define HAVE_REALLOC 0
17307 "realloc.$ac_objext" | \
17308 *" realloc.$ac_objext" | \
17309 "realloc.$ac_objext "* | \
17310 *" realloc.$ac_objext "* ) ;;
17311 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
17315 cat >>confdefs.h
<<\_ACEOF
17316 #define realloc rpl_realloc
17358 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
17360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17363 if eval "test \"\${$as_ac_var+set}\" = set"; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 cat >conftest.
$ac_ext <<_ACEOF
17369 cat confdefs.h
>>conftest.
$ac_ext
17370 cat >>conftest.
$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17382 # include <limits.h>
17384 # include <assert.h>
17389 /* Override any gcc2 internal prototype to avoid an error. */
17394 /* We use char because int might match the return type of a gcc2
17395 builtin and then its argument prototype would still apply. */
17397 /* The GNU C library defines this for functions which it implements
17398 to always fail with ENOSYS. Some functions are actually named
17399 something starting with __ and the normal name is an alias. */
17400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17403 char (*f) () = $ac_func;
17412 return f != $ac_func;
17417 rm -f conftest.
$ac_objext conftest
$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>conftest.er1
17421 grep -v '^ *+' conftest.er1
>conftest.err
17423 cat conftest.err
>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try
='test -z "$ac_c_werror_flag"
17427 || test ! -s conftest.err'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try
='test -s conftest$ac_exeext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 eval "$as_ac_var=yes"
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.
$ac_ext >&5
17444 eval "$as_ac_var=no"
17446 rm -f conftest.err conftest.
$ac_objext \
17447 conftest
$ac_exeext conftest.
$ac_ext
17449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17451 if test `eval echo '${'$as_ac_var'}'` = yes; then
17452 cat >>confdefs.h
<<_ACEOF
17453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17459 #-------------------------------------------------------------------------------
17460 # End of autoscan stuff
17461 #-------------------------------------------------------------------------------
17466 for ac_func
in mkdir getrlimit setrlimit
17468 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469 echo "$as_me:$LINENO: checking for $ac_func" >&5
17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17471 if eval "test \"\${$as_ac_var+set}\" = set"; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 cat >conftest.
$ac_ext <<_ACEOF
17477 cat confdefs.h
>>conftest.
$ac_ext
17478 cat >>conftest.
$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17482 #define $ac_func innocuous_$ac_func
17484 /* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char $ac_func (); below.
17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487 <limits.h> exists even on freestanding compilers. */
17490 # include <limits.h>
17492 # include <assert.h>
17497 /* Override any gcc2 internal prototype to avoid an error. */
17502 /* We use char because int might match the return type of a gcc2
17503 builtin and then its argument prototype would still apply. */
17505 /* The GNU C library defines this for functions which it implements
17506 to always fail with ENOSYS. Some functions are actually named
17507 something starting with __ and the normal name is an alias. */
17508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17511 char (*f) () = $ac_func;
17520 return f != $ac_func;
17525 rm -f conftest.
$ac_objext conftest
$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17529 grep -v '^ *+' conftest.er1
>conftest.err
17531 cat conftest.err
>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try
='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try
='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 eval "$as_ac_var=yes"
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.
$ac_ext >&5
17552 eval "$as_ac_var=no"
17554 rm -f conftest.err conftest.
$ac_objext \
17555 conftest
$ac_exeext conftest.
$ac_ext
17557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17559 if test `eval echo '${'$as_ac_var'}'` = yes; then
17560 cat >>confdefs.h
<<_ACEOF
17561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17568 # Flush standard test results for speeding cache
17569 cat >confcache
<<\_ACEOF
17570 # This file is a shell script that caches the results of configure
17571 # tests run on this system so they can be shared between configure
17572 # scripts and configure runs, see configure's option --config-cache.
17573 # It is not useful on other systems. If it contains results you don't
17574 # want to keep, you may remove or edit it.
17576 # config.status only pays attention to the cache file if you give it
17577 # the --recheck option to rerun configure.
17579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17581 # following values.
17585 # The following way of writing the cache mishandles newlines in values,
17586 # but we know of no workaround that is simple, portable, and efficient.
17587 # So, don't put newlines in cache variables' values.
17588 # Ultrix sh set writes to stderr and can't be redirected directly,
17589 # and sets the high bit in the cache file unless we assign to the vars.
17592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17594 # `set' does not quote correctly, so add quotes (double-quote
17595 # substitution turns \\\\ into \\, and sed turns \\ into \).
17598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17601 # `set' quotes correctly as required by POSIX, so do not add quotes.
17603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17614 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17615 if test -w $cache_file; then
17616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17617 cat confcache
>$cache_file
17619 echo "not updating unwritable cache $cache_file"
17626 case "$USE_DEBUG" in
17627 yes) DEBUG_FLAGS
="-g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
17628 if test x
$GCC = xyes
; then
17629 DEBUG_FLAGS
="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
17632 if test x
$SYS = xwin32
; then
17633 RCFLAGS
="$RCFLAGS -D__DEBUG__"
17638 if test x
$GCC = xyes
; then
17639 DEBUG_FLAGS
="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef"
17647 # Command line tools
17648 case "$AMULECMD" in
17654 # For proper compilation flags
17656 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
17658 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
17659 WXBASE_CXXFLAGS
="$WX_CXXFLAGS -DwxUSE_GUI=0"
17660 WXBASE_CFLAGS
="$WX_CFLAGS -DwxUSE_GUI=0"
17662 WX_CFLAGS
="`echo $WX_CFLAGS | sed "s
#-I/#-isystem /#g"`"
17663 WX_CXXFLAGS
="`echo $WX_CXXFLAGS | sed "s
#-I/#-isystem /#g"`"
17664 WXBASE_CFLAGS
="`echo $WXBASE_CFLAGS | sed "s
#-I/#-isystem /#g"`"
17665 WXBASE_CXXFLAGS
="`echo $WXBASE_CXXFLAGS | sed "s
#-I/#-isystem /#g"`"
17671 case "$USE_OPTIMIZE" in
17672 yes) OPTIMIZE_FLAGS
="-O2"
17674 *) OPTIMIZE_FLAGS
=""
17679 case "$USE_PROFILE" in
17680 yes) PROFILE_FLAGS
="-pg"
17682 *) PROFILE_FLAGS
=""
17686 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
17687 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
17688 case "$USE_DEBUG_STATIC" in
17689 yes) LDFLAGS
="$LDFLAGS -static"
17692 echo "$as_me:$LINENO: result: $USE_DEBUG_STATIC" >&5
17693 echo "${ECHO_T}$USE_DEBUG_STATIC" >&6
17695 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
17696 echo "$as_me:$LINENO: checking for docdir" >&5
17697 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
17698 if test x
"$docdir" = x
; then
17699 docdir
="$datadir"/doc
/"$PACKAGE_NAME"-"$PACKAGE_VERSION"
17702 echo "$as_me:$LINENO: result: $docdir" >&5
17703 echo "${ECHO_T}$docdir" >&6
17705 # Try to set the SVN checkout-date
17706 echo "$as_me:$LINENO: checking for SVNDATE" >&5
17707 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
17708 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
17710 svndate
=`cat $srcdir/SVNDATE`
17711 elif test -d $srcdir/.svn
# SVNDATE for svn
17713 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
17715 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
17716 echo "${ECHO_T}${svndate:-None required}" >&6
17718 cat >>confdefs.h
<<_ACEOF
17719 #define SVNDATE "$svndate"
17722 test x
$SYS = xwin32
&& test "$svndate" && RCFLAGS
="$RCFLAGS -D__PRERELEASE__"
17727 CXXFLAGS
="$CXXFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17728 CFLAGS
="$CFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17730 LDFLAGS
="$LDFLAGS $PROFILE_FLAGS"
17731 if test x
$SYS != xwin32
; then
17732 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
17733 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
17734 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
17735 LDFLAGS
="$LDFLAGS -pthread"
17736 echo "$as_me:$LINENO: result: yes" >&5
17737 echo "${ECHO_T}yes" >&6
17739 LDFLAGS
="$LDFLAGS -lpthread"
17740 echo "$as_me:$LINENO: result: no" >&5
17741 echo "${ECHO_T}no" >&6
17748 echo "$as_me:$LINENO: checking for requested languages" >&5
17749 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17750 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17752 if test "$AMULE_DAEMON" == "yes"; then
17753 if test "$LINGUAS" = ""; then
17754 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17756 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17757 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17759 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17761 AMULE_DAEMON_MANPAGES
=
17766 if test "$AMULECMD" == "yes"; then
17767 if test "$LINGUAS" = ""; then
17768 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17770 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17771 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17773 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17780 if test "$WEB" == "yes"; then
17781 if test "$LINGUAS" = ""; then
17782 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17784 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17785 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17787 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
17794 if test "$AMULE_GUI" == "yes"; then
17795 if test "$LINGUAS" = ""; then
17796 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17798 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17799 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17801 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17803 AMULE_GUI_MANPAGES
=
17808 if test "$CAS" == "yes"; then
17809 if test "$LINGUAS" = ""; then
17810 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17812 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17813 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17815 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
17822 if test "$WXCAS" == "yes"; then
17823 if test "$LINGUAS" = ""; then
17824 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17826 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17827 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17829 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
17836 if test "$ED2K" == "yes"; then
17837 if test "$LINGUAS" = ""; then
17838 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17840 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17841 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17843 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
17850 if test "$ALC" == "yes"; then
17851 if test "$LINGUAS" = ""; then
17852 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
17854 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17855 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
17857 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
17864 if test "$ALCC" == "yes"; then
17865 if test "$LINGUAS" = ""; then
17866 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
17868 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17869 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
17871 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
17878 if test "$MONOLITHIC" == "yes"; then
17879 if test "$LINGUAS" = ""; then
17880 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
17882 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17883 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
17885 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
17887 MONOLITHIC_MANPAGES
=
17891 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
17892 echo "${ECHO_T}${LINGUAS:-all}" >&6
17898 echo "$as_me:$LINENO: checking denoising level" >&5
17899 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
17900 if test "$denoiselevel" = "yes"; then
17903 if test "$denoiselevel" = "no"; then
17906 if test $denoiselevel -gt 4; then
17907 if test "${svndate:+set}" = "set"; then
17914 echo "$as_me:$LINENO: result: $denoiselevel" >&5
17915 echo "${ECHO_T}$denoiselevel" >&6
17917 ac_config_commands
="$ac_config_commands denoiser"
17923 if test x
$WEB = xyes
; then
17933 if test x
$ED2K = xyes
; then
17943 if test x
$CAS = xyes
; then
17953 if test x
$WXCAS = xyes
; then
17963 if test x
$ALC = xyes
; then
17973 if test x
$ALCC = xyes
; then
17983 if test x
$AMULE_GUI = xyes
; then
17985 AMULE_GUI_FALSE
='#'
17993 if test x
$AMULE_DAEMON = xyes
; then
17995 AMULE_DAEMON_FALSE
='#'
17997 AMULE_DAEMON_TRUE
='#'
17998 AMULE_DAEMON_FALSE
=
18003 if test x
$AMULECMD = xyes
; then
18005 COMPILE_CMD_FALSE
='#'
18007 COMPILE_CMD_TRUE
='#'
18013 if test x
$MONOLITHIC = xyes
; then
18015 MONOLITHIC_FALSE
='#'
18017 MONOLITHIC_TRUE
='#'
18023 if test x
$ENABLE_UPNP = xyes
-a x
$SYS != xwin32
; then
18025 ENABLE_UPNP_FALSE
='#'
18027 ENABLE_UPNP_TRUE
='#'
18033 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18034 ENABLE_IP2COUNTRY_TRUE
=
18035 ENABLE_IP2COUNTRY_FALSE
='#'
18037 ENABLE_IP2COUNTRY_TRUE
='#'
18038 ENABLE_IP2COUNTRY_FALSE
=
18043 if test x
$SYS = xwin32
; then
18045 SYS_WIN32_FALSE
='#'
18053 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18063 if test x
$SYS = xdarwin
; then
18064 NEED_CORESERVICES_TRUE
=
18065 NEED_CORESERVICES_FALSE
='#'
18067 NEED_CORESERVICES_TRUE
='#'
18068 NEED_CORESERVICES_FALSE
=
18073 if test x
$HAVE_GETTEXT = xyes
; then
18075 COMPILE_NLS_FALSE
='#'
18077 COMPILE_NLS_TRUE
='#'
18083 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18084 GENERATE_FLEX_HEADER_TRUE
=
18085 GENERATE_FLEX_HEADER_FALSE
='#'
18087 GENERATE_FLEX_HEADER_TRUE
='#'
18088 GENERATE_FLEX_HEADER_FALSE
=
18092 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18094 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18095 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18096 if test "${vl_cv_lib_readline+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 for readline_lib
in readline edit editline
; do
18102 for termcap_lib
in "" termcap curses ncurses
; do
18103 if test -z "$termcap_lib"; then
18104 TRY_LIB
="-l$readline_lib"
18106 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18108 LIBS
="$ORIG_LIBS $TRY_LIB"
18109 cat >conftest.
$ac_ext <<_ACEOF
18112 cat confdefs.h
>>conftest.
$ac_ext
18113 cat >>conftest.
$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18116 /* Override any gcc2 internal prototype to avoid an error. */
18120 /* We use char because int might match the return type of a gcc2
18121 builtin and then its argument prototype would still apply. */
18131 rm -f conftest.
$ac_objext conftest
$ac_exeext
18132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133 (eval $ac_link) 2>conftest.er1
18135 grep -v '^ *+' conftest.er1
>conftest.err
18137 cat conftest.err
>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
18140 { ac_try
='test -z "$ac_c_werror_flag"
18141 || test ! -s conftest.err'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; } &&
18147 { ac_try
='test -s conftest$ac_exeext'
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; }; then
18153 vl_cv_lib_readline
="$TRY_LIB"
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.
$ac_ext >&5
18159 rm -f conftest.err conftest.
$ac_objext \
18160 conftest
$ac_exeext conftest.
$ac_ext
18161 if test -n "$vl_cv_lib_readline"; then
18165 if test -n "$vl_cv_lib_readline"; then
18169 if test -z "$vl_cv_lib_readline"; then
18170 vl_cv_lib_readline
="no"
18174 READLINE_LIBS
="$vl_cv_lib_readline"
18178 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18179 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18181 if test "$vl_cv_lib_readline" != "no"; then
18183 cat >>confdefs.h
<<\_ACEOF
18184 #define HAVE_LIBREADLINE 1
18189 for ac_header
in readline.h readline
/readline.h
18191 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18193 echo "$as_me:$LINENO: checking for $ac_header" >&5
18194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18201 # Is the header compilable?
18202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18204 cat >conftest.
$ac_ext <<_ACEOF
18207 cat confdefs.h
>>conftest.
$ac_ext
18208 cat >>conftest.
$ac_ext <<_ACEOF
18209 /* end confdefs.h. */
18210 $ac_includes_default
18211 #include <$ac_header>
18213 rm -f conftest.
$ac_objext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18215 (eval $ac_compile) 2>conftest.er1
18217 grep -v '^ *+' conftest.er1
>conftest.err
18219 cat conftest.err
>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try
='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try
='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_header_compiler
=yes
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.
$ac_ext >&5
18240 ac_header_compiler
=no
18242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18244 echo "${ECHO_T}$ac_header_compiler" >&6
18246 # Is the header present?
18247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18249 cat >conftest.
$ac_ext <<_ACEOF
18252 cat confdefs.h
>>conftest.
$ac_ext
18253 cat >>conftest.
$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 #include <$ac_header>
18257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18258 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18260 grep -v '^ *+' conftest.er1
>conftest.err
18262 cat conftest.err
>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } >/dev
/null
; then
18265 if test -s conftest.err
; then
18266 ac_cpp_err
=$ac_c_preproc_warn_flag
18267 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18274 if test -z "$ac_cpp_err"; then
18275 ac_header_preproc
=yes
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.
$ac_ext >&5
18280 ac_header_preproc
=no
18282 rm -f conftest.err conftest.
$ac_ext
18283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18284 echo "${ECHO_T}$ac_header_preproc" >&6
18286 # So? What about this header?
18287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18293 ac_header_preproc
=yes
18296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18310 ## ------------------------------ ##
18311 ## Report this to admin@amule.org ##
18312 ## ------------------------------ ##
18315 sed "s/^/$as_me: WARNING: /" >&2
18318 echo "$as_me:$LINENO: checking for $ac_header" >&5
18319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 eval "$as_ac_Header=\$ac_header_preproc"
18325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18330 cat >>confdefs.h
<<_ACEOF
18331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18338 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18339 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18340 if test "${vl_cv_lib_readline_history+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 vl_cv_lib_readline_history
="no"
18345 cat >conftest.
$ac_ext <<_ACEOF
18348 cat confdefs.h
>>conftest.
$ac_ext
18349 cat >>conftest.
$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18352 /* Override any gcc2 internal prototype to avoid an error. */
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18358 char add_history ();
18367 rm -f conftest.
$ac_objext conftest
$ac_exeext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>conftest.er1
18371 grep -v '^ *+' conftest.er1
>conftest.err
18373 cat conftest.err
>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try
='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try
='test -s conftest$ac_exeext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 vl_cv_lib_readline_history
="yes"
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.
$ac_ext >&5
18395 rm -f conftest.err conftest.
$ac_objext \
18396 conftest
$ac_exeext conftest.
$ac_ext
18399 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18400 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18401 if test "$vl_cv_lib_readline_history" = "yes"; then
18403 cat >>confdefs.h
<<\_ACEOF
18404 #define HAVE_READLINE_HISTORY 1
18409 for ac_header
in history.h readline
/history.h
18411 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18413 echo "$as_me:$LINENO: checking for $ac_header" >&5
18414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18421 # Is the header compilable?
18422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18424 cat >conftest.
$ac_ext <<_ACEOF
18427 cat confdefs.h
>>conftest.
$ac_ext
18428 cat >>conftest.
$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 $ac_includes_default
18431 #include <$ac_header>
18433 rm -f conftest.
$ac_objext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18435 (eval $ac_compile) 2>conftest.er1
18437 grep -v '^ *+' conftest.er1
>conftest.err
18439 cat conftest.err
>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try
='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try
='test -s conftest.$ac_objext'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_header_compiler
=yes
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.
$ac_ext >&5
18460 ac_header_compiler
=no
18462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18464 echo "${ECHO_T}$ac_header_compiler" >&6
18466 # Is the header present?
18467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18469 cat >conftest.
$ac_ext <<_ACEOF
18472 cat confdefs.h
>>conftest.
$ac_ext
18473 cat >>conftest.
$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 #include <$ac_header>
18477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18478 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18480 grep -v '^ *+' conftest.er1
>conftest.err
18482 cat conftest.err
>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } >/dev
/null
; then
18485 if test -s conftest.err
; then
18486 ac_cpp_err
=$ac_c_preproc_warn_flag
18487 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18494 if test -z "$ac_cpp_err"; then
18495 ac_header_preproc
=yes
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.
$ac_ext >&5
18500 ac_header_preproc
=no
18502 rm -f conftest.err conftest.
$ac_ext
18503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18504 echo "${ECHO_T}$ac_header_preproc" >&6
18506 # So? What about this header?
18507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18513 ac_header_preproc
=yes
18516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18530 ## ------------------------------ ##
18531 ## Report this to admin@amule.org ##
18532 ## ------------------------------ ##
18535 sed "s/^/$as_me: WARNING: /" >&2
18538 echo "$as_me:$LINENO: checking for $ac_header" >&5
18539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 eval "$as_ac_Header=\$ac_header_preproc"
18545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18550 cat >>confdefs.h
<<_ACEOF
18551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18565 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18569 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18570 if test "${with_ccache_prefix+set}" = set; then
18571 withval
="$with_ccache_prefix"
18572 ccache_prefix
="$withval"
18578 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18579 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18580 echo "$as_me:$LINENO: result: $ccache" >&5
18581 echo "${ECHO_T}$ccache" >&6
18588 if test x
$ccache_prefix == x
; then
18589 ccache_full
=$
(which ccache
)
18590 ccache_prefix
=$
(dirname ${ccache_full})
18592 $ccache_prefix/ccache
-V > /dev
/null
2>&1
18594 if test "$CCACHE" != 0; then
18599 echo "$as_me:$LINENO: checking for ccache presence" >&5
18600 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18601 echo "$as_me:$LINENO: result: $result" >&5
18602 echo "${ECHO_T}$result" >&6
18606 if [ $CCACHE = 0 ]; then
18607 GCC
="$ccache_prefix/ccache $GCC"
18608 CC
="$ccache_prefix/ccache $CC"
18609 GXX
="$ccache_prefix/ccache $GXX"
18610 CXX
="$ccache_prefix/ccache $CXX"
18611 BUILD_CC
="$ccache_prefix/ccache $BUILD_CC"
18615 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/kademlia/Makefile src/kademlia/utils/Makefile src/kademlia/kademlia/Makefile src/kademlia/routing/Makefile src/kademlia/net/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/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 unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
18617 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
18619 if test x
$SYS = xwin32
; then
18620 ac_config_files
="$ac_config_files version.rc"
18624 cat >confcache
<<\_ACEOF
18625 # This file is a shell script that caches the results of configure
18626 # tests run on this system so they can be shared between configure
18627 # scripts and configure runs, see configure's option --config-cache.
18628 # It is not useful on other systems. If it contains results you don't
18629 # want to keep, you may remove or edit it.
18631 # config.status only pays attention to the cache file if you give it
18632 # the --recheck option to rerun configure.
18634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18636 # following values.
18640 # The following way of writing the cache mishandles newlines in values,
18641 # but we know of no workaround that is simple, portable, and efficient.
18642 # So, don't put newlines in cache variables' values.
18643 # Ultrix sh set writes to stderr and can't be redirected directly,
18644 # and sets the high bit in the cache file unless we assign to the vars.
18647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18649 # `set' does not quote correctly, so add quotes (double-quote
18650 # substitution turns \\\\ into \\, and sed turns \\ into \).
18653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18656 # `set' quotes correctly as required by POSIX, so do not add quotes.
18658 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18667 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18669 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18670 if test -w $cache_file; then
18671 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18672 cat confcache
>$cache_file
18674 echo "not updating unwritable cache $cache_file"
18679 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18680 # Let make expand exec_prefix.
18681 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18683 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18684 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18685 # trailing colons and then remove the whole line if VPATH becomes empty
18686 # (actually we leave an empty line to preserve line numbers).
18687 if test "x$srcdir" = x.
; then
18688 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18689 s/:*\$(srcdir):*/:/;
18690 s/:*\${srcdir}:*/:/;
18692 s/^\([^=]*=[ ]*\):*/\1/;
18698 DEFS
=-DHAVE_CONFIG_H
18702 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18703 # 1. Remove the extension, and $U if already installed.
18704 ac_i
=`echo "$ac_i" |
18705 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18707 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18708 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18710 LIBOBJS
=$ac_libobjs
18712 LTLIBOBJS
=$ac_ltlibobjs
18715 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18716 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18717 Usually this means the macro was only invoked conditionally." >&5
18718 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18719 Usually this means the macro was only invoked conditionally." >&2;}
18720 { (exit 1); exit 1; }; }
18722 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18723 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18724 Usually this means the macro was only invoked conditionally." >&5
18725 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18726 Usually this means the macro was only invoked conditionally." >&2;}
18727 { (exit 1); exit 1; }; }
18729 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18730 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18731 Usually this means the macro was only invoked conditionally." >&5
18732 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18733 Usually this means the macro was only invoked conditionally." >&2;}
18734 { (exit 1); exit 1; }; }
18736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18737 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18738 Usually this means the macro was only invoked conditionally." >&5
18739 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18740 Usually this means the macro was only invoked conditionally." >&2;}
18741 { (exit 1); exit 1; }; }
18743 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
18744 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
18745 Usually this means the macro was only invoked conditionally." >&5
18746 echo "$as_me: error: conditional \"WEB\" was never defined.
18747 Usually this means the macro was only invoked conditionally." >&2;}
18748 { (exit 1); exit 1; }; }
18750 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
18751 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
18752 Usually this means the macro was only invoked conditionally." >&5
18753 echo "$as_me: error: conditional \"ED2K\" was never defined.
18754 Usually this means the macro was only invoked conditionally." >&2;}
18755 { (exit 1); exit 1; }; }
18757 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
18758 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
18759 Usually this means the macro was only invoked conditionally." >&5
18760 echo "$as_me: error: conditional \"CAS\" was never defined.
18761 Usually this means the macro was only invoked conditionally." >&2;}
18762 { (exit 1); exit 1; }; }
18764 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
18765 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
18766 Usually this means the macro was only invoked conditionally." >&5
18767 echo "$as_me: error: conditional \"WXCAS\" was never defined.
18768 Usually this means the macro was only invoked conditionally." >&2;}
18769 { (exit 1); exit 1; }; }
18771 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
18772 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
18773 Usually this means the macro was only invoked conditionally." >&5
18774 echo "$as_me: error: conditional \"ALC\" was never defined.
18775 Usually this means the macro was only invoked conditionally." >&2;}
18776 { (exit 1); exit 1; }; }
18778 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
18779 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
18780 Usually this means the macro was only invoked conditionally." >&5
18781 echo "$as_me: error: conditional \"ALCC\" was never defined.
18782 Usually this means the macro was only invoked conditionally." >&2;}
18783 { (exit 1); exit 1; }; }
18785 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
18786 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
18787 Usually this means the macro was only invoked conditionally." >&5
18788 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
18789 Usually this means the macro was only invoked conditionally." >&2;}
18790 { (exit 1); exit 1; }; }
18792 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
18793 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
18794 Usually this means the macro was only invoked conditionally." >&5
18795 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
18796 Usually this means the macro was only invoked conditionally." >&2;}
18797 { (exit 1); exit 1; }; }
18799 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
18800 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
18801 Usually this means the macro was only invoked conditionally." >&5
18802 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
18803 Usually this means the macro was only invoked conditionally." >&2;}
18804 { (exit 1); exit 1; }; }
18806 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
18807 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
18808 Usually this means the macro was only invoked conditionally." >&5
18809 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
18810 Usually this means the macro was only invoked conditionally." >&2;}
18811 { (exit 1); exit 1; }; }
18813 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
18814 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
18815 Usually this means the macro was only invoked conditionally." >&5
18816 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
18817 Usually this means the macro was only invoked conditionally." >&2;}
18818 { (exit 1); exit 1; }; }
18820 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
18821 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18822 Usually this means the macro was only invoked conditionally." >&5
18823 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
18824 Usually this means the macro was only invoked conditionally." >&2;}
18825 { (exit 1); exit 1; }; }
18827 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
18828 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
18829 Usually this means the macro was only invoked conditionally." >&5
18830 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
18831 Usually this means the macro was only invoked conditionally." >&2;}
18832 { (exit 1); exit 1; }; }
18834 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
18835 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
18836 Usually this means the macro was only invoked conditionally." >&5
18837 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
18838 Usually this means the macro was only invoked conditionally." >&2;}
18839 { (exit 1); exit 1; }; }
18841 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
18842 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
18843 Usually this means the macro was only invoked conditionally." >&5
18844 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
18845 Usually this means the macro was only invoked conditionally." >&2;}
18846 { (exit 1); exit 1; }; }
18848 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
18849 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
18850 Usually this means the macro was only invoked conditionally." >&5
18851 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
18852 Usually this means the macro was only invoked conditionally." >&2;}
18853 { (exit 1); exit 1; }; }
18855 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
18856 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
18857 Usually this means the macro was only invoked conditionally." >&5
18858 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
18859 Usually this means the macro was only invoked conditionally." >&2;}
18860 { (exit 1); exit 1; }; }
18863 : ${CONFIG_STATUS=./config.status}
18864 ac_clean_files_save
=$ac_clean_files
18865 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18866 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18867 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18868 cat >$CONFIG_STATUS <<_ACEOF
18870 # Generated by $as_me.
18871 # Run this file to recreate the current configuration.
18872 # Compiler output produced by configure, useful for debugging
18873 # configure, is in config.log if it exists.
18876 ac_cs_recheck=false
18878 SHELL=\${CONFIG_SHELL-$SHELL}
18881 cat >>$CONFIG_STATUS <<\_ACEOF
18882 ## --------------------- ##
18883 ## M4sh Initialization. ##
18884 ## --------------------- ##
18886 # Be Bourne compatible
18887 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18890 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18891 # is contrary to our usage. Disable this feature.
18892 alias -g '${1+"$@"}'='"$@"'
18893 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18896 DUALCASE
=1; export DUALCASE
# for MKS sh
18898 # Support unset when possible.
18899 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
18906 # Work around bugs in pre-3.0 UWIN ksh.
18907 $as_unset ENV MAIL MAILPATH
18914 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18915 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18916 LC_TELEPHONE LC_TIME
18918 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18919 eval $as_var=C
; export $as_var
18925 # Required to use basename.
18926 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18932 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18933 as_basename
=basename
18939 # Name of the executable.
18940 as_me
=`$as_basename "$0" ||
18941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18942 X"$0" : 'X\(//\)$' \| \
18943 X"$0" : 'X\(/\)$' \| \
18944 . : '\(.\)' 2>/dev/null ||
18946 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18947 /^X\/\(\/\/\)$/{ s//\1/; q; }
18948 /^X\/\(\/\).*/{ s//\1/; q; }
18952 # PATH needs CR, and LINENO needs CR and PATH.
18953 # Avoid depending upon Character Ranges.
18954 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18955 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18956 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18957 as_cr_digits
='0123456789'
18958 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18960 # The user is always right.
18961 if test "${PATH_SEPARATOR+set}" != set; then
18962 echo "#! /bin/sh" >conf$$.sh
18963 echo "exit 0" >>conf$$.sh
18965 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18974 as_lineno_1
=$LINENO
18975 as_lineno_2
=$LINENO
18976 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18977 test "x$as_lineno_1" != "x$as_lineno_2" &&
18978 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18979 # Find who we are. Look in the path if we contain no path at all
18982 *[\\/]* ) as_myself
=$0 ;;
18983 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18984 for as_dir
in $PATH
18987 test -z "$as_dir" && as_dir
=.
18988 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18993 # We did not find ourselves, most probably we were run as `sh COMMAND'
18994 # in which case we are not to be found in the path.
18995 if test "x$as_myself" = x
; then
18998 if test ! -f "$as_myself"; then
18999 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19000 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19001 { (exit 1); exit 1; }; }
19003 case $CONFIG_SHELL in
19005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19006 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19009 test -z "$as_dir" && as_dir
=.
19010 for as_base
in sh bash ksh sh5
; do
19013 if ("$as_dir/$as_base" -c '
19014 as_lineno_1=$LINENO
19015 as_lineno_2=$LINENO
19016 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19017 test "x$as_lineno_1" != "x$as_lineno_2" &&
19018 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19019 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19020 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19021 CONFIG_SHELL
=$as_dir/$as_base
19022 export CONFIG_SHELL
19023 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19031 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19032 # uniformly replaced by the line number. The first 'sed' inserts a
19033 # line-number line before each line; the second 'sed' does the real
19034 # work. The second script uses 'N' to pair each line-number line
19035 # with the numbered line, and appends trailing '-' during
19036 # substitution so that $LINENO is not a special case at line end.
19037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19038 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19039 sed '=' <$as_myself |
19044 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19047 s,^['$as_cr_digits']*\n,,
19048 ' >$as_me.lineno
&&
19049 chmod +x
$as_me.lineno ||
19050 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19051 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19052 { (exit 1); exit 1; }; }
19054 # Don't try to exec as it changes $[0], causing all sort of problems
19055 # (the dirname of $[0] is not the place where we might find the
19056 # original and so on. Autoconf is especially sensible to this).
19058 # Exit status is that of the last command.
19063 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19064 *c
*,-n*) ECHO_N
= ECHO_C
='
19066 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19067 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19070 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19076 rm -f conf$$ conf$$.exe conf$$.
file
19078 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19079 # We could just check for DJGPP; but this test a) works b) is more generic
19080 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19081 if test -f conf$$.exe
; then
19082 # Don't use ln at all; we don't have any links
19087 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19092 rm -f conf$$ conf$$.exe conf$$.
file
19094 if mkdir
-p .
2>/dev
/null
; then
19097 test -d .
/-p && rmdir .
/-p
19101 as_executable_p
="test -f"
19103 # Sed expression to map a string onto a valid CPP name.
19104 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19106 # Sed expression to map a string onto a valid variable name.
19107 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19111 # We need space, tab and new line, in precisely that order.
19121 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19122 # report actual input values of CONFIG_FILES etc. instead of their
19123 # values after options handling. Logging --version etc. is OK.
19127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19128 ## Running $as_me. ##
19133 This file was extended by aMule $as_me SVN, which was
19134 generated by GNU Autoconf 2.59. Invocation command line was
19136 CONFIG_FILES = $CONFIG_FILES
19137 CONFIG_HEADERS = $CONFIG_HEADERS
19138 CONFIG_LINKS = $CONFIG_LINKS
19139 CONFIG_COMMANDS = $CONFIG_COMMANDS
19143 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19147 # Files that config.status was made for.
19148 if test -n "$ac_config_files"; then
19149 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19152 if test -n "$ac_config_headers"; then
19153 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19156 if test -n "$ac_config_links"; then
19157 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19160 if test -n "$ac_config_commands"; then
19161 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19164 cat >>$CONFIG_STATUS <<\_ACEOF
19167 \`$as_me' instantiates files from templates according to the
19168 current configuration.
19170 Usage: $0 [OPTIONS] [FILE]...
19172 -h, --help print this help, then exit
19173 -V, --version print version number, then exit
19174 -q, --quiet do not print progress messages
19175 -d, --debug don't remove temporary files
19176 --recheck update $as_me by reconfiguring in the same conditions
19177 --file=FILE[:TEMPLATE]
19178 instantiate the configuration file FILE
19179 --header=FILE[:TEMPLATE]
19180 instantiate the configuration header FILE
19182 Configuration files:
19185 Configuration headers:
19188 Configuration commands:
19191 Report bugs to <bug-autoconf@gnu.org>."
19194 cat >>$CONFIG_STATUS <<_ACEOF
19196 aMule config.status SVN
19197 configured by $0, generated by GNU Autoconf 2.59,
19198 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19200 Copyright (C) 2003 Free Software Foundation, Inc.
19201 This config.status script is free software; the Free Software Foundation
19202 gives unlimited permission to copy, distribute and modify it."
19207 cat >>$CONFIG_STATUS <<\_ACEOF
19208 # If no file are specified by the user, then we need to provide default
19209 # value. By we need to know if files were specified by the user.
19215 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19216 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19224 *) # This is not an option, so the user has probably given explicit
19227 ac_need_defaults
=false
;;
19231 # Handling of the options.
19233 cat >>$CONFIG_STATUS <<\_ACEOF
19234 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19236 --version |
--vers* |
-V )
19237 echo "$ac_cs_version"; exit 0 ;;
19239 # Conflict between --help and --header
19240 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19241 Try \`$0 --help' for more information." >&5
19242 echo "$as_me: error: ambiguous option: $1
19243 Try \`$0 --help' for more information." >&2;}
19244 { (exit 1); exit 1; }; };;
19245 --help |
--hel |
-h )
19246 echo "$ac_cs_usage"; exit 0 ;;
19247 --debug |
--d* |
-d )
19249 --file |
--fil |
--fi |
--f )
19251 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19252 ac_need_defaults
=false
;;
19253 --header |
--heade |
--head |
--hea )
19255 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19256 ac_need_defaults
=false
;;
19257 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19258 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19261 # This is an error.
19262 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19263 Try \`$0 --help' for more information." >&5
19264 echo "$as_me: error: unrecognized option: $1
19265 Try \`$0 --help' for more information." >&2;}
19266 { (exit 1); exit 1; }; } ;;
19268 *) ac_config_targets
="$ac_config_targets $1" ;;
19274 ac_configure_extra_args
=
19276 if $ac_cs_silent; then
19278 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19282 cat >>$CONFIG_STATUS <<_ACEOF
19283 if \$ac_cs_recheck; then
19284 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19285 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19290 cat >>$CONFIG_STATUS <<_ACEOF
19292 # INIT-COMMANDS section.
19295 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19296 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19297 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19299 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19300 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19301 LINGUAS="${LINGUAS-%UNSET%}"
19303 level=$denoiselevel
19309 cat >>$CONFIG_STATUS <<\_ACEOF
19310 for ac_config_target
in $ac_config_targets
19312 case "$ac_config_target" in
19313 # Handling of arguments.
19314 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19315 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
19316 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
19317 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
19318 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19319 "src/kademlia/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/kademlia/Makefile" ;;
19320 "src/kademlia/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/kademlia/utils/Makefile" ;;
19321 "src/kademlia/kademlia/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/kademlia/kademlia/Makefile" ;;
19322 "src/kademlia/routing/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/kademlia/routing/Makefile" ;;
19323 "src/kademlia/net/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/kademlia/net/Makefile" ;;
19324 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
19325 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19326 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
19327 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
19328 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19329 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
19330 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
19331 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19332 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19333 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19334 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
19335 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19336 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19337 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19338 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19339 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
19340 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19341 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19342 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
19343 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
19344 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
19345 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
19346 "src/webserver/php-default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19347 "src/webserver/chicane/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19348 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
19349 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19350 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
19351 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
19352 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
19353 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
19354 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19355 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
19356 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
19357 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
19358 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19359 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19360 { (exit 1); exit 1; }; };;
19364 # If the user did not use the arguments to specify the items to instantiate,
19365 # then the envvar interface is used. Set only those that are not.
19366 # We use the long form for the default assignment because of an extremely
19367 # bizarre bug on SunOS 4.1.3.
19368 if $ac_need_defaults; then
19369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19374 # Have a temporary directory for convenience. Make it in the build tree
19375 # simply because there is no reason to put it here, and in addition,
19376 # creating and moving files from /tmp can sometimes cause problems.
19377 # Create a temporary directory, and hook for its removal unless debugging.
19380 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19381 trap '{ (exit 1); exit 1; }' 1 2 13 15
19384 # Create a (secure) tmp directory for tmp files.
19387 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19388 test -n "$tmp" && test -d "$tmp"
19391 tmp
=.
/confstat$$
-$RANDOM
19392 (umask 077 && mkdir
$tmp)
19395 echo "$me: cannot create a temporary directory in ." >&2
19396 { (exit 1); exit 1; }
19401 cat >>$CONFIG_STATUS <<_ACEOF
19404 # CONFIG_FILES section.
19407 # No need to generate the scripts if there are no CONFIG_FILES.
19408 # This happens for instance when ./config.status config.h
19409 if test -n "\$CONFIG_FILES"; then
19410 # Protect against being on the right side of a sed subst in config.status.
19411 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19412 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19413 s,@SHELL@,$SHELL,;t t
19414 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19415 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19416 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19417 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19418 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19419 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19420 s,@exec_prefix@,$exec_prefix,;t t
19421 s,@prefix@,$prefix,;t t
19422 s,@program_transform_name@,$program_transform_name,;t t
19423 s,@bindir@,$bindir,;t t
19424 s,@sbindir@,$sbindir,;t t
19425 s,@libexecdir@,$libexecdir,;t t
19426 s,@datadir@,$datadir,;t t
19427 s,@sysconfdir@,$sysconfdir,;t t
19428 s,@sharedstatedir@,$sharedstatedir,;t t
19429 s,@localstatedir@,$localstatedir,;t t
19430 s,@libdir@,$libdir,;t t
19431 s,@includedir@,$includedir,;t t
19432 s,@oldincludedir@,$oldincludedir,;t t
19433 s,@infodir@,$infodir,;t t
19434 s,@mandir@,$mandir,;t t
19435 s,@build_alias@,$build_alias,;t t
19436 s,@host_alias@,$host_alias,;t t
19437 s,@target_alias@,$target_alias,;t t
19438 s,@DEFS@,$DEFS,;t t
19439 s,@ECHO_C@,$ECHO_C,;t t
19440 s,@ECHO_N@,$ECHO_N,;t t
19441 s,@ECHO_T@,$ECHO_T,;t t
19442 s,@LIBS@,$LIBS,;t t
19443 s,@build@,$build,;t t
19444 s,@build_cpu@,$build_cpu,;t t
19445 s,@build_vendor@,$build_vendor,;t t
19446 s,@build_os@,$build_os,;t t
19447 s,@host@,$host,;t t
19448 s,@host_cpu@,$host_cpu,;t t
19449 s,@host_vendor@,$host_vendor,;t t
19450 s,@host_os@,$host_os,;t t
19451 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19452 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19453 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19454 s,@CYGPATH_W@,$CYGPATH_W,;t t
19455 s,@PACKAGE@,$PACKAGE,;t t
19456 s,@VERSION@,$VERSION,;t t
19457 s,@ACLOCAL@,$ACLOCAL,;t t
19458 s,@AUTOCONF@,$AUTOCONF,;t t
19459 s,@AUTOMAKE@,$AUTOMAKE,;t t
19460 s,@AUTOHEADER@,$AUTOHEADER,;t t
19461 s,@MAKEINFO@,$MAKEINFO,;t t
19462 s,@install_sh@,$install_sh,;t t
19463 s,@STRIP@,$STRIP,;t t
19464 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19465 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19466 s,@mkdir_p@,$mkdir_p,;t t
19468 s,@SET_MAKE@,$SET_MAKE,;t t
19469 s,@am__leading_dot@,$am__leading_dot,;t t
19470 s,@AMTAR@,$AMTAR,;t t
19471 s,@am__tar@,$am__tar,;t t
19472 s,@am__untar@,$am__untar,;t t
19473 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19474 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19475 s,@MAINT@,$MAINT,;t t
19476 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19477 s,@X11LIBS@,$X11LIBS,;t t
19479 s,@CXXFLAGS@,$CXXFLAGS,;t t
19480 s,@LDFLAGS@,$LDFLAGS,;t t
19481 s,@CPPFLAGS@,$CPPFLAGS,;t t
19482 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19483 s,@EXEEXT@,$EXEEXT,;t t
19484 s,@OBJEXT@,$OBJEXT,;t t
19485 s,@DEPDIR@,$DEPDIR,;t t
19486 s,@am__include@,$am__include,;t t
19487 s,@am__quote@,$am__quote,;t t
19488 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19489 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19490 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19491 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19492 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19493 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19494 s,@CXXCPP@,$CXXCPP,;t t
19496 s,@CFLAGS@,$CFLAGS,;t t
19497 s,@ac_ct_CC@,$ac_ct_CC,;t t
19498 s,@CCDEPMODE@,$CCDEPMODE,;t t
19499 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19500 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19502 s,@BUILD_CC@,$BUILD_CC,;t t
19503 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19504 s,@EXEEXT@,$EXEEXT,;t t
19505 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19506 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19507 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19508 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19509 s,@EGREP@,$EGREP,;t t
19511 s,@LEXLIB@,$LEXLIB,;t t
19512 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19513 s,@RANLIB@,$RANLIB,;t t
19514 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19515 s,@YACC@,$YACC,;t t
19517 s,@ac_ct_AR@,$ac_ct_AR,;t t
19519 s,@ac_ct_LD@,$ac_ct_LD,;t t
19520 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19521 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19522 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19523 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19524 s,@CAS_DEFS@,$CAS_DEFS,;t t
19525 s,@REGEX_LIB@,$REGEX_LIB,;t t
19526 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19527 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19528 s,@LIBPNG_CXXFLAGS@,$LIBPNG_CXXFLAGS,;t t
19529 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19530 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19531 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19532 s,@GEOIP_INCLUDE@,$GEOIP_INCLUDE,;t t
19533 s,@GEOIP_LIB@,$GEOIP_LIB,;t t
19534 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19535 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19536 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19537 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19538 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19539 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19540 s,@WX_LIBS@,$WX_LIBS,;t t
19541 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19542 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19543 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19544 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19545 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19546 s,@WX_UNICODE@,$WX_UNICODE,;t t
19547 s,@WX_DEBUG@,$WX_DEBUG,;t t
19548 s,@WX_SHARED@,$WX_SHARED,;t t
19549 s,@WX_PORT@,$WX_PORT,;t t
19551 s,@ac_ct_RC@,$ac_ct_RC,;t t
19552 s,@RCFLAGS@,$RCFLAGS,;t t
19553 s,@CRYPTO_PP_PREFIX@,$CRYPTO_PP_PREFIX,;t t
19554 s,@CRYPTO_PP_VERSION_STRING@,$CRYPTO_PP_VERSION_STRING,;t t
19555 s,@CRYPTO_PP_VERSION_NUMBER@,$CRYPTO_PP_VERSION_NUMBER,;t t
19556 s,@CRYPTO_PP_STYLE@,$CRYPTO_PP_STYLE,;t t
19557 s,@CRYPTO_PP_LIB_NAME@,$CRYPTO_PP_LIB_NAME,;t t
19558 s,@CRYPTO_PP_INCLUDE_PREFIX@,$CRYPTO_PP_INCLUDE_PREFIX,;t t
19559 s,@CRYPTO_PP_CXXFLAGS@,$CRYPTO_PP_CXXFLAGS,;t t
19560 s,@CRYPTO_PP_LDFLAGS@,$CRYPTO_PP_LDFLAGS,;t t
19561 s,@CRYPTOLIBS@,$CRYPTOLIBS,;t t
19562 s,@BFD_FLAGS@,$BFD_FLAGS,;t t
19563 s,@BFD_LIB@,$BFD_LIB,;t t
19564 s,@HAVE_GETTEXT@,$HAVE_GETTEXT,;t t
19565 s,@HAVE_FLEX_EXTENDED@,$HAVE_FLEX_EXTENDED,;t t
19566 s,@ALLOCA@,$ALLOCA,;t t
19567 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19568 s,@MSGFMT@,$MSGFMT,;t t
19569 s,@GMSGFMT@,$GMSGFMT,;t t
19570 s,@XGETTEXT@,$XGETTEXT,;t t
19571 s,@MSGMERGE@,$MSGMERGE,;t t
19572 s,@GLIBC21@,$GLIBC21,;t t
19573 s,@LIBICONV@,$LIBICONV,;t t
19574 s,@LTLIBICONV@,$LTLIBICONV,;t t
19575 s,@INTLBISON@,$INTLBISON,;t t
19576 s,@USE_NLS@,$USE_NLS,;t t
19577 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19578 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19579 s,@CATOBJEXT@,$CATOBJEXT,;t t
19580 s,@INTLOBJS@,$INTLOBJS,;t t
19581 s,@DATADIRNAME@,$DATADIRNAME,;t t
19582 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19583 s,@GENCAT@,$GENCAT,;t t
19584 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19585 s,@INTLLIBS@,$INTLLIBS,;t t
19586 s,@LIBINTL@,$LIBINTL,;t t
19587 s,@LTLIBINTL@,$LTLIBINTL,;t t
19588 s,@POSUB@,$POSUB,;t t
19589 s,@LIBOBJS@,$LIBOBJS,;t t
19590 s,@POW_LIB@,$POW_LIB,;t t
19591 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19592 s,@WXBASE_CFLAGS@,$WXBASE_CFLAGS,;t t
19593 s,@WXBASE_CXXFLAGS@,$WXBASE_CXXFLAGS,;t t
19594 s,@docdir@,$docdir,;t t
19595 s,@SVNDATE@,$SVNDATE,;t t
19596 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19597 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19598 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19599 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19600 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19601 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19602 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19603 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19604 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19605 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19606 s,@WEB_TRUE@,$WEB_TRUE,;t t
19607 s,@WEB_FALSE@,$WEB_FALSE,;t t
19608 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19609 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19610 s,@CAS_TRUE@,$CAS_TRUE,;t t
19611 s,@CAS_FALSE@,$CAS_FALSE,;t t
19612 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19613 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19614 s,@ALC_TRUE@,$ALC_TRUE,;t t
19615 s,@ALC_FALSE@,$ALC_FALSE,;t t
19616 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19617 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19618 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19619 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19620 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19621 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19622 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19623 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19624 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19625 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19626 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19627 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19628 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19629 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19630 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19631 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19632 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19633 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19634 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19635 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19636 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19637 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19638 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19639 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19640 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19641 s,@ccache@,$ccache,;t t
19642 s,@CCACHE@,$CCACHE,;t t
19643 s,@ccache_prefix@,$ccache_prefix,;t t
19644 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19649 cat >>$CONFIG_STATUS <<\_ACEOF
19650 # Split the substitutions into bite-sized pieces for seds with
19651 # small command number limits, like on Digital OSF/1 and HP-UX.
19652 ac_max_sed_lines
=48
19653 ac_sed_frag
=1 # Number of current file.
19654 ac_beg
=1 # First line for current file.
19655 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19658 while $ac_more_lines; do
19659 if test $ac_beg -gt 1; then
19660 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19662 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19664 if test ! -s $tmp/subs.frag
; then
19665 ac_more_lines
=false
19667 # The purpose of the label and of the branching condition is to
19668 # speed up the sed processing (if there are no `@' at all, there
19669 # is no need to browse any of the substitutions).
19670 # These are the two extra sed commands mentioned above.
19672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19673 if test -z "$ac_sed_cmds"; then
19674 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19676 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19678 ac_sed_frag
=`expr $ac_sed_frag + 1`
19680 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19683 if test -z "$ac_sed_cmds"; then
19686 fi # test -n "$CONFIG_FILES"
19689 cat >>$CONFIG_STATUS <<\_ACEOF
19690 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19693 - |
*:- |
*:-:* ) # input from stdin
19695 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19696 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19697 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19698 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19699 * ) ac_file_in
=$ac_file.
in ;;
19702 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19703 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19705 X"$ac_file" : 'X\(//\)[^/]' \| \
19706 X"$ac_file" : 'X\(//\)$' \| \
19707 X"$ac_file" : 'X\(/\)' \| \
19708 . : '\(.\)' 2>/dev/null ||
19710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19712 /^X\(\/\/\)$/{ s//\1/; q; }
19713 /^X\(\/\).*/{ s//\1/; q; }
19715 { if $as_mkdir_p; then
19720 while test ! -d "$as_dir"; do
19721 as_dirs
="$as_dir $as_dirs"
19722 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19724 X"$as_dir" : 'X\(//\)[^/]' \| \
19725 X"$as_dir" : 'X\(//\)$' \| \
19726 X"$as_dir" : 'X\(/\)' \| \
19727 . : '\(.\)' 2>/dev/null ||
19729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19731 /^X\(\/\/\)$/{ s//\1/; q; }
19732 /^X\(\/\).*/{ s//\1/; q; }
19735 test ! -n "$as_dirs" || mkdir
$as_dirs
19736 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19738 { (exit 1); exit 1; }; }; }
19742 if test "$ac_dir" != .
; then
19743 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19744 # A "../" for each directory in $ac_dir_suffix.
19745 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19747 ac_dir_suffix
= ac_top_builddir
=
19751 .
) # No --srcdir option. We are building in place.
19753 if test -z "$ac_top_builddir"; then
19756 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19758 [\\/]* | ?
:[\\/]* ) # Absolute path.
19759 ac_srcdir
=$srcdir$ac_dir_suffix;
19760 ac_top_srcdir
=$srcdir ;;
19761 *) # Relative path.
19762 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19763 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19766 # Do not use `cd foo && pwd` to compute absolute paths, because
19767 # the directories may not exist.
19769 .
) ac_abs_builddir
="$ac_dir";;
19772 .
) ac_abs_builddir
=`pwd`;;
19773 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
19774 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
19777 case $ac_abs_builddir in
19778 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19780 case ${ac_top_builddir}.
in
19781 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
19782 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19783 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
19786 case $ac_abs_builddir in
19787 .
) ac_abs_srcdir
=$ac_srcdir;;
19790 .
) ac_abs_srcdir
=$ac_abs_builddir;;
19791 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
19792 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
19795 case $ac_abs_builddir in
19796 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
19798 case $ac_top_srcdir in
19799 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
19800 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
19801 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
19807 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19808 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19811 if test x
"$ac_file" != x-
; then
19812 { echo "$as_me:$LINENO: creating $ac_file" >&5
19813 echo "$as_me: creating $ac_file" >&6;}
19816 # Let's still pretend it is `configure' which instantiates (i.e., don't
19817 # use $as_me), people would be surprised to read:
19818 # /* config.h. Generated by config.status. */
19819 if test x
"$ac_file" = x-
; then
19822 configure_input
="$ac_file. "
19824 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19825 sed 's,.*/,,'` by configure."
19827 # First look for the input files in the build tree, otherwise in the
19829 ac_file_inputs
=`IFS=:
19830 for f in $ac_file_in; do
19832 -) echo $tmp/stdin ;;
19834 # Absolute (can't be DOS-style, as IFS=:)
19835 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19836 echo "$as_me: error: cannot find input file: $f" >&2;}
19837 { (exit 1); exit 1; }; }
19840 if test -f "$f"; then
19843 elif test -f "$srcdir/$f"; then
19848 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19849 echo "$as_me: error: cannot find input file: $f" >&2;}
19850 { (exit 1); exit 1; }; }
19853 done` ||
{ (exit 1); exit 1; }
19855 cat >>$CONFIG_STATUS <<_ACEOF
19859 cat >>$CONFIG_STATUS <<\_ACEOF
19861 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19862 s
,@configure_input@
,$configure_input,;t t
19863 s
,@srcdir@
,$ac_srcdir,;t t
19864 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19865 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19866 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19867 s
,@builddir@
,$ac_builddir,;t t
19868 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19869 s
,@top_builddir@
,$ac_top_builddir,;t t
19870 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19871 s
,@INSTALL@
,$ac_INSTALL,;t t
19872 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19874 if test x"$ac_file" != x-; then
19875 mv $tmp/out $ac_file
19883 cat >>$CONFIG_STATUS <<\_ACEOF
19886 # CONFIG_HEADER section.
19889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19892 # ac_d sets the value in "#define NAME VALUE" lines.
19893 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19894 ac_dB
='[ ].*$,\1#\2'
19897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19898 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19899 ac_uB
='$,\1#\2define\3'
19903 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19906 - |
*:- |
*:-:* ) # input from stdin
19908 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19909 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19910 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19911 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19912 * ) ac_file_in
=$ac_file.
in ;;
19915 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19916 echo "$as_me: creating $ac_file" >&6;}
19918 # First look for the input files in the build tree, otherwise in the
19920 ac_file_inputs
=`IFS=:
19921 for f in $ac_file_in; do
19923 -) echo $tmp/stdin ;;
19925 # Absolute (can't be DOS-style, as IFS=:)
19926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19927 echo "$as_me: error: cannot find input file: $f" >&2;}
19928 { (exit 1); exit 1; }; }
19929 # Do quote $f, to prevent DOS paths from being IFS'd.
19932 if test -f "$f"; then
19935 elif test -f "$srcdir/$f"; then
19940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19941 echo "$as_me: error: cannot find input file: $f" >&2;}
19942 { (exit 1); exit 1; }; }
19945 done` ||
{ (exit 1); exit 1; }
19946 # Remove the trailing spaces.
19947 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19951 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19952 # `conftest.undefs', that substitutes the proper values into
19953 # config.h.in to produce config.h. The first handles `#define'
19954 # templates, and the second `#undef' templates.
19955 # And first: Protect against being on the right side of a sed subst in
19956 # config.status. Protect against being in an unquoted here document
19957 # in config.status.
19958 rm -f conftest.defines conftest.undefs
19959 # Using a here document instead of a string reduces the quoting nightmare.
19960 # Putting comments in sed scripts is not portable.
19962 # `end' is used to avoid that the second main sed command (meant for
19963 # 0-ary CPP macros) applies to n-ary macro definitions.
19964 # See the Autoconf documentation for `clear'.
19965 cat >confdef2sed.
sed <<\_ACEOF
19970 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19972 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19975 # If some macros were called several times there might be several times
19976 # the same #defines, which is useless. Nevertheless, we may not want to
19977 # sort them, since we want the *last* AC-DEFINE to be honored.
19978 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19979 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19980 rm -f confdef2sed.sed
19982 # This sed command replaces #undef with comments. This is necessary, for
19983 # example, in the case of _POSIX_SOURCE, which is predefined and required
19984 # on some systems where configure will not decide to define it.
19985 cat >>conftest.undefs <<\_ACEOF
19986 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19989 # Break up conftest.defines because some shells have a limit on the size
19990 # of here documents, and old seds have small limits too (100 cmds).
19991 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19992 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19993 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19994 echo ' :' >>$CONFIG_STATUS
19995 rm -f conftest.tail
19996 while grep . conftest.defines >/dev/null
19998 # Write a limited-size here document to $tmp/defines.sed.
19999 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20000 # Speed up: don't consider the non `#define' lines.
20001 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20002 # Work around the forget-to-reset-the-flag bug.
20003 echo 't clr' >>$CONFIG_STATUS
20004 echo ': clr' >>$CONFIG_STATUS
20005 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20007 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20009 mv $tmp/out $tmp/in
20011 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20012 rm -f conftest.defines
20013 mv conftest.
tail conftest.defines
20015 rm -f conftest.defines
20016 echo ' fi # grep' >>$CONFIG_STATUS
20017 echo >>$CONFIG_STATUS
20019 # Break up conftest.undefs because some shells have a limit on the size
20020 # of here documents, and old seds have small limits too (100 cmds).
20021 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20022 rm -f conftest.
tail
20023 while grep . conftest.undefs
>/dev
/null
20025 # Write a limited-size here document to $tmp/undefs.sed.
20026 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20027 # Speed up: don't consider the non
`#undef'
20028 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20029 # Work around the forget-to-reset-the-flag bug.
20030 echo 't clr' >>$CONFIG_STATUS
20031 echo ': clr' >>$CONFIG_STATUS
20032 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20034 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20036 mv $tmp/out $tmp/in
20038 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20039 rm -f conftest.undefs
20040 mv conftest.tail conftest.undefs
20042 rm -f conftest.undefs
20044 cat >>$CONFIG_STATUS <<\_ACEOF
20045 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20046 # use $as_me), people would be surprised to read:
20047 # /* config.h. Generated by config.status. */
20048 if test x
"$ac_file" = x-
; then
20049 echo "/* Generated by configure. */" >$tmp/config.h
20051 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20053 cat $tmp/in >>$tmp/config.h
20055 if test x
"$ac_file" != x-
; then
20056 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20057 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20058 echo "$as_me: $ac_file is unchanged" >&6;}
20060 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062 X"$ac_file" : 'X\(//\)[^/]' \| \
20063 X"$ac_file" : 'X\(//\)$' \| \
20064 X"$ac_file" : 'X\(/\)' \| \
20065 . : '\(.\)' 2>/dev/null ||
20067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20069 /^X\(\/\/\)$/{ s//\1/; q; }
20070 /^X\(\/\).*/{ s//\1/; q; }
20072 { if $as_mkdir_p; then
20077 while test ! -d "$as_dir"; do
20078 as_dirs
="$as_dir $as_dirs"
20079 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20081 X"$as_dir" : 'X\(//\)[^/]' \| \
20082 X"$as_dir" : 'X\(//\)$' \| \
20083 X"$as_dir" : 'X\(/\)' \| \
20084 . : '\(.\)' 2>/dev/null ||
20086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20088 /^X\(\/\/\)$/{ s//\1/; q; }
20089 /^X\(\/\).*/{ s//\1/; q; }
20092 test ! -n "$as_dirs" || mkdir
$as_dirs
20093 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20095 { (exit 1); exit 1; }; }; }
20098 mv $tmp/config.h
$ac_file
20102 rm -f $tmp/config.h
20104 # Compute $ac_file's index in $config_headers.
20106 for _am_header
in $config_headers :; do
20107 case $_am_header in
20108 $ac_file |
$ac_file:* )
20111 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20114 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20115 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20116 X$ac_file : 'X\(//\)[^/]' \| \
20117 X$ac_file : 'X\(//\)$' \| \
20118 X$ac_file : 'X\(/\)' \| \
20119 . : '\(.\)' 2>/dev/null ||
20121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20123 /^X\(\/\/\)$/{ s//\1/; q; }
20124 /^X\(\/\).*/{ s//\1/; q; }
20125 s/.*/./; q'`/stamp-h
$_am_stamp_count
20128 cat >>$CONFIG_STATUS <<\_ACEOF
20131 # CONFIG_COMMANDS section.
20133 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20134 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20135 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20136 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20137 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20138 X"$ac_dest" : 'X\(//\)[^/]' \| \
20139 X"$ac_dest" : 'X\(//\)$' \| \
20140 X"$ac_dest" : 'X\(/\)' \| \
20141 . : '\(.\)' 2>/dev/null ||
20143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20145 /^X\(\/\/\)$/{ s//\1/; q; }
20146 /^X\(\/\).*/{ s//\1/; q; }
20148 { if $as_mkdir_p; then
20153 while test ! -d "$as_dir"; do
20154 as_dirs
="$as_dir $as_dirs"
20155 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20157 X"$as_dir" : 'X\(//\)[^/]' \| \
20158 X"$as_dir" : 'X\(//\)$' \| \
20159 X"$as_dir" : 'X\(/\)' \| \
20160 . : '\(.\)' 2>/dev/null ||
20162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20164 /^X\(\/\/\)$/{ s//\1/; q; }
20165 /^X\(\/\).*/{ s//\1/; q; }
20168 test ! -n "$as_dirs" || mkdir
$as_dirs
20169 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20171 { (exit 1); exit 1; }; }; }
20175 if test "$ac_dir" != .
; then
20176 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20177 # A "../" for each directory in $ac_dir_suffix.
20178 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20180 ac_dir_suffix
= ac_top_builddir
=
20184 .
) # No --srcdir option. We are building in place.
20186 if test -z "$ac_top_builddir"; then
20189 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20191 [\\/]* | ?
:[\\/]* ) # Absolute path.
20192 ac_srcdir
=$srcdir$ac_dir_suffix;
20193 ac_top_srcdir
=$srcdir ;;
20194 *) # Relative path.
20195 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20196 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20199 # Do not use `cd foo && pwd` to compute absolute paths, because
20200 # the directories may not exist.
20202 .
) ac_abs_builddir
="$ac_dir";;
20205 .
) ac_abs_builddir
=`pwd`;;
20206 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20207 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20210 case $ac_abs_builddir in
20211 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20213 case ${ac_top_builddir}.
in
20214 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20215 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20216 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20219 case $ac_abs_builddir in
20220 .
) ac_abs_srcdir
=$ac_srcdir;;
20223 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20224 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20225 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20228 case $ac_abs_builddir in
20229 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20231 case $ac_top_srcdir in
20232 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20233 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20234 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20239 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20240 echo "$as_me: executing $ac_dest commands" >&6;}
20242 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20243 # Strip MF so we end up with the name of the file.
20244 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20245 # Check whether this is an Automake generated Makefile or not.
20246 # We used to match only the files named `Makefile.in', but
20247 # some people rename them; so instead we look at the file content.
20248 # Grep'ing the first line is not enough: some people post-process
20249 # each Makefile.in and add a new line on top of each file to say so.
20250 # So let's grep whole file.
20251 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
20252 dirpart
=`(dirname "$mf") 2>/dev/null ||
20253 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20254 X"$mf" : 'X\(//\)[^/]' \| \
20255 X"$mf" : 'X\(//\)$' \| \
20256 X"$mf" : 'X\(/\)' \| \
20257 . : '\(.\)' 2>/dev/null ||
20259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20261 /^X\(\/\/\)$/{ s//\1/; q; }
20262 /^X\(\/\).*/{ s//\1/; q; }
20267 # Extract the definition of DEPDIR, am__include, and am__quote
20268 # from the Makefile without running `make'.
20269 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20270 test -z "$DEPDIR" && continue
20271 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20272 test -z "am__include" && continue
20273 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20274 # When using ansi2knr, U may be empty or an underscore; expand it
20275 U
=`sed -n 's/^U = //p' < "$mf"`
20276 # Find all dependency output files, they are included files with
20277 # $(DEPDIR) in their names. We invoke sed twice because it is the
20278 # simplest approach to changing $(DEPDIR) to its actual value in the
20280 for file in `sed -n "
20281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20283 # Make sure the directory exists.
20284 test -f "$dirpart/$file" && continue
20285 fdir
=`(dirname "$file") 2>/dev/null ||
20286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20287 X"$file" : 'X\(//\)[^/]' \| \
20288 X"$file" : 'X\(//\)$' \| \
20289 X"$file" : 'X\(/\)' \| \
20290 . : '\(.\)' 2>/dev/null ||
20292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20294 /^X\(\/\/\)$/{ s//\1/; q; }
20295 /^X\(\/\).*/{ s//\1/; q; }
20297 { if $as_mkdir_p; then
20298 mkdir
-p $dirpart/$fdir
20300 as_dir
=$dirpart/$fdir
20302 while test ! -d "$as_dir"; do
20303 as_dirs
="$as_dir $as_dirs"
20304 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20306 X"$as_dir" : 'X\(//\)[^/]' \| \
20307 X"$as_dir" : 'X\(//\)$' \| \
20308 X"$as_dir" : 'X\(/\)' \| \
20309 . : '\(.\)' 2>/dev/null ||
20311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20313 /^X\(\/\/\)$/{ s//\1/; q; }
20314 /^X\(\/\).*/{ s//\1/; q; }
20317 test ! -n "$as_dirs" || mkdir
$as_dirs
20318 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20319 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20320 { (exit 1); exit 1; }; }; }
20322 # echo "creating $dirpart/$file"
20323 echo '# dummy' > "$dirpart/$file"
20328 for ac_file
in $CONFIG_FILES; do
20329 # Support "outfile[:infile[:infile...]]"
20331 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
20333 # PO directories have a Makefile.in generated from Makefile.in.in.
20334 case "$ac_file" in */Makefile.
in)
20335 # Adjust a relative srcdir.
20336 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20337 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
20338 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20339 # In autoconf-2.13 it is called $ac_given_srcdir.
20340 # In autoconf-2.50 it is called $srcdir.
20341 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
20342 case "$ac_given_srcdir" in
20343 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
20344 /*) top_srcdir
="$ac_given_srcdir" ;;
20345 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
20347 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20348 rm -f "$ac_dir/POTFILES"
20349 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
20350 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20351 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20352 # on $ac_dir but don't depend on user-specified configuration
20354 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20355 # The LINGUAS file contains the set of available languages.
20356 if test -n "$ALL_LINGUAS"; then
20357 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
20359 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20360 # Hide the ALL_LINGUAS assigment from automake.
20361 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20363 case "$ac_given_srcdir" in
20365 *) srcdirpre
='$(srcdir)/' ;;
20371 for lang
in $ALL_LINGUAS; do
20372 POFILES
="$POFILES $srcdirpre$lang.po"
20373 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
20374 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
20375 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
20377 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20378 # environment variable.
20380 if test -n "$ALL_LINGUAS"; then
20381 for presentlang
in $ALL_LINGUAS; do
20383 if test "%UNSET%" != "$LINGUAS"; then
20384 desiredlanguages
="$LINGUAS"
20386 desiredlanguages
="$ALL_LINGUAS"
20388 for desiredlang
in $desiredlanguages; do
20389 # Use the presentlang catalog if desiredlang is
20390 # a. equal to presentlang, or
20391 # b. a variant of presentlang (because in this case,
20392 # presentlang can be used as a fallback for messages
20393 # which are not translated in the desiredlang catalog).
20394 case "$desiredlang" in
20395 "$presentlang"*) useit
=yes;;
20398 if test $useit = yes; then
20399 INST_LINGUAS
="$INST_LINGUAS $presentlang"
20404 if test -n "$INST_LINGUAS"; then
20405 for lang
in $INST_LINGUAS; do
20406 CATALOGS
="$CATALOGS $lang.gmo"
20409 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
20410 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"
20411 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
20412 if test -f "$f"; then
20414 *.orig |
*.bak |
*~
) ;;
20415 *) cat "$f" >> "$ac_dir/Makefile" ;;
20423 denoiser
) if test $level -gt 0; then
20424 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
20425 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" \
20426 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
20427 for i
in `find . -name 'Makefile' -print`; do
20428 if test -n "`head -n 1 $i | grep '^#'`"; then
20429 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
20437 cat >>$CONFIG_STATUS <<\_ACEOF
20439 { (exit 0); exit 0; }
20441 chmod +x
$CONFIG_STATUS
20442 ac_clean_files
=$ac_clean_files_save
20445 # configure is writing to config.log, and then calls config.status.
20446 # config.status does its own redirection, appending to config.log.
20447 # Unfortunately, on DOS this fails, as config.log is still kept open
20448 # by configure, so config.status won't be able to write to it; its
20449 # output is simply discarded. So we exec the FD to /dev/null,
20450 # effectively closing config.log, so it can be properly (re)opened and
20451 # appended to by config.status. When coming back to configure, we
20452 # need to make the FD available again.
20453 if test "$no_create" != yes; then
20455 ac_config_status_args
=
20456 test "$silent" = yes &&
20457 ac_config_status_args
="$ac_config_status_args --quiet"
20459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20462 # would make configure fail if this is the last instruction.
20463 $ac_cs_success ||
{ (exit 1); exit 1; }
20469 echo " Configure script has finished system check."
20471 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20473 echo " aMule enabled options:"
20475 echo " **** aMule Core ****"
20476 echo " Prefix where aMule should be installed? ${prefix:-none}"
20477 echo " Should aMule be compiled with i18n support? ${HAVE_GETTEXT:-no}"
20478 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20479 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20480 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20481 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20482 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20483 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20484 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20485 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20486 echo " Crypto++ library/headers style? ${CRYPTO_PP_STYLE:-not found}"
20489 echo " **** aMule TextClient ****"
20490 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20492 echo " **** aMule WebServer ****"
20493 echo " Should aMule WebServer be built? ${WEB:-no}"
20495 echo " **** aMule ED2K Links Handler ****"
20496 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20498 echo " **** aMuleLinkCreator ****"
20499 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20500 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20502 echo " **** aMule Statistics ****"
20503 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20504 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20507 echo " **** General Libraries and Tools ****"
20508 echo " Should ccache support be enabled? ${ccache:-no}"
20509 echo " Libraries aMule will use to build:"
20511 if test $WX_DEBUG -eq 1; then
20512 wxinfo
="$wxinfo,debug"
20515 if test $WX_SHARED -eq 1; then
20516 wxinfo
="$wxinfo,shared"
20518 wxinfo
="$wxinfo,static"
20521 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20522 echo " crypto++ ${CRYPTO_PP_VERSION_STRING} (${CRYPTO_PP_STYLE})"
20523 if test x
${WEB:-no} != xno
; then
20524 if test $regex_found = no
; then
20525 regex_found
="Not detected"
20527 if test x
$REGEX_LIB = x
; then
20530 regex_found
="standalone (in $REGEX_LIB)"
20535 echo " regex $regex_found"
20537 if test x
$LIBPNG_VERSION != xnot_needed
; then
20538 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20540 if test x
$GDLIB_VERSION != xnot_needed
; then
20541 echo " libgd ${GDLIB_VERSION:-Not detected}"
20543 echo " zlib ${ZLIB_VERSION:-Not detected}"
20544 if test x
$WEB = xdisabled
; then
20547 echo "WARNING! amuleweb has been disabled because configure could not find"
20548 echo "a POSIX compliant regex library."
20551 if test x
"$LIBPNG_VERSION" = x
""; then
20554 echo " WARNING! libpng >= 1.2.0 not found."
20555 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."