2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='amule'
272 PACKAGE_VERSION
='SVN'
273 PACKAGE_STRING
='aMule SVN'
274 PACKAGE_BUGREPORT
='admin@amule.org'
276 ac_unique_file
="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CXX_set
=${CXX+set}
756 ac_env_CXX_value
=$CXX
757 ac_cv_env_CXX_set
=${CXX+set}
758 ac_cv_env_CXX_value
=$CXX
759 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value
=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CXXCPP_set
=${CXXCPP+set}
772 ac_env_CXXCPP_value
=$CXXCPP
773 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value
=$CXXCPP
775 ac_env_CC_set
=${CC+set}
777 ac_cv_env_CC_set
=${CC+set}
778 ac_cv_env_CC_value
=$CC
779 ac_env_CFLAGS_set
=${CFLAGS+set}
780 ac_env_CFLAGS_value
=$CFLAGS
781 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value
=$CFLAGS
783 ac_env_CPP_set
=${CPP+set}
784 ac_env_CPP_value
=$CPP
785 ac_cv_env_CPP_set
=${CPP+set}
786 ac_cv_env_CPP_value
=$CPP
787 ac_env_RC_set
=${RC+set}
789 ac_cv_env_RC_set
=${RC+set}
790 ac_cv_env_RC_value
=$RC
791 ac_env_RCFLAGS_set
=${RCFLAGS+set}
792 ac_env_RCFLAGS_value
=$RCFLAGS
793 ac_cv_env_RCFLAGS_set
=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value
=$RCFLAGS
795 ac_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value
=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value
=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
866 --x-includes=DIR X include files are
in DIR
867 --x-libraries=DIR X library files are
in DIR
870 --build=BUILD configure
for building on BUILD
[guessed
]
871 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive
) echo "Configuration of aMule SVN:";;
882 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
883 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing
) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule
command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI
(EXPERIMENTAL
)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don
't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-optimize enable code optimization
906 --enable-profile enable code profiling
907 --enable-static produce a statically linked executable
908 --enable-ccache enable ccache support for fast recompilation
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --without-gnu-malloc Don't assume that we use GNU libc compatible
914 malloc
/realloc when cross-compiling
915 --with-zlib=PREFIX use zlib
in PREFIX
916 --with-gdlib-prefix=PREFIX
917 prefix where gdlib is installed
(optional
)
918 --with-gdlib-config=CONFIG
919 gdlib-config
script to use
(optional
)
920 --with-libpng-prefix=PREFIX
921 prefix where libpng is installed
(optional
)
922 --with-libpng-config=CONFIG
923 libpng-config
script to use
(optional
)
924 --with-geoip-headers=DIR
925 GeoIP include files location
926 --with-geoip-lib=DIR GeoIP library location
927 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
929 --with-wx-config=CONFIG wx-config
script to use
(optional
)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed
(optional
)
933 --with-toolkit Build against a specific wxWidgets toolkit
(default
935 --with-wxshared Force building against a shared build of wxWidgets
,
936 even
if --disable-shared is given
(default is auto
)
937 --with-wxdebug Force building against a debug build of wxWidgets
,
938 even
if --disable-debug is given
(default is auto
)
939 --with-wxversion Build against a specific version of wxWidgets
941 --with-libupnp-prefix=PREFIX
942 UPnP library location
943 --with-crypto-prefix=PREFIX
944 prefix where crypto
++ is installed
945 --with-x use the X Window System
946 --with-language=<langs
> Specify a comma-separated list of languages you want
947 to have installed. See po
/LINGUAS
for available
949 --with-gnu-ld assume the C compiler uses GNU ld default
=no
950 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
951 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search
for libintl
in includedir and libdir
955 --with-denoise-level=<level
>
956 Specifies denoising level
(0-4):
958 4 - Suppress all normal output
959 (for more information see
960 src
/utils
/scripts
/denoiser.rules
)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables
:
966 CXX C
++ compiler
command
967 CXXFLAGS C
++ compiler flags
968 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
969 nonstandard directory
<lib dir
>
970 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
971 headers
in a nonstandard directory
<include dir
>
972 CXXCPP C
++ preprocessor
973 CC C compiler
command
974 CFLAGS C compiler flags
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by
`configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
999 ac_dir_suffix= ac_top_builddir=
1003 .) # No --srcdir option. We are building in place.
1005 if test -z "$ac_top_builddir"; then
1008 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1018 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1019 # the directories may not exist.
1021 .) ac_abs_builddir="$ac_dir";;
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1068 $ac_configure --help
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1105 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1106 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1107 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1108 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1109 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1111 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1112 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1114 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1115 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1116 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1117 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1118 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1119 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1120 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1153 ac_must_keep_next=false
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1182 -* ) ac_must_keep_next=true ;;
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close
' the trap.
1200 trap 'exit_status
=$?
1201 # Save into config.log some information that might help in debugging.
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1211 # The following way of writing the cache mishandles newlines in values,
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1234 for ac_var
in $ac_subst_vars
1236 eval ac_val
=$
`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1241 if test -n "$ac_subst_files"; then
1248 for ac_var
in $ac_subst_files
1250 eval ac_val
=$
`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1256 if test -s confdefs.h
; then
1263 sed "/^$/d" confdefs.h |
sort
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1270 rm -f core
*.core
&&
1271 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's
/^
/|
/' "$ac_site_file" >&5
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1346 # Check that the precious variables saved in the cache have kept the same
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1359 ac_cache_corrupted=: ;;
1361 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1368 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1393 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1400 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if test -f $ac_dir/install-sh; then
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1436 elif test -f $ac_dir/install.sh; then
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1440 elif test -f $ac_dir/shtool; then
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 # Account for people who put trailing slashes in PATH elements.
1481 .
/ | .
// |
/cC
/* | \
1482 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1483 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1489 for ac_prog
in ginstall scoinst
install; do
1490 for ac_exec_ext
in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1501 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL
=$ac_cv_path_install
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL
=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1538 echo timestamp
> conftest.
file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1545 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1548 set X
`ls -t $srcdir/configure conftest.file`
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.
file
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE
&&
1580 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE
&&
1583 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF
>conftest.
sed
1587 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1589 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir
=`cd $ac_aux_dir && pwd`
1595 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run
="$MISSING --run "
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p
='mkdir -p --'
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1626 for d
in .
/-p .
/--version;
1628 test -d $d && rmdir $d
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p
='$(mkinstalldirs)'
1634 mkdir_p
='$(install_sh) -d'
1638 for ac_prog
in gawk mawk nawk
awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy
$ac_prog; ac_word
=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir
=.
1655 for ac_exec_ext
in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK
="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 cat >conftest.
make <<\_ACEOF
1686 @
echo 'ac_maketemp="$(MAKE)"'
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_
${ac_make}_set
=yes
1693 eval ac_cv_prog_make_
${ac_make}_set
=no
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE
="MAKE=${MAKE-make}"
1707 rm -rf .tst
2>/dev
/null
1708 mkdir .tst
2>/dev
/null
1709 if test -d .tst
; then
1714 rmdir .tst
2>/dev
/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status
; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1727 CYGPATH_W
='cygpath -w'
1734 # Define the identity of the package.
1739 cat >>confdefs.h
<<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1744 cat >>confdefs.h
<<_ACEOF
1745 #define VERSION "$VERSION"
1748 # Some tools Automake needs.
1750 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no
; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 STRIP
=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP
="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1837 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1848 STRIP
="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1860 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1868 ac_config_headers
="$ac_config_headers config.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval
="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE
=$enableval
1877 USE_MAINTAINER_MODE
=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE
=
1885 MAINTAINER_MODE_FALSE
='#'
1887 MAINTAINER_MODE_TRUE
='#'
1888 MAINTAINER_MODE_FALSE
=
1891 MAINT
=$MAINTAINER_MODE_TRUE
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 ac_cv_build_alias
=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias
=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1922 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 ac_cv_host_alias
=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias
=$ac_cv_build_alias
1935 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1944 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 case "${host_os}" in
1953 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1954 MULELDFLAGS
="-bind_at_load"
1955 touch src
/Scanner.cpp
1959 LIBS
="$LIBS -L/usr/local/lib"
1960 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1961 MULECPPFLAGS
="-D__OPENBSD__"
1963 *cygwin
* |
*mingw32
*)
1965 MULECPPFLAGS
="-DNOMINMAX"
1969 RESOLV_LIB
="-lresolv -lnsl"
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1983 MULECPPFLAGS
="-D__IRIX__"
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32
; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS
="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2003 MULELDFLAGS
="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS
="$CFLAGS"
2016 mule_backup_CXXFLAGS
="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2019 ac_cpp
='$CXXCPP $CPPFLAGS'
2020 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir
=.
2041 for ac_exec_ext
in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2064 if test -z "$CXX"; then
2066 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy
$ac_prog; ac_word
=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir
=.
2083 for ac_exec_ext
in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2105 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler
=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 ac_clean_files_save
=$ac_clean_files
2147 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 # b.out is created by i960 compilers.
2167 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2169 test -f "$ac_file" ||
continue
2171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2174 # This is the source file.
2177 # We found the default executable, but exeext='' is most
2181 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.
$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext
=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try
='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2221 if test "$cross_compiling" = maybe
; then
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2238 ac_clean_files
=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 for ac_file
in conftest.exe conftest conftest.
*; do
2258 test -f "$ac_file" ||
continue
2260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2261 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest
$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.
$ac_ext
2280 EXEEXT
=$ac_cv_exeext
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.
$ac_ext <<_ACEOF
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2311 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.
$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT
=$ac_cv_objext
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 cat >conftest.
$ac_ext <<_ACEOF
2340 cat confdefs.h
>>conftest.
$ac_ext
2341 cat >>conftest.
$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2355 rm -f conftest.
$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1
>conftest.err
2361 cat conftest.err
>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try
='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS
=$CXXFLAGS
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.
$ac_ext <<_ACEOF
2402 cat confdefs.h
>>conftest.
$ac_ext
2403 cat >>conftest.
$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.
$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1
>conftest.err
2420 cat conftest.err
>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try
='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try
='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g
=yes
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.
$ac_ext >&5
2443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS
=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2456 if test "$GXX" = yes; then
2462 for ac_declaration
in \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2470 cat >conftest.
$ac_ext <<_ACEOF
2473 cat confdefs.h
>>conftest.
$ac_ext
2474 cat >>conftest.
$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2486 rm -f conftest.
$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1
>conftest.err
2492 cat conftest.err
>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try
='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try
='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.
$ac_ext >&5
2515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2516 cat >conftest.
$ac_ext <<_ACEOF
2519 cat confdefs.h
>>conftest.
$ac_ext
2520 cat >>conftest.
$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.
$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1
>conftest.err
2537 cat conftest.err
>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try
='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try
='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 DEPDIR
="${am__leading_dot}deps"
2575 ac_config_commands
="$ac_config_commands depfiles"
2578 am_make
=${MAKE-make}
2579 cat > confinc
<< 'END'
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include
=.include
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval
="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno
; then
2623 am_depcomp
="$ac_aux_dir/depcomp"
2628 if test "x$enable_dependency_tracking" != xno; then
2639 depcc
="$CXX" am_compiler_list
=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2665 am_cv_CXX_dependencies_compiler_type
=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode
in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2678 for i
in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub
/conftst
$i.h
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes
; then
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode
=$depmode \
2702 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2703 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2704 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2705 >/dev
/null
2>conftest.err
&&
2706 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2707 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2708 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type
=$depmode
2727 am_cv_CXX_dependencies_compiler_type
=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2740 am__fastdepCXX_TRUE
=
2741 am__fastdepCXX_FALSE
='#'
2743 am__fastdepCXX_TRUE
='#'
2744 am__fastdepCXX_FALSE
=
2749 ac_cpp
='$CXXCPP $CPPFLAGS'
2750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP
in "$CXX -E" "/lib/cpp"
2763 for ac_cxx_preproc_warn_flag
in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.
$ac_ext <<_ACEOF
2774 cat confdefs.h
>>conftest.
$ac_ext
2775 cat >>conftest.
$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2778 # include <limits.h>
2780 # include <assert.h>
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev
/null
; then
2792 if test -s conftest.err
; then
2793 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2801 if test -z "$ac_cpp_err"; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2807 # Broken: fails on valid input.
2810 rm -f conftest.err conftest.
$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.
$ac_ext <<_ACEOF
2817 cat confdefs.h
>>conftest.
$ac_ext
2818 cat >>conftest.
$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1
>conftest.err
2827 cat conftest.err
>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev
/null
; then
2830 if test -s conftest.err
; then
2831 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.
$ac_ext >&5
2846 # Passes both tests.
2850 rm -f conftest.err conftest.
$ac_ext
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.
$ac_ext
2855 if $ac_preproc_ok; then
2860 ac_cv_prog_CXXCPP
=$CXXCPP
2863 CXXCPP
=$ac_cv_prog_CXXCPP
2865 ac_cv_prog_CXXCPP
=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2870 for ac_cxx_preproc_warn_flag
in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2885 # include <limits.h>
2887 # include <assert.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2914 # Broken: fails on valid input.
2917 rm -f conftest.err conftest.
$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev
/null
; then
2937 if test -s conftest.err
; then
2938 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Passes both tests.
2957 rm -f conftest.err conftest.
$ac_ext
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.
$ac_ext
2962 if $ac_preproc_ok; then
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2973 ac_cpp
='$CPP $CPPFLAGS'
2974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2979 ac_cpp
='$CPP $CPPFLAGS'
2980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC
="$CC" # Let the user override the test.
2994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir
=.
2999 for ac_exec_ext
in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc
; ac_word
=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 for ac_exec_ext
in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC
="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC
="$CC" # Let the user override the test.
3074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir
=.
3079 for ac_exec_ext
in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc
; ac_word
=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC
="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc
; ac_word
=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected
=yes
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy
$ac_cv_prog_CC
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3182 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC
="$CC" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3239 if test -z "$CC"; then
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy
$ac_prog; ac_word
=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC
="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler
=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 cat >conftest.
$ac_ext <<_ACEOF
3321 cat confdefs.h
>>conftest.
$ac_ext
3322 cat >>conftest.
$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3366 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS
=${CFLAGS+set}
3373 ac_save_CFLAGS
=$CFLAGS
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try
='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.
$ac_ext >&5
3424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS
=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3437 if test "$GCC" = yes; then
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_prog_cc_stdc
=no
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3474 s = g (p, va_arg (v,int));
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC
="$ac_save_CC $ac_arg"
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc
=$ac_arg
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3541 rm -f conftest.err conftest.
$ac_objext
3543 rm -f conftest.
$ac_ext conftest.
$ac_objext
3548 case "x$ac_cv_prog_cc_stdc" in
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.
$ac_ext <<_ACEOF
3567 rm -f conftest.
$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1
>conftest.err
3573 cat conftest.err
>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try
='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try
='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration
in \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3597 cat >conftest.
$ac_ext <<_ACEOF
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3613 rm -f conftest.
$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try
='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try
='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1
>conftest.err
3664 cat conftest.err
>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try
='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try
='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.
$ac_ext >&5
3700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 ac_cpp
='$CPP $CPPFLAGS'
3703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3707 depcc
="$CC" am_compiler_list
=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3733 am_cv_CC_dependencies_compiler_type
=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode
in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3746 for i
in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub
/conftst
$i.h
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes
; then
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode
=$depmode \
3770 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3771 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3772 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3773 >/dev
/null
2>conftest.err
&&
3774 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3775 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3776 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type
=$depmode
3795 am_cv_CC_dependencies_compiler_type
=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3809 am__fastdepCC_FALSE
='#'
3811 am__fastdepCC_TRUE
='#'
3812 am__fastdepCC_FALSE
=
3817 ac_cpp
='$CPP $CPPFLAGS'
3818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # Double quotes because CPP needs to be expanded
3832 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3835 for ac_c_preproc_warn_flag
in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev
/null
; then
3864 if test -s conftest.err
; then
3865 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.
$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3942 for ac_c_preproc_warn_flag
in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.
$ac_ext <<_ACEOF
3953 cat confdefs.h
>>conftest.
$ac_ext
3954 cat >>conftest.
$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3957 # include <limits.h>
3959 # include <assert.h>
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1
>conftest.err
3968 cat conftest.err
>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev
/null
; then
3971 if test -s conftest.err
; then
3972 ac_cpp_err
=$ac_c_preproc_warn_flag
3973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3980 if test -z "$ac_cpp_err"; then
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.
$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1
>conftest.err
4006 cat conftest.err
>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev
/null
; then
4009 if test -s conftest.err
; then
4010 ac_cpp_err
=$ac_c_preproc_warn_flag
4011 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.
$ac_ext >&5
4025 # Passes both tests.
4029 rm -f conftest.err conftest.
$ac_ext
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.
$ac_ext
4034 if $ac_preproc_ok; then
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cpp
='$CPP $CPPFLAGS'
4046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4052 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross
=$cross_compiling
4061 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4062 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 BUILD_CC
=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC
=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir
=.
4119 for ac_exec_ext
in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC
=$ac_ct_BUILD_CC
4141 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 BUILD_CC
=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC
=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc
; ac_word
=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC
=$ac_ct_BUILD_CC
4221 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc
; ac_word
=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected
=yes
4248 ac_cv_prog_BUILD_CC
="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy
$ac_cv_prog_BUILD_CC
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4264 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC
=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 BUILD_CC
=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC
=$BUILD_CC
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy
$ac_prog; ac_word
=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4363 BUILD_CC
=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler
=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4385 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.
$ac_ext <<_ACEOF
4398 cat confdefs.h
>>conftest.
$ac_ext
4399 cat >>conftest.
$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4410 ac_clean_files_save
=$ac_clean_files
4411 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4430 # b.out is created by i960 compilers.
4431 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4433 test -f "$ac_file" ||
continue
4435 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4438 # This is the source file.
4441 # We found the default executable, but exeext='' is most
4445 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext
=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try
='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4485 if test "$cross_compiling" = maybe
; then
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4502 ac_clean_files
=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 for ac_file
in conftest.exe conftest conftest.
*; do
4522 test -f "$ac_file" ||
continue
4524 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4525 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest
$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.
$ac_ext
4544 BUILD_EXEEXT
=$ac_cv_build_exeext
4545 ac_build_exeext
=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling
=$saved_cross
4552 ac_cpp
='$CPP $CPPFLAGS'
4553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4558 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4561 CFLAGS
="$mule_backup_CFLAGS"
4562 CXXFLAGS
="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog
in gawk mawk nawk
awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy
$ac_prog; ac_word
=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK
="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4610 then ac_cv_prog_egrep
='grep -E'
4611 else ac_cv_prog_egrep
='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP
=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.
make <<\_ACEOF
4627 @
echo 'ac_maketemp="$(MAKE)"'
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_
${ac_make}_set
=yes
4634 eval ac_cv_prog_make_
${ac_make}_set
=no
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE
="MAKE=${MAKE-make}"
4649 for ac_prog
in flex
lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy
$ac_prog; ac_word
=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX
="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4688 test -n "$LEX" || LEX
=":"
4690 if test -z "$LEXLIB"
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_check_lib_save_LIBS
=$LIBS
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4721 rm -f conftest.
$ac_objext conftest
$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1
>conftest.err
4727 cat conftest.err
>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try
='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try
='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap
=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4748 ac_cv_lib_fl_yywrap
=no
4750 rm -f conftest.err conftest.
$ac_objext \
4751 conftest
$ac_exeext conftest.
$ac_ext
4752 LIBS
=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_check_lib_save_LIBS
=$LIBS
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4788 rm -f conftest.
$ac_objext conftest
$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1
>conftest.err
4794 cat conftest.err
>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try
='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try
='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap
=yes
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.
$ac_ext >&5
4815 ac_cv_lib_l_yywrap
=no
4817 rm -f conftest.err conftest.
$ac_objext \
4818 conftest
$ac_exeext conftest.
$ac_ext
4819 LIBS
=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l
<<_ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l
) 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c
; then
4849 ac_cv_prog_lex_root
=lex.yy
4850 elif test -f lexyy.c
; then
4851 ac_cv_prog_lex_root
=lexyy
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4861 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer
=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4874 LIBS
="$LIBS $LEXLIB"
4875 cat >conftest.
$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4878 rm -f conftest.
$ac_objext conftest
$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1
>conftest.err
4884 cat conftest.err
>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try
='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try
='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer
=yes
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f conftest.err conftest.
$ac_objext \
4907 conftest
$ac_exeext conftest.
$ac_ext
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h
<<\_ACEOF
4917 #define YYTEXT_POINTER 1
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir
=.
4947 # Account for people who put trailing slashes in PATH elements.
4949 .
/ | .
// |
/cC
/* | \
4950 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4951 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4957 for ac_prog
in ginstall scoinst
install; do
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL
=$ac_cv_path_install
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL
=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir
=.
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB
=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib
; ac_word
=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5068 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB
=$ac_ct_RANLIB
5079 RANLIB
="$ac_cv_prog_RANLIB"
5082 for ac_prog
in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy
$ac_prog; ac_word
=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir
=.
5099 for ac_exec_ext
in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC
="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 YACC
=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5121 test -n "$YACC" || YACC
="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 RANLIB
=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB
=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib
; ac_word
=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB
=$ac_ct_RANLIB
5200 RANLIB
="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 STRIP
=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip
; ac_word
=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP
="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5279 STRIP
="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR
="$AR" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy
ar; ac_word
=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR
="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD
="$LD" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld
; ac_word
=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD
="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval
="$enable_monolithic"
5444 MONOLITHIC
=$enableval
5449 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5450 if test "${enable_amule_daemon+set}" = set; then
5451 enableval
="$enable_amule_daemon"
5452 AMULE_DAEMON
=$enableval
5457 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5458 if test "${enable_amulecmd+set}" = set; then
5459 enableval
="$enable_amulecmd"
5465 # Check whether --enable-webserver or --disable-webserver was given.
5466 if test "${enable_webserver+set}" = set; then
5467 enableval
="$enable_webserver"
5473 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5474 if test "${enable_amule_gui+set}" = set; then
5475 enableval
="$enable_amule_gui"
5476 AMULE_GUI
=$enableval
5481 # Check whether --enable-cas or --disable-cas was given.
5482 if test "${enable_cas+set}" = set; then
5483 enableval
="$enable_cas"
5489 # Check whether --enable-wxcas or --disable-wxcas was given.
5490 if test "${enable_wxcas+set}" = set; then
5491 enableval
="$enable_wxcas"
5497 # Check whether --enable-ed2k or --disable-ed2k was given.
5498 if test "${enable_ed2k+set}" = set; then
5499 enableval
="$enable_ed2k"
5505 # Check whether --enable-alc or --disable-alc was given.
5506 if test "${enable_alc+set}" = set; then
5507 enableval
="$enable_alc"
5513 # Check whether --enable-alcc or --disable-alcc was given.
5514 if test "${enable_alcc+set}" = set; then
5515 enableval
="$enable_alcc"
5521 # Check whether --enable-monolithic or --disable-monolithic was given.
5522 if test "${enable_monolithic+set}" = set; then
5523 enableval
="$enable_monolithic"
5524 MONOLITHIC
=$enableval
5529 # Check whether --enable-upnp or --disable-upnp was given.
5530 if test "${enable_upnp+set}" = set; then
5531 enableval
="$enable_upnp"
5532 ENABLE_UPNP
=$enableval
5537 # Check whether --enable-xas or --disable-xas was given.
5538 if test "${enable_xas+set}" = set; then
5539 enableval
="$enable_xas"
5545 # Default is yes, because they're most likely compatible.
5546 # However, this is only used when cross-compiling.
5548 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5549 if test "${with_gnu_malloc+set}" = set; then
5550 withval
="$with_gnu_malloc"
5557 # Checking for libs before all other stuff to break
5558 # configure as soon as possible in case of a missing one
5559 # to avoid losing too much time
5564 # Check whether --with-zlib or --without-zlib was given.
5565 if test "${with_zlib+set}" = set; then
5566 withval
="$with_zlib"
5570 case "${with_zlib:-yes}" in
5572 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5573 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5574 { (exit 1); exit 1; }; }
5579 zlib_prefix
="$with_zlib"
5582 mule_backup_CPPFLAGS
="$CPPFLAGS"
5583 mule_backup_LDFLAGS
="$LDFLAGS"
5584 mule_backup_LIBS
="$LIBS"
5585 if test -n "$zlib_prefix"; then
5587 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5588 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5589 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5590 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5600 LIBS
="$ZLIB_LIBS $LIBS"
5602 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5603 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5604 if test "$cross_compiling" = yes; then
5608 cat >conftest.
$ac_ext <<_ACEOF
5612 cat confdefs.h
>>conftest.
$ac_ext
5613 cat >>conftest.
$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5623 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5631 rm -f conftest.
$ac_objext conftest
$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1
>conftest.err
5637 cat conftest.err
>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try
='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try
='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5654 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5655 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5656 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5657 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5658 if test "$cross_zver_max" -gt "1"; then
5660 elif test "$cross_zver_max" -eq "1"; then
5662 if test "$cross_zver_mid" -gt "1"; then
5664 elif test "$cross_zver_mid" -eq "1"; then
5665 if test "$cross_zver_min" -ge "4"; then
5674 if test ${result:-no} = yes; then
5675 z_version
=" (version $ZLIB_VERSION)"
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.
$ac_ext >&5
5684 rm -f conftest.err conftest.
$ac_objext \
5685 conftest
$ac_exeext conftest.
$ac_ext
5686 echo "$as_me:$LINENO: result: $result$z_version" >&5
5687 echo "${ECHO_T}$result$z_version" >&6
5690 cat >conftest.
$ac_ext <<_ACEOF
5694 cat confdefs.h
>>conftest.
$ac_ext
5695 cat >>conftest.
$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5704 char *zver = zlibVersion();
5705 FILE *f=fopen("conftestval", "w");
5712 zver[4] >= '4'))) ? "yes" : "no");
5714 f=fopen("conftestver", "w");
5716 fprintf(f, "%s", ZLIB_VERSION);
5725 rm -f conftest
$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5737 if test -f conftestval
; then
5738 result
=`cat conftestval`
5743 if test ${result:-no} = yes; then
5745 if test -f conftestver
; then
5747 ZLIB_VERSION
=`cat conftestver`
5748 z_version
=" (version $ZLIB_VERSION)"
5757 echo "$as_me:$LINENO: result: $result$z_version" >&5
5758 echo "${ECHO_T}$result$z_version" >&6
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.
$ac_ext >&5
5768 echo "$as_me:$LINENO: result: $result" >&5
5769 echo "${ECHO_T}$result" >&6
5772 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5775 CPPFLAGS
="$mule_backup_CPPFLAGS"
5776 LDFLAGS
="$mule_backup_LDFLAGS"
5777 LIBS
="$mule_backup_LIBS"
5779 if test ${result:-no} = no
; then
5784 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5785 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5786 { (exit 1); exit 1; }; }
5793 if test x
$CAS = xyes
; then
5797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5799 if test "${ac_cv_header_stdc+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 cat >conftest.
$ac_ext <<_ACEOF
5805 cat confdefs.h
>>conftest.
$ac_ext
5806 cat >>conftest.
$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try
='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try
='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_header_stdc
=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 ac_cv_header_stdc
=no
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 if test $ac_cv_header_stdc = yes; then
5853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5854 cat >conftest.
$ac_ext <<_ACEOF
5857 cat confdefs.h
>>conftest.
$ac_ext
5858 cat >>conftest.
$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864 $EGREP "memchr" >/dev
/null
2>&1; then
5867 ac_cv_header_stdc
=no
5873 if test $ac_cv_header_stdc = yes; then
5874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "free" >/dev
/null
2>&1; then
5888 ac_cv_header_stdc
=no
5894 if test $ac_cv_header_stdc = yes; then
5895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896 if test "$cross_compiling" = yes; then
5899 cat >conftest.
$ac_ext <<_ACEOF
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5929 rm -f conftest
$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5942 echo "$as_me: program exited with status $ac_status" >&5
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5947 ac_cv_header_stdc
=no
5949 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5955 if test $ac_cv_header_stdc = yes; then
5957 cat >>confdefs.h
<<\_ACEOF
5958 #define STDC_HEADERS 1
5963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5973 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5974 inttypes.h stdint.h unistd.h
5976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5990 #include <$ac_header>
5992 rm -f conftest.
$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1
>conftest.err
5998 cat conftest.err
>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try
='test -z "$ac_c_werror_flag"
6002 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try
='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 eval "$as_ac_Header=yes"
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6019 eval "$as_ac_Header=no"
6021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026 cat >>confdefs.h
<<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6038 if test "${with_gdlib_prefix+set}" = set; then
6039 withval
="$with_gdlib_prefix"
6043 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6044 if test "${with_gdlib_config+set}" = set; then
6045 withval
="$with_gdlib_config"
6051 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6052 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6053 GDLIB_CONFIG_NAME
=gdlib-config
6056 if test -n "$with_gdlib_config"; then
6057 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6061 # deal with optional prefix
6062 if test -n "$with_gdlib_prefix"; then
6063 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6067 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6068 if test -x "$GDLIB_CONFIG_NAME"; then
6070 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6071 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6072 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6073 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6074 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6077 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6078 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6079 echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 case $GDLIB_CONFIG_PATH in
6086 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6090 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6091 for as_dir
in $as_dummy
6094 test -z "$as_dir" && as_dir
=.
6095 for ac_exec_ext
in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6108 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6110 if test -n "$GDLIB_CONFIG_PATH"; then
6111 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6112 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6121 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6123 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6124 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6125 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6127 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6128 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6129 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6130 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6133 if test $gdlib_config_major_version -gt 2; then
6135 elif test $gdlib_config_major_version -eq 2; then
6137 if test $gdlib_config_minor_version -gt 0; then
6139 elif test $gdlib_config_minor_version -eq 0; then
6140 if test $gdlib_config_micro_version -ge 0; then
6150 if test -z "$gdlib_ver_ok"; then
6152 if test -z "$GDLIB_VERSION"; then
6153 echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6157 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6158 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6166 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6167 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6168 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6169 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6170 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6171 mule_backup_CFLAGS
="$CFLAGS"
6172 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6173 if test "${ac_cv_header_gd_h+set}" = set; then
6174 echo "$as_me:$LINENO: checking for gd.h" >&5
6175 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6176 if test "${ac_cv_header_gd_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6182 # Is the header compilable?
6183 echo "$as_me:$LINENO: checking gd.h usability" >&5
6184 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try
='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try
='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_header_compiler
=yes
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6221 ac_header_compiler
=no
6223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225 echo "${ECHO_T}$ac_header_compiler" >&6
6227 # Is the header present?
6228 echo "$as_me:$LINENO: checking gd.h presence" >&5
6229 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6233 cat confdefs.h
>>conftest.
$ac_ext
6234 cat >>conftest.
$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1
>conftest.err
6243 cat conftest.err
>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev
/null
; then
6246 if test -s conftest.err
; then
6247 ac_cpp_err
=$ac_c_preproc_warn_flag
6248 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6255 if test -z "$ac_cpp_err"; then
6256 ac_header_preproc
=yes
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.
$ac_ext >&5
6261 ac_header_preproc
=no
6263 rm -f conftest.err conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc
=yes
6277 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6291 ## ------------------------------ ##
6292 ## Report this to admin@amule.org ##
6293 ## ------------------------------ ##
6296 sed "s/^/$as_me: WARNING: /" >&2
6299 echo "$as_me:$LINENO: checking for gd.h" >&5
6300 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6301 if test "${ac_cv_header_gd_h+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_header_gd_h
=$ac_header_preproc
6306 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6307 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6310 if test $ac_cv_header_gd_h = yes; then
6317 CFLAGS
="$mule_backup_CFLAGS"
6325 if test -n "$GDLIB_VERSION"; then
6328 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6337 if test -z "$CAS_DEFS"; then
6338 { echo "$as_me:$LINENO: WARNING:
6339 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6340 Please check that gdlib-config is in your default path, check out
6341 LD_LIBRARY_PATH or equivalent variable.
6342 Or this might also be that your gdlib-config has other name.
6343 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6344 (replace /usr/bin/gdlib-config with a valid path to your
6346 If you use compiled packages check if you have devel pack installed.
6347 To download the latest version check http://www.boutell.com/gd for
6349 echo "$as_me: WARNING:
6350 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd for
6361 _mule_has_warnings
=yes
6367 GDLIB_VERSION
="not_needed"
6372 if test x
$WEB = xyes
; then
6375 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6376 if test "${with_libpng_prefix+set}" = set; then
6377 withval
="$with_libpng_prefix"
6381 # Check whether --with-libpng-config or --without-libpng-config was given.
6382 if test "${with_libpng_config+set}" = set; then
6383 withval
="$with_libpng_config"
6389 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6390 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6391 LIBPNG_CONFIG_NAME
=libpng-config
6394 if test -n "$with_libpng_config"; then
6395 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6399 # deal with optional prefix
6400 if test -n "$with_libpng_prefix"; then
6401 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6405 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6406 if test -x "$LIBPNG_CONFIG_NAME"; then
6408 echo "$as_me:$LINENO: checking for libpng-config" >&5
6409 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6410 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6411 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6412 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6415 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6416 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6417 echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6419 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 case $LIBPNG_CONFIG_PATH in
6424 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6428 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6429 for as_dir
in $as_dummy
6432 test -z "$as_dir" && as_dir
=.
6433 for ac_exec_ext
in '' $ac_executable_extensions; do
6434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6446 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6448 if test -n "$LIBPNG_CONFIG_PATH"; then
6449 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6450 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6452 echo "$as_me:$LINENO: result: no" >&5
6453 echo "${ECHO_T}no" >&6
6459 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6461 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6462 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6464 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6466 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6467 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6468 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6469 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6472 if test $libpng_config_major_version -gt 1; then
6474 elif test $libpng_config_major_version -eq 1; then
6476 if test $libpng_config_minor_version -gt 2; then
6478 elif test $libpng_config_minor_version -eq 2; then
6479 if test $libpng_config_micro_version -ge 0; then
6489 if test -z "$libpng_ver_ok"; then
6491 if test -z "$LIBPNG_VERSION"; then
6492 echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6496 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6497 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6505 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6506 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6507 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6508 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6509 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6517 if test -n "$LIBPNG_VERSION"; then
6518 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6521 { echo "$as_me:$LINENO: WARNING:
6522 libpng >= 1.2.0 not found.
6523 amuleweb will be compiled but file download progress bar images will
6524 NOT be generated." >&5
6525 echo "$as_me: WARNING:
6526 libpng >= 1.2.0 not found.
6527 amuleweb will be compiled but file download progress bar images will
6528 NOT be generated." >&2;}
6530 _mule_has_warnings
=yes
6540 LIBPNG_VERSION
="not_needed"
6545 # Check for perl File::Copy
6546 echo "$as_me:$LINENO: checking for File::Copy" >&5
6547 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6548 if perl
-e "require File::Copy" 2>/dev
/null
; then
6549 echo "$as_me:$LINENO: result: ok" >&5
6550 echo "${ECHO_T}ok" >&6
6552 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6553 echo "$as_me: error: File::Copy perl module is required" >&2;}
6554 { (exit 1); exit 1; }; }
6559 # Check if we need the GUI
6560 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6561 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6562 if test x
$MONOLITHIC = xyes
; then
6566 if test x
$WXCAS = xyes
; then
6570 if test x
$ALC = xyes
; then
6574 if test x
$AMULE_GUI = xyes
; then
6578 if test x
${need_gui:+set} != xset
; then
6582 echo "$as_me:$LINENO: result: $need_gui" >&5
6583 echo "${ECHO_T}$need_gui" >&6
6585 # Check if we need to install skins
6586 if test x
$MONOLITHIC = xyes
; then
6590 if test x
$AMULE_GUI = xyes
; then
6594 if test x
${INSTALL_SKINS:+set} != xset
; then
6599 # Check for GeoIP (required for IP2Country capability)
6601 # Check whether --enable-geoip or --disable-geoip was given.
6602 if test "${enable_geoip+set}" = set; then
6603 enableval
="$enable_geoip"
6604 ENABLE_IP2COUNTRY
=$enableval
6606 ENABLE_IP2COUNTRY
=no
6609 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6612 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6613 if test "${with_geoip_headers+set}" = set; then
6614 withval
="$with_geoip_headers"
6615 GEOIP_CPPFLAGS
="-I$withval"
6618 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6619 if test "${with_geoip_lib+set}" = set; then
6620 withval
="$with_geoip_lib"
6621 GEOIP_LDFLAGS
="-L$withval"
6624 mule_backup_CPPFLAGS
="$CPPFLAGS"
6625 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6626 mule_backup_LDFLAGS
="$LDFLAGS"
6627 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
6629 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6630 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6631 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6632 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6636 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6638 # Is the header compilable?
6639 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6640 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6641 cat >conftest.
$ac_ext <<_ACEOF
6644 cat confdefs.h
>>conftest.
$ac_ext
6645 cat >>conftest.
$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6650 rm -f conftest.
$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6654 grep -v '^ *+' conftest.er1
>conftest.err
6656 cat conftest.err
>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try
='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try
='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_header_compiler
=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.
$ac_ext >&5
6677 ac_header_compiler
=no
6679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 echo "${ECHO_T}$ac_header_compiler" >&6
6683 # Is the header present?
6684 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6685 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev
/null
; then
6702 if test -s conftest.err
; then
6703 ac_cpp_err
=$ac_c_preproc_warn_flag
6704 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6711 if test -z "$ac_cpp_err"; then
6712 ac_header_preproc
=yes
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.
$ac_ext >&5
6717 ac_header_preproc
=no
6719 rm -f conftest.err conftest.
$ac_ext
6720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 echo "${ECHO_T}$ac_header_preproc" >&6
6723 # So? What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6726 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6727 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6729 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6730 ac_header_preproc
=yes
6733 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6734 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6736 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6738 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6740 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6742 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6744 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6747 ## ------------------------------ ##
6748 ## Report this to admin@amule.org ##
6749 ## ------------------------------ ##
6752 sed "s/^/$as_me: WARNING: /" >&2
6755 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6756 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6757 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_header_GeoIP_h
=$ac_header_preproc
6762 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6763 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6766 if test $ac_cv_header_GeoIP_h = yes; then
6768 if test x
$SYS = xwin32
; then
6770 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6771 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6772 # Actually, we might not need any if GeoIP is linked as a .dll
6773 # - but that's even harder to check for
6774 cat >conftest.
$ac_ext <<_ACEOF
6778 cat confdefs.h
>>conftest.
$ac_ext
6779 cat >>conftest.
$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6784 I do know it's not the best approach, but at least works with MinGW stock headers.
6785 (tested with w32api-3.12)
6797 rm -f conftest.
$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1
>conftest.err
6803 cat conftest.err
>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try
='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try
='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6820 GEOIP_WINSOCK_LIB
="-lwsock32"
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.
$ac_ext >&5
6827 GEOIP_WINSOCK_LIB
="-lws2_32"
6830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6831 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6832 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6836 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6837 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6838 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 ac_check_lib_save_LIBS
=$LIBS
6842 LIBS
="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6843 cat >conftest.
$ac_ext <<_ACEOF
6846 cat confdefs.h
>>conftest.
$ac_ext
6847 cat >>conftest.
$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6865 rm -f conftest.
$ac_objext conftest
$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867 (eval $ac_link) 2>conftest.er1
6869 grep -v '^ *+' conftest.er1
>conftest.err
6871 cat conftest.err
>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try
='test -z "$ac_c_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try
='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_lib_GeoIP_GeoIP_open
=yes
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.
$ac_ext >&5
6892 ac_cv_lib_GeoIP_GeoIP_open
=no
6894 rm -f conftest.err conftest.
$ac_objext \
6895 conftest
$ac_exeext conftest.
$ac_ext
6896 LIBS
=$ac_check_lib_save_LIBS
6898 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
6899 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
6900 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
6903 cat >>confdefs.h
<<\_ACEOF
6904 #define SUPPORT_GEOIP 1
6907 GEOIP_LIBS
="-lGeoIP"
6908 if test x
$SYS = xwin32
; then
6909 GEOIP_LIBS
="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
6912 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6914 # Check whether --with-geoip-static or --without-geoip-static was given.
6915 if test "${with_geoip_static+set}" = set; then
6916 withval
="$with_geoip_static"
6918 if test "$withval" != "no" -a ${enable_static:-no} = no
; then
6920 mule_backup_LIBS
="$LIBS"
6921 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
6922 cat >conftest.
$ac_ext <<_ACEOF
6926 cat confdefs.h
>>conftest.
$ac_ext
6927 cat >>conftest.
$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6936 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
6943 rm -f conftest.
$ac_objext conftest
$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6947 grep -v '^ *+' conftest.er1
>conftest.err
6949 cat conftest.err
>&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try
='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try
='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6966 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.
$ac_ext >&5
6973 { echo "$as_me:$LINENO: WARNING:
6974 Cannot link GeoIP statically, because your linker ($LD) does not
6976 echo "$as_me: WARNING:
6977 Cannot link GeoIP statically, because your linker ($LD) does not
6980 _mule_has_warnings
=yes
6984 rm -f conftest.err conftest.
$ac_objext \
6985 conftest
$ac_exeext conftest.
$ac_ext
6986 LIBS
="$mule_backup_LIBS"
6995 ENABLE_IP2COUNTRY
=disabled
6996 { echo "$as_me:$LINENO: WARNING:
6997 GeoIP support has been disabled because the GeoIP libraries were not
6999 echo "$as_me: WARNING:
7000 GeoIP support has been disabled because the GeoIP libraries were not
7003 _mule_has_warnings
=yes
7011 ENABLE_IP2COUNTRY
=disabled
7012 { echo "$as_me:$LINENO: WARNING:
7013 GeoIP support has been disabled because the GeoIP header files were
7015 echo "$as_me: WARNING:
7016 GeoIP support has been disabled because the GeoIP header files were
7019 _mule_has_warnings
=yes
7026 CPPFLAGS
="$mule_backup_CPPFLAGS"
7027 LDFLAGS
="$mule_backup_LDFLAGS"
7036 # Check whether --with-wxdir or --without-wxdir was given.
7037 if test "${with_wxdir+set}" = set; then
7038 withval
="$with_wxdir"
7039 wx_config_name
="$withval/wx-config"
7040 wx_config_args
="--inplace"
7043 # Check whether --with-wx-config or --without-wx-config was given.
7044 if test "${with_wx_config+set}" = set; then
7045 withval
="$with_wx_config"
7046 wx_config_name
="$withval"
7049 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7050 if test "${with_wx_prefix+set}" = set; then
7051 withval
="$with_wx_prefix"
7052 wx_config_prefix
="$withval"
7057 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7058 if test "${with_wx_exec_prefix+set}" = set; then
7059 withval
="$with_wx_exec_prefix"
7060 wx_config_exec_prefix
="$withval"
7062 wx_config_exec_prefix
=""
7076 # Check whether --with-toolkit or --without-toolkit was given.
7077 if test "${with_toolkit+set}" = set; then
7078 withval
="$with_toolkit"
7084 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7085 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7086 if test "$withval" = "auto" ; then
7087 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7088 echo "${ECHO_T}will be automatically detected" >&6
7093 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7094 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7095 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7096 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7097 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7098 "$TOOLKIT" != "osx_cocoa"; then
7099 { { echo "$as_me:$LINENO: error:
7100 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7102 echo "$as_me: error:
7103 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7105 { (exit 1); exit 1; }; }
7108 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7109 echo "${ECHO_T}$TOOLKIT" >&6
7116 # Check whether --with-wxshared or --without-wxshared was given.
7117 if test "${with_wxshared+set}" = set; then
7118 withval
="$with_wxshared"
7124 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7125 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7126 if test "$withval" = "yes" ; then
7127 echo "$as_me:$LINENO: result: yes" >&5
7128 echo "${ECHO_T}yes" >&6
7131 elif test "1" = "1" -a "$withval" = "no" ; then
7132 echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7135 elif test "$withval" = "auto" ; then
7136 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7137 echo "${ECHO_T}will be automatically detected" >&6
7140 { { echo "$as_me:$LINENO: error:
7141 Unrecognized option value (allowed values: yes, auto)
7143 echo "$as_me: error:
7144 Unrecognized option value (allowed values: yes, auto)
7146 { (exit 1); exit 1; }; }
7153 # Check whether --with-wxdebug or --without-wxdebug was given.
7154 if test "${with_wxdebug+set}" = set; then
7155 withval
="$with_wxdebug"
7161 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7162 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7163 if test "$withval" = "yes" ; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165 echo "${ECHO_T}yes" >&6
7168 elif test "1" = "1" -a "$withval" = "no" ; then
7169 echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6
7172 elif test "$withval" = "auto" ; then
7173 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7174 echo "${ECHO_T}will be automatically detected" >&6
7177 { { echo "$as_me:$LINENO: error:
7178 Unrecognized option value (allowed values: yes, auto)
7180 echo "$as_me: error:
7181 Unrecognized option value (allowed values: yes, auto)
7183 { (exit 1); exit 1; }; }
7190 # Check whether --with-wxversion or --without-wxversion was given.
7191 if test "${with_wxversion+set}" = set; then
7192 withval
="$with_wxversion"
7198 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7199 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7200 if test "$withval" = "auto" ; then
7201 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7202 echo "${ECHO_T}will be automatically detected" >&6
7206 wx_requested_major_version
=`echo $withval | \
7207 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7208 wx_requested_minor_version
=`echo $withval | \
7209 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7211 if test "${#wx_requested_major_version}" != "1" -o \
7212 "${#wx_requested_minor_version}" != "1" ; then
7213 { { echo "$as_me:$LINENO: error:
7214 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7216 echo "$as_me: error:
7217 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7219 { (exit 1); exit 1; }; }
7222 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7223 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7224 echo "${ECHO_T}$WX_VERSION" >&6
7228 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7229 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7230 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7231 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7232 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7233 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7236 # Force using a static wxWidgets library if the executable is to be linked statically.
7237 if test ${enable_static:-no} = yes; then
7241 # Force using a unicode build of the library
7245 if test "$WX_SHARED" = "1" ; then
7246 WXCONFIG_FLAGS
="--static=no "
7247 elif test "$WX_SHARED" = "0" ; then
7248 WXCONFIG_FLAGS
="--static=yes "
7251 if test "$WX_DEBUG" = "1" ; then
7252 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7253 elif test "$WX_DEBUG" = "0" ; then
7254 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7257 if test "$WX_UNICODE" = "1" ; then
7258 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7259 elif test "$WX_UNICODE" = "0" ; then
7260 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7263 if test "$TOOLKIT" != "auto" ; then
7264 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7267 if test "$WX_VERSION" != "auto" ; then
7268 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7271 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7273 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7274 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7278 if test x
${WX_CONFIG_NAME+set} != xset
; then
7279 WX_CONFIG_NAME
=wx-config
7282 if test "x$wx_config_name" != x
; then
7283 WX_CONFIG_NAME
="$wx_config_name"
7286 if test x
$wx_config_exec_prefix != x
; then
7287 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7288 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7290 if test x
$wx_config_prefix != x
; then
7291 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7292 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7294 if test "$cross_compiling" = "yes"; then
7295 wx_config_args
="$wx_config_args --host=$host_alias"
7298 if test -x "$WX_CONFIG_NAME" ; then
7299 echo "$as_me:$LINENO: checking for wx-config" >&5
7300 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7301 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7302 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7303 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7305 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7306 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 case $WX_CONFIG_PATH in
7314 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7318 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7319 for as_dir
in $as_dummy
7322 test -z "$as_dir" && as_dir
=.
7323 for ac_exec_ext
in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7336 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7338 if test -n "$WX_CONFIG_PATH"; then
7339 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7340 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7342 echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6
7348 if test "$WX_CONFIG_PATH" != "no" ; then
7351 min_wx_version
=2.8.8
7352 if test -z "$WXCONFIG_FLAGS" ; then
7353 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7354 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7356 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7357 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7360 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7362 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7363 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7364 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7365 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7366 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7367 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7368 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7370 wx_requested_major_version
=`echo $min_wx_version | \
7371 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7372 wx_requested_minor_version
=`echo $min_wx_version | \
7373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7374 wx_requested_micro_version
=`echo $min_wx_version | \
7375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7379 if test "x$WX_VERSION_FULL" != x
; then
7380 if test $wx_config_major_version -gt $wx_requested_major_version; then
7383 if test $wx_config_major_version -eq $wx_requested_major_version; then
7384 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7387 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7388 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7398 if test -n "$wx_ver_ok"; then
7400 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7401 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7402 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7404 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7405 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7406 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7407 if test "x$WX_LIBS_STATIC" = "x"; then
7408 echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7411 echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7416 if test $wx_config_major_version -gt 2; then
7419 if test $wx_config_major_version -eq 2; then
7420 if test $wx_config_minor_version -gt 2; then
7423 if test $wx_config_minor_version -eq 2; then
7424 if test $wx_config_micro_version -ge 6; then
7433 if test $wx_config_major_version -gt 2; then
7436 if test $wx_config_major_version -eq 2; then
7437 if test $wx_config_minor_version -ge 7; then
7442 if test "x$wx_has_rescomp" = x
; then
7445 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7448 if test "x$wx_has_cppflags" = x
; then
7449 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7450 WX_CPPFLAGS
=$WX_CFLAGS
7451 WX_CXXFLAGS
=$WX_CFLAGS
7453 WX_CFLAGS_ONLY
=$WX_CFLAGS
7454 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7456 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7457 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7458 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7460 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7461 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7468 if test "x$WX_VERSION_FULL" = x
; then
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7472 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7473 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7483 if test ! -z "$WXCONFIG_FLAGS"; then
7486 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7487 build with the following settings:
7489 but such build is not available.
7491 To see the wxWidgets builds available on this system, please use
7492 'wx-config --list' command. To use the default build, returned by
7493 'wx-config --selected-config', use the options with their 'auto'
7499 The requested wxWidgets build couldn't be found.
7502 If you still get this error, then check that 'wx-config' is
7503 in path, the directory where wxWidgets libraries are installed
7504 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7505 or equivalent variable and wxWidgets version is 2.8.8 or above."
7507 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7508 echo "$as_me: error: $wx_error_message" >&2;}
7509 { (exit 1); exit 1; }; }
7535 WX_VERSION_MAJOR
="$wx_config_major_version"
7536 WX_VERSION_MINOR
="$wx_config_minor_version"
7540 if test "$wxWin" != 1; then
7541 { { echo "$as_me:$LINENO: error:
7542 wxWidgets must be installed on your system but wx-config
7543 script couldn't be found. Please check that wx-config is
7544 in path or specified by --with-wx-config=path flag, the
7545 directory where wxWidgets libraries are installed (returned
7546 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7547 equivalent variable and wxWidgets version is 2.8.8 or above.
7549 echo "$as_me: error:
7550 wxWidgets must be installed on your system but wx-config
7551 script couldn't be found. Please check that wx-config is
7552 in path or specified by --with-wx-config=path flag, the
7553 directory where wxWidgets libraries are installed (returned
7554 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7555 equivalent variable and wxWidgets version is 2.8.8 or above.
7557 { (exit 1); exit 1; }; }
7560 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7561 if test $WX_VERSION -lt 26 ; then
7563 { { echo "$as_me:$LINENO: error:
7564 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7565 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7566 version of wxWidgets.
7568 echo "$as_me: error:
7569 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7570 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7571 version of wxWidgets.
7573 { (exit 1); exit 1; }; }
7576 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7578 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7579 echo "[dbg] Using wx-config --selected-config"
7580 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7584 if test $WX_SHARED = "1"; then
7586 elif test $WX_SHARED = "0"; then
7588 elif test $WX_SHARED = "auto"; then
7593 if test "$UNICODE" = "auto" ; then
7595 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7596 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7598 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7600 if test "$WX_UNICODE" != "0"; then
7602 echo "$as_me:$LINENO: result: yes" >&5
7603 echo "${ECHO_T}yes" >&6
7607 echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7617 if test "$DEBUG" = "auto" ; then
7619 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7620 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7622 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7624 if test "$WX_DEBUG" != "0"; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7641 if test "$STATIC" = "auto" ; then
7643 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7644 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7646 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7648 if test "$WX_STATIC" != "0"; then
7650 echo "$as_me:$LINENO: result: yes" >&5
7651 echo "${ECHO_T}yes" >&6
7655 echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6
7665 if test "$WX_STATIC" != "0"; then
7675 if test "$TOOLKIT" = "auto" ; then
7677 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7678 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7680 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7681 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7682 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7683 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7684 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7685 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7686 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7687 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7688 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7689 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7690 WX_OSXCOCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7693 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7694 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7695 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7696 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7697 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7698 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7699 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7700 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7701 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7702 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
7703 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT
="osx_cocoa"; fi
7706 if test "$WX_PORT" = "unknown" ; then
7707 { { echo "$as_me:$LINENO: error:
7708 Cannot detect the currently installed wxWidgets port !
7709 Please check your 'wx-config --cxxflags'...
7711 echo "$as_me: error:
7712 Cannot detect the currently installed wxWidgets port !
7713 Please check your 'wx-config --cxxflags'...
7715 { (exit 1); exit 1; }; }
7718 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7719 echo "${ECHO_T}$WX_PORT" >&6
7722 if test -n "$TOOLKIT" ; then
7731 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7732 echo "[dbg] Values of all WX_* options after final detection:"
7733 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7734 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7735 echo "[dbg] WX_SHARED: $WX_SHARED"
7736 echo "[dbg] WX_VERSION: $WX_VERSION"
7737 echo "[dbg] WX_PORT: $WX_PORT"
7740 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7741 { { echo "$as_me:$LINENO: error:
7742 Cannot build shared library against a static build of wxWidgets !
7743 This error happens because the wxWidgets build which was selected
7744 has been detected as static while you asked to build $PACKAGE_NAME
7745 as shared library and this is not possible.
7746 Use the '--disable-shared' option to build $PACKAGE_NAME
7747 as static library or '--with-wxshared' to use wxWidgets as shared library.
7749 echo "$as_me: error:
7750 Cannot build shared library against a static build of wxWidgets !
7751 This error happens because the wxWidgets build which was selected
7752 has been detected as static while you asked to build $PACKAGE_NAME
7753 as shared library and this is not possible.
7754 Use the '--disable-shared' option to build $PACKAGE_NAME
7755 as static library or '--with-wxshared' to use wxWidgets as shared library.
7757 { (exit 1); exit 1; }; }
7760 if test "$DEBUG" = "auto"; then
7763 if test "$DEBUG" = "1"; then
7765 elif test "$DEBUG" = ""; then
7769 if test "$UNICODE" = "auto"; then
7772 if test "$SHARED" = "auto"; then
7775 if test "$TOOLKIT" = "auto"; then
7781 # We also need wxBase
7782 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7783 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
7784 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
7788 if test ${need_gui} = yes -a "${WX_PORT}" = base
; then
7789 { { echo "$as_me:$LINENO: error:
7790 The selected components need a wxWidgets library with GUI,
7791 but your installation is base-only. Please install a GUI
7792 enabled version of wxWidgets and then retry.
7794 echo "$as_me: error:
7795 The selected components need a wxWidgets library with GUI,
7796 but your installation is base-only. Please install a GUI
7797 enabled version of wxWidgets and then retry.
7799 { (exit 1); exit 1; }; }
7804 if test ${SYS:-unknown} = win32
; then
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7808 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7809 echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7811 if test "${ac_cv_prog_RC+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 if test -n "$RC"; then
7815 ac_cv_prog_RC
="$RC" # Let the user override the test.
7817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7821 test -z "$as_dir" && as_dir
=.
7822 for ac_exec_ext
in '' $ac_executable_extensions; do
7823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_RC
="${ac_tool_prefix}windres"
7825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 if test -n "$RC"; then
7835 echo "$as_me:$LINENO: result: $RC" >&5
7836 echo "${ECHO_T}$RC" >&6
7838 echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6
7843 if test -z "$ac_cv_prog_RC"; then
7845 # Extract the first word of "windres", so it can be a program name with args.
7846 set dummy windres
; ac_word
=$2
7847 echo "$as_me:$LINENO: checking for $ac_word" >&5
7848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7849 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 if test -n "$ac_ct_RC"; then
7853 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
7855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir
=.
7860 for ac_exec_ext
in '' $ac_executable_extensions; do
7861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_RC
="windres"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
7872 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
7873 if test -n "$ac_ct_RC"; then
7874 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7875 echo "${ECHO_T}$ac_ct_RC" >&6
7877 echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6
7886 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7893 if test "${ENABLE_UPNP:-yes}" = yes; then
7897 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7900 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7901 echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7903 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir
=.
7916 for ac_exec_ext
in '' $ac_executable_extensions; do
7917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7930 if test -n "$PKG_CONFIG"; then
7931 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7932 echo "${ECHO_T}$PKG_CONFIG" >&6
7934 echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6
7939 if test -z "$ac_cv_path_PKG_CONFIG"; then
7940 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7941 # Extract the first word of "pkg-config", so it can be a program name with args.
7942 set dummy pkg-config
; ac_word
=$2
7943 echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7945 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 case $ac_pt_PKG_CONFIG in
7950 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir
=.
7958 for ac_exec_ext
in '' $ac_executable_extensions; do
7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7972 if test -n "$ac_pt_PKG_CONFIG"; then
7973 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7974 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7976 echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7980 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7982 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7986 if test -n "$PKG_CONFIG"; then
7987 _pkg_min_version
=0.9.0
7988 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7989 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7990 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7994 echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
8002 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8003 if test "${with_libupnp_prefix+set}" = set; then
8004 withval
="$with_libupnp_prefix"
8005 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
8008 if test $cross_compiling = no
; then
8010 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8011 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8012 if test -n "$PKG_CONFIG"; then
8014 if $PKG_CONFIG libupnp
--exists; then
8016 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
8017 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
8020 resultstr
=" (version $LIBUPNP_VERSION)"
8021 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
8022 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8023 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8024 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8025 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8030 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8038 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8046 resultstr
=" (pkg-config not found)"
8050 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8051 echo "${ECHO_T}$result$resultstr" >&6
8052 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8057 libupnp_error
="cross compiling"
8062 if test ${result:-no} = yes; then
8063 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8065 ENABLE_UPNP
=disabled
8066 { echo "$as_me:$LINENO: WARNING:
8067 UPnP code has been disabled because ${libupnp_error}." >&5
8068 echo "$as_me: WARNING:
8069 UPnP code has been disabled because ${libupnp_error}." >&2;}
8071 _mule_has_warnings
=yes
8082 # Check for Crypto++
8085 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8086 if test "${with_crypto_prefix+set}" = set; then
8087 withval
="$with_crypto_prefix"
8091 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8092 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8094 cryptopp_file_with_version
="cryptlib.h"
8096 CRYPTOPP_STYLE
="unknown"
8097 CRYPTOPP_LIB_NAME
="unknown"
8098 cryptopp_includedir
="unknown"
8099 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8100 cryptopp_libdir
="unknown"
8102 if test -n "$with_crypto_prefix"; then
8104 CRYPTOPP_PREFIX
="$with_crypto_prefix"
8105 # Find the Cryptopp header in the user-provided location
8106 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8108 CRYPTOPP_STYLE
="sources"
8109 CRYPTOPP_LIB_NAME
="cryptopp"
8110 cryptopp_includedir
=
8111 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8114 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8116 CRYPTOPP_STYLE
="installed"
8117 CRYPTOPP_LIB_NAME
="cryptopp"
8118 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8119 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8120 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8122 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8124 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8125 CRYPTOPP_STYLE
="gentoo_debian"
8126 CRYPTOPP_LIB_NAME
="crypto++"
8127 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8128 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8129 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8136 for CRYPTOPP_PREFIX
in /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8137 # Find the Cryptopp header in system locations
8138 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8140 CRYPTOPP_STYLE
="sources"
8141 CRYPTOPP_LIB_NAME
="cryptopp"
8142 cryptopp_includedir
=
8143 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8147 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8149 CRYPTOPP_STYLE
="installed"
8150 CRYPTOPP_LIB_NAME
="cryptopp"
8151 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8152 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8153 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8156 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8158 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8159 CRYPTOPP_STYLE
="gentoo_debian"
8160 CRYPTOPP_LIB_NAME
="crypto++"
8161 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8162 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8163 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8173 if test $CRYPTOPP_STYLE = "unknown"; then
8174 result
=no
; resultstr
=""
8177 # Find out the crypto++ version and check against the minimum required
8178 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8179 CRYPTOPP_VERSION_STRING
=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8180 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8181 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8183 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8186 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8187 if test -n "$cryptopp_includedir"; then
8188 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8193 if test -n "$cryptopp_libdir"; then
8195 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8196 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8201 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8207 cat >>confdefs.h
<<_ACEOF
8208 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8215 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8223 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8224 echo "${ECHO_T}$result$resultstr" >&6
8226 if test ${result:-no} = yes; then
8228 # Check for CryptoPP >= 5.5
8229 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8230 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8236 { { echo "$as_me:$LINENO: error:
8237 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8238 Please try again with --with-crypto-prefix=/my_crypto_prefix
8239 (replace /my_crypto_prefix with a valid path to your crypto++
8240 installation directory)." >&5
8241 echo "$as_me: error:
8242 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8243 Please try again with --with-crypto-prefix=/my_crypto_prefix
8244 (replace /my_crypto_prefix with a valid path to your crypto++
8245 installation directory)." >&2;}
8246 { (exit 1); exit 1; }; }
8254 ac_cpp
='$CXXCPP $CPPFLAGS'
8255 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8262 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8263 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8264 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8274 #error Non-GNU C++ library found.
8279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8280 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8282 grep -v '^ *+' conftest.er1
>conftest.err
8284 cat conftest.err
>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } >/dev
/null
; then
8287 if test -s conftest.err
; then
8288 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8289 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8296 if test -z "$ac_cpp_err"; then
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.
$ac_ext >&5
8304 rm -f conftest.err conftest.
$ac_ext
8305 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8306 echo "${ECHO_T}$GLIBCXX" >&6
8309 mule_backup_CPPFLAGS
="$CPPFLAGS"
8310 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8312 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8313 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8314 cat >conftest.
$ac_ext <<_ACEOF
8318 cat confdefs.h
>>conftest.
$ac_ext
8319 cat >>conftest.
$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8323 #include <wx/filefn.h>
8324 #ifndef wxHAS_LARGE_FILES
8325 #error No LargeFile support!
8330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8331 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8333 grep -v '^ *+' conftest.er1
>conftest.err
8335 cat conftest.err
>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } >/dev
/null
; then
8338 if test -s conftest.err
; then
8339 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8340 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8347 if test -z "$ac_cpp_err"; then
8349 echo "$as_me:$LINENO: result: yes" >&5
8350 echo "${ECHO_T}yes" >&6
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.
$ac_ext >&5
8357 echo "$as_me:$LINENO: result: no" >&5
8358 echo "${ECHO_T}no" >&6
8359 { { echo "$as_me:$LINENO: error:
8360 Support for large files in wxWidgets is required by aMule.
8361 To continue you must recompile wxWidgets with support for
8362 large files enabled." >&5
8363 echo "$as_me: error:
8364 Support for large files in wxWidgets is required by aMule.
8365 To continue you must recompile wxWidgets with support for
8366 large files enabled." >&2;}
8367 { (exit 1); exit 1; }; }
8370 rm -f conftest.err conftest.
$ac_ext
8372 CPPFLAGS
="$mule_backup_CPPFLAGS"
8375 # Check if the compiler is broken, wrt. exceptions.
8377 echo "$as_me:$LINENO: checking for exception-handling" >&5
8378 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8379 if test "$cross_compiling" = yes; then
8381 echo "$as_me:$LINENO: result: undeterminable" >&5
8382 echo "${ECHO_T}undeterminable" >&6
8383 { echo "$as_me:$LINENO: WARNING:
8384 Cross-compilation detected, so exception handling cannot be tested.
8385 Note that broken exception handling in your compiler may lead to
8386 unexpected crashes." >&5
8387 echo "$as_me: WARNING:
8388 Cross-compilation detected, so exception handling cannot be tested.
8389 Note that broken exception handling in your compiler may lead to
8390 unexpected crashes." >&2;}
8392 _mule_has_warnings
=yes
8396 cat >conftest.
$ac_ext <<_ACEOF
8400 cat confdefs.h
>>conftest.
$ac_ext
8401 cat >>conftest.
$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8420 rm -f conftest
$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8432 echo "$as_me:$LINENO: result: yes" >&5
8433 echo "${ECHO_T}yes" >&6
8436 echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.
$ac_ext >&5
8442 echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6
8444 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8445 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8446 { (exit 1); exit 1; }; }
8449 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8454 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8455 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8456 cat >conftest.
$ac_ext <<_ACEOF
8460 cat confdefs.h
>>conftest.
$ac_ext
8461 cat >>conftest.
$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8471 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8472 std::type_info *ti = abi::__cxa_current_exception_type();
8479 rm -f conftest.
$ac_objext conftest
$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1
>conftest.err
8485 cat conftest.err
>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try
='test -z "$ac_cxx_werror_flag"
8489 || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try
='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8504 cat >>confdefs.h
<<\_ACEOF
8505 #define HAVE_CXXABI 1
8508 echo "$as_me:$LINENO: result: yes" >&5
8509 echo "${ECHO_T}yes" >&6
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.
$ac_ext >&5
8516 echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6
8520 rm -f conftest.err conftest.
$ac_objext \
8521 conftest
$ac_exeext conftest.
$ac_ext
8524 ac_cpp
='$CPP $CPPFLAGS'
8525 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8530 # Ok, we have all needed libs, now checking for other stuff
8531 if test "$LEX" = "flex"; then
8533 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8534 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8536 extended_flex
=`flex --help | grep header-file`
8537 if test -n "$extended_flex"; then
8538 HAVE_FLEX_EXTENDED
=yes
8540 HAVE_FLEX_EXTENDED
=no
8543 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8544 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8546 if test $HAVE_FLEX_EXTENDED = no
; then
8547 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8548 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8553 HAVE_FLEX_EXTENDED
=no
8557 # Flush standard test results for speeding cache
8558 cat >confcache
<<\_ACEOF
8559 # This file is a shell script that caches the results of configure
8560 # tests run on this system so they can be shared between configure
8561 # scripts and configure runs, see configure's option --config-cache.
8562 # It is not useful on other systems. If it contains results you don't
8563 # want to keep, you may remove or edit it.
8565 # config.status only pays attention to the cache file if you give it
8566 # the --recheck option to rerun configure.
8568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8574 # The following way of writing the cache mishandles newlines in values,
8575 # but we know of no workaround that is simple, portable, and efficient.
8576 # So, don't put newlines in cache variables' values.
8577 # Ultrix sh set writes to stderr and can't be redirected directly,
8578 # and sets the high bit in the cache file unless we assign to the vars.
8581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8583 # `set' does not quote correctly, so add quotes (double-quote
8584 # substitution turns \\\\ into \\, and sed turns \\ into \).
8587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8590 # `set' quotes correctly as required by POSIX, so do not add quotes.
8592 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8601 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8603 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8604 if test -w $cache_file; then
8605 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8606 cat confcache
>$cache_file
8608 echo "not updating unwritable cache $cache_file"
8613 # Checks for header files.
8614 echo "$as_me:$LINENO: checking for X" >&5
8615 echo $ECHO_N "checking for X... $ECHO_C" >&6
8618 # Check whether --with-x or --without-x was given.
8619 if test "${with_x+set}" = set; then
8623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8624 if test "x$with_x" = xno
; then
8625 # The user explicitly disabled X.
8628 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8629 # Both variables are already set.
8632 if test "${ac_cv_have_x+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 # One or both of the vars are not set, and there is no cached value.
8636 ac_x_includes
=no ac_x_libraries
=no
8638 if mkdir conftest.dir
; then
8640 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8641 cat >Imakefile
<<'_ACEOF'
8643 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8645 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8647 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8648 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8649 for ac_extension
in a so sl
; do
8650 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8651 test -f $ac_im_libdir/libX11.
$ac_extension; then
8652 ac_im_usrlibdir
=$ac_im_libdir; break
8655 # Screen out bogus values from the imake configuration. They are
8656 # bogus both because they are the default anyway, and because
8657 # using them would break gcc on systems where it needs fixed includes.
8658 case $ac_im_incroot in
8660 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8662 case $ac_im_usrlibdir in
8664 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8671 # Standard set of common directories for X headers.
8672 # Check X11 before X11Rn because it is often a symlink to the current release.
8684 /usr/local/X11/include
8685 /usr/local/X11R6/include
8686 /usr/local/X11R5/include
8687 /usr/local/X11R4/include
8689 /usr/local/include/X11
8690 /usr/local/include/X11R6
8691 /usr/local/include/X11R5
8692 /usr/local/include/X11R4
8696 /usr/XFree86/include/X11
8700 /usr/unsupported/include
8702 /usr/local/x11r5/include
8703 /usr/lpp/Xamples/include
8705 /usr/openwin/include
8706 /usr/openwin/share/include'
8708 if test "$ac_x_includes" = no
; then
8709 # Guess where to find include files, by looking for Intrinsic.h.
8710 # First, try using that file with no special directory specified.
8711 cat >conftest.
$ac_ext <<_ACEOF
8714 cat confdefs.h
>>conftest.
$ac_ext
8715 cat >>conftest.
$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 #include <X11/Intrinsic.h>
8719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1
>conftest.err
8724 cat conftest.err
>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } >/dev
/null
; then
8727 if test -s conftest.err
; then
8728 ac_cpp_err
=$ac_c_preproc_warn_flag
8729 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8736 if test -z "$ac_cpp_err"; then
8737 # We can compile using X headers with no special include directory.
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.
$ac_ext >&5
8743 for ac_dir
in $ac_x_header_dirs; do
8744 if test -r "$ac_dir/X11/Intrinsic.h"; then
8745 ac_x_includes
=$ac_dir
8750 rm -f conftest.err conftest.
$ac_ext
8751 fi # $ac_x_includes = no
8753 if test "$ac_x_libraries" = no
; then
8754 # Check for the libraries.
8755 # See if we find them without any special options.
8756 # Don't add to $LIBS permanently.
8759 cat >conftest.
$ac_ext <<_ACEOF
8762 cat confdefs.h
>>conftest.
$ac_ext
8763 cat >>conftest.
$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 #include <X11/Intrinsic.h>
8774 rm -f conftest.
$ac_objext conftest
$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1
>conftest.err
8780 cat conftest.err
>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try
='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try
='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8797 # We can link X programs with no special library path.
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.
$ac_ext >&5
8804 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8806 # Don't even attempt the hair of trying to link an X program!
8807 for ac_extension
in a so sl
; do
8808 if test -r $ac_dir/libXt.
$ac_extension; then
8809 ac_x_libraries
=$ac_dir
8815 rm -f conftest.err conftest.
$ac_objext \
8816 conftest
$ac_exeext conftest.
$ac_ext
8817 fi # $ac_x_libraries = no
8819 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8820 # Didn't find X anywhere. Cache the known absence of X.
8821 ac_cv_have_x
="have_x=no"
8823 # Record where we found X for the cache.
8824 ac_cv_have_x
="have_x=yes \
8825 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8830 eval "$ac_cv_have_x"
8833 if test "$have_x" != yes; then
8834 echo "$as_me:$LINENO: result: $have_x" >&5
8835 echo "${ECHO_T}$have_x" >&6
8838 # If each of the values was on the command line, it overrides each guess.
8839 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8840 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8841 # Update the cache value to reflect the command line values.
8842 ac_cv_have_x
="have_x=yes \
8843 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8844 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8845 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8848 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8849 # for constant arguments. Useless!
8850 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8851 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8852 if test "${ac_cv_working_alloca_h+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 cat >conftest.
$ac_ext <<_ACEOF
8858 cat confdefs.h
>>conftest.
$ac_ext
8859 cat >>conftest.
$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8865 char *p = (char *) alloca (2 * sizeof (int));
8870 rm -f conftest.
$ac_objext conftest
$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>conftest.er1
8874 grep -v '^ *+' conftest.er1
>conftest.err
8876 cat conftest.err
>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try
='test -z "$ac_c_werror_flag"
8880 || test ! -s conftest.err'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; } &&
8886 { ac_try
='test -s conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_working_alloca_h
=yes
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.
$ac_ext >&5
8897 ac_cv_working_alloca_h
=no
8899 rm -f conftest.err conftest.
$ac_objext \
8900 conftest
$ac_exeext conftest.
$ac_ext
8902 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8903 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8904 if test $ac_cv_working_alloca_h = yes; then
8906 cat >>confdefs.h
<<\_ACEOF
8907 #define HAVE_ALLOCA_H 1
8912 echo "$as_me:$LINENO: checking for alloca" >&5
8913 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8914 if test "${ac_cv_func_alloca_works+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 cat >conftest.
$ac_ext <<_ACEOF
8920 cat confdefs.h
>>conftest.
$ac_ext
8921 cat >>conftest.
$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8924 # define alloca __builtin_alloca
8927 # include <malloc.h>
8928 # define alloca _alloca
8931 # include <alloca.h>
8936 # ifndef alloca /* predefined by HP cc +Olibcalls */
8947 char *p = (char *) alloca (1);
8952 rm -f conftest.
$ac_objext conftest
$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>conftest.er1
8956 grep -v '^ *+' conftest.er1
>conftest.err
8958 cat conftest.err
>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try
='test -z "$ac_c_werror_flag"
8962 || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
8968 { ac_try
='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_func_alloca_works
=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.
$ac_ext >&5
8979 ac_cv_func_alloca_works
=no
8981 rm -f conftest.err conftest.
$ac_objext \
8982 conftest
$ac_exeext conftest.
$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8985 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8987 if test $ac_cv_func_alloca_works = yes; then
8989 cat >>confdefs.h
<<\_ACEOF
8990 #define HAVE_ALLOCA 1
8994 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8995 # that cause trouble. Some versions do not even contain alloca or
8996 # contain a buggy version. If you still want to use their alloca,
8997 # use ar to extract alloca.o from them instead of compiling alloca.c.
8999 ALLOCA
=alloca.
$ac_objext
9001 cat >>confdefs.h
<<\_ACEOF
9006 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9007 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9008 if test "${ac_cv_os_cray+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 cat >conftest.
$ac_ext <<_ACEOF
9014 cat confdefs.h
>>conftest.
$ac_ext
9015 cat >>conftest.
$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 #if defined(CRAY) && ! defined(CRAY2)
9024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9025 $EGREP "webecray" >/dev
/null
2>&1; then
9033 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9034 echo "${ECHO_T}$ac_cv_os_cray" >&6
9035 if test $ac_cv_os_cray = yes; then
9036 for ac_func
in _getb67 GETB67 getb67
; do
9037 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9038 echo "$as_me:$LINENO: checking for $ac_func" >&5
9039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9040 if eval "test \"\${$as_ac_var+set}\" = set"; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 cat >conftest.
$ac_ext <<_ACEOF
9046 cat confdefs.h
>>conftest.
$ac_ext
9047 cat >>conftest.
$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9051 #define $ac_func innocuous_$ac_func
9053 /* System header to define __stub macros and hopefully few prototypes,
9054 which can conflict with char $ac_func (); below.
9055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9056 <limits.h> exists even on freestanding compilers. */
9059 # include <limits.h>
9061 # include <assert.h>
9066 /* Override any gcc2 internal prototype to avoid an error. */
9071 /* We use char because int might match the return type of a gcc2
9072 builtin and then its argument prototype would still apply. */
9074 /* The GNU C library defines this for functions which it implements
9075 to always fail with ENOSYS. Some functions are actually named
9076 something starting with __ and the normal name is an alias. */
9077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9080 char (*f) () = $ac_func;
9089 return f != $ac_func;
9094 rm -f conftest.
$ac_objext conftest
$ac_exeext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>conftest.er1
9098 grep -v '^ *+' conftest.er1
>conftest.err
9100 cat conftest.err
>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try
='test -z "$ac_c_werror_flag"
9104 || test ! -s conftest.err'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; } &&
9110 { ac_try
='test -s conftest$ac_exeext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 eval "$as_ac_var=yes"
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9121 eval "$as_ac_var=no"
9123 rm -f conftest.err conftest.
$ac_objext \
9124 conftest
$ac_exeext conftest.
$ac_ext
9126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9128 if test `eval echo '${'$as_ac_var'}'` = yes; then
9130 cat >>confdefs.h
<<_ACEOF
9131 #define CRAY_STACKSEG_END $ac_func
9140 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9141 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9142 if test "${ac_cv_c_stack_direction+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 if test "$cross_compiling" = yes; then
9146 ac_cv_c_stack_direction
=0
9148 cat >conftest.
$ac_ext <<_ACEOF
9151 cat confdefs.h
>>conftest.
$ac_ext
9152 cat >>conftest.
$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9155 find_stack_direction ()
9157 static char *addr = 0;
9162 return find_stack_direction ();
9165 return (&dummy > addr) ? 1 : -1;
9171 exit (find_stack_direction () < 0);
9174 rm -f conftest
$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_c_stack_direction
=1
9187 echo "$as_me: program exited with status $ac_status" >&5
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.
$ac_ext >&5
9192 ac_cv_c_stack_direction
=-1
9194 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9198 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9200 cat >>confdefs.h
<<_ACEOF
9201 #define STACK_DIRECTION $ac_cv_c_stack_direction
9213 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9214 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9215 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9216 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 cat >conftest.
$ac_ext <<_ACEOF
9223 cat confdefs.h
>>conftest.
$ac_ext
9224 cat >>conftest.
$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 #include <sys/types.h>
9238 rm -f conftest.
$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>conftest.er1
9242 grep -v '^ *+' conftest.er1
>conftest.err
9244 cat conftest.err
>&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try
='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try
='test -s conftest.$ac_objext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 eval "$as_ac_Header=yes"
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.
$ac_ext >&5
9265 eval "$as_ac_Header=no"
9267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h
<<_ACEOF
9273 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9276 ac_header_dirent
=$ac_hdr; break
9280 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9281 if test $ac_header_dirent = dirent.h
; then
9282 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9283 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9284 if test "${ac_cv_search_opendir+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 ac_func_search_save_LIBS
=$LIBS
9288 ac_cv_search_opendir
=no
9289 cat >conftest.
$ac_ext <<_ACEOF
9292 cat confdefs.h
>>conftest.
$ac_ext
9293 cat >>conftest.
$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 /* Override any gcc2 internal prototype to avoid an error. */
9300 /* We use char because int might match the return type of a gcc2
9301 builtin and then its argument prototype would still apply. */
9311 rm -f conftest.
$ac_objext conftest
$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1
>conftest.err
9317 cat conftest.err
>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try
='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try
='test -s conftest$ac_exeext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_cv_search_opendir
="none required"
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.
$ac_ext >&5
9339 rm -f conftest.err conftest.
$ac_objext \
9340 conftest
$ac_exeext conftest.
$ac_ext
9341 if test "$ac_cv_search_opendir" = no
; then
9342 for ac_lib
in dir
; do
9343 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9344 cat >conftest.
$ac_ext <<_ACEOF
9347 cat confdefs.h
>>conftest.
$ac_ext
9348 cat >>conftest.
$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9351 /* Override any gcc2 internal prototype to avoid an error. */
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9366 rm -f conftest.
$ac_objext conftest
$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9370 grep -v '^ *+' conftest.er1
>conftest.err
9372 cat conftest.err
>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try
='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try
='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_search_opendir
="-l$ac_lib"
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.
$ac_ext >&5
9395 rm -f conftest.err conftest.
$ac_objext \
9396 conftest
$ac_exeext conftest.
$ac_ext
9399 LIBS
=$ac_func_search_save_LIBS
9401 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9402 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9403 if test "$ac_cv_search_opendir" != no
; then
9404 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9409 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9410 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9411 if test "${ac_cv_search_opendir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 ac_func_search_save_LIBS
=$LIBS
9415 ac_cv_search_opendir
=no
9416 cat >conftest.
$ac_ext <<_ACEOF
9419 cat confdefs.h
>>conftest.
$ac_ext
9420 cat >>conftest.
$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9423 /* Override any gcc2 internal prototype to avoid an error. */
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9438 rm -f conftest.
$ac_objext conftest
$ac_exeext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440 (eval $ac_link) 2>conftest.er1
9442 grep -v '^ *+' conftest.er1
>conftest.err
9444 cat conftest.err
>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try
='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try
='test -s conftest$ac_exeext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 ac_cv_search_opendir
="none required"
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.
$ac_ext >&5
9466 rm -f conftest.err conftest.
$ac_objext \
9467 conftest
$ac_exeext conftest.
$ac_ext
9468 if test "$ac_cv_search_opendir" = no
; then
9470 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9471 cat >conftest.
$ac_ext <<_ACEOF
9474 cat confdefs.h
>>conftest.
$ac_ext
9475 cat >>conftest.
$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 /* Override any gcc2 internal prototype to avoid an error. */
9482 /* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9493 rm -f conftest.
$ac_objext conftest
$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>conftest.er1
9497 grep -v '^ *+' conftest.er1
>conftest.err
9499 cat conftest.err
>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try
='test -z "$ac_c_werror_flag"
9503 || test ! -s conftest.err'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try
='test -s conftest$ac_exeext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 ac_cv_search_opendir
="-l$ac_lib"
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.
$ac_ext >&5
9522 rm -f conftest.err conftest.
$ac_objext \
9523 conftest
$ac_exeext conftest.
$ac_ext
9526 LIBS
=$ac_func_search_save_LIBS
9528 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9529 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9530 if test "$ac_cv_search_opendir" != no
; then
9531 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9539 if test "${ac_cv_header_stdc+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 cat >conftest.
$ac_ext <<_ACEOF
9545 cat confdefs.h
>>conftest.
$ac_ext
9546 cat >>conftest.
$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9561 rm -f conftest.
$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>conftest.er1
9565 grep -v '^ *+' conftest.er1
>conftest.err
9567 cat conftest.err
>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try
='test -z "$ac_c_werror_flag"
9571 || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try
='test -s conftest.$ac_objext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_header_stdc
=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.
$ac_ext >&5
9588 ac_cv_header_stdc
=no
9590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9592 if test $ac_cv_header_stdc = yes; then
9593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9604 $EGREP "memchr" >/dev
/null
2>&1; then
9607 ac_cv_header_stdc
=no
9613 if test $ac_cv_header_stdc = yes; then
9614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9615 cat >conftest.
$ac_ext <<_ACEOF
9618 cat confdefs.h
>>conftest.
$ac_ext
9619 cat >>conftest.
$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9625 $EGREP "free" >/dev
/null
2>&1; then
9628 ac_cv_header_stdc
=no
9634 if test $ac_cv_header_stdc = yes; then
9635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9636 if test "$cross_compiling" = yes; then
9639 cat >conftest.
$ac_ext <<_ACEOF
9642 cat confdefs.h
>>conftest.
$ac_ext
9643 cat >>conftest.
$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9646 #if ((' ' & 0x0FF) == 0x020)
9647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9650 # define ISLOWER(c) \
9651 (('a' <= (c) && (c) <= 'i') \
9652 || ('j' <= (c) && (c) <= 'r') \
9653 || ('s' <= (c) && (c) <= 'z'))
9654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9662 for (i = 0; i < 256; i++)
9663 if (XOR (islower (i), ISLOWER (i))
9664 || toupper (i) != TOUPPER (i))
9669 rm -f conftest
$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9682 echo "$as_me: program exited with status $ac_status" >&5
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.
$ac_ext >&5
9687 ac_cv_header_stdc
=no
9689 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9695 if test $ac_cv_header_stdc = yes; then
9697 cat >>confdefs.h
<<\_ACEOF
9698 #define STDC_HEADERS 1
9737 for ac_header
in argz.h arpa
/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet
/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h errno.h signal.h
9739 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741 echo "$as_me:$LINENO: checking for $ac_header" >&5
9742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9749 # Is the header compilable?
9750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9752 cat >conftest.
$ac_ext <<_ACEOF
9755 cat confdefs.h
>>conftest.
$ac_ext
9756 cat >>conftest.
$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 $ac_includes_default
9759 #include <$ac_header>
9761 rm -f conftest.
$ac_objext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9763 (eval $ac_compile) 2>conftest.er1
9765 grep -v '^ *+' conftest.er1
>conftest.err
9767 cat conftest.err
>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try
='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try
='test -s conftest.$ac_objext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_header_compiler
=yes
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.
$ac_ext >&5
9788 ac_header_compiler
=no
9790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9792 echo "${ECHO_T}$ac_header_compiler" >&6
9794 # Is the header present?
9795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9797 cat >conftest.
$ac_ext <<_ACEOF
9800 cat confdefs.h
>>conftest.
$ac_ext
9801 cat >>conftest.
$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 #include <$ac_header>
9805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9806 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9808 grep -v '^ *+' conftest.er1
>conftest.err
9810 cat conftest.err
>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } >/dev
/null
; then
9813 if test -s conftest.err
; then
9814 ac_cpp_err
=$ac_c_preproc_warn_flag
9815 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9822 if test -z "$ac_cpp_err"; then
9823 ac_header_preproc
=yes
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.
$ac_ext >&5
9828 ac_header_preproc
=no
9830 rm -f conftest.err conftest.
$ac_ext
9831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 echo "${ECHO_T}$ac_header_preproc" >&6
9834 # So? What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841 ac_header_preproc
=yes
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9858 ## ------------------------------ ##
9859 ## Report this to admin@amule.org ##
9860 ## ------------------------------ ##
9863 sed "s/^/$as_me: WARNING: /" >&2
9866 echo "$as_me:$LINENO: checking for $ac_header" >&5
9867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 eval "$as_ac_Header=\$ac_header_preproc"
9873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9878 cat >>confdefs.h
<<_ACEOF
9879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9886 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9887 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9888 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <sys/types.h>
9898 #include <sys/wait.h>
9900 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9911 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9916 rm -f conftest.
$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918 (eval $ac_compile) 2>conftest.er1
9920 grep -v '^ *+' conftest.er1
>conftest.err
9922 cat conftest.err
>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try
='test -z "$ac_c_werror_flag"
9926 || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try
='test -s conftest.$ac_objext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_header_sys_wait_h
=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9943 ac_cv_header_sys_wait_h
=no
9945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9947 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9948 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9949 if test $ac_cv_header_sys_wait_h = yes; then
9951 cat >>confdefs.h
<<\_ACEOF
9952 #define HAVE_SYS_WAIT_H 1
9958 # Checks for typedefs, structures, and compiler characteristics.
9959 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9960 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9961 if test "${ac_cv_header_stdbool_h+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.
$ac_ext <<_ACEOF
9967 cat confdefs.h
>>conftest.
$ac_ext
9968 cat >>conftest.
$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9971 #include <stdbool.h>
9973 # error bool is not defined
9976 # error false is not defined
9979 # error false is not 0
9982 # error true is not defined
9985 # error true is not 1
9987 #ifndef __bool_true_false_are_defined
9988 # error __bool_true_false_are_defined is not defined
9991 struct s { _Bool s: 1; _Bool t; } s;
9993 char a[true == 1 ? 1 : -1];
9994 char b[false == 0 ? 1 : -1];
9995 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9996 char d[(bool) -0.5 == true ? 1 : -1];
9998 char f[(_Bool) -0.0 == false ? 1 : -1];
10000 char h[sizeof (_Bool)];
10001 char i[sizeof s.t];
10006 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10011 rm -f conftest.
$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013 (eval $ac_compile) 2>conftest.er1
10015 grep -v '^ *+' conftest.er1
>conftest.err
10017 cat conftest.err
>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try
='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try
='test -s conftest.$ac_objext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_header_stdbool_h
=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.
$ac_ext >&5
10038 ac_cv_header_stdbool_h
=no
10040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10042 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10043 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10044 echo "$as_me:$LINENO: checking for _Bool" >&5
10045 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10046 if test "${ac_cv_type__Bool+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 cat >conftest.
$ac_ext <<_ACEOF
10052 cat confdefs.h
>>conftest.
$ac_ext
10053 cat >>conftest.
$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 $ac_includes_default
10061 if (sizeof (_Bool))
10067 rm -f conftest.
$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069 (eval $ac_compile) 2>conftest.er1
10071 grep -v '^ *+' conftest.er1
>conftest.err
10073 cat conftest.err
>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try
='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try
='test -s conftest.$ac_objext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_type__Bool
=yes
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.
$ac_ext >&5
10094 ac_cv_type__Bool
=no
10096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10099 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10100 if test $ac_cv_type__Bool = yes; then
10102 cat >>confdefs.h
<<_ACEOF
10103 #define HAVE__BOOL 1
10109 if test $ac_cv_header_stdbool_h = yes; then
10111 cat >>confdefs.h
<<\_ACEOF
10112 #define HAVE_STDBOOL_H 1
10117 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10118 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10119 if test "${ac_cv_c_const+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.
$ac_ext <<_ACEOF
10125 cat confdefs.h
>>conftest.
$ac_ext
10126 cat >>conftest.
$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10132 /* FIXME: Include the comments suggested by Paul. */
10133 #ifndef __cplusplus
10134 /* Ultrix mips cc rejects this. */
10135 typedef int charset[2];
10137 /* SunOS 4.1.1 cc rejects this. */
10138 char const *const *ccp;
10140 /* NEC SVR4.0.2 mips cc rejects this. */
10141 struct point {int x, y;};
10142 static struct point const zero = {0,0};
10143 /* AIX XL C 1.02.0.0 rejects this.
10144 It does not let you subtract one const X* pointer from another in
10145 an arm of an if-expression whose if-part is not a constant
10147 const char *g = "string";
10148 ccp = &g + (g ? g-g : 0);
10149 /* HPUX 7.0 cc rejects these. */
10152 ccp = (char const *const *) p;
10153 { /* SCO 3.2v4 cc rejects this. */
10155 char const *s = 0 ? (char *) 0 : (char const *) 0;
10159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10160 int x[] = {25, 17};
10161 const int *foo = &x[0];
10164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10165 typedef const int *iptr;
10169 { /* AIX XL C 1.02.0.0 rejects this saying
10170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10171 struct s { int j; const int *ap[3]; };
10172 struct s *b; b->j = 5;
10174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10175 const int foo = 10;
10183 rm -f conftest.
$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>conftest.er1
10187 grep -v '^ *+' conftest.er1
>conftest.err
10189 cat conftest.err
>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try
='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try
='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.
$ac_ext >&5
10212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10215 echo "${ECHO_T}$ac_cv_c_const" >&6
10216 if test $ac_cv_c_const = no
; then
10218 cat >>confdefs.h
<<\_ACEOF
10224 echo "$as_me:$LINENO: checking for inline" >&5
10225 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10226 if test "${ac_cv_c_inline+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 for ac_kw
in inline __inline__ __inline
; do
10231 cat >conftest.
$ac_ext <<_ACEOF
10234 cat confdefs.h
>>conftest.
$ac_ext
10235 cat >>conftest.
$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #ifndef __cplusplus
10239 static $ac_kw foo_t static_foo () {return 0; }
10240 $ac_kw foo_t foo () {return 0; }
10244 rm -f conftest.
$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246 (eval $ac_compile) 2>conftest.er1
10248 grep -v '^ *+' conftest.er1
>conftest.err
10250 cat conftest.err
>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try
='test -z "$ac_c_werror_flag"
10254 || test ! -s conftest.err'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try
='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_cv_c_inline
=$ac_kw; break
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.
$ac_ext >&5
10272 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10276 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10277 echo "${ECHO_T}$ac_cv_c_inline" >&6
10280 case $ac_cv_c_inline in
10283 case $ac_cv_c_inline in
10285 *) ac_val
=$ac_cv_c_inline;;
10287 cat >>confdefs.h
<<_ACEOF
10288 #ifndef __cplusplus
10289 #define inline $ac_val
10295 echo "$as_me:$LINENO: checking for mode_t" >&5
10296 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10297 if test "${ac_cv_type_mode_t+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 cat >conftest.
$ac_ext <<_ACEOF
10303 cat confdefs.h
>>conftest.
$ac_ext
10304 cat >>conftest.
$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10312 if (sizeof (mode_t))
10318 rm -f conftest.
$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>conftest.er1
10322 grep -v '^ *+' conftest.er1
>conftest.err
10324 cat conftest.err
>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try
='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try
='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_type_mode_t
=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.
$ac_ext >&5
10345 ac_cv_type_mode_t
=no
10347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10349 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10350 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10351 if test $ac_cv_type_mode_t = yes; then
10355 cat >>confdefs.h
<<_ACEOF
10361 echo "$as_me:$LINENO: checking for off_t" >&5
10362 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10363 if test "${ac_cv_type_off_t+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 cat >conftest.
$ac_ext <<_ACEOF
10369 cat confdefs.h
>>conftest.
$ac_ext
10370 cat >>conftest.
$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 $ac_includes_default
10378 if (sizeof (off_t))
10384 rm -f conftest.
$ac_objext
10385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10386 (eval $ac_compile) 2>conftest.er1
10388 grep -v '^ *+' conftest.er1
>conftest.err
10390 cat conftest.err
>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try
='test -z "$ac_c_werror_flag"
10394 || test ! -s conftest.err'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try
='test -s conftest.$ac_objext'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_type_off_t
=yes
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.
$ac_ext >&5
10411 ac_cv_type_off_t
=no
10413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10415 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10416 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10417 if test $ac_cv_type_off_t = yes; then
10421 cat >>confdefs.h
<<_ACEOF
10427 echo "$as_me:$LINENO: checking for size_t" >&5
10428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10429 if test "${ac_cv_type_size_t+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 cat >conftest.
$ac_ext <<_ACEOF
10435 cat confdefs.h
>>conftest.
$ac_ext
10436 cat >>conftest.
$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 $ac_includes_default
10444 if (sizeof (size_t))
10450 rm -f conftest.
$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>conftest.er1
10454 grep -v '^ *+' conftest.er1
>conftest.err
10456 cat conftest.err
>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try
='test -z "$ac_c_werror_flag"
10460 || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try
='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_type_size_t
=yes
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.
$ac_ext >&5
10477 ac_cv_type_size_t
=no
10479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10481 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10482 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10483 if test $ac_cv_type_size_t = yes; then
10487 cat >>confdefs.h
<<_ACEOF
10488 #define size_t unsigned
10493 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10494 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10495 if test "${ac_cv_header_time+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 cat >conftest.
$ac_ext <<_ACEOF
10501 cat confdefs.h
>>conftest.
$ac_ext
10502 cat >>conftest.
$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 #include <sys/types.h>
10505 #include <sys/time.h>
10511 if ((struct tm *) 0)
10517 rm -f conftest.
$ac_objext
10518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>conftest.er1
10521 grep -v '^ *+' conftest.er1
>conftest.err
10523 cat conftest.err
>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try
='test -z "$ac_c_werror_flag"
10527 || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try
='test -s conftest.$ac_objext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_header_time
=yes
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.
$ac_ext >&5
10544 ac_cv_header_time
=no
10546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10548 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10549 echo "${ECHO_T}$ac_cv_header_time" >&6
10550 if test $ac_cv_header_time = yes; then
10552 cat >>confdefs.h
<<\_ACEOF
10553 #define TIME_WITH_SYS_TIME 1
10558 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10559 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10560 if test "${ac_cv_struct_tm+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 cat >conftest.
$ac_ext <<_ACEOF
10566 cat confdefs.h
>>conftest.
$ac_ext
10567 cat >>conftest.
$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 #include <sys/types.h>
10575 struct tm *tp; tp->tm_sec;
10580 rm -f conftest.
$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>conftest.er1
10584 grep -v '^ *+' conftest.er1
>conftest.err
10586 cat conftest.err
>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try
='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try
='test -s conftest.$ac_objext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_cv_struct_tm
=time.h
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.
$ac_ext >&5
10607 ac_cv_struct_tm
=sys
/time.h
10609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10612 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10613 if test $ac_cv_struct_tm = sys
/time.h
; then
10615 cat >>confdefs.h
<<\_ACEOF
10616 #define TM_IN_SYS_TIME 1
10621 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10622 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10623 if test "${ac_cv_type_uid_t+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 cat >conftest.
$ac_ext <<_ACEOF
10629 cat confdefs.h
>>conftest.
$ac_ext
10630 cat >>conftest.
$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <sys/types.h>
10635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10636 $EGREP "uid_t" >/dev
/null
2>&1; then
10637 ac_cv_type_uid_t
=yes
10639 ac_cv_type_uid_t
=no
10644 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10645 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10646 if test $ac_cv_type_uid_t = no
; then
10648 cat >>confdefs.h
<<\_ACEOF
10653 cat >>confdefs.h
<<\_ACEOF
10659 echo "$as_me:$LINENO: checking for working volatile" >&5
10660 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10661 if test "${ac_cv_c_volatile+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 cat >conftest.
$ac_ext <<_ACEOF
10667 cat confdefs.h
>>conftest.
$ac_ext
10668 cat >>conftest.
$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10681 rm -f conftest.
$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10685 grep -v '^ *+' conftest.er1
>conftest.err
10687 cat conftest.err
>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try
='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try
='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_c_volatile
=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.
$ac_ext >&5
10708 ac_cv_c_volatile
=no
10710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10712 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10713 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10714 if test $ac_cv_c_volatile = no
; then
10716 cat >>confdefs.h
<<\_ACEOF
10722 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10723 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10724 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 cat >conftest.
$ac_ext <<_ACEOF
10730 cat confdefs.h
>>conftest.
$ac_ext
10731 cat >>conftest.
$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10737 if ((ptrdiff_t *) 0)
10739 if (sizeof (ptrdiff_t))
10745 rm -f conftest.
$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>conftest.er1
10749 grep -v '^ *+' conftest.er1
>conftest.err
10751 cat conftest.err
>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try
='test -z "$ac_c_werror_flag"
10755 || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try
='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_type_ptrdiff_t
=yes
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.
$ac_ext >&5
10772 ac_cv_type_ptrdiff_t
=no
10774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10777 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10778 if test $ac_cv_type_ptrdiff_t = yes; then
10780 cat >>confdefs.h
<<_ACEOF
10781 #define HAVE_PTRDIFF_T 1
10788 # Checks for library functions.
10789 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10790 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10791 if test "${ac_cv_func_closedir_void+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 if test "$cross_compiling" = yes; then
10795 ac_cv_func_closedir_void
=yes
10797 cat >conftest.
$ac_ext <<_ACEOF
10800 cat confdefs.h
>>conftest.
$ac_ext
10801 cat >>conftest.
$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 #include <$ac_header_dirent>
10805 #ifndef __cplusplus
10812 exit (closedir (opendir (".")) != 0);
10817 rm -f conftest
$ac_exeext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819 (eval $ac_link) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_cv_func_closedir_void
=no
10830 echo "$as_me: program exited with status $ac_status" >&5
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.
$ac_ext >&5
10834 ( exit $ac_status )
10835 ac_cv_func_closedir_void
=yes
10837 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10840 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10841 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10842 if test $ac_cv_func_closedir_void = yes; then
10844 cat >>confdefs.h
<<\_ACEOF
10845 #define CLOSEDIR_VOID 1
10850 if test $ac_cv_c_compiler_gnu = yes; then
10851 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10852 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10853 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 ac_pattern
="Autoconf.*'x'"
10857 cat >conftest.
$ac_ext <<_ACEOF
10860 cat confdefs.h
>>conftest.
$ac_ext
10861 cat >>conftest.
$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10867 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10868 ac_cv_prog_gcc_traditional
=yes
10870 ac_cv_prog_gcc_traditional
=no
10875 if test $ac_cv_prog_gcc_traditional = no
; then
10876 cat >conftest.
$ac_ext <<_ACEOF
10879 cat confdefs.h
>>conftest.
$ac_ext
10880 cat >>conftest.
$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <termio.h>
10885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10886 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10887 ac_cv_prog_gcc_traditional
=yes
10893 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10894 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10895 if test $ac_cv_prog_gcc_traditional = yes; then
10896 CC
="$CC -traditional"
10900 echo "$as_me:$LINENO: checking for pid_t" >&5
10901 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10902 if test "${ac_cv_type_pid_t+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 cat >conftest.
$ac_ext <<_ACEOF
10908 cat confdefs.h
>>conftest.
$ac_ext
10909 cat >>conftest.
$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 $ac_includes_default
10917 if (sizeof (pid_t))
10923 rm -f conftest.
$ac_objext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>conftest.er1
10927 grep -v '^ *+' conftest.er1
>conftest.err
10929 cat conftest.err
>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try
='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try
='test -s conftest.$ac_objext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_type_pid_t
=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.
$ac_ext >&5
10950 ac_cv_type_pid_t
=no
10952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10954 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10955 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10956 if test $ac_cv_type_pid_t = yes; then
10960 cat >>confdefs.h
<<_ACEOF
10968 for ac_header
in unistd.h vfork.h
10970 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10972 echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10980 # Is the header compilable?
10981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10983 cat >conftest.
$ac_ext <<_ACEOF
10986 cat confdefs.h
>>conftest.
$ac_ext
10987 cat >>conftest.
$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 $ac_includes_default
10990 #include <$ac_header>
10992 rm -f conftest.
$ac_objext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10994 (eval $ac_compile) 2>conftest.er1
10996 grep -v '^ *+' conftest.er1
>conftest.err
10998 cat conftest.err
>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try
='test -z "$ac_c_werror_flag"
11002 || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try
='test -s conftest.$ac_objext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 ac_header_compiler
=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.
$ac_ext >&5
11019 ac_header_compiler
=no
11021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11023 echo "${ECHO_T}$ac_header_compiler" >&6
11025 # Is the header present?
11026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11028 cat >conftest.
$ac_ext <<_ACEOF
11031 cat confdefs.h
>>conftest.
$ac_ext
11032 cat >>conftest.
$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 #include <$ac_header>
11036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11039 grep -v '^ *+' conftest.er1
>conftest.err
11041 cat conftest.err
>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } >/dev
/null
; then
11044 if test -s conftest.err
; then
11045 ac_cpp_err
=$ac_c_preproc_warn_flag
11046 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11053 if test -z "$ac_cpp_err"; then
11054 ac_header_preproc
=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.
$ac_ext >&5
11059 ac_header_preproc
=no
11061 rm -f conftest.err conftest.
$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11063 echo "${ECHO_T}$ac_header_preproc" >&6
11065 # So? What about this header?
11066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11072 ac_header_preproc
=yes
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11089 ## ------------------------------ ##
11090 ## Report this to admin@amule.org ##
11091 ## ------------------------------ ##
11094 sed "s/^/$as_me: WARNING: /" >&2
11097 echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 eval "$as_ac_Header=\$ac_header_preproc"
11104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11109 cat >>confdefs.h
<<_ACEOF
11110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119 for ac_func
in fork vfork
11121 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11122 echo "$as_me:$LINENO: checking for $ac_func" >&5
11123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11124 if eval "test \"\${$as_ac_var+set}\" = set"; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 cat >conftest.
$ac_ext <<_ACEOF
11130 cat confdefs.h
>>conftest.
$ac_ext
11131 cat >>conftest.
$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11135 #define $ac_func innocuous_$ac_func
11137 /* System header to define __stub macros and hopefully few prototypes,
11138 which can conflict with char $ac_func (); below.
11139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11140 <limits.h> exists even on freestanding compilers. */
11143 # include <limits.h>
11145 # include <assert.h>
11150 /* Override any gcc2 internal prototype to avoid an error. */
11155 /* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11158 /* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 char (*f) () = $ac_func;
11173 return f != $ac_func;
11178 rm -f conftest.
$ac_objext conftest
$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>conftest.er1
11182 grep -v '^ *+' conftest.er1
>conftest.err
11184 cat conftest.err
>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try
='test -z "$ac_c_werror_flag"
11188 || test ! -s conftest.err'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; } &&
11194 { ac_try
='test -s conftest$ac_exeext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 eval "$as_ac_var=yes"
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.
$ac_ext >&5
11205 eval "$as_ac_var=no"
11207 rm -f conftest.err conftest.
$ac_objext \
11208 conftest
$ac_exeext conftest.
$ac_ext
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11212 if test `eval echo '${'$as_ac_var'}'` = yes; then
11213 cat >>confdefs.h
<<_ACEOF
11214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11220 if test "x$ac_cv_func_fork" = xyes
; then
11221 echo "$as_me:$LINENO: checking for working fork" >&5
11222 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11223 if test "${ac_cv_func_fork_works+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 if test "$cross_compiling" = yes; then
11227 ac_cv_func_fork_works
=cross
11229 cat >conftest.
$ac_ext <<_ACEOF
11230 /* By Ruediger Kuhlmann. */
11231 #include <sys/types.h>
11233 # include <unistd.h>
11235 /* Some systems only have a dummy stub for fork() */
11243 rm -f conftest
$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_func_fork_works
=yes
11256 echo "$as_me: program exited with status $ac_status" >&5
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.
$ac_ext >&5
11260 ( exit $ac_status )
11261 ac_cv_func_fork_works
=no
11263 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11267 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11270 ac_cv_func_fork_works
=$ac_cv_func_fork
11272 if test "x$ac_cv_func_fork_works" = xcross
; then
11274 *-*-amigaos* |
*-*-msdosdjgpp*)
11275 # Override, as these systems have only a dummy fork() stub
11276 ac_cv_func_fork_works
=no
11279 ac_cv_func_fork_works
=yes
11282 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11283 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11285 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11286 if test "x$ac_cv_func_vfork" = xyes
; then
11287 echo "$as_me:$LINENO: checking for working vfork" >&5
11288 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11289 if test "${ac_cv_func_vfork_works+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 if test "$cross_compiling" = yes; then
11293 ac_cv_func_vfork_works
=cross
11295 cat >conftest.
$ac_ext <<_ACEOF
11298 cat confdefs.h
>>conftest.
$ac_ext
11299 cat >>conftest.
$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 /* Thanks to Paul Eggert for this test. */
11303 #include <stdlib.h>
11304 #include <sys/types.h>
11305 #include <sys/stat.h>
11306 #include <sys/wait.h>
11308 # include <unistd.h>
11311 # include <vfork.h>
11313 /* On some sparc systems, changes by the child to local and incoming
11314 argument registers are propagated back to the parent. The compiler
11315 is told about this with #include <vfork.h>, but some compilers
11316 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11317 static variable whose address is put into a register that is
11318 clobbered by the vfork. */
11321 sparc_address_test (int arg)
11323 sparc_address_test (arg) int arg;
11326 static pid_t child;
11344 pid_t parent = getpid ();
11347 sparc_address_test (0);
11352 /* Here is another test for sparc vfork register problems. This
11353 test uses lots of local variables, at least as many local
11354 variables as main has allocated so far including compiler
11355 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11356 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11357 reuse the register of parent for one of the local variables,
11358 since it will think that parent can't possibly be used any more
11359 in this routine. Assigning to the local variable will thus
11360 munge parent in the parent process. */
11362 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11363 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11364 /* Convince the compiler that p..p7 are live; otherwise, it might
11365 use the same hardware register for all 8 local variables. */
11366 if (p != p1 || p != p2 || p != p3 || p != p4
11367 || p != p5 || p != p6 || p != p7)
11370 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11371 from child file descriptors. If the child closes a descriptor
11372 before it execs or exits, this munges the parent's descriptor
11373 as well. Test for this by closing stdout in the child. */
11374 _exit(close(fileno(stdout)) != 0);
11379 while (wait(&status) != child)
11382 /* Was there some problem with vforking? */
11385 /* Did the child fail? (This shouldn't happen.) */
11388 /* Did the vfork/compiler bug occur? */
11389 || parent != getpid()
11391 /* Did the file descriptor bug occur? */
11392 || fstat(fileno(stdout), &st) != 0
11397 rm -f conftest
$ac_exeext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11399 (eval $ac_link) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; }; then
11408 ac_cv_func_vfork_works
=yes
11410 echo "$as_me: program exited with status $ac_status" >&5
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.
$ac_ext >&5
11414 ( exit $ac_status )
11415 ac_cv_func_vfork_works
=no
11417 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11420 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11421 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11424 if test "x$ac_cv_func_fork_works" = xcross
; then
11425 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11426 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11427 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11430 if test "x$ac_cv_func_vfork_works" = xyes
; then
11432 cat >>confdefs.h
<<\_ACEOF
11433 #define HAVE_WORKING_VFORK 1
11438 cat >>confdefs.h
<<\_ACEOF
11443 if test "x$ac_cv_func_fork_works" = xyes
; then
11445 cat >>confdefs.h
<<\_ACEOF
11446 #define HAVE_WORKING_FORK 1
11451 if test x
$SYS != xwin32
; then
11453 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11454 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11455 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11456 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 ac_check_lib_save_LIBS
=$LIBS
11461 cat >conftest.
$ac_ext <<_ACEOF
11464 cat confdefs.h
>>conftest.
$ac_ext
11465 cat >>conftest.
$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11468 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11483 rm -f conftest.
$ac_objext conftest
$ac_exeext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485 (eval $ac_link) 2>conftest.er1
11487 grep -v '^ *+' conftest.er1
>conftest.err
11489 cat conftest.err
>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try
='test -z "$ac_c_werror_flag"
11493 || test ! -s conftest.err'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try
='test -s conftest$ac_exeext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_lib_sun_getmntent
=yes
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.
$ac_ext >&5
11510 ac_cv_lib_sun_getmntent
=no
11512 rm -f conftest.err conftest.
$ac_objext \
11513 conftest
$ac_exeext conftest.
$ac_ext
11514 LIBS
=$ac_check_lib_save_LIBS
11516 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11517 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11518 if test $ac_cv_lib_sun_getmntent = yes; then
11521 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11522 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11523 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 ac_check_lib_save_LIBS
=$LIBS
11528 cat >conftest.
$ac_ext <<_ACEOF
11531 cat confdefs.h
>>conftest.
$ac_ext
11532 cat >>conftest.
$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11535 /* Override any gcc2 internal prototype to avoid an error. */
11539 /* We use char because int might match the return type of a gcc2
11540 builtin and then its argument prototype would still apply. */
11550 rm -f conftest.
$ac_objext conftest
$ac_exeext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11552 (eval $ac_link) 2>conftest.er1
11554 grep -v '^ *+' conftest.er1
>conftest.err
11556 cat conftest.err
>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try
='test -z "$ac_c_werror_flag"
11560 || test ! -s conftest.err'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try
='test -s conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_lib_seq_getmntent
=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.
$ac_ext >&5
11577 ac_cv_lib_seq_getmntent
=no
11579 rm -f conftest.err conftest.
$ac_objext \
11580 conftest
$ac_exeext conftest.
$ac_ext
11581 LIBS
=$ac_check_lib_save_LIBS
11583 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11584 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11585 if test $ac_cv_lib_seq_getmntent = yes; then
11588 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11589 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11590 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 ac_check_lib_save_LIBS
=$LIBS
11595 cat >conftest.
$ac_ext <<_ACEOF
11598 cat confdefs.h
>>conftest.
$ac_ext
11599 cat >>conftest.
$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11602 /* Override any gcc2 internal prototype to avoid an error. */
11606 /* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11617 rm -f conftest.
$ac_objext conftest
$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619 (eval $ac_link) 2>conftest.er1
11621 grep -v '^ *+' conftest.er1
>conftest.err
11623 cat conftest.err
>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try
='test -z "$ac_c_werror_flag"
11627 || test ! -s conftest.err'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try
='test -s conftest$ac_exeext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 ac_cv_lib_gen_getmntent
=yes
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.
$ac_ext >&5
11644 ac_cv_lib_gen_getmntent
=no
11646 rm -f conftest.err conftest.
$ac_objext \
11647 conftest
$ac_exeext conftest.
$ac_ext
11648 LIBS
=$ac_check_lib_save_LIBS
11650 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11651 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11652 if test $ac_cv_lib_gen_getmntent = yes; then
11661 for ac_func
in getmntent
11663 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11664 echo "$as_me:$LINENO: checking for $ac_func" >&5
11665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11666 if eval "test \"\${$as_ac_var+set}\" = set"; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 cat >conftest.
$ac_ext <<_ACEOF
11672 cat confdefs.h
>>conftest.
$ac_ext
11673 cat >>conftest.
$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11677 #define $ac_func innocuous_$ac_func
11679 /* System header to define __stub macros and hopefully few prototypes,
11680 which can conflict with char $ac_func (); below.
11681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11682 <limits.h> exists even on freestanding compilers. */
11685 # include <limits.h>
11687 # include <assert.h>
11692 /* Override any gcc2 internal prototype to avoid an error. */
11697 /* We use char because int might match the return type of a gcc2
11698 builtin and then its argument prototype would still apply. */
11700 /* The GNU C library defines this for functions which it implements
11701 to always fail with ENOSYS. Some functions are actually named
11702 something starting with __ and the normal name is an alias. */
11703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11706 char (*f) () = $ac_func;
11715 return f != $ac_func;
11720 rm -f conftest.
$ac_objext conftest
$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1
>conftest.err
11726 cat conftest.err
>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try
='test -z "$ac_c_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try
='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 eval "$as_ac_var=yes"
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.
$ac_ext >&5
11747 eval "$as_ac_var=no"
11749 rm -f conftest.err conftest.
$ac_objext \
11750 conftest
$ac_exeext conftest.
$ac_ext
11752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11754 if test `eval echo '${'$as_ac_var'}'` = yes; then
11755 cat >>confdefs.h
<<_ACEOF
11756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11763 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11764 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11765 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 rm -f conftest.sym conftest.
file
11769 echo >conftest.
file
11770 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11771 if test "$cross_compiling" = yes; then
11772 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11774 cat >conftest.
$ac_ext <<_ACEOF
11777 cat confdefs.h
>>conftest.
$ac_ext
11778 cat >>conftest.
$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11785 /* Linux will dereference the symlink and fail.
11786 That is better in the sense that it means we will not
11787 have to compile and use the lstat wrapper. */
11788 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11793 rm -f conftest
$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11806 echo "$as_me: program exited with status $ac_status" >&5
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.
$ac_ext >&5
11810 ( exit $ac_status )
11811 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11813 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11816 # If the `ln -s' command failed, then we probably don't even
11817 # have an lstat function.
11818 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11820 rm -f conftest.sym conftest.
file
11823 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11824 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11826 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11828 cat >>confdefs.h
<<_ACEOF
11829 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11833 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11835 "lstat.$ac_objext" | \
11836 *" lstat.$ac_objext" | \
11837 "lstat.$ac_objext "* | \
11838 *" lstat.$ac_objext "* ) ;;
11839 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11844 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11845 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11846 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 if test "$cross_compiling" = yes; then
11850 ac_cv_func_lstat_empty_string_bug
=yes
11852 cat >conftest.
$ac_ext <<_ACEOF
11855 cat confdefs.h
>>conftest.
$ac_ext
11856 cat >>conftest.
$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 $ac_includes_default
11863 exit (lstat ("", &sbuf) ? 1 : 0);
11868 rm -f conftest
$ac_exeext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870 (eval $ac_link) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 ac_cv_func_lstat_empty_string_bug
=yes
11881 echo "$as_me: program exited with status $ac_status" >&5
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.
$ac_ext >&5
11885 ( exit $ac_status )
11886 ac_cv_func_lstat_empty_string_bug
=no
11888 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11891 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11892 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11893 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11895 "lstat.$ac_objext" | \
11896 *" lstat.$ac_objext" | \
11897 "lstat.$ac_objext "* | \
11898 *" lstat.$ac_objext "* ) ;;
11899 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11903 cat >>confdefs.h
<<_ACEOF
11904 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11909 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11910 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11911 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 rm -f conftest.sym conftest.
file
11915 echo >conftest.
file
11916 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11917 if test "$cross_compiling" = yes; then
11918 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11920 cat >conftest.
$ac_ext <<_ACEOF
11923 cat confdefs.h
>>conftest.
$ac_ext
11924 cat >>conftest.
$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 $ac_includes_default
11931 /* Linux will dereference the symlink and fail.
11932 That is better in the sense that it means we will not
11933 have to compile and use the lstat wrapper. */
11934 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11939 rm -f conftest
$ac_exeext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11952 echo "$as_me: program exited with status $ac_status" >&5
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.
$ac_ext >&5
11956 ( exit $ac_status )
11957 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11959 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11962 # If the `ln -s' command failed, then we probably don't even
11963 # have an lstat function.
11964 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11966 rm -f conftest.sym conftest.
file
11969 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11970 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11972 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11974 cat >>confdefs.h
<<_ACEOF
11975 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11979 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11981 "lstat.$ac_objext" | \
11982 *" lstat.$ac_objext" | \
11983 "lstat.$ac_objext "* | \
11984 *" lstat.$ac_objext "* ) ;;
11985 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11993 echo "$as_me:$LINENO: checking for working memcmp" >&5
11994 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11995 if test "${ac_cv_func_memcmp_working+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 if test "$cross_compiling" = yes; then
11999 ac_cv_func_memcmp_working
=no
12001 cat >conftest.
$ac_ext <<_ACEOF
12004 cat confdefs.h
>>conftest.
$ac_ext
12005 cat >>conftest.
$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12012 /* Some versions of memcmp are not 8-bit clean. */
12013 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12014 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12017 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12018 or more and with at least one buffer not starting on a 4-byte boundary.
12019 William Lewis provided this test program. */
12024 for (i = 0; i < 4; i++)
12028 strcpy (a, "--------01111111");
12029 strcpy (b, "--------10000000");
12030 if (memcmp (a, b, 16) >= 0)
12040 rm -f conftest
$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 ac_cv_func_memcmp_working
=yes
12053 echo "$as_me: program exited with status $ac_status" >&5
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.
$ac_ext >&5
12057 ( exit $ac_status )
12058 ac_cv_func_memcmp_working
=no
12060 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12063 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12064 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12065 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12066 "memcmp.$ac_objext" | \
12067 *" memcmp.$ac_objext" | \
12068 "memcmp.$ac_objext "* | \
12069 *" memcmp.$ac_objext "* ) ;;
12070 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12076 for ac_header
in sys
/select.h sys
/socket.h
12078 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12080 echo "$as_me:$LINENO: checking for $ac_header" >&5
12081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12088 # Is the header compilable?
12089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12091 cat >conftest.
$ac_ext <<_ACEOF
12094 cat confdefs.h
>>conftest.
$ac_ext
12095 cat >>conftest.
$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 $ac_includes_default
12098 #include <$ac_header>
12100 rm -f conftest.
$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12104 grep -v '^ *+' conftest.er1
>conftest.err
12106 cat conftest.err
>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try
='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try
='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_header_compiler
=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.
$ac_ext >&5
12127 ac_header_compiler
=no
12129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12131 echo "${ECHO_T}$ac_header_compiler" >&6
12133 # Is the header present?
12134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12136 cat >conftest.
$ac_ext <<_ACEOF
12139 cat confdefs.h
>>conftest.
$ac_ext
12140 cat >>conftest.
$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <$ac_header>
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1
>conftest.err
12149 cat conftest.err
>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev
/null
; then
12152 if test -s conftest.err
; then
12153 ac_cpp_err
=$ac_c_preproc_warn_flag
12154 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12161 if test -z "$ac_cpp_err"; then
12162 ac_header_preproc
=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.
$ac_ext >&5
12167 ac_header_preproc
=no
12169 rm -f conftest.err conftest.
$ac_ext
12170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171 echo "${ECHO_T}$ac_header_preproc" >&6
12173 # So? What about this header?
12174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180 ac_header_preproc
=yes
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12197 ## ------------------------------ ##
12198 ## Report this to admin@amule.org ##
12199 ## ------------------------------ ##
12202 sed "s/^/$as_me: WARNING: /" >&2
12205 echo "$as_me:$LINENO: checking for $ac_header" >&5
12206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 eval "$as_ac_Header=\$ac_header_preproc"
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h
<<_ACEOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12226 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12227 if test "${ac_cv_func_select_args+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12231 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12232 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12233 cat >conftest.
$ac_ext <<_ACEOF
12236 cat confdefs.h
>>conftest.
$ac_ext
12237 cat >>conftest.
$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #if HAVE_SYS_SELECT_H
12241 # include <sys/select.h>
12243 #if HAVE_SYS_SOCKET_H
12244 # include <sys/socket.h>
12250 extern int select ($ac_arg1,
12251 $ac_arg234, $ac_arg234, $ac_arg234,
12257 rm -f conftest.
$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>conftest.er1
12261 grep -v '^ *+' conftest.er1
>conftest.err
12263 cat conftest.err
>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try
='test -z "$ac_c_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try
='test -s conftest.$ac_objext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.
$ac_ext >&5
12285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12289 # Provide a safe default value.
12290 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12293 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12294 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12295 ac_save_IFS
=$IFS; IFS
=','
12296 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12300 cat >>confdefs.h
<<_ACEOF
12301 #define SELECT_TYPE_ARG1 $1
12305 cat >>confdefs.h
<<_ACEOF
12306 #define SELECT_TYPE_ARG234 ($2)
12310 cat >>confdefs.h
<<_ACEOF
12311 #define SELECT_TYPE_ARG5 ($3)
12316 echo "$as_me:$LINENO: checking for function prototypes" >&5
12317 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12318 if test "$ac_cv_prog_cc_stdc" != no
; then
12319 echo "$as_me:$LINENO: result: yes" >&5
12320 echo "${ECHO_T}yes" >&6
12322 cat >>confdefs.h
<<\_ACEOF
12323 #define PROTOTYPES 1
12327 cat >>confdefs.h
<<\_ACEOF
12328 #define __PROTOTYPES 1
12332 echo "$as_me:$LINENO: result: no" >&5
12333 echo "${ECHO_T}no" >&6
12336 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12337 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12338 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_cv_func_setvbuf_reversed
=no
12342 cat >conftest.
$ac_ext <<_ACEOF
12345 cat confdefs.h
>>conftest.
$ac_ext
12346 cat >>conftest.
$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12350 int (setvbuf) (FILE *, int, char *, size_t);
12355 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12360 rm -f conftest.
$ac_objext conftest
$ac_exeext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362 (eval $ac_link) 2>conftest.er1
12364 grep -v '^ *+' conftest.er1
>conftest.err
12366 cat conftest.err
>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try
='test -z "$ac_c_werror_flag"
12370 || test ! -s conftest.err'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try
='test -s conftest$ac_exeext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 cat >conftest.
$ac_ext <<_ACEOF
12385 cat confdefs.h
>>conftest.
$ac_ext
12386 cat >>conftest.
$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12390 int (setvbuf) (FILE *, int, char *, size_t);
12395 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12400 rm -f conftest.
$ac_objext conftest
$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>conftest.er1
12404 grep -v '^ *+' conftest.er1
>conftest.err
12406 cat conftest.err
>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try
='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try
='test -s conftest$ac_exeext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 # It compiles and links either way, so it must not be declared
12423 # with a prototype and most likely this is a K&R C compiler.
12425 if test "$cross_compiling" = yes; then
12426 : # Assume setvbuf is not reversed when cross-compiling.
12428 cat >conftest.
$ac_ext <<_ACEOF
12431 cat confdefs.h
>>conftest.
$ac_ext
12432 cat >>conftest.
$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12438 /* This call has the arguments reversed.
12439 A reversed system may check and see that the address of buf
12440 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12442 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12445 exit (0); /* Non-reversed systems SEGV here. */
12450 rm -f conftest
$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452 (eval $ac_link) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_func_setvbuf_reversed
=yes
12463 echo "$as_me: program exited with status $ac_status" >&5
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.
$ac_ext >&5
12467 ( exit $ac_status )
12470 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12472 ac_cv_func_setvbuf_reversed
=yes
12474 echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.
$ac_ext >&5
12478 rm -f conftest.err conftest.
$ac_objext \
12479 conftest
$ac_exeext conftest.
$ac_ext
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.
$ac_ext >&5
12485 rm -f conftest.err conftest.
$ac_objext \
12486 conftest
$ac_exeext conftest.
$ac_ext
12488 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12489 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12490 if test $ac_cv_func_setvbuf_reversed = yes; then
12492 cat >>confdefs.h
<<\_ACEOF
12493 #define SETVBUF_REVERSED 1
12498 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12499 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12500 if test "${ac_cv_type_signal+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 cat >conftest.
$ac_ext <<_ACEOF
12506 cat confdefs.h
>>conftest.
$ac_ext
12507 cat >>conftest.
$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 #include <sys/types.h>
12510 #include <signal.h>
12515 extern "C" void (*signal (int, void (*)(int)))(int);
12517 void (*signal ()) ();
12528 rm -f conftest.
$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>conftest.er1
12532 grep -v '^ *+' conftest.er1
>conftest.err
12534 cat conftest.err
>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try
='test -z "$ac_c_werror_flag"
12538 || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try
='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_type_signal
=void
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.
$ac_ext >&5
12555 ac_cv_type_signal
=int
12557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12559 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12560 echo "${ECHO_T}$ac_cv_type_signal" >&6
12562 cat >>confdefs.h
<<_ACEOF
12563 #define RETSIGTYPE $ac_cv_type_signal
12567 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12568 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12569 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 if test "$cross_compiling" = yes; then
12573 ac_cv_func_stat_empty_string_bug
=yes
12575 cat >conftest.
$ac_ext <<_ACEOF
12578 cat confdefs.h
>>conftest.
$ac_ext
12579 cat >>conftest.
$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 $ac_includes_default
12586 exit (stat ("", &sbuf) ? 1 : 0);
12591 rm -f conftest
$ac_exeext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12593 (eval $ac_link) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_func_stat_empty_string_bug
=yes
12604 echo "$as_me: program exited with status $ac_status" >&5
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.
$ac_ext >&5
12608 ( exit $ac_status )
12609 ac_cv_func_stat_empty_string_bug
=no
12611 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12614 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12615 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12616 if test $ac_cv_func_stat_empty_string_bug = yes; then
12618 "stat.$ac_objext" | \
12619 *" stat.$ac_objext" | \
12620 "stat.$ac_objext "* | \
12621 *" stat.$ac_objext "* ) ;;
12622 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
12626 cat >>confdefs.h
<<_ACEOF
12627 #define HAVE_STAT_EMPTY_STRING_BUG 1
12633 for ac_func
in strftime
12635 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12636 echo "$as_me:$LINENO: checking for $ac_func" >&5
12637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12638 if eval "test \"\${$as_ac_var+set}\" = set"; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 cat >conftest.
$ac_ext <<_ACEOF
12644 cat confdefs.h
>>conftest.
$ac_ext
12645 cat >>conftest.
$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12649 #define $ac_func innocuous_$ac_func
12651 /* System header to define __stub macros and hopefully few prototypes,
12652 which can conflict with char $ac_func (); below.
12653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12654 <limits.h> exists even on freestanding compilers. */
12657 # include <limits.h>
12659 # include <assert.h>
12664 /* Override any gcc2 internal prototype to avoid an error. */
12669 /* We use char because int might match the return type of a gcc2
12670 builtin and then its argument prototype would still apply. */
12672 /* The GNU C library defines this for functions which it implements
12673 to always fail with ENOSYS. Some functions are actually named
12674 something starting with __ and the normal name is an alias. */
12675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12678 char (*f) () = $ac_func;
12687 return f != $ac_func;
12692 rm -f conftest.
$ac_objext conftest
$ac_exeext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12694 (eval $ac_link) 2>conftest.er1
12696 grep -v '^ *+' conftest.er1
>conftest.err
12698 cat conftest.err
>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try
='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try
='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 eval "$as_ac_var=yes"
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.
$ac_ext >&5
12719 eval "$as_ac_var=no"
12721 rm -f conftest.err conftest.
$ac_objext \
12722 conftest
$ac_exeext conftest.
$ac_ext
12724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12726 if test `eval echo '${'$as_ac_var'}'` = yes; then
12727 cat >>confdefs.h
<<_ACEOF
12728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12732 # strftime is in -lintl on SCO UNIX.
12733 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12734 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12735 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_check_lib_save_LIBS
=$LIBS
12739 LIBS
="-lintl $LIBS"
12740 cat >conftest.
$ac_ext <<_ACEOF
12743 cat confdefs.h
>>conftest.
$ac_ext
12744 cat >>conftest.
$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12747 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12762 rm -f conftest.
$ac_objext conftest
$ac_exeext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764 (eval $ac_link) 2>conftest.er1
12766 grep -v '^ *+' conftest.er1
>conftest.err
12768 cat conftest.err
>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try
='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try
='test -s conftest$ac_exeext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_lib_intl_strftime
=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.
$ac_ext >&5
12789 ac_cv_lib_intl_strftime
=no
12791 rm -f conftest.err conftest.
$ac_objext \
12792 conftest
$ac_exeext conftest.
$ac_ext
12793 LIBS
=$ac_check_lib_save_LIBS
12795 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12796 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12797 if test $ac_cv_lib_intl_strftime = yes; then
12798 cat >>confdefs.h
<<\_ACEOF
12799 #define HAVE_STRFTIME 1
12802 LIBS
="-lintl $LIBS"
12808 echo "$as_me:$LINENO: checking for working strtod" >&5
12809 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12810 if test "${ac_cv_func_strtod+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 if test "$cross_compiling" = yes; then
12814 ac_cv_func_strtod
=no
12816 cat >conftest.
$ac_ext <<_ACEOF
12819 cat confdefs.h
>>conftest.
$ac_ext
12820 cat >>conftest.
$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12828 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12829 char *string = " +69";
12832 value = strtod (string, &term);
12833 if (value != 69 || term != (string + 4))
12838 /* Under Solaris 2.4, strtod returns the wrong value for the
12839 terminating character under some conditions. */
12840 char *string = "NaN";
12842 strtod (string, &term);
12843 if (term != string && *(term - 1) == 0)
12850 rm -f conftest
$ac_exeext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852 (eval $ac_link) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_func_strtod
=yes
12863 echo "$as_me: program exited with status $ac_status" >&5
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.
$ac_ext >&5
12867 ( exit $ac_status )
12868 ac_cv_func_strtod
=no
12870 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12873 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12874 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12875 if test $ac_cv_func_strtod = no
; then
12877 "strtod.$ac_objext" | \
12878 *" strtod.$ac_objext" | \
12879 "strtod.$ac_objext "* | \
12880 *" strtod.$ac_objext "* ) ;;
12881 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
12884 echo "$as_me:$LINENO: checking for pow" >&5
12885 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12886 if test "${ac_cv_func_pow+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 cat >conftest.
$ac_ext <<_ACEOF
12892 cat confdefs.h
>>conftest.
$ac_ext
12893 cat >>conftest.
$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12897 #define pow innocuous_pow
12899 /* System header to define __stub macros and hopefully few prototypes,
12900 which can conflict with char pow (); below.
12901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 <limits.h> exists even on freestanding compilers. */
12905 # include <limits.h>
12907 # include <assert.h>
12912 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12920 /* The GNU C library defines this for functions which it implements
12921 to always fail with ENOSYS. Some functions are actually named
12922 something starting with __ and the normal name is an alias. */
12923 #if defined (__stub_pow) || defined (__stub___pow)
12926 char (*f) () = pow;
12940 rm -f conftest.
$ac_objext conftest
$ac_exeext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12942 (eval $ac_link) 2>conftest.er1
12944 grep -v '^ *+' conftest.er1
>conftest.err
12946 cat conftest.err
>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try
='test -z "$ac_c_werror_flag"
12950 || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try
='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.
$ac_ext >&5
12969 rm -f conftest.err conftest.
$ac_objext \
12970 conftest
$ac_exeext conftest.
$ac_ext
12972 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12973 echo "${ECHO_T}$ac_cv_func_pow" >&6
12975 if test $ac_cv_func_pow = no
; then
12976 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12977 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12978 if test "${ac_cv_lib_m_pow+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 ac_check_lib_save_LIBS
=$LIBS
12983 cat >conftest.
$ac_ext <<_ACEOF
12986 cat confdefs.h
>>conftest.
$ac_ext
12987 cat >>conftest.
$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 /* Override any gcc2 internal prototype to avoid an error. */
12994 /* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
13005 rm -f conftest.
$ac_objext conftest
$ac_exeext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13007 (eval $ac_link) 2>conftest.er1
13009 grep -v '^ *+' conftest.er1
>conftest.err
13011 cat conftest.err
>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try
='test -z "$ac_c_werror_flag"
13015 || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try
='test -s conftest$ac_exeext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_cv_lib_m_pow
=yes
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.
$ac_ext >&5
13034 rm -f conftest.err conftest.
$ac_objext \
13035 conftest
$ac_exeext conftest.
$ac_ext
13036 LIBS
=$ac_check_lib_save_LIBS
13038 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13039 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13040 if test $ac_cv_lib_m_pow = yes; then
13043 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13044 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13052 for ac_func
in vprintf
13054 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13055 echo "$as_me:$LINENO: checking for $ac_func" >&5
13056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13057 if eval "test \"\${$as_ac_var+set}\" = set"; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 cat >conftest.
$ac_ext <<_ACEOF
13063 cat confdefs.h
>>conftest.
$ac_ext
13064 cat >>conftest.
$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13068 #define $ac_func innocuous_$ac_func
13070 /* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char $ac_func (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13076 # include <limits.h>
13078 # include <assert.h>
13083 /* Override any gcc2 internal prototype to avoid an error. */
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13091 /* The GNU C library defines this for functions which it implements
13092 to always fail with ENOSYS. Some functions are actually named
13093 something starting with __ and the normal name is an alias. */
13094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13097 char (*f) () = $ac_func;
13106 return f != $ac_func;
13111 rm -f conftest.
$ac_objext conftest
$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>conftest.er1
13115 grep -v '^ *+' conftest.er1
>conftest.err
13117 cat conftest.err
>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try
='test -z "$ac_c_werror_flag"
13121 || test ! -s conftest.err'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try
='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 eval "$as_ac_var=yes"
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.
$ac_ext >&5
13138 eval "$as_ac_var=no"
13140 rm -f conftest.err conftest.
$ac_objext \
13141 conftest
$ac_exeext conftest.
$ac_ext
13143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13145 if test `eval echo '${'$as_ac_var'}'` = yes; then
13146 cat >>confdefs.h
<<_ACEOF
13147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13150 echo "$as_me:$LINENO: checking for _doprnt" >&5
13151 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13152 if test "${ac_cv_func__doprnt+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 cat >conftest.
$ac_ext <<_ACEOF
13158 cat confdefs.h
>>conftest.
$ac_ext
13159 cat >>conftest.
$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13163 #define _doprnt innocuous__doprnt
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char _doprnt (); below.
13167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13168 <limits.h> exists even on freestanding compilers. */
13171 # include <limits.h>
13173 # include <assert.h>
13178 /* Override any gcc2 internal prototype to avoid an error. */
13183 /* We use char because int might match the return type of a gcc2
13184 builtin and then its argument prototype would still apply. */
13186 /* The GNU C library defines this for functions which it implements
13187 to always fail with ENOSYS. Some functions are actually named
13188 something starting with __ and the normal name is an alias. */
13189 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13192 char (*f) () = _doprnt;
13201 return f != _doprnt;
13206 rm -f conftest.
$ac_objext conftest
$ac_exeext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13208 (eval $ac_link) 2>conftest.er1
13210 grep -v '^ *+' conftest.er1
>conftest.err
13212 cat conftest.err
>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try
='test -z "$ac_c_werror_flag"
13216 || test ! -s conftest.err'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try
='test -s conftest$ac_exeext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_func__doprnt
=yes
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.
$ac_ext >&5
13233 ac_cv_func__doprnt
=no
13235 rm -f conftest.err conftest.
$ac_objext \
13236 conftest
$ac_exeext conftest.
$ac_ext
13238 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13239 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13240 if test $ac_cv_func__doprnt = yes; then
13242 cat >>confdefs.h
<<\_ACEOF
13243 #define HAVE_DOPRNT 1
13252 if test $cross_compiling = yes -a $gnumalloc = yes; then
13254 { echo "$as_me:$LINENO: WARNING:
13255 configure cannot check whether malloc() and realloc() are GNU libc
13256 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13257 run configure with the --without-gnu-malloc switch." >&5
13258 echo "$as_me: WARNING:
13259 configure cannot check whether malloc() and realloc() are GNU libc
13260 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13261 run configure with the --without-gnu-malloc switch." >&2;}
13262 _mule_warning_7
=yes
13263 _mule_has_warnings
=yes
13265 ac_cv_func_malloc_0_nonnull
=yes
13266 ac_cv_func_realloc_0_nonnull
=yes
13271 for ac_header
in stdlib.h
13273 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13275 echo "$as_me:$LINENO: checking for $ac_header" >&5
13276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13283 # Is the header compilable?
13284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13286 cat >conftest.
$ac_ext <<_ACEOF
13289 cat confdefs.h
>>conftest.
$ac_ext
13290 cat >>conftest.
$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 $ac_includes_default
13293 #include <$ac_header>
13295 rm -f conftest.
$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>conftest.er1
13299 grep -v '^ *+' conftest.er1
>conftest.err
13301 cat conftest.err
>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try
='test -z "$ac_c_werror_flag"
13305 || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try
='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_header_compiler
=yes
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.
$ac_ext >&5
13322 ac_header_compiler
=no
13324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 echo "${ECHO_T}$ac_header_compiler" >&6
13328 # Is the header present?
13329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13331 cat >conftest.
$ac_ext <<_ACEOF
13334 cat confdefs.h
>>conftest.
$ac_ext
13335 cat >>conftest.
$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 #include <$ac_header>
13339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13340 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13342 grep -v '^ *+' conftest.er1
>conftest.err
13344 cat conftest.err
>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } >/dev
/null
; then
13347 if test -s conftest.err
; then
13348 ac_cpp_err
=$ac_c_preproc_warn_flag
13349 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13356 if test -z "$ac_cpp_err"; then
13357 ac_header_preproc
=yes
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.
$ac_ext >&5
13362 ac_header_preproc
=no
13364 rm -f conftest.err conftest.
$ac_ext
13365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13366 echo "${ECHO_T}$ac_header_preproc" >&6
13368 # So? What about this header?
13369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13375 ac_header_preproc
=yes
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13392 ## ------------------------------ ##
13393 ## Report this to admin@amule.org ##
13394 ## ------------------------------ ##
13397 sed "s/^/$as_me: WARNING: /" >&2
13400 echo "$as_me:$LINENO: checking for $ac_header" >&5
13401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 eval "$as_ac_Header=\$ac_header_preproc"
13407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13412 cat >>confdefs.h
<<_ACEOF
13413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13420 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13421 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13422 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 if test "$cross_compiling" = yes; then
13426 ac_cv_func_malloc_0_nonnull
=no
13428 cat >conftest.
$ac_ext <<_ACEOF
13431 cat confdefs.h
>>conftest.
$ac_ext
13432 cat >>conftest.
$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 #if STDC_HEADERS || HAVE_STDLIB_H
13435 # include <stdlib.h>
13443 exit (malloc (0) ? 0 : 1);
13448 rm -f conftest
$ac_exeext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13450 (eval $ac_link) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_func_malloc_0_nonnull
=yes
13461 echo "$as_me: program exited with status $ac_status" >&5
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.
$ac_ext >&5
13465 ( exit $ac_status )
13466 ac_cv_func_malloc_0_nonnull
=no
13468 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13471 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13472 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13473 if test $ac_cv_func_malloc_0_nonnull = yes; then
13475 cat >>confdefs.h
<<\_ACEOF
13476 #define HAVE_MALLOC 1
13480 cat >>confdefs.h
<<\_ACEOF
13481 #define HAVE_MALLOC 0
13485 "malloc.$ac_objext" | \
13486 *" malloc.$ac_objext" | \
13487 "malloc.$ac_objext "* | \
13488 *" malloc.$ac_objext "* ) ;;
13489 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
13493 cat >>confdefs.h
<<\_ACEOF
13494 #define malloc rpl_malloc
13502 for ac_header
in stdlib.h
13504 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13506 echo "$as_me:$LINENO: checking for $ac_header" >&5
13507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13514 # Is the header compilable?
13515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13517 cat >conftest.
$ac_ext <<_ACEOF
13520 cat confdefs.h
>>conftest.
$ac_ext
13521 cat >>conftest.
$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13524 #include <$ac_header>
13526 rm -f conftest.
$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>conftest.er1
13530 grep -v '^ *+' conftest.er1
>conftest.err
13532 cat conftest.err
>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try
='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; } &&
13542 { ac_try
='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_header_compiler
=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.
$ac_ext >&5
13553 ac_header_compiler
=no
13555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13557 echo "${ECHO_T}$ac_header_compiler" >&6
13559 # Is the header present?
13560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13562 cat >conftest.
$ac_ext <<_ACEOF
13565 cat confdefs.h
>>conftest.
$ac_ext
13566 cat >>conftest.
$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 #include <$ac_header>
13570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13571 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13573 grep -v '^ *+' conftest.er1
>conftest.err
13575 cat conftest.err
>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } >/dev
/null
; then
13578 if test -s conftest.err
; then
13579 ac_cpp_err
=$ac_c_preproc_warn_flag
13580 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13587 if test -z "$ac_cpp_err"; then
13588 ac_header_preproc
=yes
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.
$ac_ext >&5
13593 ac_header_preproc
=no
13595 rm -f conftest.err conftest.
$ac_ext
13596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13597 echo "${ECHO_T}$ac_header_preproc" >&6
13599 # So? What about this header?
13600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13606 ac_header_preproc
=yes
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13623 ## ------------------------------ ##
13624 ## Report this to admin@amule.org ##
13625 ## ------------------------------ ##
13628 sed "s/^/$as_me: WARNING: /" >&2
13631 echo "$as_me:$LINENO: checking for $ac_header" >&5
13632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 eval "$as_ac_Header=\$ac_header_preproc"
13638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13643 cat >>confdefs.h
<<_ACEOF
13644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13651 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13652 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13653 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 if test "$cross_compiling" = yes; then
13657 ac_cv_func_realloc_0_nonnull
=no
13659 cat >conftest.
$ac_ext <<_ACEOF
13662 cat confdefs.h
>>conftest.
$ac_ext
13663 cat >>conftest.
$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #if STDC_HEADERS || HAVE_STDLIB_H
13666 # include <stdlib.h>
13674 exit (realloc (0, 0) ? 0 : 1);
13679 rm -f conftest
$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_func_realloc_0_nonnull
=yes
13692 echo "$as_me: program exited with status $ac_status" >&5
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.
$ac_ext >&5
13696 ( exit $ac_status )
13697 ac_cv_func_realloc_0_nonnull
=no
13699 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13702 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13703 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13704 if test $ac_cv_func_realloc_0_nonnull = yes; then
13706 cat >>confdefs.h
<<\_ACEOF
13707 #define HAVE_REALLOC 1
13711 cat >>confdefs.h
<<\_ACEOF
13712 #define HAVE_REALLOC 0
13716 "realloc.$ac_objext" | \
13717 *" realloc.$ac_objext" | \
13718 "realloc.$ac_objext "* | \
13719 *" realloc.$ac_objext "* ) ;;
13720 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
13724 cat >>confdefs.h
<<\_ACEOF
13725 #define realloc rpl_realloc
13765 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13767 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13768 echo "$as_me:$LINENO: checking for $ac_func" >&5
13769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13770 if eval "test \"\${$as_ac_var+set}\" = set"; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 cat >conftest.
$ac_ext <<_ACEOF
13776 cat confdefs.h
>>conftest.
$ac_ext
13777 cat >>conftest.
$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13781 #define $ac_func innocuous_$ac_func
13783 /* System header to define __stub macros and hopefully few prototypes,
13784 which can conflict with char $ac_func (); below.
13785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13786 <limits.h> exists even on freestanding compilers. */
13789 # include <limits.h>
13791 # include <assert.h>
13796 /* Override any gcc2 internal prototype to avoid an error. */
13801 /* We use char because int might match the return type of a gcc2
13802 builtin and then its argument prototype would still apply. */
13804 /* The GNU C library defines this for functions which it implements
13805 to always fail with ENOSYS. Some functions are actually named
13806 something starting with __ and the normal name is an alias. */
13807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13810 char (*f) () = $ac_func;
13819 return f != $ac_func;
13824 rm -f conftest.
$ac_objext conftest
$ac_exeext
13825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>conftest.er1
13828 grep -v '^ *+' conftest.er1
>conftest.err
13830 cat conftest.err
>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
13833 { ac_try
='test -z "$ac_c_werror_flag"
13834 || test ! -s conftest.err'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try
='test -s conftest$ac_exeext'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 eval "$as_ac_var=yes"
13848 echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.
$ac_ext >&5
13851 eval "$as_ac_var=no"
13853 rm -f conftest.err conftest.
$ac_objext \
13854 conftest
$ac_exeext conftest.
$ac_ext
13856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13858 if test `eval echo '${'$as_ac_var'}'` = yes; then
13859 cat >>confdefs.h
<<_ACEOF
13860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13866 #-------------------------------------------------------------------------------
13867 # End of autoscan stuff
13868 #-------------------------------------------------------------------------------
13874 for ac_func
in mkdir getrlimit setrlimit getopt_long
13876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13877 echo "$as_me:$LINENO: checking for $ac_func" >&5
13878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13879 if eval "test \"\${$as_ac_var+set}\" = set"; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 cat >conftest.
$ac_ext <<_ACEOF
13885 cat confdefs.h
>>conftest.
$ac_ext
13886 cat >>conftest.
$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13890 #define $ac_func innocuous_$ac_func
13892 /* System header to define __stub macros and hopefully few prototypes,
13893 which can conflict with char $ac_func (); below.
13894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13895 <limits.h> exists even on freestanding compilers. */
13898 # include <limits.h>
13900 # include <assert.h>
13905 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13913 /* The GNU C library defines this for functions which it implements
13914 to always fail with ENOSYS. Some functions are actually named
13915 something starting with __ and the normal name is an alias. */
13916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13919 char (*f) () = $ac_func;
13928 return f != $ac_func;
13933 rm -f conftest.
$ac_objext conftest
$ac_exeext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>conftest.er1
13937 grep -v '^ *+' conftest.er1
>conftest.err
13939 cat conftest.err
>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try
='test -z "$ac_c_werror_flag"
13943 || test ! -s conftest.err'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; } &&
13949 { ac_try
='test -s conftest$ac_exeext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 eval "$as_ac_var=yes"
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.
$ac_ext >&5
13960 eval "$as_ac_var=no"
13962 rm -f conftest.err conftest.
$ac_objext \
13963 conftest
$ac_exeext conftest.
$ac_ext
13965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13967 if test `eval echo '${'$as_ac_var'}'` = yes; then
13968 cat >>confdefs.h
<<_ACEOF
13969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13976 # Check whether --enable-mmap or --disable-mmap was given.
13977 if test "${enable_mmap+set}" = set; then
13978 enableval
="$enable_mmap"
13982 if test ${enable_mmap:-no} = yes; then
13985 for ac_header
in sys
/mman.h
13987 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13989 echo "$as_me:$LINENO: checking for $ac_header" >&5
13990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13997 # Is the header compilable?
13998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14000 cat >conftest.
$ac_ext <<_ACEOF
14003 cat confdefs.h
>>conftest.
$ac_ext
14004 cat >>conftest.
$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 $ac_includes_default
14007 #include <$ac_header>
14009 rm -f conftest.
$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1
>conftest.err
14015 cat conftest.err
>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try
='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try
='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_header_compiler
=yes
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.
$ac_ext >&5
14036 ac_header_compiler
=no
14038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14040 echo "${ECHO_T}$ac_header_compiler" >&6
14042 # Is the header present?
14043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14045 cat >conftest.
$ac_ext <<_ACEOF
14048 cat confdefs.h
>>conftest.
$ac_ext
14049 cat >>conftest.
$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include <$ac_header>
14053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14054 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
14061 if test -s conftest.err
; then
14062 ac_cpp_err
=$ac_c_preproc_warn_flag
14063 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14070 if test -z "$ac_cpp_err"; then
14071 ac_header_preproc
=yes
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.
$ac_ext >&5
14076 ac_header_preproc
=no
14078 rm -f conftest.err conftest.
$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14080 echo "${ECHO_T}$ac_header_preproc" >&6
14082 # So? What about this header?
14083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14089 ac_header_preproc
=yes
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14106 ## ------------------------------ ##
14107 ## Report this to admin@amule.org ##
14108 ## ------------------------------ ##
14111 sed "s/^/$as_me: WARNING: /" >&2
14114 echo "$as_me:$LINENO: checking for $ac_header" >&5
14115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 eval "$as_ac_Header=\$ac_header_preproc"
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14126 cat >>confdefs.h
<<_ACEOF
14127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14136 for ac_header
in stdlib.h unistd.h
14138 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140 echo "$as_me:$LINENO: checking for $ac_header" >&5
14141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14148 # Is the header compilable?
14149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14151 cat >conftest.
$ac_ext <<_ACEOF
14154 cat confdefs.h
>>conftest.
$ac_ext
14155 cat >>conftest.
$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 $ac_includes_default
14158 #include <$ac_header>
14160 rm -f conftest.
$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>conftest.er1
14164 grep -v '^ *+' conftest.er1
>conftest.err
14166 cat conftest.err
>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try
='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try
='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_header_compiler
=yes
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.
$ac_ext >&5
14187 ac_header_compiler
=no
14189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14191 echo "${ECHO_T}$ac_header_compiler" >&6
14193 # Is the header present?
14194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14196 cat >conftest.
$ac_ext <<_ACEOF
14199 cat confdefs.h
>>conftest.
$ac_ext
14200 cat >>conftest.
$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 #include <$ac_header>
14204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14205 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14207 grep -v '^ *+' conftest.er1
>conftest.err
14209 cat conftest.err
>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } >/dev
/null
; then
14212 if test -s conftest.err
; then
14213 ac_cpp_err
=$ac_c_preproc_warn_flag
14214 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14221 if test -z "$ac_cpp_err"; then
14222 ac_header_preproc
=yes
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.
$ac_ext >&5
14227 ac_header_preproc
=no
14229 rm -f conftest.err conftest.
$ac_ext
14230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14231 echo "${ECHO_T}$ac_header_preproc" >&6
14233 # So? What about this header?
14234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14240 ac_header_preproc
=yes
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14257 ## ------------------------------ ##
14258 ## Report this to admin@amule.org ##
14259 ## ------------------------------ ##
14262 sed "s/^/$as_me: WARNING: /" >&2
14265 echo "$as_me:$LINENO: checking for $ac_header" >&5
14266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 eval "$as_ac_Header=\$ac_header_preproc"
14272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14277 cat >>confdefs.h
<<_ACEOF
14278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14286 for ac_func
in getpagesize
14288 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14289 echo "$as_me:$LINENO: checking for $ac_func" >&5
14290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14291 if eval "test \"\${$as_ac_var+set}\" = set"; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 cat >conftest.
$ac_ext <<_ACEOF
14297 cat confdefs.h
>>conftest.
$ac_ext
14298 cat >>conftest.
$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14302 #define $ac_func innocuous_$ac_func
14304 /* System header to define __stub macros and hopefully few prototypes,
14305 which can conflict with char $ac_func (); below.
14306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14307 <limits.h> exists even on freestanding compilers. */
14310 # include <limits.h>
14312 # include <assert.h>
14317 /* Override any gcc2 internal prototype to avoid an error. */
14322 /* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14325 /* The GNU C library defines this for functions which it implements
14326 to always fail with ENOSYS. Some functions are actually named
14327 something starting with __ and the normal name is an alias. */
14328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14331 char (*f) () = $ac_func;
14340 return f != $ac_func;
14345 rm -f conftest.
$ac_objext conftest
$ac_exeext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14347 (eval $ac_link) 2>conftest.er1
14349 grep -v '^ *+' conftest.er1
>conftest.err
14351 cat conftest.err
>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try
='test -z "$ac_c_werror_flag"
14355 || test ! -s conftest.err'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try
='test -s conftest$ac_exeext'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 eval "$as_ac_var=yes"
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.
$ac_ext >&5
14372 eval "$as_ac_var=no"
14374 rm -f conftest.err conftest.
$ac_objext \
14375 conftest
$ac_exeext conftest.
$ac_ext
14377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14379 if test `eval echo '${'$as_ac_var'}'` = yes; then
14380 cat >>confdefs.h
<<_ACEOF
14381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14387 echo "$as_me:$LINENO: checking for working mmap" >&5
14388 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14389 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 if test "$cross_compiling" = yes; then
14393 ac_cv_func_mmap_fixed_mapped
=no
14395 cat >conftest.
$ac_ext <<_ACEOF
14398 cat confdefs.h
>>conftest.
$ac_ext
14399 cat >>conftest.
$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 $ac_includes_default
14402 /* malloc might have been renamed as rpl_malloc. */
14405 /* Thanks to Mike Haertel and Jim Avera for this test.
14406 Here is a matrix of mmap possibilities:
14407 mmap private not fixed
14408 mmap private fixed at somewhere currently unmapped
14409 mmap private fixed at somewhere already mapped
14410 mmap shared not fixed
14411 mmap shared fixed at somewhere currently unmapped
14412 mmap shared fixed at somewhere already mapped
14413 For private mappings, we should verify that changes cannot be read()
14414 back from the file, nor mmap's back from the file at a different
14415 address. (There have been systems where private was not correctly
14416 implemented like the infamous i386 svr4.0, and systems where the
14417 VM page cache was not coherent with the file system buffer cache
14418 like early versions of FreeBSD and possibly contemporary NetBSD.)
14419 For shared mappings, we should conversely verify that changes get
14420 propagated back to all the places they're supposed to be.
14422 Grep wants private fixed already mapped.
14423 The main things grep needs to know about mmap are:
14424 * does it exist and is it safe to write into the mmap'd area
14425 * how to use it (BSD variants) */
14428 #include <sys/mman.h>
14430 #if !STDC_HEADERS && !HAVE_STDLIB_H
14434 /* This mess was copied from the GNU getpagesize.h. */
14435 #if !HAVE_GETPAGESIZE
14436 /* Assume that all systems that can run configure have sys/param.h. */
14437 # if !HAVE_SYS_PARAM_H
14438 # define HAVE_SYS_PARAM_H 1
14441 # ifdef _SC_PAGESIZE
14442 # define getpagesize() sysconf(_SC_PAGESIZE)
14443 # else /* no _SC_PAGESIZE */
14444 # if HAVE_SYS_PARAM_H
14445 # include <sys/param.h>
14446 # ifdef EXEC_PAGESIZE
14447 # define getpagesize() EXEC_PAGESIZE
14448 # else /* no EXEC_PAGESIZE */
14450 # define getpagesize() NBPG * CLSIZE
14453 # endif /* no CLSIZE */
14454 # else /* no NBPG */
14456 # define getpagesize() NBPC
14457 # else /* no NBPC */
14459 # define getpagesize() PAGESIZE
14460 # endif /* PAGESIZE */
14461 # endif /* no NBPC */
14462 # endif /* no NBPG */
14463 # endif /* no EXEC_PAGESIZE */
14464 # else /* no HAVE_SYS_PARAM_H */
14465 # define getpagesize() 8192 /* punt totally */
14466 # endif /* no HAVE_SYS_PARAM_H */
14467 # endif /* no _SC_PAGESIZE */
14469 #endif /* no HAVE_GETPAGESIZE */
14474 char *data, *data2, *data3;
14478 pagesize = getpagesize ();
14480 /* First, make a file with some known garbage in it. */
14481 data = (char *) malloc (pagesize);
14484 for (i = 0; i < pagesize; ++i)
14485 *(data + i) = rand ();
14487 fd = creat ("conftest.mmap", 0600);
14490 if (write (fd, data, pagesize) != pagesize)
14494 /* Next, try to mmap the file at a fixed address which already has
14495 something else allocated at it. If we can, also make sure that
14496 we see the same garbage. */
14497 fd = open ("conftest.mmap", O_RDWR);
14500 data2 = (char *) malloc (2 * pagesize);
14503 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14504 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14505 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14507 for (i = 0; i < pagesize; ++i)
14508 if (*(data + i) != *(data2 + i))
14511 /* Finally, make sure that changes to the mapped area do not
14512 percolate back to the file as seen by read(). (This is a bug on
14513 some variants of i386 svr4.0.) */
14514 for (i = 0; i < pagesize; ++i)
14515 *(data2 + i) = *(data2 + i) + 1;
14516 data3 = (char *) malloc (pagesize);
14519 if (read (fd, data3, pagesize) != pagesize)
14521 for (i = 0; i < pagesize; ++i)
14522 if (*(data + i) != *(data3 + i))
14528 rm -f conftest
$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530 (eval $ac_link) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_func_mmap_fixed_mapped
=yes
14541 echo "$as_me: program exited with status $ac_status" >&5
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.
$ac_ext >&5
14545 ( exit $ac_status )
14546 ac_cv_func_mmap_fixed_mapped
=no
14548 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14551 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14552 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14553 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14555 cat >>confdefs.h
<<\_ACEOF
14556 #define HAVE_MMAP 1
14560 rm -f conftest.mmap
14563 for ac_func
in munmap
14565 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$as_ac_var+set}\" = set"; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 cat >conftest.
$ac_ext <<_ACEOF
14574 cat confdefs.h
>>conftest.
$ac_ext
14575 cat >>conftest.
$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14579 #define $ac_func innocuous_$ac_func
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below.
14583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584 <limits.h> exists even on freestanding compilers. */
14587 # include <limits.h>
14589 # include <assert.h>
14594 /* Override any gcc2 internal prototype to avoid an error. */
14599 /* We use char because int might match the return type of a gcc2
14600 builtin and then its argument prototype would still apply. */
14602 /* The GNU C library defines this for functions which it implements
14603 to always fail with ENOSYS. Some functions are actually named
14604 something starting with __ and the normal name is an alias. */
14605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14608 char (*f) () = $ac_func;
14617 return f != $ac_func;
14622 rm -f conftest.
$ac_objext conftest
$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>conftest.er1
14626 grep -v '^ *+' conftest.er1
>conftest.err
14628 cat conftest.err
>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try
='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try
='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 eval "$as_ac_var=yes"
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.
$ac_ext >&5
14649 eval "$as_ac_var=no"
14651 rm -f conftest.err conftest.
$ac_objext \
14652 conftest
$ac_exeext conftest.
$ac_ext
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657 cat >>confdefs.h
<<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14667 # fake the result of the test for munmap() for the gettext macros
14668 ac_cv_func_munmap
=no
14674 mule_backup_CPPFLAGS
="$CPPFLAGS"
14675 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14676 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14677 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14678 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 cat >conftest.
$ac_ext <<_ACEOF
14684 cat confdefs.h
>>conftest.
$ac_ext
14685 cat >>conftest.
$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14692 char *p = (char *) strerror_r;
14699 rm -f conftest.
$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701 (eval $ac_compile) 2>conftest.er1
14703 grep -v '^ *+' conftest.er1
>conftest.err
14705 cat conftest.err
>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try
='test -z "$ac_c_werror_flag"
14709 || test ! -s conftest.err'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try
='test -s conftest.$ac_objext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_cv_have_decl_strerror_r
=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.
$ac_ext >&5
14726 ac_cv_have_decl_strerror_r
=no
14728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14730 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14731 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14732 if test $ac_cv_have_decl_strerror_r = yes; then
14734 cat >>confdefs.h
<<_ACEOF
14735 #define HAVE_DECL_STRERROR_R 1
14740 cat >>confdefs.h
<<_ACEOF
14741 #define HAVE_DECL_STRERROR_R 0
14749 for ac_func
in strerror_r
14751 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14752 echo "$as_me:$LINENO: checking for $ac_func" >&5
14753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14754 if eval "test \"\${$as_ac_var+set}\" = set"; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 cat >conftest.
$ac_ext <<_ACEOF
14760 cat confdefs.h
>>conftest.
$ac_ext
14761 cat >>conftest.
$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14765 #define $ac_func innocuous_$ac_func
14767 /* System header to define __stub macros and hopefully few prototypes,
14768 which can conflict with char $ac_func (); below.
14769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14770 <limits.h> exists even on freestanding compilers. */
14773 # include <limits.h>
14775 # include <assert.h>
14780 /* Override any gcc2 internal prototype to avoid an error. */
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14788 /* The GNU C library defines this for functions which it implements
14789 to always fail with ENOSYS. Some functions are actually named
14790 something starting with __ and the normal name is an alias. */
14791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14794 char (*f) () = $ac_func;
14803 return f != $ac_func;
14808 rm -f conftest.
$ac_objext conftest
$ac_exeext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>conftest.er1
14812 grep -v '^ *+' conftest.er1
>conftest.err
14814 cat conftest.err
>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try
='test -z "$ac_c_werror_flag"
14818 || test ! -s conftest.err'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; } &&
14824 { ac_try
='test -s conftest$ac_exeext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 eval "$as_ac_var=yes"
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.
$ac_ext >&5
14835 eval "$as_ac_var=no"
14837 rm -f conftest.err conftest.
$ac_objext \
14838 conftest
$ac_exeext conftest.
$ac_ext
14840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14842 if test `eval echo '${'$as_ac_var'}'` = yes; then
14843 cat >>confdefs.h
<<_ACEOF
14844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14850 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14851 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14852 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 ac_cv_func_strerror_r_char_p
=no
14857 if test $ac_cv_have_decl_strerror_r = yes; then
14858 cat >conftest.
$ac_ext <<_ACEOF
14861 cat confdefs.h
>>conftest.
$ac_ext
14862 cat >>conftest.
$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 $ac_includes_default
14870 char x = *strerror_r (0, buf, sizeof buf);
14871 char *p = strerror_r (0, buf, sizeof buf);
14877 rm -f conftest.
$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879 (eval $ac_compile) 2>conftest.er1
14881 grep -v '^ *+' conftest.er1
>conftest.err
14883 cat conftest.err
>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try
='test -z "$ac_c_werror_flag"
14887 || test ! -s conftest.err'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; } &&
14893 { ac_try
='test -s conftest.$ac_objext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_func_strerror_r_char_p
=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.
$ac_ext >&5
14905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14907 # strerror_r is not declared. Choose between
14908 # systems that have relatively inaccessible declarations for the
14909 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14910 # former has a strerror_r that returns char*, while the latter
14911 # has a strerror_r that returns `int'.
14912 # This test should segfault on the DEC system.
14913 if test "$cross_compiling" = yes; then
14916 cat >conftest.
$ac_ext <<_ACEOF
14919 cat confdefs.h
>>conftest.
$ac_ext
14920 cat >>conftest.
$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14922 $ac_includes_default
14923 extern char *strerror_r ();
14928 char x = *strerror_r (0, buf, sizeof buf);
14929 exit (!isalpha (x));
14934 rm -f conftest
$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_cv_func_strerror_r_char_p
=yes
14947 echo "$as_me: program exited with status $ac_status" >&5
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.
$ac_ext >&5
14952 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14957 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14958 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14959 if test $ac_cv_func_strerror_r_char_p = yes; then
14961 cat >>confdefs.h
<<\_ACEOF
14962 #define STRERROR_R_CHAR_P 1
14967 CPPFLAGS
="$mule_backup_CPPFLAGS"
14969 # Look for a way to preallocate disk space for files.
14971 echo "$as_me:$LINENO: checking for fallocate" >&5
14972 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14973 mule_backup_CPPFLAGS
="$CPPFLAGS"
14974 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
14975 cat >conftest.
$ac_ext <<_ACEOF
14979 cat confdefs.h
>>conftest.
$ac_ext
14980 cat >>conftest.
$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14983 #define _GNU_SOURCE
14984 #ifdef HAVE_FCNTL_H
14985 # include <fcntl.h>
14987 #include <linux/falloc.h>
14993 fallocate(0, 0, 0, 0);
15000 rm -f conftest.
$ac_objext conftest
$ac_exeext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002 (eval $ac_link) 2>conftest.er1
15004 grep -v '^ *+' conftest.er1
>conftest.err
15006 cat conftest.err
>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try
='test -z "$ac_c_werror_flag"
15010 || test ! -s conftest.err'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try
='test -s conftest$ac_exeext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15025 cat >>confdefs.h
<<\_ACEOF
15026 #define HAVE_FALLOCATE 1
15029 echo "$as_me:$LINENO: result: yes" >&5
15030 echo "${ECHO_T}yes" >&6
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.
$ac_ext >&5
15037 echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15041 rm -f conftest.err conftest.
$ac_objext \
15042 conftest
$ac_exeext conftest.
$ac_ext
15043 CPPFLAGS
="$mule_backup_CPPFLAGS"
15046 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15047 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15048 cat >conftest.
$ac_ext <<_ACEOF
15052 cat confdefs.h
>>conftest.
$ac_ext
15053 cat >>conftest.
$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15056 #include <sys/syscall.h>
15057 #include <sys/types.h>
15058 #include <unistd.h>
15064 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15071 rm -f conftest.
$ac_objext conftest
$ac_exeext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15073 (eval $ac_link) 2>conftest.er1
15075 grep -v '^ *+' conftest.er1
>conftest.err
15077 cat conftest.err
>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try
='test -z "$ac_c_werror_flag"
15081 || test ! -s conftest.err'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try
='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15096 cat >>confdefs.h
<<\_ACEOF
15097 #define HAVE_SYS_FALLOCATE 1
15100 echo "$as_me:$LINENO: result: yes" >&5
15101 echo "${ECHO_T}yes" >&6
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.
$ac_ext >&5
15108 echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6
15112 rm -f conftest.err conftest.
$ac_objext \
15113 conftest
$ac_exeext conftest.
$ac_ext
15115 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15116 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15117 cat >conftest.
$ac_ext <<_ACEOF
15121 cat confdefs.h
>>conftest.
$ac_ext
15122 cat >>conftest.
$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 #define _XOPEN_SOURCE 600
15126 #include <stdlib.h>
15127 #ifdef HAVE_FCNTL_H
15128 # include <fcntl.h>
15135 posix_fallocate(0, 0, 0);
15142 rm -f conftest.
$ac_objext conftest
$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>conftest.er1
15146 grep -v '^ *+' conftest.er1
>conftest.err
15148 cat conftest.err
>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try
='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try
='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15167 cat >>confdefs.h
<<\_ACEOF
15168 #define HAVE_POSIX_FALLOCATE 1
15171 echo "$as_me:$LINENO: result: yes" >&5
15172 echo "${ECHO_T}yes" >&6
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.
$ac_ext >&5
15179 echo "$as_me:$LINENO: result: no" >&5
15180 echo "${ECHO_T}no" >&6
15183 rm -f conftest.err conftest.
$ac_objext \
15184 conftest
$ac_exeext conftest.
$ac_ext
15187 # Checking Native Language Support
15191 if test -n "$ac_aux_dir"; then
15192 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15194 if test -z "$MKINSTALLDIRS"; then
15195 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15202 # Extract the first word of "msgfmt", so it can be a program name with args.
15203 set dummy msgfmt
; ac_word
=$2
15204 echo "$as_me:$LINENO: checking for $ac_word" >&5
15205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15206 if test "${ac_cv_path_MSGFMT+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15215 for ac_dir
in $PATH; do
15216 test -z "$ac_dir" && ac_dir
=.
15217 if test -f $ac_dir/$ac_word; then
15218 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15219 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15220 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15226 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15230 MSGFMT
="$ac_cv_path_MSGFMT"
15231 if test "$MSGFMT" != ":"; then
15232 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15233 echo "${ECHO_T}$MSGFMT" >&6
15235 echo "$as_me:$LINENO: result: no" >&5
15236 echo "${ECHO_T}no" >&6
15239 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15240 set dummy gmsgfmt
; ac_word
=$2
15241 echo "$as_me:$LINENO: checking for $ac_word" >&5
15242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15243 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15252 for as_dir
in $PATH
15255 test -z "$as_dir" && as_dir
=.
15256 for ac_exec_ext
in '' $ac_executable_extensions; do
15257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15265 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15269 GMSGFMT
=$ac_cv_path_GMSGFMT
15271 if test -n "$GMSGFMT"; then
15272 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15273 echo "${ECHO_T}$GMSGFMT" >&6
15275 echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15280 # Extract the first word of "xgettext", so it can be a program name with args.
15281 set dummy xgettext
; ac_word
=$2
15282 echo "$as_me:$LINENO: checking for $ac_word" >&5
15283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15284 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 case "$XGETTEXT" in
15289 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15292 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15293 for ac_dir
in $PATH; do
15294 test -z "$ac_dir" && ac_dir
=.
15295 if test -f $ac_dir/$ac_word; then
15296 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15297 (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
15298 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15304 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15308 XGETTEXT
="$ac_cv_path_XGETTEXT"
15309 if test "$XGETTEXT" != ":"; then
15310 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15311 echo "${ECHO_T}$XGETTEXT" >&6
15313 echo "$as_me:$LINENO: result: no" >&5
15314 echo "${ECHO_T}no" >&6
15319 # Extract the first word of "msgmerge", so it can be a program name with args.
15320 set dummy msgmerge
; ac_word
=$2
15321 echo "$as_me:$LINENO: checking for $ac_word" >&5
15322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15323 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 case "$MSGMERGE" in
15328 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15332 for ac_dir
in $PATH; do
15333 test -z "$ac_dir" && ac_dir
=.
15334 if test -f $ac_dir/$ac_word; then
15335 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15336 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15342 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15346 MSGMERGE
="$ac_cv_path_MSGMERGE"
15347 if test "$MSGMERGE" != ":"; then
15348 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15349 echo "${ECHO_T}$MSGMERGE" >&6
15351 echo "$as_me:$LINENO: result: no" >&5
15352 echo "${ECHO_T}no" >&6
15356 if test "$GMSGFMT" != ":"; then
15357 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15358 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15361 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15362 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15363 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15368 if test "$XGETTEXT" != ":"; then
15369 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15370 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15373 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15374 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15380 ac_config_commands
="$ac_config_commands default-1"
15383 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15384 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15385 if test "${ac_cv_search_strerror+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 ac_func_search_save_LIBS
=$LIBS
15389 ac_cv_search_strerror
=no
15390 cat >conftest.
$ac_ext <<_ACEOF
15393 cat confdefs.h
>>conftest.
$ac_ext
15394 cat >>conftest.
$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15397 /* Override any gcc2 internal prototype to avoid an error. */
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15412 rm -f conftest.
$ac_objext conftest
$ac_exeext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15414 (eval $ac_link) 2>conftest.er1
15416 grep -v '^ *+' conftest.er1
>conftest.err
15418 cat conftest.err
>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try
='test -z "$ac_c_werror_flag"
15422 || test ! -s conftest.err'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try
='test -s conftest$ac_exeext'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_cv_search_strerror
="none required"
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.
$ac_ext >&5
15440 rm -f conftest.err conftest.
$ac_objext \
15441 conftest
$ac_exeext conftest.
$ac_ext
15442 if test "$ac_cv_search_strerror" = no
; then
15443 for ac_lib
in cposix
; do
15444 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15445 cat >conftest.
$ac_ext <<_ACEOF
15448 cat confdefs.h
>>conftest.
$ac_ext
15449 cat >>conftest.
$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15452 /* Override any gcc2 internal prototype to avoid an error. */
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15467 rm -f conftest.
$ac_objext conftest
$ac_exeext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15469 (eval $ac_link) 2>conftest.er1
15471 grep -v '^ *+' conftest.er1
>conftest.err
15473 cat conftest.err
>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try
='test -z "$ac_c_werror_flag"
15477 || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try
='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_search_strerror
="-l$ac_lib"
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.
$ac_ext >&5
15496 rm -f conftest.err conftest.
$ac_objext \
15497 conftest
$ac_exeext conftest.
$ac_ext
15500 LIBS
=$ac_func_search_save_LIBS
15502 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15503 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15504 if test "$ac_cv_search_strerror" != no
; then
15505 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15510 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15511 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15512 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 cat >conftest.
$ac_ext <<_ACEOF
15518 cat confdefs.h
>>conftest.
$ac_ext
15519 cat >>conftest.
$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15522 #include <features.h>
15523 #ifdef __GNU_LIBRARY__
15524 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15531 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15532 ac_cv_gnu_library_2_1
=yes
15534 ac_cv_gnu_library_2_1
=no
15541 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15542 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15544 GLIBC21
="$ac_cv_gnu_library_2_1"
15549 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15550 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15551 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 if test "$cross_compiling" = yes; then
15557 # Guess based on the CPU.
15558 case "$host_cpu" in
15559 alpha
* | i3456786 | m68k | s390
*)
15560 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15562 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15566 cat >conftest.
$ac_ext <<_ACEOF
15569 cat confdefs.h
>>conftest.
$ac_ext
15570 cat >>conftest.
$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15573 #include <stdlib.h>
15574 #include <signal.h>
15578 sigfpe_handler (int sig)
15580 sigfpe_handler (sig) int sig;
15583 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15584 exit (sig != SIGFPE);
15594 signal (SIGFPE, sigfpe_handler);
15595 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15596 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15597 signal (SIGTRAP, sigfpe_handler);
15599 /* Linux/SPARC yields signal SIGILL. */
15600 #if defined (__sparc__) && defined (__linux__)
15601 signal (SIGILL, sigfpe_handler);
15610 rm -f conftest
$ac_exeext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15612 (eval $ac_link) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621 gt_cv_int_divbyzero_sigfpe
=yes
15623 echo "$as_me: program exited with status $ac_status" >&5
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.
$ac_ext >&5
15627 ( exit $ac_status )
15628 gt_cv_int_divbyzero_sigfpe
=no
15630 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15634 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15635 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15636 case "$gt_cv_int_divbyzero_sigfpe" in
15641 cat >>confdefs.h
<<_ACEOF
15642 #define INTDIV0_RAISES_SIGFPE $value
15647 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15648 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15649 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 cat >conftest.
$ac_ext <<_ACEOF
15655 cat confdefs.h
>>conftest.
$ac_ext
15656 cat >>conftest.
$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 #include <sys/types.h>
15659 #include <inttypes.h>
15663 uintmax_t i = (uintmax_t) -1;
15668 rm -f conftest.
$ac_objext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15670 (eval $ac_compile) 2>conftest.er1
15672 grep -v '^ *+' conftest.er1
>conftest.err
15674 cat conftest.err
>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try
='test -z "$ac_c_werror_flag"
15678 || test ! -s conftest.err'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try
='test -s conftest.$ac_objext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 jm_ac_cv_header_inttypes_h
=yes
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.
$ac_ext >&5
15695 jm_ac_cv_header_inttypes_h
=no
15697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15699 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15700 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15701 if test $jm_ac_cv_header_inttypes_h = yes; then
15703 cat >>confdefs.h
<<_ACEOF
15704 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15710 echo "$as_me:$LINENO: checking for stdint.h" >&5
15711 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15712 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 cat >conftest.
$ac_ext <<_ACEOF
15718 cat confdefs.h
>>conftest.
$ac_ext
15719 cat >>conftest.
$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <sys/types.h>
15722 #include <stdint.h>
15726 uintmax_t i = (uintmax_t) -1;
15731 rm -f conftest.
$ac_objext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733 (eval $ac_compile) 2>conftest.er1
15735 grep -v '^ *+' conftest.er1
>conftest.err
15737 cat conftest.err
>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try
='test -z "$ac_c_werror_flag"
15741 || test ! -s conftest.err'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try
='test -s conftest.$ac_objext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 jm_ac_cv_header_stdint_h
=yes
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.
$ac_ext >&5
15758 jm_ac_cv_header_stdint_h
=no
15760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15762 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15763 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15764 if test $jm_ac_cv_header_stdint_h = yes; then
15766 cat >>confdefs.h
<<_ACEOF
15767 #define HAVE_STDINT_H_WITH_UINTMAX 1
15773 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15774 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15775 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 cat >conftest.
$ac_ext <<_ACEOF
15781 cat confdefs.h
>>conftest.
$ac_ext
15782 cat >>conftest.
$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 unsigned long long ull = 1; int i = 63;
15788 unsigned long long ullmax = (unsigned long long) -1;
15789 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15794 rm -f conftest.
$ac_objext conftest
$ac_exeext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15796 (eval $ac_link) 2>conftest.er1
15798 grep -v '^ *+' conftest.er1
>conftest.err
15800 cat conftest.err
>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try
='test -z "$ac_c_werror_flag"
15804 || test ! -s conftest.err'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try
='test -s conftest$ac_exeext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_cv_type_unsigned_long_long
=yes
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.
$ac_ext >&5
15821 ac_cv_type_unsigned_long_long
=no
15823 rm -f conftest.err conftest.
$ac_objext \
15824 conftest
$ac_exeext conftest.
$ac_ext
15826 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15827 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15828 if test $ac_cv_type_unsigned_long_long = yes; then
15830 cat >>confdefs.h
<<\_ACEOF
15831 #define HAVE_UNSIGNED_LONG_LONG 1
15839 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
15841 test $ac_cv_type_unsigned_long_long = yes \
15842 && ac_type
='unsigned long long' \
15843 || ac_type
='unsigned long'
15845 cat >>confdefs.h
<<_ACEOF
15846 #define uintmax_t $ac_type
15852 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15853 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15854 if test "${gt_cv_header_inttypes_h+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 cat >conftest.
$ac_ext <<_ACEOF
15861 cat confdefs.h
>>conftest.
$ac_ext
15862 cat >>conftest.
$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <sys/types.h>
15865 #include <inttypes.h>
15874 rm -f conftest.
$ac_objext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15876 (eval $ac_compile) 2>conftest.er1
15878 grep -v '^ *+' conftest.er1
>conftest.err
15880 cat conftest.err
>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try
='test -z "$ac_c_werror_flag"
15884 || test ! -s conftest.err'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try
='test -s conftest.$ac_objext'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 gt_cv_header_inttypes_h
=yes
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.
$ac_ext >&5
15901 gt_cv_header_inttypes_h
=no
15903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15906 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15907 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15908 if test $gt_cv_header_inttypes_h = yes; then
15910 cat >>confdefs.h
<<_ACEOF
15911 #define HAVE_INTTYPES_H 1
15918 if test $gt_cv_header_inttypes_h = yes; then
15919 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15920 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15921 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 cat >conftest.
$ac_ext <<_ACEOF
15928 cat confdefs.h
>>conftest.
$ac_ext
15929 cat >>conftest.
$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 #include <inttypes.h>
15944 rm -f conftest.
$ac_objext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15946 (eval $ac_compile) 2>conftest.er1
15948 grep -v '^ *+' conftest.er1
>conftest.err
15950 cat conftest.err
>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try
='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try
='test -s conftest.$ac_objext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 gt_cv_inttypes_pri_broken
=no
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.
$ac_ext >&5
15971 gt_cv_inttypes_pri_broken
=yes
15973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15976 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15977 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15979 if test "$gt_cv_inttypes_pri_broken" = yes; then
15981 cat >>confdefs.h
<<_ACEOF
15982 #define PRI_MACROS_BROKEN 1
15988 if test "X$prefix" = "XNONE"; then
15989 acl_final_prefix
="$ac_default_prefix"
15991 acl_final_prefix
="$prefix"
15993 if test "X$exec_prefix" = "XNONE"; then
15994 acl_final_exec_prefix
='${prefix}'
15996 acl_final_exec_prefix
="$exec_prefix"
15998 acl_save_prefix
="$prefix"
15999 prefix
="$acl_final_prefix"
16000 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
16001 prefix
="$acl_save_prefix"
16004 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16005 if test "${with_gnu_ld+set}" = set; then
16006 withval
="$with_gnu_ld"
16007 test "$withval" = no || with_gnu_ld
=yes
16012 if test "$GCC" = yes; then
16013 # Check if gcc -print-prog-name=ld gives a path.
16014 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16015 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16018 # gcc leaves a trailing carriage return which upsets mingw
16019 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16021 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16024 # Accept absolute paths.
16025 [\\/]* |
[A-Za-z
]:[\\/]*)
16026 re_direlt
='/[^/][^/]*/\.\./'
16027 # Canonicalize the path of ld
16028 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
16029 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
16030 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
16032 test -z "$LD" && LD
="$ac_prog"
16035 # If it fails, then pretend we aren't using GCC.
16039 # If it is relative, then search for the first ld in PATH.
16040 with_gnu_ld
=unknown
16043 elif test "$with_gnu_ld" = yes; then
16044 echo "$as_me:$LINENO: checking for GNU ld" >&5
16045 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16047 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16048 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16050 if test "${acl_cv_path_LD+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 if test -z "$LD"; then
16054 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16055 for ac_dir
in $PATH; do
16056 test -z "$ac_dir" && ac_dir
=.
16057 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16058 acl_cv_path_LD
="$ac_dir/$ac_prog"
16059 # Check to see if the program is GNU ld. I'd rather use --version,
16060 # but apparently some GNU ld's only accept -v.
16061 # Break only if it was the GNU/non-GNU ld that we prefer.
16062 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
16063 test "$with_gnu_ld" != no
&& break
16065 test "$with_gnu_ld" != yes && break
16071 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16075 LD
="$acl_cv_path_LD"
16076 if test -n "$LD"; then
16077 echo "$as_me:$LINENO: result: $LD" >&5
16078 echo "${ECHO_T}$LD" >&6
16080 echo "$as_me:$LINENO: result: no" >&5
16081 echo "${ECHO_T}no" >&6
16083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16085 { (exit 1); exit 1; }; }
16086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16088 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16092 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
16093 acl_cv_prog_gnu_ld
=yes
16095 acl_cv_prog_gnu_ld
=no
16098 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16099 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16100 with_gnu_ld
=$acl_cv_prog_gnu_ld
16104 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16105 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16106 if test "${acl_cv_rpath+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16111 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16113 rm -f .
/conftest.sh
16117 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16118 echo "${ECHO_T}$acl_cv_rpath" >&6
16120 libext
="$acl_cv_libext"
16121 shlibext
="$acl_cv_shlibext"
16122 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16123 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16124 hardcode_direct
="$acl_cv_hardcode_direct"
16125 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16126 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16127 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16128 # Check whether --enable-rpath or --disable-rpath was given.
16129 if test "${enable_rpath+set}" = set; then
16130 enableval
="$enable_rpath"
16144 acl_save_prefix
="$prefix"
16145 prefix
="$acl_final_prefix"
16146 acl_save_exec_prefix
="$exec_prefix"
16147 exec_prefix
="$acl_final_exec_prefix"
16149 eval additional_includedir
=\"$includedir\"
16150 eval additional_libdir
=\"$libdir\"
16152 exec_prefix
="$acl_save_exec_prefix"
16153 prefix
="$acl_save_prefix"
16156 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16157 if test "${with_libiconv_prefix+set}" = set; then
16158 withval
="$with_libiconv_prefix"
16160 if test "X$withval" = "Xno"; then
16163 if test "X$withval" = "X"; then
16165 acl_save_prefix
="$prefix"
16166 prefix
="$acl_final_prefix"
16167 acl_save_exec_prefix
="$exec_prefix"
16168 exec_prefix
="$acl_final_exec_prefix"
16170 eval additional_includedir
=\"$includedir\"
16171 eval additional_libdir
=\"$libdir\"
16173 exec_prefix
="$acl_save_exec_prefix"
16174 prefix
="$acl_save_prefix"
16177 additional_includedir
="$withval/include"
16178 additional_libdir
="$withval/lib"
16188 names_already_handled
=
16189 names_next_round
='iconv '
16190 while test -n "$names_next_round"; do
16191 names_this_round
="$names_next_round"
16193 for name
in $names_this_round; do
16195 for n
in $names_already_handled; do
16196 if test "$n" = "$name"; then
16197 already_handled
=yes
16201 if test -z "$already_handled"; then
16202 names_already_handled
="$names_already_handled $name"
16203 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16204 eval value
=\"\
$HAVE_LIB$uppername\"
16205 if test -n "$value"; then
16206 if test "$value" = yes; then
16207 eval value
=\"\
$LIB$uppername\"
16208 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16209 eval value
=\"\
$LTLIB$uppername\"
16210 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16219 if test $use_additional = yes; then
16220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16221 found_dir
="$additional_libdir"
16222 found_so
="$additional_libdir/lib$name.$shlibext"
16223 if test -f "$additional_libdir/lib$name.la"; then
16224 found_la
="$additional_libdir/lib$name.la"
16227 if test -f "$additional_libdir/lib$name.$libext"; then
16228 found_dir
="$additional_libdir"
16229 found_a
="$additional_libdir/lib$name.$libext"
16230 if test -f "$additional_libdir/lib$name.la"; then
16231 found_la
="$additional_libdir/lib$name.la"
16236 if test "X$found_dir" = "X"; then
16237 for x
in $LDFLAGS $LTLIBICONV; do
16239 acl_save_prefix
="$prefix"
16240 prefix
="$acl_final_prefix"
16241 acl_save_exec_prefix
="$exec_prefix"
16242 exec_prefix
="$acl_final_exec_prefix"
16244 exec_prefix
="$acl_save_exec_prefix"
16245 prefix
="$acl_save_prefix"
16249 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16252 found_so
="$dir/lib$name.$shlibext"
16253 if test -f "$dir/lib$name.la"; then
16254 found_la
="$dir/lib$name.la"
16257 if test -f "$dir/lib$name.$libext"; then
16259 found_a
="$dir/lib$name.$libext"
16260 if test -f "$dir/lib$name.la"; then
16261 found_la
="$dir/lib$name.la"
16267 if test "X$found_dir" != "X"; then
16272 if test "X$found_dir" != "X"; then
16273 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16274 if test "X$found_so" != "X"; then
16275 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16276 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16279 for x
in $ltrpathdirs; do
16280 if test "X$x" = "X$found_dir"; then
16285 if test -z "$haveit"; then
16286 ltrpathdirs
="$ltrpathdirs $found_dir"
16288 if test "$hardcode_direct" = yes; then
16289 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16292 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16294 for x
in $rpathdirs; do
16295 if test "X$x" = "X$found_dir"; then
16300 if test -z "$haveit"; then
16301 rpathdirs
="$rpathdirs $found_dir"
16305 for x
in $LDFLAGS $LIBICONV; do
16307 acl_save_prefix
="$prefix"
16308 prefix
="$acl_final_prefix"
16309 acl_save_exec_prefix
="$exec_prefix"
16310 exec_prefix
="$acl_final_exec_prefix"
16312 exec_prefix
="$acl_save_exec_prefix"
16313 prefix
="$acl_save_prefix"
16315 if test "X$x" = "X-L$found_dir"; then
16320 if test -z "$haveit"; then
16321 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16323 if test "$hardcode_minus_L" != no
; then
16324 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16326 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16332 if test "X$found_a" != "X"; then
16333 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16335 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16338 additional_includedir
=
16339 case "$found_dir" in
16341 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16342 additional_includedir
="$basedir/include"
16345 if test "X$additional_includedir" != "X"; then
16346 if test "X$additional_includedir" != "X/usr/include"; then
16348 if test "X$additional_includedir" = "X/usr/local/include"; then
16349 if test -n "$GCC"; then
16351 linux
*) haveit
=yes;;
16355 if test -z "$haveit"; then
16356 for x
in $CPPFLAGS $INCICONV; do
16358 acl_save_prefix
="$prefix"
16359 prefix
="$acl_final_prefix"
16360 acl_save_exec_prefix
="$exec_prefix"
16361 exec_prefix
="$acl_final_exec_prefix"
16363 exec_prefix
="$acl_save_exec_prefix"
16364 prefix
="$acl_save_prefix"
16366 if test "X$x" = "X-I$additional_includedir"; then
16371 if test -z "$haveit"; then
16372 if test -d "$additional_includedir"; then
16373 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16379 if test -n "$found_la"; then
16380 save_libdir
="$libdir"
16381 case "$found_la" in
16382 */* |
*\\*) .
"$found_la" ;;
16383 *) .
"./$found_la" ;;
16385 libdir
="$save_libdir"
16386 for dep
in $dependency_libs; do
16389 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16390 if test "X$additional_libdir" != "X/usr/lib"; then
16392 if test "X$additional_libdir" = "X/usr/local/lib"; then
16393 if test -n "$GCC"; then
16395 linux
*) haveit
=yes;;
16399 if test -z "$haveit"; then
16401 for x
in $LDFLAGS $LIBICONV; do
16403 acl_save_prefix
="$prefix"
16404 prefix
="$acl_final_prefix"
16405 acl_save_exec_prefix
="$exec_prefix"
16406 exec_prefix
="$acl_final_exec_prefix"
16408 exec_prefix
="$acl_save_exec_prefix"
16409 prefix
="$acl_save_prefix"
16411 if test "X$x" = "X-L$additional_libdir"; then
16416 if test -z "$haveit"; then
16417 if test -d "$additional_libdir"; then
16418 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16422 for x
in $LDFLAGS $LTLIBICONV; do
16424 acl_save_prefix
="$prefix"
16425 prefix
="$acl_final_prefix"
16426 acl_save_exec_prefix
="$exec_prefix"
16427 exec_prefix
="$acl_final_exec_prefix"
16429 exec_prefix
="$acl_save_exec_prefix"
16430 prefix
="$acl_save_prefix"
16432 if test "X$x" = "X-L$additional_libdir"; then
16437 if test -z "$haveit"; then
16438 if test -d "$additional_libdir"; then
16439 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16446 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16447 if test "$enable_rpath" != no
; then
16449 for x
in $rpathdirs; do
16450 if test "X$x" = "X$dir"; then
16455 if test -z "$haveit"; then
16456 rpathdirs
="$rpathdirs $dir"
16459 for x
in $ltrpathdirs; do
16460 if test "X$x" = "X$dir"; then
16465 if test -z "$haveit"; then
16466 ltrpathdirs
="$ltrpathdirs $dir"
16471 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16474 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16477 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16478 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16484 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16485 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16491 if test "X$rpathdirs" != "X"; then
16492 if test -n "$hardcode_libdir_separator"; then
16494 for found_dir
in $rpathdirs; do
16495 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16497 acl_save_libdir
="$libdir"
16499 eval flag
=\"$hardcode_libdir_flag_spec\"
16500 libdir
="$acl_save_libdir"
16501 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16503 for found_dir
in $rpathdirs; do
16504 acl_save_libdir
="$libdir"
16505 libdir
="$found_dir"
16506 eval flag
=\"$hardcode_libdir_flag_spec\"
16507 libdir
="$acl_save_libdir"
16508 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16512 if test "X$ltrpathdirs" != "X"; then
16513 for found_dir
in $ltrpathdirs; do
16514 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16531 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16532 stdlib.h string.h unistd.h sys
/param.h
16534 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16536 echo "$as_me:$LINENO: checking for $ac_header" >&5
16537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16544 # Is the header compilable?
16545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16547 cat >conftest.
$ac_ext <<_ACEOF
16550 cat confdefs.h
>>conftest.
$ac_ext
16551 cat >>conftest.
$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 $ac_includes_default
16554 #include <$ac_header>
16556 rm -f conftest.
$ac_objext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558 (eval $ac_compile) 2>conftest.er1
16560 grep -v '^ *+' conftest.er1
>conftest.err
16562 cat conftest.err
>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try
='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try
='test -s conftest.$ac_objext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_header_compiler
=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.
$ac_ext >&5
16583 ac_header_compiler
=no
16585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16587 echo "${ECHO_T}$ac_header_compiler" >&6
16589 # Is the header present?
16590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16592 cat >conftest.
$ac_ext <<_ACEOF
16595 cat confdefs.h
>>conftest.
$ac_ext
16596 cat >>conftest.
$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <$ac_header>
16600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16601 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16603 grep -v '^ *+' conftest.er1
>conftest.err
16605 cat conftest.err
>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } >/dev
/null
; then
16608 if test -s conftest.err
; then
16609 ac_cpp_err
=$ac_c_preproc_warn_flag
16610 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16617 if test -z "$ac_cpp_err"; then
16618 ac_header_preproc
=yes
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.
$ac_ext >&5
16623 ac_header_preproc
=no
16625 rm -f conftest.err conftest.
$ac_ext
16626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16627 echo "${ECHO_T}$ac_header_preproc" >&6
16629 # So? What about this header?
16630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16636 ac_header_preproc
=yes
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16653 ## ------------------------------ ##
16654 ## Report this to admin@amule.org ##
16655 ## ------------------------------ ##
16658 sed "s/^/$as_me: WARNING: /" >&2
16661 echo "$as_me:$LINENO: checking for $ac_header" >&5
16662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 eval "$as_ac_Header=\$ac_header_preproc"
16668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16673 cat >>confdefs.h
<<_ACEOF
16674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16702 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16703 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16704 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16706 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16707 echo "$as_me:$LINENO: checking for $ac_func" >&5
16708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16709 if eval "test \"\${$as_ac_var+set}\" = set"; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 cat >conftest.
$ac_ext <<_ACEOF
16715 cat confdefs.h
>>conftest.
$ac_ext
16716 cat >>conftest.
$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720 #define $ac_func innocuous_$ac_func
16722 /* System header to define __stub macros and hopefully few prototypes,
16723 which can conflict with char $ac_func (); below.
16724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 <limits.h> exists even on freestanding compilers. */
16728 # include <limits.h>
16730 # include <assert.h>
16735 /* Override any gcc2 internal prototype to avoid an error. */
16740 /* We use char because int might match the return type of a gcc2
16741 builtin and then its argument prototype would still apply. */
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16749 char (*f) () = $ac_func;
16758 return f != $ac_func;
16763 rm -f conftest.
$ac_objext conftest
$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16767 grep -v '^ *+' conftest.er1
>conftest.err
16769 cat conftest.err
>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try
='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try
='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 eval "$as_ac_var=yes"
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.
$ac_ext >&5
16790 eval "$as_ac_var=no"
16792 rm -f conftest.err conftest.
$ac_objext \
16793 conftest
$ac_exeext conftest.
$ac_ext
16795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16797 if test `eval echo '${'$as_ac_var'}'` = yes; then
16798 cat >>confdefs.h
<<_ACEOF
16799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 am_save_CPPFLAGS
="$CPPFLAGS"
16813 for element
in $INCICONV; do
16815 for x
in $CPPFLAGS; do
16817 acl_save_prefix
="$prefix"
16818 prefix
="$acl_final_prefix"
16819 acl_save_exec_prefix
="$exec_prefix"
16820 exec_prefix
="$acl_final_exec_prefix"
16822 exec_prefix
="$acl_save_exec_prefix"
16823 prefix
="$acl_save_prefix"
16825 if test "X$x" = "X$element"; then
16830 if test -z "$haveit"; then
16831 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16836 echo "$as_me:$LINENO: checking for iconv" >&5
16837 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16838 if test "${am_cv_func_iconv+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 am_cv_func_iconv
="no, consider installing GNU libiconv"
16844 cat >conftest.
$ac_ext <<_ACEOF
16847 cat confdefs.h
>>conftest.
$ac_ext
16848 cat >>conftest.
$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 #include <stdlib.h>
16855 iconv_t cd = iconv_open("","");
16856 iconv(cd,NULL,NULL,NULL,NULL);
16862 rm -f conftest.
$ac_objext conftest
$ac_exeext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864 (eval $ac_link) 2>conftest.er1
16866 grep -v '^ *+' conftest.er1
>conftest.err
16868 cat conftest.err
>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try
='test -z "$ac_c_werror_flag"
16872 || test ! -s conftest.err'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try
='test -s conftest$ac_exeext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 am_cv_func_iconv
=yes
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.
$ac_ext >&5
16890 rm -f conftest.err conftest.
$ac_objext \
16891 conftest
$ac_exeext conftest.
$ac_ext
16892 if test "$am_cv_func_iconv" != yes; then
16893 am_save_LIBS
="$LIBS"
16894 LIBS
="$LIBS $LIBICONV"
16895 cat >conftest.
$ac_ext <<_ACEOF
16898 cat confdefs.h
>>conftest.
$ac_ext
16899 cat >>conftest.
$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901 #include <stdlib.h>
16906 iconv_t cd = iconv_open("","");
16907 iconv(cd,NULL,NULL,NULL,NULL);
16913 rm -f conftest.
$ac_objext conftest
$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>conftest.er1
16917 grep -v '^ *+' conftest.er1
>conftest.err
16919 cat conftest.err
>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try
='test -z "$ac_c_werror_flag"
16923 || test ! -s conftest.err'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try
='test -s conftest$ac_exeext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 am_cv_lib_iconv
=yes
16936 am_cv_func_iconv
=yes
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.
$ac_ext >&5
16942 rm -f conftest.err conftest.
$ac_objext \
16943 conftest
$ac_exeext conftest.
$ac_ext
16944 LIBS
="$am_save_LIBS"
16948 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16949 echo "${ECHO_T}$am_cv_func_iconv" >&6
16950 if test "$am_cv_func_iconv" = yes; then
16952 cat >>confdefs.h
<<\_ACEOF
16953 #define HAVE_ICONV 1
16957 if test "$am_cv_lib_iconv" = yes; then
16958 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16959 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16960 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16961 echo "${ECHO_T}$LIBICONV" >&6
16963 CPPFLAGS
="$am_save_CPPFLAGS"
16970 if test "$am_cv_func_iconv" = yes; then
16971 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16972 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16973 if test "${am_cv_proto_iconv+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 cat >conftest.
$ac_ext <<_ACEOF
16980 cat confdefs.h
>>conftest.
$ac_ext
16981 cat >>conftest.
$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16984 #include <stdlib.h>
16990 #if defined(__STDC__) || defined(__cplusplus)
16991 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17004 rm -f conftest.
$ac_objext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006 (eval $ac_compile) 2>conftest.er1
17008 grep -v '^ *+' conftest.er1
>conftest.err
17010 cat conftest.err
>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try
='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try
='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 am_cv_proto_iconv_arg1
=""
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.
$ac_ext >&5
17031 am_cv_proto_iconv_arg1
="const"
17033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17034 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);"
17037 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17038 echo "$as_me:$LINENO: result: ${ac_t:-
17039 }$am_cv_proto_iconv" >&5
17040 echo "${ECHO_T}${ac_t:-
17041 }$am_cv_proto_iconv" >&6
17043 cat >>confdefs.h
<<_ACEOF
17044 #define ICONV_CONST $am_cv_proto_iconv_arg1
17050 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17051 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17052 if test "${am_cv_langinfo_codeset+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 cat >conftest.
$ac_ext <<_ACEOF
17058 cat confdefs.h
>>conftest.
$ac_ext
17059 cat >>conftest.
$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <langinfo.h>
17065 char* cs = nl_langinfo(CODESET);
17070 rm -f conftest.
$ac_objext conftest
$ac_exeext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17072 (eval $ac_link) 2>conftest.er1
17074 grep -v '^ *+' conftest.er1
>conftest.err
17076 cat conftest.err
>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try
='test -z "$ac_c_werror_flag"
17080 || test ! -s conftest.err'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try
='test -s conftest$ac_exeext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 am_cv_langinfo_codeset
=yes
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.
$ac_ext >&5
17097 am_cv_langinfo_codeset
=no
17099 rm -f conftest.err conftest.
$ac_objext \
17100 conftest
$ac_exeext conftest.
$ac_ext
17103 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17104 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17105 if test $am_cv_langinfo_codeset = yes; then
17107 cat >>confdefs.h
<<\_ACEOF
17108 #define HAVE_LANGINFO_CODESET 1
17113 if test $ac_cv_header_locale_h = yes; then
17115 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17116 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17117 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 cat >conftest.
$ac_ext <<_ACEOF
17123 cat confdefs.h
>>conftest.
$ac_ext
17124 cat >>conftest.
$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 #include <locale.h>
17135 rm -f conftest.
$ac_objext conftest
$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>conftest.er1
17139 grep -v '^ *+' conftest.er1
>conftest.err
17141 cat conftest.err
>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try
='test -z "$ac_c_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try
='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 am_cv_val_LC_MESSAGES
=yes
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.
$ac_ext >&5
17162 am_cv_val_LC_MESSAGES
=no
17164 rm -f conftest.err conftest.
$ac_objext \
17165 conftest
$ac_exeext conftest.
$ac_ext
17167 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17168 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17169 if test $am_cv_val_LC_MESSAGES = yes; then
17171 cat >>confdefs.h
<<\_ACEOF
17172 #define HAVE_LC_MESSAGES 1
17179 for ac_prog
in bison
17181 # Extract the first word of "$ac_prog", so it can be a program name with args.
17182 set dummy
$ac_prog; ac_word
=$2
17183 echo "$as_me:$LINENO: checking for $ac_word" >&5
17184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17185 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 if test -n "$INTLBISON"; then
17189 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17192 for as_dir
in $PATH
17195 test -z "$as_dir" && as_dir
=.
17196 for ac_exec_ext
in '' $ac_executable_extensions; do
17197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17198 ac_cv_prog_INTLBISON
="$ac_prog"
17199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17207 INTLBISON
=$ac_cv_prog_INTLBISON
17208 if test -n "$INTLBISON"; then
17209 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17210 echo "${ECHO_T}$INTLBISON" >&6
17212 echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6
17216 test -n "$INTLBISON" && break
17219 if test -z "$INTLBISON"; then
17222 echo "$as_me:$LINENO: checking version of bison" >&5
17223 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17224 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17225 case $ac_prog_version in
17226 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17227 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17228 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17229 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17231 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17232 echo "${ECHO_T}$ac_prog_version" >&6
17234 if test $ac_verc_fail = yes; then
17240 # Check whether --with-language or --without-language was given.
17241 if test "${with_language+set}" = set; then
17242 withval
="$with_language"
17243 if test "$withval" != "all"; then
17244 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17263 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17264 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17265 # Check whether --enable-nls or --disable-nls was given.
17266 if test "${enable_nls+set}" = set; then
17267 enableval
="$enable_nls"
17272 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17273 echo "${ECHO_T}$USE_NLS" >&6
17277 BUILD_INCLUDED_LIBINTL
=no
17278 USE_INCLUDED_LIBINTL
=no
17284 if test "$USE_NLS" = "yes"; then
17285 gt_use_preinstalled_gnugettext
=no
17287 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17288 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17290 # Check whether --with-included-gettext or --without-included-gettext was given.
17291 if test "${with_included_gettext+set}" = set; then
17292 withval
="$with_included_gettext"
17293 nls_cv_force_use_gnu_gettext
=$withval
17295 nls_cv_force_use_gnu_gettext
=no
17297 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17298 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17300 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17301 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17308 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17309 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17310 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 cat >conftest.
$ac_ext <<_ACEOF
17316 cat confdefs.h
>>conftest.
$ac_ext
17317 cat >>conftest.
$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 #include <libintl.h>
17320 extern int _nl_msg_cat_cntr;
17321 extern int *_nl_domain_bindings;
17325 bindtextdomain ("", "");
17326 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17331 rm -f conftest.
$ac_objext conftest
$ac_exeext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>conftest.er1
17335 grep -v '^ *+' conftest.er1
>conftest.err
17337 cat conftest.err
>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try
='test -z "$ac_c_werror_flag"
17341 || test ! -s conftest.err'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } &&
17347 { ac_try
='test -s conftest$ac_exeext'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 gt_cv_func_gnugettext2_libc
=yes
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.
$ac_ext >&5
17358 gt_cv_func_gnugettext2_libc
=no
17360 rm -f conftest.err conftest.
$ac_objext \
17361 conftest
$ac_exeext conftest.
$ac_ext
17363 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17364 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17366 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17372 acl_save_prefix
="$prefix"
17373 prefix
="$acl_final_prefix"
17374 acl_save_exec_prefix
="$exec_prefix"
17375 exec_prefix
="$acl_final_exec_prefix"
17377 eval additional_includedir
=\"$includedir\"
17378 eval additional_libdir
=\"$libdir\"
17380 exec_prefix
="$acl_save_exec_prefix"
17381 prefix
="$acl_save_prefix"
17384 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17385 if test "${with_libintl_prefix+set}" = set; then
17386 withval
="$with_libintl_prefix"
17388 if test "X$withval" = "Xno"; then
17391 if test "X$withval" = "X"; then
17393 acl_save_prefix
="$prefix"
17394 prefix
="$acl_final_prefix"
17395 acl_save_exec_prefix
="$exec_prefix"
17396 exec_prefix
="$acl_final_exec_prefix"
17398 eval additional_includedir
=\"$includedir\"
17399 eval additional_libdir
=\"$libdir\"
17401 exec_prefix
="$acl_save_exec_prefix"
17402 prefix
="$acl_save_prefix"
17405 additional_includedir
="$withval/include"
17406 additional_libdir
="$withval/lib"
17416 names_already_handled
=
17417 names_next_round
='intl '
17418 while test -n "$names_next_round"; do
17419 names_this_round
="$names_next_round"
17421 for name
in $names_this_round; do
17423 for n
in $names_already_handled; do
17424 if test "$n" = "$name"; then
17425 already_handled
=yes
17429 if test -z "$already_handled"; then
17430 names_already_handled
="$names_already_handled $name"
17431 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17432 eval value
=\"\
$HAVE_LIB$uppername\"
17433 if test -n "$value"; then
17434 if test "$value" = yes; then
17435 eval value
=\"\
$LIB$uppername\"
17436 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17437 eval value
=\"\
$LTLIB$uppername\"
17438 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17447 if test $use_additional = yes; then
17448 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17449 found_dir
="$additional_libdir"
17450 found_so
="$additional_libdir/lib$name.$shlibext"
17451 if test -f "$additional_libdir/lib$name.la"; then
17452 found_la
="$additional_libdir/lib$name.la"
17455 if test -f "$additional_libdir/lib$name.$libext"; then
17456 found_dir
="$additional_libdir"
17457 found_a
="$additional_libdir/lib$name.$libext"
17458 if test -f "$additional_libdir/lib$name.la"; then
17459 found_la
="$additional_libdir/lib$name.la"
17464 if test "X$found_dir" = "X"; then
17465 for x
in $LDFLAGS $LTLIBINTL; do
17467 acl_save_prefix
="$prefix"
17468 prefix
="$acl_final_prefix"
17469 acl_save_exec_prefix
="$exec_prefix"
17470 exec_prefix
="$acl_final_exec_prefix"
17472 exec_prefix
="$acl_save_exec_prefix"
17473 prefix
="$acl_save_prefix"
17477 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17478 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17480 found_so
="$dir/lib$name.$shlibext"
17481 if test -f "$dir/lib$name.la"; then
17482 found_la
="$dir/lib$name.la"
17485 if test -f "$dir/lib$name.$libext"; then
17487 found_a
="$dir/lib$name.$libext"
17488 if test -f "$dir/lib$name.la"; then
17489 found_la
="$dir/lib$name.la"
17495 if test "X$found_dir" != "X"; then
17500 if test "X$found_dir" != "X"; then
17501 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17502 if test "X$found_so" != "X"; then
17503 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17504 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17507 for x
in $ltrpathdirs; do
17508 if test "X$x" = "X$found_dir"; then
17513 if test -z "$haveit"; then
17514 ltrpathdirs
="$ltrpathdirs $found_dir"
17516 if test "$hardcode_direct" = yes; then
17517 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17519 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17520 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17522 for x
in $rpathdirs; do
17523 if test "X$x" = "X$found_dir"; then
17528 if test -z "$haveit"; then
17529 rpathdirs
="$rpathdirs $found_dir"
17533 for x
in $LDFLAGS $LIBINTL; do
17535 acl_save_prefix
="$prefix"
17536 prefix
="$acl_final_prefix"
17537 acl_save_exec_prefix
="$exec_prefix"
17538 exec_prefix
="$acl_final_exec_prefix"
17540 exec_prefix
="$acl_save_exec_prefix"
17541 prefix
="$acl_save_prefix"
17543 if test "X$x" = "X-L$found_dir"; then
17548 if test -z "$haveit"; then
17549 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17551 if test "$hardcode_minus_L" != no
; then
17552 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17554 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17560 if test "X$found_a" != "X"; then
17561 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17563 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17566 additional_includedir
=
17567 case "$found_dir" in
17569 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17570 additional_includedir
="$basedir/include"
17573 if test "X$additional_includedir" != "X"; then
17574 if test "X$additional_includedir" != "X/usr/include"; then
17576 if test "X$additional_includedir" = "X/usr/local/include"; then
17577 if test -n "$GCC"; then
17579 linux
*) haveit
=yes;;
17583 if test -z "$haveit"; then
17584 for x
in $CPPFLAGS $INCINTL; do
17586 acl_save_prefix
="$prefix"
17587 prefix
="$acl_final_prefix"
17588 acl_save_exec_prefix
="$exec_prefix"
17589 exec_prefix
="$acl_final_exec_prefix"
17591 exec_prefix
="$acl_save_exec_prefix"
17592 prefix
="$acl_save_prefix"
17594 if test "X$x" = "X-I$additional_includedir"; then
17599 if test -z "$haveit"; then
17600 if test -d "$additional_includedir"; then
17601 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17607 if test -n "$found_la"; then
17608 save_libdir
="$libdir"
17609 case "$found_la" in
17610 */* |
*\\*) .
"$found_la" ;;
17611 *) .
"./$found_la" ;;
17613 libdir
="$save_libdir"
17614 for dep
in $dependency_libs; do
17617 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17618 if test "X$additional_libdir" != "X/usr/lib"; then
17620 if test "X$additional_libdir" = "X/usr/local/lib"; then
17621 if test -n "$GCC"; then
17623 linux
*) haveit
=yes;;
17627 if test -z "$haveit"; then
17629 for x
in $LDFLAGS $LIBINTL; do
17631 acl_save_prefix
="$prefix"
17632 prefix
="$acl_final_prefix"
17633 acl_save_exec_prefix
="$exec_prefix"
17634 exec_prefix
="$acl_final_exec_prefix"
17636 exec_prefix
="$acl_save_exec_prefix"
17637 prefix
="$acl_save_prefix"
17639 if test "X$x" = "X-L$additional_libdir"; then
17644 if test -z "$haveit"; then
17645 if test -d "$additional_libdir"; then
17646 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17650 for x
in $LDFLAGS $LTLIBINTL; do
17652 acl_save_prefix
="$prefix"
17653 prefix
="$acl_final_prefix"
17654 acl_save_exec_prefix
="$exec_prefix"
17655 exec_prefix
="$acl_final_exec_prefix"
17657 exec_prefix
="$acl_save_exec_prefix"
17658 prefix
="$acl_save_prefix"
17660 if test "X$x" = "X-L$additional_libdir"; then
17665 if test -z "$haveit"; then
17666 if test -d "$additional_libdir"; then
17667 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17674 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17675 if test "$enable_rpath" != no
; then
17677 for x
in $rpathdirs; do
17678 if test "X$x" = "X$dir"; then
17683 if test -z "$haveit"; then
17684 rpathdirs
="$rpathdirs $dir"
17687 for x
in $ltrpathdirs; do
17688 if test "X$x" = "X$dir"; then
17693 if test -z "$haveit"; then
17694 ltrpathdirs
="$ltrpathdirs $dir"
17699 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17702 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17705 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17706 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17712 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17713 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17719 if test "X$rpathdirs" != "X"; then
17720 if test -n "$hardcode_libdir_separator"; then
17722 for found_dir
in $rpathdirs; do
17723 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17725 acl_save_libdir
="$libdir"
17727 eval flag
=\"$hardcode_libdir_flag_spec\"
17728 libdir
="$acl_save_libdir"
17729 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17731 for found_dir
in $rpathdirs; do
17732 acl_save_libdir
="$libdir"
17733 libdir
="$found_dir"
17734 eval flag
=\"$hardcode_libdir_flag_spec\"
17735 libdir
="$acl_save_libdir"
17736 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17740 if test "X$ltrpathdirs" != "X"; then
17741 for found_dir
in $ltrpathdirs; do
17742 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17746 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17747 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17748 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 gt_save_CPPFLAGS
="$CPPFLAGS"
17752 CPPFLAGS
="$CPPFLAGS $INCINTL"
17753 gt_save_LIBS
="$LIBS"
17754 LIBS
="$LIBS $LIBINTL"
17755 cat >conftest.
$ac_ext <<_ACEOF
17758 cat confdefs.h
>>conftest.
$ac_ext
17759 cat >>conftest.
$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 #include <libintl.h>
17762 extern int _nl_msg_cat_cntr;
17767 const char *_nl_expand_alias ();
17771 bindtextdomain ("", "");
17772 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17777 rm -f conftest.
$ac_objext conftest
$ac_exeext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17779 (eval $ac_link) 2>conftest.er1
17781 grep -v '^ *+' conftest.er1
>conftest.err
17783 cat conftest.err
>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } &&
17786 { ac_try
='test -z "$ac_c_werror_flag"
17787 || test ! -s conftest.err'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try
='test -s conftest$ac_exeext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 gt_cv_func_gnugettext2_libintl
=yes
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.
$ac_ext >&5
17804 gt_cv_func_gnugettext2_libintl
=no
17806 rm -f conftest.err conftest.
$ac_objext \
17807 conftest
$ac_exeext conftest.
$ac_ext
17808 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17809 LIBS
="$LIBS $LIBICONV"
17810 cat >conftest.
$ac_ext <<_ACEOF
17813 cat confdefs.h
>>conftest.
$ac_ext
17814 cat >>conftest.
$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 #include <libintl.h>
17817 extern int _nl_msg_cat_cntr;
17822 const char *_nl_expand_alias ();
17826 bindtextdomain ("", "");
17827 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17832 rm -f conftest.
$ac_objext conftest
$ac_exeext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17834 (eval $ac_link) 2>conftest.er1
17836 grep -v '^ *+' conftest.er1
>conftest.err
17838 cat conftest.err
>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try
='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try
='test -s conftest$ac_exeext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 LIBINTL
="$LIBINTL $LIBICONV"
17855 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17856 gt_cv_func_gnugettext2_libintl
=yes
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.
$ac_ext >&5
17863 rm -f conftest.err conftest.
$ac_objext \
17864 conftest
$ac_exeext conftest.
$ac_ext
17866 CPPFLAGS
="$gt_save_CPPFLAGS"
17867 LIBS
="$gt_save_LIBS"
17869 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17870 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17873 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17874 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17875 && test "$PACKAGE" != gettext; }; then
17876 gt_use_preinstalled_gnugettext
=yes
17884 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17885 nls_cv_use_gnu_gettext
=yes
17889 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17890 INTLOBJS
="\$(GETTOBJS)"
17891 BUILD_INCLUDED_LIBINTL
=yes
17892 USE_INCLUDED_LIBINTL
=yes
17893 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
17894 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17895 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17898 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17899 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17904 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17905 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17907 cat >>confdefs.h
<<\_ACEOF
17908 #define ENABLE_NLS 1
17916 if test "$USE_NLS" = "yes"; then
17918 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17919 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17920 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17921 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17922 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17923 echo "${ECHO_T}$LIBINTL" >&6
17925 for element
in $INCINTL; do
17927 for x
in $CPPFLAGS; do
17929 acl_save_prefix
="$prefix"
17930 prefix
="$acl_final_prefix"
17931 acl_save_exec_prefix
="$exec_prefix"
17932 exec_prefix
="$acl_final_exec_prefix"
17934 exec_prefix
="$acl_save_exec_prefix"
17935 prefix
="$acl_save_prefix"
17937 if test "X$x" = "X$element"; then
17942 if test -z "$haveit"; then
17943 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17950 cat >>confdefs.h
<<\_ACEOF
17951 #define HAVE_GETTEXT 1
17955 cat >>confdefs.h
<<\_ACEOF
17956 #define HAVE_DCGETTEXT 1
17965 if test "$PACKAGE" = gettext; then
17966 BUILD_INCLUDED_LIBINTL
=yes
17974 nls_cv_header_intl
=
17975 nls_cv_header_libgt
=
17986 INTL_LIBTOOL_SUFFIX_PREFIX
=
17990 INTLLIBS
="$LIBINTL"
17997 if test $USE_INCLUDED_LIBINTL = yes; then
17998 INCINTL
=-I\
${top_builddir}/intl
18002 if test x
$USE_NLS = xyes
; then
18004 echo "$as_me:$LINENO: checking for autopoint" >&5
18005 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18006 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18007 if test -n "$autopoint_version"; then
18009 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18010 echo "${ECHO_T}yes ($autopoint_version)" >&6
18015 echo "$as_me:$LINENO: result: no" >&5
18016 echo "${ECHO_T}no" >&6
18024 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
18025 { echo "$as_me:$LINENO: WARNING:
18026 You need to install GNU gettext/gettext-tools to compile aMule with
18028 echo "$as_me: WARNING:
18029 You need to install GNU gettext/gettext-tools to compile aMule with
18030 i18n support." >&2;}
18031 _mule_warning_8
=yes
18032 _mule_has_warnings
=yes
18037 if test ${USE_NLS:-no} = yes; then
18039 echo "$as_me:$LINENO: checking for requested languages" >&5
18040 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18041 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18043 if test "$AMULE_DAEMON" = "yes"; then
18045 if test -z "$LINGUAS"; then
18046 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18049 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18050 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18054 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18057 AMULE_DAEMON_MANPAGES
=
18063 if test "$AMULECMD" = "yes"; then
18065 if test -z "$LINGUAS"; then
18066 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18069 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18070 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18074 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18083 if test "$WEB" = "yes"; then
18085 if test -z "$LINGUAS"; then
18086 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18089 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18090 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18094 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
18103 if test "$AMULE_GUI" = "yes"; then
18105 if test -z "$LINGUAS"; then
18106 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18109 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18110 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18114 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18117 AMULE_GUI_MANPAGES
=
18123 if test "$CAS" = "yes"; then
18125 if test -z "$LINGUAS"; then
18126 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18129 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18130 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18134 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18143 if test "$WXCAS" = "yes"; then
18145 if test -z "$LINGUAS"; then
18146 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18149 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18150 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18154 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18163 if test "$ED2K" = "yes"; then
18165 if test -z "$LINGUAS"; then
18166 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18169 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18170 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18174 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18183 if test "$ALC" = "yes"; then
18185 if test -z "$LINGUAS"; then
18186 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18189 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18190 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18194 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18203 if test "$ALCC" = "yes"; then
18205 if test -z "$LINGUAS"; then
18206 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18209 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18210 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18214 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18223 if test "$MONOLITHIC" = "yes"; then
18225 if test -z "$LINGUAS"; then
18226 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18229 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18230 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18234 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18237 MONOLITHIC_MANPAGES
=
18242 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18243 echo "${ECHO_T}${LINGUAS:-all}" >&6
18250 # Check for bfd.h (to have proper backtraces without using wxExecute)
18252 echo "$as_me:$LINENO: checking for bfd" >&5
18253 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18255 for bfd_ldadd
in "" "${LIBINTL}"; do
18256 mule_backup_LIBS
="$LIBS"
18257 mule_backup_LDFLAGS
="$LDFLAGS"
18258 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18259 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
18260 cat >conftest.
$ac_ext <<_ACEOF
18264 cat confdefs.h
>>conftest.
$ac_ext
18265 cat >>conftest.
$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18268 #include <ansidecl.h>
18275 char *dummy = bfd_errmsg(bfd_get_error());
18282 rm -f conftest.
$ac_objext conftest
$ac_exeext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18284 (eval $ac_link) 2>conftest.er1
18286 grep -v '^ *+' conftest.er1
>conftest.err
18288 cat conftest.err
>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try
='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try
='test -s conftest$ac_exeext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18306 BFD_CPPFLAGS
="-DHAVE_BFD"
18307 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
18308 LIBS
="$mule_backup_LIBS"
18309 LDFLAGS
="$mule_backup_LDFLAGS"
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.
$ac_ext >&5
18317 rm -f conftest.err conftest.
$ac_objext \
18318 conftest
$ac_exeext conftest.
$ac_ext
18319 LIBS
="$mule_backup_LIBS"
18320 LDFLAGS
="$mule_backup_LDFLAGS"
18323 echo "$as_me:$LINENO: result: $result" >&5
18324 echo "${ECHO_T}$result" >&6
18326 if test $result = no
; then
18327 { echo "$as_me:$LINENO: WARNING:
18328 bfd.h not found or unusable, please install binutils development
18329 package if you are a developer or want to help testing aMule" >&5
18330 echo "$as_me: WARNING:
18331 bfd.h not found or unusable, please install binutils development
18332 package if you are a developer or want to help testing aMule" >&2;}
18333 _mule_warning_9
=yes
18334 _mule_has_warnings
=yes
18341 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18342 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18343 cat >conftest.
$ac_ext <<_ACEOF
18347 cat confdefs.h
>>conftest.
$ac_ext
18348 cat >>conftest.
$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18351 #include <execinfo.h>
18358 int n = backtrace(&bt, 1);
18359 const char **bt_syms = backtrace_symbols(bt, n);
18366 rm -f conftest.
$ac_objext conftest
$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368 (eval $ac_link) 2>conftest.er1
18370 grep -v '^ *+' conftest.er1
>conftest.err
18372 cat conftest.err
>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try
='test -z "$ac_c_werror_flag"
18376 || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try
='test -s conftest$ac_exeext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18391 cat >>confdefs.h
<<\_ACEOF
18392 #define HAVE_EXECINFO 1
18395 echo "$as_me:$LINENO: result: yes" >&5
18396 echo "${ECHO_T}yes" >&6
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.
$ac_ext >&5
18403 echo "$as_me:$LINENO: result: no" >&5
18404 echo "${ECHO_T}no" >&6
18407 rm -f conftest.err conftest.
$ac_objext \
18408 conftest
$ac_exeext conftest.
$ac_ext
18411 # Flush standard test results for speeding cache
18412 cat >confcache
<<\_ACEOF
18413 # This file is a shell script that caches the results of configure
18414 # tests run on this system so they can be shared between configure
18415 # scripts and configure runs, see configure's option --config-cache.
18416 # It is not useful on other systems. If it contains results you don't
18417 # want to keep, you may remove or edit it.
18419 # config.status only pays attention to the cache file if you give it
18420 # the --recheck option to rerun configure.
18422 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18423 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18424 # following values.
18428 # The following way of writing the cache mishandles newlines in values,
18429 # but we know of no workaround that is simple, portable, and efficient.
18430 # So, don't put newlines in cache variables' values.
18431 # Ultrix sh set writes to stderr and can't be redirected directly,
18432 # and sets the high bit in the cache file unless we assign to the vars.
18435 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18437 # `set' does not quote correctly, so add quotes (double-quote
18438 # substitution turns \\\\ into \\, and sed turns \\ into \).
18441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18444 # `set' quotes correctly as required by POSIX, so do not add quotes.
18446 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18455 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18457 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18458 if test -w $cache_file; then
18459 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18460 cat confcache
>$cache_file
18462 echo "not updating unwritable cache $cache_file"
18471 # Check whether --enable-debug or --disable-debug was given.
18472 if test "${enable_debug+set}" = set; then
18473 enableval
="$enable_debug"
18474 USE_DEBUG
=${enableval:-yes}
18479 if test $USE_DEBUG = yes; then
18481 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18483 MULECFLAGS
="$MULECFLAGS -g"
18484 MULECXXFLAGS
="$MULECXXFLAGS -g"
18486 if test ${GLIBCXX:-no} = yes; then
18487 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18490 if test ${GCC:-no} = yes; then
18492 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18493 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18497 if test ${SYS:-unknown} = win32
; then
18498 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18504 if test ${GCC:-no} = yes; then
18506 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18507 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18516 # Check whether --enable-optimize or --disable-optimize was given.
18517 if test "${enable_optimize+set}" = set; then
18518 enableval
="$enable_optimize"
18519 USE_OPTIMIZE
=${enableval:-no}
18524 if test $USE_OPTIMIZE = yes; then
18526 MULECFLAGS
="$MULECFLAGS -O2"
18527 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18533 # Check whether --enable-profile or --disable-profile was given.
18534 if test "${enable_profile+set}" = set; then
18535 enableval
="$enable_profile"
18536 USE_PROFILE
=${enableval:-no}
18541 if test $USE_PROFILE = yes; then
18544 MULECFLAGS
="$MULECFLAGS -pg"
18545 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18547 MULELDFLAGS
="$MULELDFLAGS -pg"
18553 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18554 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18555 # Check whether --enable-static or --disable-static was given.
18556 if test "${enable_static+set}" = set; then
18557 enableval
="$enable_static"
18558 if test ${enableval:-no} = yes; then
18559 MULELDFLAGS
="$MULELDFLAGS -static"
18563 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18564 echo "${ECHO_T}${enableval:-no}" >&6
18566 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18569 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18570 echo "$as_me:$LINENO: checking for docdir" >&5
18571 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18572 if test -z "$docdir"; then
18573 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18576 echo "$as_me:$LINENO: result: $docdir" >&5
18577 echo "${ECHO_T}$docdir" >&6
18579 # Try to set the SVN checkout-date
18580 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18581 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18582 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18584 svndate
="rev. `cat $srcdir/.svn-revision`"
18585 elif test -d $srcdir/.svn
# SVNDATE for svn
18587 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18589 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18590 echo "${ECHO_T}${svndate:-None required}" >&6
18591 if test -n "$svndate"; then
18594 cat >>confdefs.h
<<_ACEOF
18595 #define SVNDATE "$svndate"
18598 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18606 # Check whether --with-denoise-level or --without-denoise-level was given.
18607 if test "${with_denoise_level+set}" = set; then
18608 withval
="$with_denoise_level"
18612 echo "$as_me:$LINENO: checking denoising level" >&5
18613 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18614 if test ${with_denoise_level:-5} = yes; then
18615 with_denoise_level
=5
18618 if test ${with_denoise_level:-5} = no
; then
18619 with_denoise_level
=0
18622 if test ${with_denoise_level:-5} -gt 4; then
18623 if test "${svndate:+set}" = "set"; then
18624 with_denoise_level
=0
18626 with_denoise_level
=4
18631 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18632 echo "${ECHO_T}$with_denoise_level" >&6
18634 ac_config_commands
="$ac_config_commands denoiser"
18640 if test x
$WEB = xyes
; then
18650 if test x
$ED2K = xyes
; then
18660 if test x
$CAS = xyes
; then
18670 if test x
$WXCAS = xyes
; then
18680 if test x
$ALC = xyes
; then
18690 if test x
$ALCC = xyes
; then
18700 if test x
$AMULE_GUI = xyes
; then
18702 AMULE_GUI_FALSE
='#'
18710 if test x
$AMULE_DAEMON = xyes
; then
18712 AMULE_DAEMON_FALSE
='#'
18714 AMULE_DAEMON_TRUE
='#'
18715 AMULE_DAEMON_FALSE
=
18720 if test x
$AMULECMD = xyes
; then
18722 COMPILE_CMD_FALSE
='#'
18724 COMPILE_CMD_TRUE
='#'
18730 if test x
$MONOLITHIC = xyes
; then
18732 MONOLITHIC_FALSE
='#'
18734 MONOLITHIC_TRUE
='#'
18740 if test x
$XAS = xyes
; then
18750 if test x
$ENABLE_UPNP = xyes
; then
18752 ENABLE_UPNP_FALSE
='#'
18754 ENABLE_UPNP_TRUE
='#'
18760 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18761 ENABLE_IP2COUNTRY_TRUE
=
18762 ENABLE_IP2COUNTRY_FALSE
='#'
18764 ENABLE_IP2COUNTRY_TRUE
='#'
18765 ENABLE_IP2COUNTRY_FALSE
=
18770 if test x
$SYS = xwin32
; then
18772 SYS_WIN32_FALSE
='#'
18780 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18790 if test x
$SYS = xdarwin
; then
18791 NEED_CORESERVICES_TRUE
=
18792 NEED_CORESERVICES_FALSE
='#'
18794 NEED_CORESERVICES_TRUE
='#'
18795 NEED_CORESERVICES_FALSE
=
18800 if test x
$USE_NLS = xyes
; then
18802 COMPILE_NLS_FALSE
='#'
18804 COMPILE_NLS_TRUE
='#'
18810 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18811 GENERATE_FLEX_HEADER_TRUE
=
18812 GENERATE_FLEX_HEADER_FALSE
='#'
18814 GENERATE_FLEX_HEADER_TRUE
='#'
18815 GENERATE_FLEX_HEADER_FALSE
=
18820 if test x
$INSTALL_SKINS = xyes
; then
18821 INSTALL_SKINS_TRUE
=
18822 INSTALL_SKINS_FALSE
='#'
18824 INSTALL_SKINS_TRUE
='#'
18825 INSTALL_SKINS_FALSE
=
18829 # Check for readline library
18830 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18832 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18833 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18834 if test "${vl_cv_lib_readline+set}" = set; then
18835 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 for readline_lib
in readline edit editline
; do
18840 for termcap_lib
in "" termcap curses ncurses
; do
18841 if test -z "$termcap_lib"; then
18842 TRY_LIB
="-l$readline_lib"
18844 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18846 LIBS
="$ORIG_LIBS $TRY_LIB"
18847 cat >conftest.
$ac_ext <<_ACEOF
18850 cat confdefs.h
>>conftest.
$ac_ext
18851 cat >>conftest.
$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18854 /* Override any gcc2 internal prototype to avoid an error. */
18858 /* We use char because int might match the return type of a gcc2
18859 builtin and then its argument prototype would still apply. */
18869 rm -f conftest.
$ac_objext conftest
$ac_exeext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18871 (eval $ac_link) 2>conftest.er1
18873 grep -v '^ *+' conftest.er1
>conftest.err
18875 cat conftest.err
>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try
='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try
='test -s conftest$ac_exeext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 vl_cv_lib_readline
="$TRY_LIB"
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.
$ac_ext >&5
18897 rm -f conftest.err conftest.
$ac_objext \
18898 conftest
$ac_exeext conftest.
$ac_ext
18899 if test -n "$vl_cv_lib_readline"; then
18903 if test -n "$vl_cv_lib_readline"; then
18907 if test -z "$vl_cv_lib_readline"; then
18908 vl_cv_lib_readline
="no"
18912 READLINE_LIBS
="$vl_cv_lib_readline"
18916 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18917 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18919 if test "$vl_cv_lib_readline" != "no"; then
18921 cat >>confdefs.h
<<\_ACEOF
18922 #define HAVE_LIBREADLINE 1
18927 for ac_header
in readline.h readline
/readline.h
18929 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18931 echo "$as_me:$LINENO: checking for $ac_header" >&5
18932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18939 # Is the header compilable?
18940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18942 cat >conftest.
$ac_ext <<_ACEOF
18945 cat confdefs.h
>>conftest.
$ac_ext
18946 cat >>conftest.
$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 $ac_includes_default
18949 #include <$ac_header>
18951 rm -f conftest.
$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>conftest.er1
18955 grep -v '^ *+' conftest.er1
>conftest.err
18957 cat conftest.err
>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try
='test -z "$ac_c_werror_flag"
18961 || test ! -s conftest.err'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try
='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_header_compiler
=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.
$ac_ext >&5
18978 ac_header_compiler
=no
18980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18982 echo "${ECHO_T}$ac_header_compiler" >&6
18984 # Is the header present?
18985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18987 cat >conftest.
$ac_ext <<_ACEOF
18990 cat confdefs.h
>>conftest.
$ac_ext
18991 cat >>conftest.
$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 #include <$ac_header>
18995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18996 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18998 grep -v '^ *+' conftest.er1
>conftest.err
19000 cat conftest.err
>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } >/dev
/null
; then
19003 if test -s conftest.err
; then
19004 ac_cpp_err
=$ac_c_preproc_warn_flag
19005 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19012 if test -z "$ac_cpp_err"; then
19013 ac_header_preproc
=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.
$ac_ext >&5
19018 ac_header_preproc
=no
19020 rm -f conftest.err conftest.
$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19022 echo "${ECHO_T}$ac_header_preproc" >&6
19024 # So? What about this header?
19025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19031 ac_header_preproc
=yes
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19048 ## ------------------------------ ##
19049 ## Report this to admin@amule.org ##
19050 ## ------------------------------ ##
19053 sed "s/^/$as_me: WARNING: /" >&2
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 eval "$as_ac_Header=\$ac_header_preproc"
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19068 cat >>confdefs.h
<<_ACEOF
19069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19076 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19077 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19078 if test "${vl_cv_lib_readline_history+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 vl_cv_lib_readline_history
="no"
19083 cat >conftest.
$ac_ext <<_ACEOF
19086 cat confdefs.h
>>conftest.
$ac_ext
19087 cat >>conftest.
$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19090 /* Override any gcc2 internal prototype to avoid an error. */
19094 /* We use char because int might match the return type of a gcc2
19095 builtin and then its argument prototype would still apply. */
19096 char add_history ();
19105 rm -f conftest.
$ac_objext conftest
$ac_exeext
19106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19107 (eval $ac_link) 2>conftest.er1
19109 grep -v '^ *+' conftest.er1
>conftest.err
19111 cat conftest.err
>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try
='test -z "$ac_c_werror_flag"
19115 || test ! -s conftest.err'
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; } &&
19121 { ac_try
='test -s conftest$ac_exeext'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 vl_cv_lib_readline_history
="yes"
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.
$ac_ext >&5
19133 rm -f conftest.err conftest.
$ac_objext \
19134 conftest
$ac_exeext conftest.
$ac_ext
19137 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19138 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19139 if test "$vl_cv_lib_readline_history" = "yes"; then
19141 cat >>confdefs.h
<<\_ACEOF
19142 #define HAVE_READLINE_HISTORY 1
19147 for ac_header
in history.h readline
/history.h
19149 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19151 echo "$as_me:$LINENO: checking for $ac_header" >&5
19152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19159 # Is the header compilable?
19160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19162 cat >conftest.
$ac_ext <<_ACEOF
19165 cat confdefs.h
>>conftest.
$ac_ext
19166 cat >>conftest.
$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 $ac_includes_default
19169 #include <$ac_header>
19171 rm -f conftest.
$ac_objext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19173 (eval $ac_compile) 2>conftest.er1
19175 grep -v '^ *+' conftest.er1
>conftest.err
19177 cat conftest.err
>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try
='test -z "$ac_c_werror_flag"
19181 || test ! -s conftest.err'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try
='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 ac_header_compiler
=yes
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.
$ac_ext >&5
19198 ac_header_compiler
=no
19200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19202 echo "${ECHO_T}$ac_header_compiler" >&6
19204 # Is the header present?
19205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19207 cat >conftest.
$ac_ext <<_ACEOF
19210 cat confdefs.h
>>conftest.
$ac_ext
19211 cat >>conftest.
$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 #include <$ac_header>
19215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19216 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19218 grep -v '^ *+' conftest.er1
>conftest.err
19220 cat conftest.err
>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } >/dev
/null
; then
19223 if test -s conftest.err
; then
19224 ac_cpp_err
=$ac_c_preproc_warn_flag
19225 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19232 if test -z "$ac_cpp_err"; then
19233 ac_header_preproc
=yes
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.
$ac_ext >&5
19238 ac_header_preproc
=no
19240 rm -f conftest.err conftest.
$ac_ext
19241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19242 echo "${ECHO_T}$ac_header_preproc" >&6
19244 # So? What about this header?
19245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19251 ac_header_preproc
=yes
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19268 ## ------------------------------ ##
19269 ## Report this to admin@amule.org ##
19270 ## ------------------------------ ##
19273 sed "s/^/$as_me: WARNING: /" >&2
19276 echo "$as_me:$LINENO: checking for $ac_header" >&5
19277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 eval "$as_ac_Header=\$ac_header_preproc"
19283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19288 cat >>confdefs.h
<<_ACEOF
19289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19303 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19306 # Check whether --enable-ccache or --disable-ccache was given.
19307 if test "${enable_ccache+set}" = set; then
19308 enableval
="$enable_ccache"
19313 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19314 if test "${with_ccache_prefix+set}" = set; then
19315 withval
="$with_ccache_prefix"
19319 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19320 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19321 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19322 echo "${ECHO_T}${enable_ccache:-no}" >&6
19324 if test ${enable_ccache:-no} = yes; then
19326 echo "$as_me:$LINENO: checking for ccache presence" >&5
19327 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19328 if test -z "$with_ccache_prefix"; then
19330 ccache_full
=`which ccache`
19331 with_ccache_prefix
=`dirname ${ccache_full}`
19335 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19337 echo "$as_me:$LINENO: result: yes" >&5
19338 echo "${ECHO_T}yes" >&6
19339 CC
="$with_ccache_prefix/ccache $CC"
19340 CXX
="$with_ccache_prefix/ccache $CXX"
19341 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19346 echo "$as_me:$LINENO: result: no" >&5
19347 echo "${ECHO_T}no" >&6
19356 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19358 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19360 if test x
$SYS = xwin32
; then
19361 ac_config_files
="$ac_config_files version.rc"
19365 cat >confcache
<<\_ACEOF
19366 # This file is a shell script that caches the results of configure
19367 # tests run on this system so they can be shared between configure
19368 # scripts and configure runs, see configure's option --config-cache.
19369 # It is not useful on other systems. If it contains results you don't
19370 # want to keep, you may remove or edit it.
19372 # config.status only pays attention to the cache file if you give it
19373 # the --recheck option to rerun configure.
19375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19377 # following values.
19381 # The following way of writing the cache mishandles newlines in values,
19382 # but we know of no workaround that is simple, portable, and efficient.
19383 # So, don't put newlines in cache variables' values.
19384 # Ultrix sh set writes to stderr and can't be redirected directly,
19385 # and sets the high bit in the cache file unless we assign to the vars.
19388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19390 # `set' does not quote correctly, so add quotes (double-quote
19391 # substitution turns \\\\ into \\, and sed turns \\ into \).
19394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19397 # `set' quotes correctly as required by POSIX, so do not add quotes.
19399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19408 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19410 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19411 if test -w $cache_file; then
19412 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19413 cat confcache
>$cache_file
19415 echo "not updating unwritable cache $cache_file"
19420 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19421 # Let make expand exec_prefix.
19422 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19424 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19425 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19426 # trailing colons and then remove the whole line if VPATH becomes empty
19427 # (actually we leave an empty line to preserve line numbers).
19428 if test "x$srcdir" = x.
; then
19429 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19430 s/:*\$(srcdir):*/:/;
19431 s/:*\${srcdir}:*/:/;
19433 s/^\([^=]*=[ ]*\):*/\1/;
19439 DEFS
=-DHAVE_CONFIG_H
19443 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19444 # 1. Remove the extension, and $U if already installed.
19445 ac_i
=`echo "$ac_i" |
19446 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19448 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19449 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19451 LIBOBJS
=$ac_libobjs
19453 LTLIBOBJS
=$ac_ltlibobjs
19456 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19457 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19458 Usually this means the macro was only invoked conditionally." >&5
19459 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19460 Usually this means the macro was only invoked conditionally." >&2;}
19461 { (exit 1); exit 1; }; }
19463 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19464 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19465 Usually this means the macro was only invoked conditionally." >&5
19466 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19467 Usually this means the macro was only invoked conditionally." >&2;}
19468 { (exit 1); exit 1; }; }
19470 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19471 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19472 Usually this means the macro was only invoked conditionally." >&5
19473 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19474 Usually this means the macro was only invoked conditionally." >&2;}
19475 { (exit 1); exit 1; }; }
19477 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19478 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19479 Usually this means the macro was only invoked conditionally." >&5
19480 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19481 Usually this means the macro was only invoked conditionally." >&2;}
19482 { (exit 1); exit 1; }; }
19484 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19485 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19486 Usually this means the macro was only invoked conditionally." >&5
19487 echo "$as_me: error: conditional \"WEB\" was never defined.
19488 Usually this means the macro was only invoked conditionally." >&2;}
19489 { (exit 1); exit 1; }; }
19491 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19492 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19493 Usually this means the macro was only invoked conditionally." >&5
19494 echo "$as_me: error: conditional \"ED2K\" was never defined.
19495 Usually this means the macro was only invoked conditionally." >&2;}
19496 { (exit 1); exit 1; }; }
19498 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19499 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19500 Usually this means the macro was only invoked conditionally." >&5
19501 echo "$as_me: error: conditional \"CAS\" was never defined.
19502 Usually this means the macro was only invoked conditionally." >&2;}
19503 { (exit 1); exit 1; }; }
19505 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19506 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19507 Usually this means the macro was only invoked conditionally." >&5
19508 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19509 Usually this means the macro was only invoked conditionally." >&2;}
19510 { (exit 1); exit 1; }; }
19512 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19513 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19514 Usually this means the macro was only invoked conditionally." >&5
19515 echo "$as_me: error: conditional \"ALC\" was never defined.
19516 Usually this means the macro was only invoked conditionally." >&2;}
19517 { (exit 1); exit 1; }; }
19519 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19520 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19521 Usually this means the macro was only invoked conditionally." >&5
19522 echo "$as_me: error: conditional \"ALCC\" was never defined.
19523 Usually this means the macro was only invoked conditionally." >&2;}
19524 { (exit 1); exit 1; }; }
19526 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19527 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&5
19529 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19530 Usually this means the macro was only invoked conditionally." >&2;}
19531 { (exit 1); exit 1; }; }
19533 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19534 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&5
19536 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19537 Usually this means the macro was only invoked conditionally." >&2;}
19538 { (exit 1); exit 1; }; }
19540 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19541 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19542 Usually this means the macro was only invoked conditionally." >&5
19543 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19544 Usually this means the macro was only invoked conditionally." >&2;}
19545 { (exit 1); exit 1; }; }
19547 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19548 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19549 Usually this means the macro was only invoked conditionally." >&5
19550 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19551 Usually this means the macro was only invoked conditionally." >&2;}
19552 { (exit 1); exit 1; }; }
19554 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19555 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19556 Usually this means the macro was only invoked conditionally." >&5
19557 echo "$as_me: error: conditional \"XAS\" was never defined.
19558 Usually this means the macro was only invoked conditionally." >&2;}
19559 { (exit 1); exit 1; }; }
19561 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19562 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19563 Usually this means the macro was only invoked conditionally." >&5
19564 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19565 Usually this means the macro was only invoked conditionally." >&2;}
19566 { (exit 1); exit 1; }; }
19568 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19569 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19570 Usually this means the macro was only invoked conditionally." >&5
19571 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19572 Usually this means the macro was only invoked conditionally." >&2;}
19573 { (exit 1); exit 1; }; }
19575 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19576 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19577 Usually this means the macro was only invoked conditionally." >&5
19578 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19579 Usually this means the macro was only invoked conditionally." >&2;}
19580 { (exit 1); exit 1; }; }
19582 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19583 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19584 Usually this means the macro was only invoked conditionally." >&5
19585 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19586 Usually this means the macro was only invoked conditionally." >&2;}
19587 { (exit 1); exit 1; }; }
19589 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19590 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19591 Usually this means the macro was only invoked conditionally." >&5
19592 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19593 Usually this means the macro was only invoked conditionally." >&2;}
19594 { (exit 1); exit 1; }; }
19596 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19597 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19598 Usually this means the macro was only invoked conditionally." >&5
19599 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19600 Usually this means the macro was only invoked conditionally." >&2;}
19601 { (exit 1); exit 1; }; }
19603 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19604 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19605 Usually this means the macro was only invoked conditionally." >&5
19606 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19607 Usually this means the macro was only invoked conditionally." >&2;}
19608 { (exit 1); exit 1; }; }
19610 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19611 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19612 Usually this means the macro was only invoked conditionally." >&5
19613 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19614 Usually this means the macro was only invoked conditionally." >&2;}
19615 { (exit 1); exit 1; }; }
19618 : ${CONFIG_STATUS=./config.status}
19619 ac_clean_files_save
=$ac_clean_files
19620 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19623 cat >$CONFIG_STATUS <<_ACEOF
19625 # Generated by $as_me.
19626 # Run this file to recreate the current configuration.
19627 # Compiler output produced by configure, useful for debugging
19628 # configure, is in config.log if it exists.
19631 ac_cs_recheck=false
19633 SHELL=\${CONFIG_SHELL-$SHELL}
19636 cat >>$CONFIG_STATUS <<\_ACEOF
19637 ## --------------------- ##
19638 ## M4sh Initialization. ##
19639 ## --------------------- ##
19641 # Be Bourne compatible
19642 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19646 # is contrary to our usage. Disable this feature.
19647 alias -g '${1+"$@"}'='"$@"'
19648 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19651 DUALCASE
=1; export DUALCASE
# for MKS sh
19653 # Support unset when possible.
19654 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19661 # Work around bugs in pre-3.0 UWIN ksh.
19662 $as_unset ENV MAIL MAILPATH
19669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19671 LC_TELEPHONE LC_TIME
19673 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19674 eval $as_var=C
; export $as_var
19680 # Required to use basename.
19681 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19687 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19688 as_basename
=basename
19694 # Name of the executable.
19695 as_me
=`$as_basename "$0" ||
19696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19697 X"$0" : 'X\(//\)$' \| \
19698 X"$0" : 'X\(/\)$' \| \
19699 . : '\(.\)' 2>/dev/null ||
19701 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19702 /^X\/\(\/\/\)$/{ s//\1/; q; }
19703 /^X\/\(\/\).*/{ s//\1/; q; }
19707 # PATH needs CR, and LINENO needs CR and PATH.
19708 # Avoid depending upon Character Ranges.
19709 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19710 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19711 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19712 as_cr_digits
='0123456789'
19713 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19715 # The user is always right.
19716 if test "${PATH_SEPARATOR+set}" != set; then
19717 echo "#! /bin/sh" >conf$$.sh
19718 echo "exit 0" >>conf$$.sh
19720 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19729 as_lineno_1
=$LINENO
19730 as_lineno_2
=$LINENO
19731 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19732 test "x$as_lineno_1" != "x$as_lineno_2" &&
19733 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19734 # Find who we are. Look in the path if we contain no path at all
19737 *[\\/]* ) as_myself
=$0 ;;
19738 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19739 for as_dir
in $PATH
19742 test -z "$as_dir" && as_dir
=.
19743 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19748 # We did not find ourselves, most probably we were run as `sh COMMAND'
19749 # in which case we are not to be found in the path.
19750 if test "x$as_myself" = x
; then
19753 if test ! -f "$as_myself"; then
19754 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19755 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19756 { (exit 1); exit 1; }; }
19758 case $CONFIG_SHELL in
19760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19761 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19764 test -z "$as_dir" && as_dir
=.
19765 for as_base
in sh bash ksh sh5
; do
19768 if ("$as_dir/$as_base" -c '
19769 as_lineno_1=$LINENO
19770 as_lineno_2=$LINENO
19771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19772 test "x$as_lineno_1" != "x$as_lineno_2" &&
19773 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19774 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19775 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19776 CONFIG_SHELL
=$as_dir/$as_base
19777 export CONFIG_SHELL
19778 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19787 # uniformly replaced by the line number. The first 'sed' inserts a
19788 # line-number line before each line; the second 'sed' does the real
19789 # work. The second script uses 'N' to pair each line-number line
19790 # with the numbered line, and appends trailing '-' during
19791 # substitution so that $LINENO is not a special case at line end.
19792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19793 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19794 sed '=' <$as_myself |
19799 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19802 s,^['$as_cr_digits']*\n,,
19803 ' >$as_me.lineno
&&
19804 chmod +x
$as_me.lineno ||
19805 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19806 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19807 { (exit 1); exit 1; }; }
19809 # Don't try to exec as it changes $[0], causing all sort of problems
19810 # (the dirname of $[0] is not the place where we might find the
19811 # original and so on. Autoconf is especially sensible to this).
19813 # Exit status is that of the last command.
19818 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19819 *c
*,-n*) ECHO_N
= ECHO_C
='
19821 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19822 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19825 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19831 rm -f conf$$ conf$$.exe conf$$.
file
19833 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19834 # We could just check for DJGPP; but this test a) works b) is more generic
19835 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19836 if test -f conf$$.exe
; then
19837 # Don't use ln at all; we don't have any links
19842 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19847 rm -f conf$$ conf$$.exe conf$$.
file
19849 if mkdir
-p .
2>/dev
/null
; then
19852 test -d .
/-p && rmdir .
/-p
19856 as_executable_p
="test -f"
19858 # Sed expression to map a string onto a valid CPP name.
19859 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19861 # Sed expression to map a string onto a valid variable name.
19862 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19866 # We need space, tab and new line, in precisely that order.
19876 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19877 # report actual input values of CONFIG_FILES etc. instead of their
19878 # values after options handling. Logging --version etc. is OK.
19882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19883 ## Running $as_me. ##
19888 This file was extended by aMule $as_me SVN, which was
19889 generated by GNU Autoconf 2.59. Invocation command line was
19891 CONFIG_FILES = $CONFIG_FILES
19892 CONFIG_HEADERS = $CONFIG_HEADERS
19893 CONFIG_LINKS = $CONFIG_LINKS
19894 CONFIG_COMMANDS = $CONFIG_COMMANDS
19898 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19902 # Files that config.status was made for.
19903 if test -n "$ac_config_files"; then
19904 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19907 if test -n "$ac_config_headers"; then
19908 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19911 if test -n "$ac_config_links"; then
19912 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19915 if test -n "$ac_config_commands"; then
19916 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19919 cat >>$CONFIG_STATUS <<\_ACEOF
19922 \`$as_me' instantiates files from templates according to the
19923 current configuration.
19925 Usage: $0 [OPTIONS] [FILE]...
19927 -h, --help print this help, then exit
19928 -V, --version print version number, then exit
19929 -q, --quiet do not print progress messages
19930 -d, --debug don't remove temporary files
19931 --recheck update $as_me by reconfiguring in the same conditions
19932 --file=FILE[:TEMPLATE]
19933 instantiate the configuration file FILE
19934 --header=FILE[:TEMPLATE]
19935 instantiate the configuration header FILE
19937 Configuration files:
19940 Configuration headers:
19943 Configuration commands:
19946 Report bugs to <bug-autoconf@gnu.org>."
19949 cat >>$CONFIG_STATUS <<_ACEOF
19951 aMule config.status SVN
19952 configured by $0, generated by GNU Autoconf 2.59,
19953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19955 Copyright (C) 2003 Free Software Foundation, Inc.
19956 This config.status script is free software; the Free Software Foundation
19957 gives unlimited permission to copy, distribute and modify it."
19962 cat >>$CONFIG_STATUS <<\_ACEOF
19963 # If no file are specified by the user, then we need to provide default
19964 # value. By we need to know if files were specified by the user.
19970 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19971 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19979 *) # This is not an option, so the user has probably given explicit
19982 ac_need_defaults
=false
;;
19986 # Handling of the options.
19988 cat >>$CONFIG_STATUS <<\_ACEOF
19989 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19991 --version |
--vers* |
-V )
19992 echo "$ac_cs_version"; exit 0 ;;
19994 # Conflict between --help and --header
19995 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19996 Try \`$0 --help' for more information." >&5
19997 echo "$as_me: error: ambiguous option: $1
19998 Try \`$0 --help' for more information." >&2;}
19999 { (exit 1); exit 1; }; };;
20000 --help |
--hel |
-h )
20001 echo "$ac_cs_usage"; exit 0 ;;
20002 --debug |
--d* |
-d )
20004 --file |
--fil |
--fi |
--f )
20006 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20007 ac_need_defaults
=false
;;
20008 --header |
--heade |
--head |
--hea )
20010 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20011 ac_need_defaults
=false
;;
20012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20013 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20016 # This is an error.
20017 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20018 Try \`$0 --help' for more information." >&5
20019 echo "$as_me: error: unrecognized option: $1
20020 Try \`$0 --help' for more information." >&2;}
20021 { (exit 1); exit 1; }; } ;;
20023 *) ac_config_targets
="$ac_config_targets $1" ;;
20029 ac_configure_extra_args
=
20031 if $ac_cs_silent; then
20033 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20037 cat >>$CONFIG_STATUS <<_ACEOF
20038 if \$ac_cs_recheck; then
20039 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20040 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20045 cat >>$CONFIG_STATUS <<_ACEOF
20047 # INIT-COMMANDS section.
20050 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20051 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20052 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20054 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20055 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20056 LINGUAS="${LINGUAS-%UNSET%}"
20058 denoiserlevel=$with_denoise_level
20064 cat >>$CONFIG_STATUS <<\_ACEOF
20065 for ac_config_target
in $ac_config_targets
20067 case "$ac_config_target" in
20068 # Handling of arguments.
20069 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20070 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
20071 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
20072 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
20073 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20074 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
20075 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20076 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
20077 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
20078 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20079 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
20080 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
20081 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20082 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20083 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20084 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
20085 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20086 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20087 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20088 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20089 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20090 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
20091 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20092 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20093 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
20094 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
20095 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
20096 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
20097 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
20098 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20099 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20100 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20101 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20102 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20103 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20104 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20105 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20106 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20107 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20108 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20109 { (exit 1); exit 1; }; };;
20113 # If the user did not use the arguments to specify the items to instantiate,
20114 # then the envvar interface is used. Set only those that are not.
20115 # We use the long form for the default assignment because of an extremely
20116 # bizarre bug on SunOS 4.1.3.
20117 if $ac_need_defaults; then
20118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20123 # Have a temporary directory for convenience. Make it in the build tree
20124 # simply because there is no reason to put it here, and in addition,
20125 # creating and moving files from /tmp can sometimes cause problems.
20126 # Create a temporary directory, and hook for its removal unless debugging.
20129 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20130 trap '{ (exit 1); exit 1; }' 1 2 13 15
20133 # Create a (secure) tmp directory for tmp files.
20136 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20137 test -n "$tmp" && test -d "$tmp"
20140 tmp
=.
/confstat$$
-$RANDOM
20141 (umask 077 && mkdir
$tmp)
20144 echo "$me: cannot create a temporary directory in ." >&2
20145 { (exit 1); exit 1; }
20150 cat >>$CONFIG_STATUS <<_ACEOF
20153 # CONFIG_FILES section.
20156 # No need to generate the scripts if there are no CONFIG_FILES.
20157 # This happens for instance when ./config.status config.h
20158 if test -n "\$CONFIG_FILES"; then
20159 # Protect against being on the right side of a sed subst in config.status.
20160 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20161 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20162 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20163 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20164 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20165 s,@SHELL@,$SHELL,;t t
20166 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20167 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20168 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20169 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20170 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20171 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20172 s,@exec_prefix@,$exec_prefix,;t t
20173 s,@prefix@,$prefix,;t t
20174 s,@program_transform_name@,$program_transform_name,;t t
20175 s,@bindir@,$bindir,;t t
20176 s,@sbindir@,$sbindir,;t t
20177 s,@libexecdir@,$libexecdir,;t t
20178 s,@datadir@,$datadir,;t t
20179 s,@sysconfdir@,$sysconfdir,;t t
20180 s,@sharedstatedir@,$sharedstatedir,;t t
20181 s,@localstatedir@,$localstatedir,;t t
20182 s,@libdir@,$libdir,;t t
20183 s,@includedir@,$includedir,;t t
20184 s,@oldincludedir@,$oldincludedir,;t t
20185 s,@infodir@,$infodir,;t t
20186 s,@mandir@,$mandir,;t t
20187 s,@build_alias@,$build_alias,;t t
20188 s,@host_alias@,$host_alias,;t t
20189 s,@target_alias@,$target_alias,;t t
20190 s,@DEFS@,$DEFS,;t t
20191 s,@ECHO_C@,$ECHO_C,;t t
20192 s,@ECHO_N@,$ECHO_N,;t t
20193 s,@ECHO_T@,$ECHO_T,;t t
20194 s,@LIBS@,$LIBS,;t t
20195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20198 s,@CYGPATH_W@,$CYGPATH_W,;t t
20199 s,@PACKAGE@,$PACKAGE,;t t
20200 s,@VERSION@,$VERSION,;t t
20201 s,@ACLOCAL@,$ACLOCAL,;t t
20202 s,@AUTOCONF@,$AUTOCONF,;t t
20203 s,@AUTOMAKE@,$AUTOMAKE,;t t
20204 s,@AUTOHEADER@,$AUTOHEADER,;t t
20205 s,@MAKEINFO@,$MAKEINFO,;t t
20206 s,@install_sh@,$install_sh,;t t
20207 s,@STRIP@,$STRIP,;t t
20208 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20209 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20210 s,@mkdir_p@,$mkdir_p,;t t
20212 s,@SET_MAKE@,$SET_MAKE,;t t
20213 s,@am__leading_dot@,$am__leading_dot,;t t
20214 s,@AMTAR@,$AMTAR,;t t
20215 s,@am__tar@,$am__tar,;t t
20216 s,@am__untar@,$am__untar,;t t
20217 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20218 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20219 s,@MAINT@,$MAINT,;t t
20220 s,@build@,$build,;t t
20221 s,@build_cpu@,$build_cpu,;t t
20222 s,@build_vendor@,$build_vendor,;t t
20223 s,@build_os@,$build_os,;t t
20224 s,@host@,$host,;t t
20225 s,@host_cpu@,$host_cpu,;t t
20226 s,@host_vendor@,$host_vendor,;t t
20227 s,@host_os@,$host_os,;t t
20228 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20229 s,@X11LIBS@,$X11LIBS,;t t
20230 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20231 s,@MULECFLAGS@,$MULECFLAGS,;t t
20232 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20233 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20234 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20236 s,@CXXFLAGS@,$CXXFLAGS,;t t
20237 s,@LDFLAGS@,$LDFLAGS,;t t
20238 s,@CPPFLAGS@,$CPPFLAGS,;t t
20239 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20240 s,@EXEEXT@,$EXEEXT,;t t
20241 s,@OBJEXT@,$OBJEXT,;t t
20242 s,@DEPDIR@,$DEPDIR,;t t
20243 s,@am__include@,$am__include,;t t
20244 s,@am__quote@,$am__quote,;t t
20245 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20246 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20247 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20248 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20249 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20250 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20251 s,@CXXCPP@,$CXXCPP,;t t
20253 s,@CFLAGS@,$CFLAGS,;t t
20254 s,@ac_ct_CC@,$ac_ct_CC,;t t
20255 s,@CCDEPMODE@,$CCDEPMODE,;t t
20256 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20257 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20259 s,@BUILD_CC@,$BUILD_CC,;t t
20260 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20261 s,@EXEEXT@,$EXEEXT,;t t
20262 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20263 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20264 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20265 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20266 s,@EGREP@,$EGREP,;t t
20268 s,@LEXLIB@,$LEXLIB,;t t
20269 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20270 s,@RANLIB@,$RANLIB,;t t
20271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20272 s,@YACC@,$YACC,;t t
20274 s,@ac_ct_AR@,$ac_ct_AR,;t t
20276 s,@ac_ct_LD@,$ac_ct_LD,;t t
20277 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20278 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20279 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20280 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20281 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20282 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20283 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20284 s,@CAS_DEFS@,$CAS_DEFS,;t t
20285 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20286 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20287 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20288 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20289 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20290 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20291 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20292 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20293 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20294 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20295 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20296 s,@WX_LIBS@,$WX_LIBS,;t t
20297 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20298 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20299 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20300 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20301 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20302 s,@WX_UNICODE@,$WX_UNICODE,;t t
20303 s,@WX_DEBUG@,$WX_DEBUG,;t t
20304 s,@WX_SHARED@,$WX_SHARED,;t t
20305 s,@WX_PORT@,$WX_PORT,;t t
20306 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20307 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20309 s,@RCFLAGS@,$RCFLAGS,;t t
20310 s,@ac_ct_RC@,$ac_ct_RC,;t t
20311 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20312 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20313 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20314 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20315 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20316 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20317 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20318 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20319 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20320 s,@ALLOCA@,$ALLOCA,;t t
20321 s,@LIBOBJS@,$LIBOBJS,;t t
20322 s,@POW_LIB@,$POW_LIB,;t t
20323 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20324 s,@MSGFMT@,$MSGFMT,;t t
20325 s,@GMSGFMT@,$GMSGFMT,;t t
20326 s,@XGETTEXT@,$XGETTEXT,;t t
20327 s,@MSGMERGE@,$MSGMERGE,;t t
20328 s,@GLIBC21@,$GLIBC21,;t t
20329 s,@LIBICONV@,$LIBICONV,;t t
20330 s,@LTLIBICONV@,$LTLIBICONV,;t t
20331 s,@INTLBISON@,$INTLBISON,;t t
20332 s,@USE_NLS@,$USE_NLS,;t t
20333 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20334 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20335 s,@CATOBJEXT@,$CATOBJEXT,;t t
20336 s,@INTLOBJS@,$INTLOBJS,;t t
20337 s,@DATADIRNAME@,$DATADIRNAME,;t t
20338 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20339 s,@GENCAT@,$GENCAT,;t t
20340 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20341 s,@INTLLIBS@,$INTLLIBS,;t t
20342 s,@LIBINTL@,$LIBINTL,;t t
20343 s,@LTLIBINTL@,$LTLIBINTL,;t t
20344 s,@POSUB@,$POSUB,;t t
20345 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20346 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20347 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20348 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20349 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20350 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20351 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20352 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20353 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20354 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20355 s,@INCINTL@,$INCINTL,;t t
20356 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20357 s,@BFD_LIBS@,$BFD_LIBS,;t t
20358 s,@docdir@,$docdir,;t t
20359 s,@SVNDATE@,$SVNDATE,;t t
20360 s,@WEB_TRUE@,$WEB_TRUE,;t t
20361 s,@WEB_FALSE@,$WEB_FALSE,;t t
20362 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20363 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20364 s,@CAS_TRUE@,$CAS_TRUE,;t t
20365 s,@CAS_FALSE@,$CAS_FALSE,;t t
20366 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20367 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20368 s,@ALC_TRUE@,$ALC_TRUE,;t t
20369 s,@ALC_FALSE@,$ALC_FALSE,;t t
20370 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20371 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20372 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20373 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20374 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20375 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20376 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20377 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20378 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20379 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20380 s,@XAS_TRUE@,$XAS_TRUE,;t t
20381 s,@XAS_FALSE@,$XAS_FALSE,;t t
20382 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20383 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20384 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20385 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20386 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20387 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20388 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20389 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20390 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20391 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20392 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20393 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20394 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20395 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20396 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20397 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20398 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20399 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20404 cat >>$CONFIG_STATUS <<\_ACEOF
20405 # Split the substitutions into bite-sized pieces for seds with
20406 # small command number limits, like on Digital OSF/1 and HP-UX.
20407 ac_max_sed_lines
=48
20408 ac_sed_frag
=1 # Number of current file.
20409 ac_beg
=1 # First line for current file.
20410 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20413 while $ac_more_lines; do
20414 if test $ac_beg -gt 1; then
20415 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20417 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20419 if test ! -s $tmp/subs.frag
; then
20420 ac_more_lines
=false
20422 # The purpose of the label and of the branching condition is to
20423 # speed up the sed processing (if there are no `@' at all, there
20424 # is no need to browse any of the substitutions).
20425 # These are the two extra sed commands mentioned above.
20427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20428 if test -z "$ac_sed_cmds"; then
20429 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20431 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20433 ac_sed_frag
=`expr $ac_sed_frag + 1`
20435 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20438 if test -z "$ac_sed_cmds"; then
20441 fi # test -n "$CONFIG_FILES"
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20445 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20446 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20448 - |
*:- |
*:-:* ) # input from stdin
20450 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20451 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20452 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20453 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20454 * ) ac_file_in
=$ac_file.
in ;;
20457 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20458 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20460 X"$ac_file" : 'X\(//\)[^/]' \| \
20461 X"$ac_file" : 'X\(//\)$' \| \
20462 X"$ac_file" : 'X\(/\)' \| \
20463 . : '\(.\)' 2>/dev/null ||
20465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20467 /^X\(\/\/\)$/{ s//\1/; q; }
20468 /^X\(\/\).*/{ s//\1/; q; }
20470 { if $as_mkdir_p; then
20475 while test ! -d "$as_dir"; do
20476 as_dirs
="$as_dir $as_dirs"
20477 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20479 X"$as_dir" : 'X\(//\)[^/]' \| \
20480 X"$as_dir" : 'X\(//\)$' \| \
20481 X"$as_dir" : 'X\(/\)' \| \
20482 . : '\(.\)' 2>/dev/null ||
20484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20486 /^X\(\/\/\)$/{ s//\1/; q; }
20487 /^X\(\/\).*/{ s//\1/; q; }
20490 test ! -n "$as_dirs" || mkdir
$as_dirs
20491 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20493 { (exit 1); exit 1; }; }; }
20497 if test "$ac_dir" != .
; then
20498 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20499 # A "../" for each directory in $ac_dir_suffix.
20500 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20502 ac_dir_suffix
= ac_top_builddir
=
20506 .
) # No --srcdir option. We are building in place.
20508 if test -z "$ac_top_builddir"; then
20511 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20513 [\\/]* | ?
:[\\/]* ) # Absolute path.
20514 ac_srcdir
=$srcdir$ac_dir_suffix;
20515 ac_top_srcdir
=$srcdir ;;
20516 *) # Relative path.
20517 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20518 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20521 # Do not use `cd foo && pwd` to compute absolute paths, because
20522 # the directories may not exist.
20524 .
) ac_abs_builddir
="$ac_dir";;
20527 .
) ac_abs_builddir
=`pwd`;;
20528 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20529 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20532 case $ac_abs_builddir in
20533 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20535 case ${ac_top_builddir}.
in
20536 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20537 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20538 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20541 case $ac_abs_builddir in
20542 .
) ac_abs_srcdir
=$ac_srcdir;;
20545 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20546 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20547 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20550 case $ac_abs_builddir in
20551 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20553 case $ac_top_srcdir in
20554 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20555 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20556 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20562 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20563 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20566 if test x
"$ac_file" != x-
; then
20567 { echo "$as_me:$LINENO: creating $ac_file" >&5
20568 echo "$as_me: creating $ac_file" >&6;}
20571 # Let's still pretend it is `configure' which instantiates (i.e., don't
20572 # use $as_me), people would be surprised to read:
20573 # /* config.h. Generated by config.status. */
20574 if test x
"$ac_file" = x-
; then
20577 configure_input
="$ac_file. "
20579 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20580 sed 's,.*/,,'` by configure."
20582 # First look for the input files in the build tree, otherwise in the
20584 ac_file_inputs
=`IFS=:
20585 for f in $ac_file_in; do
20587 -) echo $tmp/stdin ;;
20589 # Absolute (can't be DOS-style, as IFS=:)
20590 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20591 echo "$as_me: error: cannot find input file: $f" >&2;}
20592 { (exit 1); exit 1; }; }
20595 if test -f "$f"; then
20598 elif test -f "$srcdir/$f"; then
20603 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20604 echo "$as_me: error: cannot find input file: $f" >&2;}
20605 { (exit 1); exit 1; }; }
20608 done` ||
{ (exit 1); exit 1; }
20610 cat >>$CONFIG_STATUS <<_ACEOF
20614 cat >>$CONFIG_STATUS <<\_ACEOF
20616 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20617 s
,@configure_input@
,$configure_input,;t t
20618 s
,@srcdir@
,$ac_srcdir,;t t
20619 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20620 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20621 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20622 s
,@builddir@
,$ac_builddir,;t t
20623 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20624 s
,@top_builddir@
,$ac_top_builddir,;t t
20625 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20626 s
,@INSTALL@
,$ac_INSTALL,;t t
20627 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20629 if test x"$ac_file" != x-; then
20630 mv $tmp/out $ac_file
20638 cat >>$CONFIG_STATUS <<\_ACEOF
20641 # CONFIG_HEADER section.
20644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20647 # ac_d sets the value in "#define NAME VALUE" lines.
20648 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20649 ac_dB
='[ ].*$,\1#\2'
20652 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20653 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20654 ac_uB
='$,\1#\2define\3'
20658 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20661 - |
*:- |
*:-:* ) # input from stdin
20663 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20664 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20665 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20666 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20667 * ) ac_file_in
=$ac_file.
in ;;
20670 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20671 echo "$as_me: creating $ac_file" >&6;}
20673 # First look for the input files in the build tree, otherwise in the
20675 ac_file_inputs
=`IFS=:
20676 for f in $ac_file_in; do
20678 -) echo $tmp/stdin ;;
20680 # Absolute (can't be DOS-style, as IFS=:)
20681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20682 echo "$as_me: error: cannot find input file: $f" >&2;}
20683 { (exit 1); exit 1; }; }
20684 # Do quote $f, to prevent DOS paths from being IFS'd.
20687 if test -f "$f"; then
20690 elif test -f "$srcdir/$f"; then
20695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20696 echo "$as_me: error: cannot find input file: $f" >&2;}
20697 { (exit 1); exit 1; }; }
20700 done` ||
{ (exit 1); exit 1; }
20701 # Remove the trailing spaces.
20702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20706 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20707 # `conftest.undefs', that substitutes the proper values into
20708 # config.h.in to produce config.h. The first handles `#define'
20709 # templates, and the second `#undef' templates.
20710 # And first: Protect against being on the right side of a sed subst in
20711 # config.status. Protect against being in an unquoted here document
20712 # in config.status.
20713 rm -f conftest.defines conftest.undefs
20714 # Using a here document instead of a string reduces the quoting nightmare.
20715 # Putting comments in sed scripts is not portable.
20717 # `end' is used to avoid that the second main sed command (meant for
20718 # 0-ary CPP macros) applies to n-ary macro definitions.
20719 # See the Autoconf documentation for `clear'.
20720 cat >confdef2sed.
sed <<\_ACEOF
20725 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20727 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20730 # If some macros were called several times there might be several times
20731 # the same #defines, which is useless. Nevertheless, we may not want to
20732 # sort them, since we want the *last* AC-DEFINE to be honored.
20733 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20734 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20735 rm -f confdef2sed.sed
20737 # This sed command replaces #undef with comments. This is necessary, for
20738 # example, in the case of _POSIX_SOURCE, which is predefined and required
20739 # on some systems where configure will not decide to define it.
20740 cat >>conftest.undefs <<\_ACEOF
20741 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20744 # Break up conftest.defines because some shells have a limit on the size
20745 # of here documents, and old seds have small limits too (100 cmds).
20746 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20747 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20748 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20749 echo ' :' >>$CONFIG_STATUS
20750 rm -f conftest.tail
20751 while grep . conftest.defines >/dev/null
20753 # Write a limited-size here document to $tmp/defines.sed.
20754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20755 # Speed up: don't consider the non `#define' lines.
20756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20757 # Work around the forget-to-reset-the-flag bug.
20758 echo 't clr' >>$CONFIG_STATUS
20759 echo ': clr' >>$CONFIG_STATUS
20760 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20764 mv $tmp/out $tmp/in
20766 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20767 rm -f conftest.defines
20768 mv conftest.
tail conftest.defines
20770 rm -f conftest.defines
20771 echo ' fi # grep' >>$CONFIG_STATUS
20772 echo >>$CONFIG_STATUS
20774 # Break up conftest.undefs because some shells have a limit on the size
20775 # of here documents, and old seds have small limits too (100 cmds).
20776 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20777 rm -f conftest.
tail
20778 while grep . conftest.undefs
>/dev
/null
20780 # Write a limited-size here document to $tmp/undefs.sed.
20781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20782 # Speed up: don't consider the non
`#undef'
20783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20784 # Work around the forget-to-reset-the-flag bug.
20785 echo 't clr' >>$CONFIG_STATUS
20786 echo ': clr' >>$CONFIG_STATUS
20787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20791 mv $tmp/out $tmp/in
20793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20794 rm -f conftest.undefs
20795 mv conftest.tail conftest.undefs
20797 rm -f conftest.undefs
20799 cat >>$CONFIG_STATUS <<\_ACEOF
20800 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20801 # use $as_me), people would be surprised to read:
20802 # /* config.h. Generated by config.status. */
20803 if test x
"$ac_file" = x-
; then
20804 echo "/* Generated by configure. */" >$tmp/config.h
20806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20808 cat $tmp/in >>$tmp/config.h
20810 if test x
"$ac_file" != x-
; then
20811 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20813 echo "$as_me: $ac_file is unchanged" >&6;}
20815 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20817 X"$ac_file" : 'X\(//\)[^/]' \| \
20818 X"$ac_file" : 'X\(//\)$' \| \
20819 X"$ac_file" : 'X\(/\)' \| \
20820 . : '\(.\)' 2>/dev/null ||
20822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20824 /^X\(\/\/\)$/{ s//\1/; q; }
20825 /^X\(\/\).*/{ s//\1/; q; }
20827 { if $as_mkdir_p; then
20832 while test ! -d "$as_dir"; do
20833 as_dirs
="$as_dir $as_dirs"
20834 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20836 X"$as_dir" : 'X\(//\)[^/]' \| \
20837 X"$as_dir" : 'X\(//\)$' \| \
20838 X"$as_dir" : 'X\(/\)' \| \
20839 . : '\(.\)' 2>/dev/null ||
20841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20843 /^X\(\/\/\)$/{ s//\1/; q; }
20844 /^X\(\/\).*/{ s//\1/; q; }
20847 test ! -n "$as_dirs" || mkdir
$as_dirs
20848 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20850 { (exit 1); exit 1; }; }; }
20853 mv $tmp/config.h
$ac_file
20857 rm -f $tmp/config.h
20859 # Compute $ac_file's index in $config_headers.
20861 for _am_header
in $config_headers :; do
20862 case $_am_header in
20863 $ac_file |
$ac_file:* )
20866 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20869 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20870 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20871 X$ac_file : 'X\(//\)[^/]' \| \
20872 X$ac_file : 'X\(//\)$' \| \
20873 X$ac_file : 'X\(/\)' \| \
20874 . : '\(.\)' 2>/dev/null ||
20876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20878 /^X\(\/\/\)$/{ s//\1/; q; }
20879 /^X\(\/\).*/{ s//\1/; q; }
20880 s/.*/./; q'`/stamp-h
$_am_stamp_count
20883 cat >>$CONFIG_STATUS <<\_ACEOF
20886 # CONFIG_COMMANDS section.
20888 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20889 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20890 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20891 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20893 X"$ac_dest" : 'X\(//\)[^/]' \| \
20894 X"$ac_dest" : 'X\(//\)$' \| \
20895 X"$ac_dest" : 'X\(/\)' \| \
20896 . : '\(.\)' 2>/dev/null ||
20898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20900 /^X\(\/\/\)$/{ s//\1/; q; }
20901 /^X\(\/\).*/{ s//\1/; q; }
20903 { if $as_mkdir_p; then
20908 while test ! -d "$as_dir"; do
20909 as_dirs
="$as_dir $as_dirs"
20910 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20912 X"$as_dir" : 'X\(//\)[^/]' \| \
20913 X"$as_dir" : 'X\(//\)$' \| \
20914 X"$as_dir" : 'X\(/\)' \| \
20915 . : '\(.\)' 2>/dev/null ||
20917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20919 /^X\(\/\/\)$/{ s//\1/; q; }
20920 /^X\(\/\).*/{ s//\1/; q; }
20923 test ! -n "$as_dirs" || mkdir
$as_dirs
20924 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20926 { (exit 1); exit 1; }; }; }
20930 if test "$ac_dir" != .
; then
20931 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20932 # A "../" for each directory in $ac_dir_suffix.
20933 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20935 ac_dir_suffix
= ac_top_builddir
=
20939 .
) # No --srcdir option. We are building in place.
20941 if test -z "$ac_top_builddir"; then
20944 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20946 [\\/]* | ?
:[\\/]* ) # Absolute path.
20947 ac_srcdir
=$srcdir$ac_dir_suffix;
20948 ac_top_srcdir
=$srcdir ;;
20949 *) # Relative path.
20950 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20951 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20954 # Do not use `cd foo && pwd` to compute absolute paths, because
20955 # the directories may not exist.
20957 .
) ac_abs_builddir
="$ac_dir";;
20960 .
) ac_abs_builddir
=`pwd`;;
20961 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20962 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20965 case $ac_abs_builddir in
20966 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20968 case ${ac_top_builddir}.
in
20969 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20970 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20971 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20974 case $ac_abs_builddir in
20975 .
) ac_abs_srcdir
=$ac_srcdir;;
20978 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20979 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20980 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20983 case $ac_abs_builddir in
20984 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20986 case $ac_top_srcdir in
20987 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20988 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20989 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20994 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20995 echo "$as_me: executing $ac_dest commands" >&6;}
20997 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20998 # Strip MF so we end up with the name of the file.
20999 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21000 # Check whether this is an Automake generated Makefile or not.
21001 # We used to match only the files named `Makefile.in', but
21002 # some people rename them; so instead we look at the file content.
21003 # Grep'ing the first line is not enough: some people post-process
21004 # each Makefile.in and add a new line on top of each file to say so.
21005 # So let's grep whole file.
21006 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21007 dirpart
=`(dirname "$mf") 2>/dev/null ||
21008 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21009 X"$mf" : 'X\(//\)[^/]' \| \
21010 X"$mf" : 'X\(//\)$' \| \
21011 X"$mf" : 'X\(/\)' \| \
21012 . : '\(.\)' 2>/dev/null ||
21014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21016 /^X\(\/\/\)$/{ s//\1/; q; }
21017 /^X\(\/\).*/{ s//\1/; q; }
21022 # Extract the definition of DEPDIR, am__include, and am__quote
21023 # from the Makefile without running `make'.
21024 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21025 test -z "$DEPDIR" && continue
21026 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21027 test -z "am__include" && continue
21028 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21029 # When using ansi2knr, U may be empty or an underscore; expand it
21030 U
=`sed -n 's/^U = //p' < "$mf"`
21031 # Find all dependency output files, they are included files with
21032 # $(DEPDIR) in their names. We invoke sed twice because it is the
21033 # simplest approach to changing $(DEPDIR) to its actual value in the
21035 for file in `sed -n "
21036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21038 # Make sure the directory exists.
21039 test -f "$dirpart/$file" && continue
21040 fdir
=`(dirname "$file") 2>/dev/null ||
21041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21042 X"$file" : 'X\(//\)[^/]' \| \
21043 X"$file" : 'X\(//\)$' \| \
21044 X"$file" : 'X\(/\)' \| \
21045 . : '\(.\)' 2>/dev/null ||
21047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21049 /^X\(\/\/\)$/{ s//\1/; q; }
21050 /^X\(\/\).*/{ s//\1/; q; }
21052 { if $as_mkdir_p; then
21053 mkdir
-p $dirpart/$fdir
21055 as_dir
=$dirpart/$fdir
21057 while test ! -d "$as_dir"; do
21058 as_dirs
="$as_dir $as_dirs"
21059 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21061 X"$as_dir" : 'X\(//\)[^/]' \| \
21062 X"$as_dir" : 'X\(//\)$' \| \
21063 X"$as_dir" : 'X\(/\)' \| \
21064 . : '\(.\)' 2>/dev/null ||
21066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21068 /^X\(\/\/\)$/{ s//\1/; q; }
21069 /^X\(\/\).*/{ s//\1/; q; }
21072 test ! -n "$as_dirs" || mkdir
$as_dirs
21073 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21074 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21075 { (exit 1); exit 1; }; }; }
21077 # echo "creating $dirpart/$file"
21078 echo '# dummy' > "$dirpart/$file"
21083 for ac_file
in $CONFIG_FILES; do
21084 # Support "outfile[:infile[:infile...]]"
21086 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
21088 # PO directories have a Makefile.in generated from Makefile.in.in.
21089 case "$ac_file" in */Makefile.
in)
21090 # Adjust a relative srcdir.
21091 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21092 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
21093 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21094 # In autoconf-2.13 it is called $ac_given_srcdir.
21095 # In autoconf-2.50 it is called $srcdir.
21096 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
21097 case "$ac_given_srcdir" in
21098 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
21099 /*) top_srcdir
="$ac_given_srcdir" ;;
21100 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21102 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21103 rm -f "$ac_dir/POTFILES"
21104 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21105 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21106 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21107 # on $ac_dir but don't depend on user-specified configuration
21109 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21110 # The LINGUAS file contains the set of available languages.
21111 if test -n "$ALL_LINGUAS"; then
21112 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21114 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21115 # Hide the ALL_LINGUAS assigment from automake.
21116 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21118 case "$ac_given_srcdir" in
21120 *) srcdirpre
='$(srcdir)/' ;;
21126 for lang
in $ALL_LINGUAS; do
21127 POFILES
="$POFILES $srcdirpre$lang.po"
21128 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21129 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21130 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21132 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21133 # environment variable.
21135 if test -n "$ALL_LINGUAS"; then
21136 for presentlang
in $ALL_LINGUAS; do
21138 if test "%UNSET%" != "$LINGUAS"; then
21139 desiredlanguages
="$LINGUAS"
21141 desiredlanguages
="$ALL_LINGUAS"
21143 for desiredlang
in $desiredlanguages; do
21144 # Use the presentlang catalog if desiredlang is
21145 # a. equal to presentlang, or
21146 # b. a variant of presentlang (because in this case,
21147 # presentlang can be used as a fallback for messages
21148 # which are not translated in the desiredlang catalog).
21149 case "$desiredlang" in
21150 "$presentlang"*) useit
=yes;;
21153 if test $useit = yes; then
21154 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21159 if test -n "$INST_LINGUAS"; then
21160 for lang
in $INST_LINGUAS; do
21161 CATALOGS
="$CATALOGS $lang.gmo"
21164 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21165 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"
21166 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21167 if test -f "$f"; then
21169 *.orig |
*.bak |
*~
) ;;
21170 *) cat "$f" >> "$ac_dir/Makefile" ;;
21178 denoiser
) if test $denoiserlevel -gt 0; then
21179 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21180 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
21181 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21182 for i
in `find . -name 'Makefile' -print`; do
21183 if test -n "`head -n 1 $i | grep '^#'`"; then
21184 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21192 cat >>$CONFIG_STATUS <<\_ACEOF
21194 { (exit 0); exit 0; }
21196 chmod +x
$CONFIG_STATUS
21197 ac_clean_files
=$ac_clean_files_save
21200 # configure is writing to config.log, and then calls config.status.
21201 # config.status does its own redirection, appending to config.log.
21202 # Unfortunately, on DOS this fails, as config.log is still kept open
21203 # by configure, so config.status won't be able to write to it; its
21204 # output is simply discarded. So we exec the FD to /dev/null,
21205 # effectively closing config.log, so it can be properly (re)opened and
21206 # appended to by config.status. When coming back to configure, we
21207 # need to make the FD available again.
21208 if test "$no_create" != yes; then
21210 ac_config_status_args
=
21211 test "$silent" = yes &&
21212 ac_config_status_args
="$ac_config_status_args --quiet"
21214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21217 # would make configure fail if this is the last instruction.
21218 $ac_cs_success ||
{ (exit 1); exit 1; }
21222 if test -n "$svndate"; then
21223 SVN_REVISION
=" ($svndate)"
21231 echo " Configure script has finished system check."
21233 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21235 echo " aMule enabled options:"
21237 echo " **** aMule Core ****"
21238 echo " Prefix where aMule should be installed? ${prefix:-none}"
21239 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21240 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21241 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21242 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21243 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21244 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21245 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21246 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21247 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21248 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21251 echo " **** aMule TextClient ****"
21252 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21254 echo " **** aMule WebServer ****"
21255 echo " Should aMule WebServer be built? ${WEB:-no}"
21257 echo " **** aMule ED2K Links Handler ****"
21258 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21260 echo " **** aMuleLinkCreator ****"
21261 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21262 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21264 echo " **** aMule Statistics ****"
21265 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21266 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21267 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21270 echo " **** General Libraries and Tools ****"
21271 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21272 echo " Libraries aMule will use to build:"
21274 if test $WX_DEBUG -eq 1; then
21275 wxinfo
="$wxinfo,debug"
21278 if test $WX_SHARED -eq 1; then
21279 wxinfo
="$wxinfo,shared"
21281 wxinfo
="$wxinfo,static"
21284 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21285 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21286 if test -n "$with_libupnp_prefix"; then
21287 libupnp_place
=" (in $with_libupnp_prefix)"
21290 if test x
${ENABLE_UPNP} = xyes
; then
21291 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21294 if test ${enable_nls:-yes} = yes; then
21295 if test x
$USE_NLS = xno
; then
21296 libintl_found
="Not detected"
21298 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21299 libintl_found
="included"
21301 libintl_found
="system"
21306 echo " libintl $libintl_found"
21308 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21314 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21315 echo " libGeoIP ${geoip_style}"
21318 if test x
$LIBPNG_VERSION != xnot_needed
; then
21319 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21321 if test x
$GDLIB_VERSION != xnot_needed
; then
21322 echo " libgd ${GDLIB_VERSION:-Not detected}"
21324 echo " zlib ${ZLIB_VERSION:-Not detected}"
21325 if test ${_mule_has_warnings:-no} = yes; then
21328 echo " *** Warnings during configuration ***"
21330 if test ${_mule_warning_0:-no} = yes; then
21333 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21334 Please check that gdlib-config is in your default path, check out
21335 LD_LIBRARY_PATH or equivalent variable.
21336 Or this might also be that your gdlib-config has other name.
21337 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21338 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21339 If you use compiled packages check if you have devel pack installed.
21340 To download the latest version check http://www.boutell.com/gd for sources.
21343 if test ${_mule_warning_1:-no} = yes; then
21346 * libpng >= 1.2.0 not found.
21347 amuleweb will be compiled but file download progress bar images will NOT be
21351 if test ${_mule_warning_2:-no} = yes; then
21354 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21357 if test ${_mule_warning_3:-no} = yes; then
21360 * GeoIP support has been disabled because the GeoIP libraries were not found
21363 if test ${_mule_warning_4:-no} = yes; then
21366 * GeoIP support has been disabled because the GeoIP header files were not
21370 if test ${_mule_warning_5:-no} = yes; then
21373 * UPnP code has been disabled because ${libupnp_error}.
21376 if test ${_mule_warning_6:-no} = yes; then
21379 * Cross-compilation detected, so exception handling cannot be tested.
21380 Note that broken exception handling in your compiler may lead to unexpected
21384 if test ${_mule_warning_7:-no} = yes; then
21387 * configure cannot check whether malloc() and realloc() are GNU libc
21388 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21389 configure with the --without-gnu-malloc switch.
21392 if test ${_mule_warning_8:-no} = yes; then
21395 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21399 if test ${_mule_warning_9:-no} = yes; then
21402 * bfd.h not found or unusable, please install binutils development package if
21403 you are a developer or want to help testing aMule