Upstream tarball 9947
[amule.git] / configure
bloba259c7f0ecd05dbda3d3adf166952bdab01a82a1
1 #! /bin/sh
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
16 emulate sh
17 NULLCMD=:
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
22 set -o posix
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
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
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 \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
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 ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; 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
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
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
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
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
124 as_myself=$0
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
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
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
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
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 |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
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).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >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
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
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'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
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`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
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.
270 PACKAGE_NAME='aMule'
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="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
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 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 MONOLITHIC_TRUE MONOLITHIC_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE WEB_TRUE WEB_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ED2K_TRUE ED2K_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE XAS_TRUE XAS_FALSE FILEVIEW_TRUE FILEVIEW_FALSE 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_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 WEBSERVER_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE 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'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
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'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
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 ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
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'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
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.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
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)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
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)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
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)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
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)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
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)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
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'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
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" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
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; }; }
633 *=*)
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'"
641 export $ac_envvar ;;
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}
651 esac
652 done
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`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
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`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
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.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
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
697 cross_compiling=yes
701 ac_tool_prefix=
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 ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
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; }; }
734 else
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}
776 ac_env_CC_value=$CC
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}
788 ac_env_RC_value=$RC
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.
806 cat <<_ACEOF
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.
816 Configuration:
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 \`..']
827 _ACEOF
829 cat <<_ACEOF
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
832 [$ac_default_prefix]
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 [PREFIX]
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]
856 _ACEOF
858 cat <<\_ACEOF
860 Program names:
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
865 System types:
866 --build=BUILD configure for building on BUILD [guessed]
867 --host=HOST cross-compile to build programs to run on HOST [BUILD]
868 _ACEOF
871 if test -n "$ac_init_help"; then
872 case $ac_init_help in
873 short | recursive ) echo "Configuration of aMule SVN:";;
874 esac
875 cat <<\_ACEOF
877 Optional Features:
878 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
879 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
880 --enable-maintainer-mode enable make rules and dependencies not useful
881 (and sometimes confusing) to the casual installer
882 --disable-dependency-tracking speeds up one-time build
883 --enable-dependency-tracking do not reject slow dependency extractors
884 --disable-monolithic disable building of the monolithic aMule app
885 --enable-amule-daemon compile aMule daemon version
886 --enable-amulecmd compile aMule command line client
887 --enable-webserver compile aMule WebServer
888 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
889 --enable-cas compile C aMule Statistics
890 --enable-wxcas compile aMule GUI Statistics
891 --disable-ed2k don't compile aMule ed2k links handler
892 --enable-alc compile aMuleLinkCreator GUI version
893 --enable-alcc compile aMuleLinkCreator for console
894 --enable-xas install xas XChat2 plugin
895 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
896 --enable-static produce a statically linked executable
897 --enable-geoip compile with GeoIP IP2Country library
898 --disable-upnp do not compile UPnP code
899 --enable-mmap enable using mapped memory if supported
900 --disable-rpath do not hardcode runtime library paths
901 --disable-nls do not use Native Language Support
902 --disable-debug disable additional debugging output
903 --enable-profile enable code profiling
904 --enable-optimize enable code optimization
905 --enable-ccache enable ccache support for fast recompilation
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --without-gnu-malloc Don't assume that we use GNU libc compatible
911 malloc/realloc when cross-compiling
912 --with-zlib=PREFIX use zlib in PREFIX
913 --with-gdlib-prefix=PREFIX
914 prefix where gdlib is installed (optional)
915 --with-gdlib-config=CONFIG
916 gdlib-config script to use (optional)
917 --with-libpng-prefix=PREFIX
918 prefix where libpng is installed (optional)
919 --with-libpng-config=CONFIG
920 libpng-config script to use (optional)
921 --with-geoip-headers=DIR
922 GeoIP include files location
923 --with-geoip-lib=DIR GeoIP library location
924 --with-geoip-static Explicitly link GeoIP statically (default=no)
925 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
926 --with-wx-config=CONFIG wx-config script to use (optional)
927 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
928 --with-wx-exec-prefix=PREFIX
929 Exec prefix where wxWidgets is installed (optional)
930 --with-toolkit Build against a specific wxWidgets toolkit (default
931 is auto)
932 --with-wxshared Force building against a shared build of wxWidgets,
933 even if --disable-shared is given (default is auto)
934 --with-wxdebug Force building against a debug build of wxWidgets,
935 even if --disable-debug is given (default is auto)
936 --with-wxversion Build against a specific version of wxWidgets
937 (default is auto)
938 --with-libupnp-prefix=PREFIX
939 UPnP library location
940 --with-crypto-prefix=PREFIX
941 prefix where crypto++ is installed
942 --with-language=<langs> Specify a comma-separated list of languages you want
943 to have installed. See po/LINGUAS for available
944 languages
945 --with-gnu-ld assume the C compiler uses GNU ld default=no
946 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
947 --without-libiconv-prefix don't search for libiconv in includedir and libdir
948 --with-included-gettext use the GNU gettext library included here
949 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
950 --without-libintl-prefix don't search for libintl in includedir and libdir
951 --with-denoise-level=<level>
952 Specifies denoising level (0-4):
953 0 - Do nothing
954 4 - Suppress all normal output
955 (for more information see
956 src/utils/scripts/denoiser.rules)
958 --with-ccache-prefix=PREFIX
959 prefix where ccache is installed
961 Some influential environment variables:
962 CXX C++ compiler command
963 CXXFLAGS C++ compiler flags
964 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
965 nonstandard directory <lib dir>
966 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
967 headers in a nonstandard directory <include dir>
968 CXXCPP C++ preprocessor
969 CC C compiler command
970 CFLAGS C compiler flags
971 CPP C preprocessor
972 RC Resource Compiler
973 RCFLAGS Resource Compiler Flags
974 PKG_CONFIG path to pkg-config utility
976 Use these variables to override the choices made by `configure' or to help
977 it to find libraries and programs with nonstandard names/locations.
979 Report bugs to <admin@amule.org>.
980 _ACEOF
983 if test "$ac_init_help" = "recursive"; then
984 # If there are subdirs, report their specific --help.
985 ac_popdir=`pwd`
986 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
987 test -d $ac_dir || continue
988 ac_builddir=.
990 if test "$ac_dir" != .; then
991 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
992 # A "../" for each directory in $ac_dir_suffix.
993 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
994 else
995 ac_dir_suffix= ac_top_builddir=
998 case $srcdir in
999 .) # No --srcdir option. We are building in place.
1000 ac_srcdir=.
1001 if test -z "$ac_top_builddir"; then
1002 ac_top_srcdir=.
1003 else
1004 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1005 fi ;;
1006 [\\/]* | ?:[\\/]* ) # Absolute path.
1007 ac_srcdir=$srcdir$ac_dir_suffix;
1008 ac_top_srcdir=$srcdir ;;
1009 *) # Relative path.
1010 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1011 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1012 esac
1014 # Do not use `cd foo && pwd` to compute absolute paths, because
1015 # the directories may not exist.
1016 case `pwd` in
1017 .) ac_abs_builddir="$ac_dir";;
1019 case "$ac_dir" in
1020 .) ac_abs_builddir=`pwd`;;
1021 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1022 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1023 esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1028 case ${ac_top_builddir}. in
1029 .) ac_abs_top_builddir=$ac_abs_builddir;;
1030 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1032 esac;;
1033 esac
1034 case $ac_abs_builddir in
1035 .) ac_abs_srcdir=$ac_srcdir;;
1037 case $ac_srcdir in
1038 .) ac_abs_srcdir=$ac_abs_builddir;;
1039 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1040 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1041 esac;;
1042 esac
1043 case $ac_abs_builddir in
1044 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1046 case $ac_top_srcdir in
1047 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1048 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1050 esac;;
1051 esac
1053 cd $ac_dir
1054 # Check for guested configure; otherwise get Cygnus style configure.
1055 if test -f $ac_srcdir/configure.gnu; then
1056 echo
1057 $SHELL $ac_srcdir/configure.gnu --help=recursive
1058 elif test -f $ac_srcdir/configure; then
1059 echo
1060 $SHELL $ac_srcdir/configure --help=recursive
1061 elif test -f $ac_srcdir/configure.ac ||
1062 test -f $ac_srcdir/configure.in; then
1063 echo
1064 $ac_configure --help
1065 else
1066 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1068 cd $ac_popdir
1069 done
1072 test -n "$ac_init_help" && exit 0
1073 if $ac_init_version; then
1074 cat <<\_ACEOF
1075 aMule configure SVN
1076 generated by GNU Autoconf 2.59
1078 Copyright (C) 2003 Free Software Foundation, Inc.
1079 This configure script is free software; the Free Software Foundation
1080 gives unlimited permission to copy, distribute and modify it.
1081 _ACEOF
1082 exit 0
1084 exec 5>config.log
1085 cat >&5 <<_ACEOF
1086 This file contains any messages produced by compilers while
1087 running configure, to aid debugging if configure makes a mistake.
1089 It was created by aMule $as_me SVN, which was
1090 generated by GNU Autoconf 2.59. Invocation command line was
1092 $ $0 $@
1094 _ACEOF
1096 cat <<_ASUNAME
1097 ## --------- ##
1098 ## Platform. ##
1099 ## --------- ##
1101 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1102 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1103 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1104 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1105 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1107 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1108 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1110 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1111 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1112 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1113 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1114 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1115 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1116 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1118 _ASUNAME
1120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1121 for as_dir in $PATH
1123 IFS=$as_save_IFS
1124 test -z "$as_dir" && as_dir=.
1125 echo "PATH: $as_dir"
1126 done
1128 } >&5
1130 cat >&5 <<_ACEOF
1133 ## ----------- ##
1134 ## Core tests. ##
1135 ## ----------- ##
1137 _ACEOF
1140 # Keep a trace of the command line.
1141 # Strip out --no-create and --no-recursion so they do not pile up.
1142 # Strip out --silent because we don't want to record it for future runs.
1143 # Also quote any args containing shell meta-characters.
1144 # Make two passes to allow for proper duplicate-argument suppression.
1145 ac_configure_args=
1146 ac_configure_args0=
1147 ac_configure_args1=
1148 ac_sep=
1149 ac_must_keep_next=false
1150 for ac_pass in 1 2
1152 for ac_arg
1154 case $ac_arg in
1155 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 continue ;;
1159 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1161 esac
1162 case $ac_pass in
1163 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1165 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1166 if test $ac_must_keep_next = true; then
1167 ac_must_keep_next=false # Got value, back to normal.
1168 else
1169 case $ac_arg in
1170 *=* | --config-cache | -C | -disable-* | --disable-* \
1171 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1172 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1173 | -with-* | --with-* | -without-* | --without-* | --x)
1174 case "$ac_configure_args0 " in
1175 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1176 esac
1178 -* ) ac_must_keep_next=true ;;
1179 esac
1181 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1182 # Get rid of the leading space.
1183 ac_sep=" "
1185 esac
1186 done
1187 done
1188 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1189 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1191 # When interrupted or exit'd, cleanup temporary files, and complete
1192 # config.log. We remove comments because anyway the quotes in there
1193 # would cause problems or look ugly.
1194 # WARNING: Be sure not to use single quotes in there, as some shells,
1195 # such as our DU 5.0 friend, will then `close' the trap.
1196 trap 'exit_status=$?
1197 # Save into config.log some information that might help in debugging.
1199 echo
1201 cat <<\_ASBOX
1202 ## ---------------- ##
1203 ## Cache variables. ##
1204 ## ---------------- ##
1205 _ASBOX
1206 echo
1207 # The following way of writing the cache mishandles newlines in values,
1209 (set) 2>&1 |
1210 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1211 *ac_space=\ *)
1212 sed -n \
1213 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1217 sed -n \
1218 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1220 esac;
1222 echo
1224 cat <<\_ASBOX
1225 ## ----------------- ##
1226 ## Output variables. ##
1227 ## ----------------- ##
1228 _ASBOX
1229 echo
1230 for ac_var in $ac_subst_vars
1232 eval ac_val=$`echo $ac_var`
1233 echo "$ac_var='"'"'$ac_val'"'"'"
1234 done | sort
1235 echo
1237 if test -n "$ac_subst_files"; then
1238 cat <<\_ASBOX
1239 ## ------------- ##
1240 ## Output files. ##
1241 ## ------------- ##
1242 _ASBOX
1243 echo
1244 for ac_var in $ac_subst_files
1246 eval ac_val=$`echo $ac_var`
1247 echo "$ac_var='"'"'$ac_val'"'"'"
1248 done | sort
1249 echo
1252 if test -s confdefs.h; then
1253 cat <<\_ASBOX
1254 ## ----------- ##
1255 ## confdefs.h. ##
1256 ## ----------- ##
1257 _ASBOX
1258 echo
1259 sed "/^$/d" confdefs.h | sort
1260 echo
1262 test "$ac_signal" != 0 &&
1263 echo "$as_me: caught signal $ac_signal"
1264 echo "$as_me: exit $exit_status"
1265 } >&5
1266 rm -f core *.core &&
1267 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1268 exit $exit_status
1270 for ac_signal in 1 2 13 15; do
1271 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1272 done
1273 ac_signal=0
1275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1276 rm -rf conftest* confdefs.h
1277 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1278 echo >confdefs.h
1280 # Predefined preprocessor variables.
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_NAME "$PACKAGE_NAME"
1284 _ACEOF
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1289 _ACEOF
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1294 _ACEOF
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_STRING "$PACKAGE_STRING"
1299 _ACEOF
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1304 _ACEOF
1307 # Let the site file select an alternate cache file if it wants to.
1308 # Prefer explicitly selected file to automatically selected ones.
1309 if test -z "$CONFIG_SITE"; then
1310 if test "x$prefix" != xNONE; then
1311 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1312 else
1313 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1316 for ac_site_file in $CONFIG_SITE; do
1317 if test -r "$ac_site_file"; then
1318 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1319 echo "$as_me: loading site script $ac_site_file" >&6;}
1320 sed 's/^/| /' "$ac_site_file" >&5
1321 . "$ac_site_file"
1323 done
1325 if test -r "$cache_file"; then
1326 # Some versions of bash will fail to source /dev/null (special
1327 # files actually), so we avoid doing that.
1328 if test -f "$cache_file"; then
1329 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1330 echo "$as_me: loading cache $cache_file" >&6;}
1331 case $cache_file in
1332 [\\/]* | ?:[\\/]* ) . $cache_file;;
1333 *) . ./$cache_file;;
1334 esac
1336 else
1337 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1338 echo "$as_me: creating cache $cache_file" >&6;}
1339 >$cache_file
1342 # Check that the precious variables saved in the cache have kept the same
1343 # value.
1344 ac_cache_corrupted=false
1345 for ac_var in `(set) 2>&1 |
1346 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1348 eval ac_new_set=\$ac_env_${ac_var}_set
1349 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1350 eval ac_new_val="\$ac_env_${ac_var}_value"
1351 case $ac_old_set,$ac_new_set in
1352 set,)
1353 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1354 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1355 ac_cache_corrupted=: ;;
1356 ,set)
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1359 ac_cache_corrupted=: ;;
1360 ,);;
1362 if test "x$ac_old_val" != "x$ac_new_val"; then
1363 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1364 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1365 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1366 echo "$as_me: former value: $ac_old_val" >&2;}
1367 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1368 echo "$as_me: current value: $ac_new_val" >&2;}
1369 ac_cache_corrupted=:
1370 fi;;
1371 esac
1372 # Pass precious variables to config.status.
1373 if test "$ac_new_set" = set; then
1374 case $ac_new_val in
1375 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1376 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1377 *) ac_arg=$ac_var=$ac_new_val ;;
1378 esac
1379 case " $ac_configure_args " in
1380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1381 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1382 esac
1384 done
1385 if $ac_cache_corrupted; then
1386 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1387 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1388 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1389 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1390 { (exit 1); exit 1; }; }
1393 ac_ext=c
1394 ac_cpp='$CPP $CPPFLAGS'
1395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1425 am__api_version="1.9"
1426 ac_aux_dir=
1427 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1428 if test -f $ac_dir/install-sh; then
1429 ac_aux_dir=$ac_dir
1430 ac_install_sh="$ac_aux_dir/install-sh -c"
1431 break
1432 elif test -f $ac_dir/install.sh; then
1433 ac_aux_dir=$ac_dir
1434 ac_install_sh="$ac_aux_dir/install.sh -c"
1435 break
1436 elif test -f $ac_dir/shtool; then
1437 ac_aux_dir=$ac_dir
1438 ac_install_sh="$ac_aux_dir/shtool install -c"
1439 break
1441 done
1442 if test -z "$ac_aux_dir"; then
1443 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1444 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1445 { (exit 1); exit 1; }; }
1447 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1448 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1449 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1451 # Find a good install program. We prefer a C program (faster),
1452 # so one script is as good as another. But avoid the broken or
1453 # incompatible versions:
1454 # SysV /etc/install, /usr/sbin/install
1455 # SunOS /usr/etc/install
1456 # IRIX /sbin/install
1457 # AIX /bin/install
1458 # AmigaOS /C/install, which installs bootblocks on floppy discs
1459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # OS/2's system install, which has a completely different semantic
1463 # ./install, which can be erroneously created by make from ./install.sh.
1464 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1465 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1466 if test -z "$INSTALL"; then
1467 if test "${ac_cv_path_install+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 # Account for people who put trailing slashes in PATH elements.
1476 case $as_dir/ in
1477 ./ | .// | /cC/* | \
1478 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1479 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1480 /usr/ucb/* ) ;;
1482 # OSF1 and SCO ODT 3.0 have their own names for install.
1483 # Don't use installbsd from OSF since it installs stuff as root
1484 # by default.
1485 for ac_prog in ginstall scoinst install; do
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1488 if test $ac_prog = install &&
1489 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1490 # AIX install. It has an incompatible calling convention.
1492 elif test $ac_prog = install &&
1493 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494 # program-specific install script used by HP pwplus--don't use.
1496 else
1497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1498 break 3
1501 done
1502 done
1504 esac
1505 done
1509 if test "${ac_cv_path_install+set}" = set; then
1510 INSTALL=$ac_cv_path_install
1511 else
1512 # As a last resort, use the slow shell script. We don't cache a
1513 # path for INSTALL within a source directory, because that will
1514 # break other packages using the cache if that directory is
1515 # removed, or if the path is relative.
1516 INSTALL=$ac_install_sh
1519 echo "$as_me:$LINENO: result: $INSTALL" >&5
1520 echo "${ECHO_T}$INSTALL" >&6
1522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1523 # It thinks the first close brace ends the variable substitution.
1524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1530 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1531 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1532 # Just in case
1533 sleep 1
1534 echo timestamp > conftest.file
1535 # Do `set' in a subshell so we don't clobber the current shell's
1536 # arguments. Must try -L first in case configure is actually a
1537 # symlink; some systems play weird games with the mod time of symlinks
1538 # (eg FreeBSD returns the mod time of the symlink's containing
1539 # directory).
1540 if (
1541 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1542 if test "$*" = "X"; then
1543 # -L didn't work.
1544 set X `ls -t $srcdir/configure conftest.file`
1546 rm -f conftest.file
1547 if test "$*" != "X $srcdir/configure conftest.file" \
1548 && test "$*" != "X conftest.file $srcdir/configure"; then
1550 # If neither matched, then we have a broken ls. This can happen
1551 # if, for instance, CONFIG_SHELL is bash and it inherits a
1552 # broken ls alias from the environment. This has actually
1553 # happened. Such a system could not be considered "sane".
1554 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1555 alias in your environment" >&5
1556 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1557 alias in your environment" >&2;}
1558 { (exit 1); exit 1; }; }
1561 test "$2" = conftest.file
1563 then
1564 # Ok.
1566 else
1567 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1568 Check your system clock" >&5
1569 echo "$as_me: error: newly created file is older than distributed files!
1570 Check your system clock" >&2;}
1571 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: yes" >&5
1574 echo "${ECHO_T}yes" >&6
1575 test "$program_prefix" != NONE &&
1576 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1577 # Use a double $ so make ignores it.
1578 test "$program_suffix" != NONE &&
1579 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1580 # Double any \ or $. echo might interpret backslashes.
1581 # By default was `s,x,x', remove it if useless.
1582 cat <<\_ACEOF >conftest.sed
1583 s/[\\$]/&&/g;s/;s,x,x,$//
1584 _ACEOF
1585 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1586 rm conftest.sed
1588 # expand $ac_aux_dir to an absolute path
1589 am_aux_dir=`cd $ac_aux_dir && pwd`
1591 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1592 # Use eval to expand $SHELL
1593 if eval "$MISSING --run true"; then
1594 am_missing_run="$MISSING --run "
1595 else
1596 am_missing_run=
1597 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1598 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1601 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1602 # We used to keeping the `.' as first argument, in order to
1603 # allow $(mkdir_p) to be used without argument. As in
1604 # $(mkdir_p) $(somedir)
1605 # where $(somedir) is conditionally defined. However this is wrong
1606 # for two reasons:
1607 # 1. if the package is installed by a user who cannot write `.'
1608 # make install will fail,
1609 # 2. the above comment should most certainly read
1610 # $(mkdir_p) $(DESTDIR)$(somedir)
1611 # so it does not work when $(somedir) is undefined and
1612 # $(DESTDIR) is not.
1613 # To support the latter case, we have to write
1614 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1615 # so the `.' trick is pointless.
1616 mkdir_p='mkdir -p --'
1617 else
1618 # On NextStep and OpenStep, the `mkdir' command does not
1619 # recognize any option. It will interpret all options as
1620 # directories to create, and then abort because `.' already
1621 # exists.
1622 for d in ./-p ./--version;
1624 test -d $d && rmdir $d
1625 done
1626 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1627 if test -f "$ac_aux_dir/mkinstalldirs"; then
1628 mkdir_p='$(mkinstalldirs)'
1629 else
1630 mkdir_p='$(install_sh) -d'
1634 for ac_prog in gawk mawk nawk awk
1636 # Extract the first word of "$ac_prog", so it can be a program name with args.
1637 set dummy $ac_prog; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_AWK+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643 if test -n "$AWK"; then
1644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_AWK="$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1657 done
1658 done
1662 AWK=$ac_cv_prog_AWK
1663 if test -n "$AWK"; then
1664 echo "$as_me:$LINENO: result: $AWK" >&5
1665 echo "${ECHO_T}$AWK" >&6
1666 else
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1671 test -n "$AWK" && break
1672 done
1674 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1675 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1677 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 cat >conftest.make <<\_ACEOF
1681 all:
1682 @echo 'ac_maketemp="$(MAKE)"'
1683 _ACEOF
1684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1685 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1686 if test -n "$ac_maketemp"; then
1687 eval ac_cv_prog_make_${ac_make}_set=yes
1688 else
1689 eval ac_cv_prog_make_${ac_make}_set=no
1691 rm -f conftest.make
1693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1694 echo "$as_me:$LINENO: result: yes" >&5
1695 echo "${ECHO_T}yes" >&6
1696 SET_MAKE=
1697 else
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 SET_MAKE="MAKE=${MAKE-make}"
1703 rm -rf .tst 2>/dev/null
1704 mkdir .tst 2>/dev/null
1705 if test -d .tst; then
1706 am__leading_dot=.
1707 else
1708 am__leading_dot=_
1710 rmdir .tst 2>/dev/null
1712 # test to see if srcdir already configured
1713 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1714 test -f $srcdir/config.status; then
1715 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1716 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1717 { (exit 1); exit 1; }; }
1720 # test whether we have cygpath
1721 if test -z "$CYGPATH_W"; then
1722 if (cygpath --version) >/dev/null 2>/dev/null; then
1723 CYGPATH_W='cygpath -w'
1724 else
1725 CYGPATH_W=echo
1730 # Define the identity of the package.
1731 PACKAGE='amule'
1732 VERSION='SVN'
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE "$PACKAGE"
1737 _ACEOF
1740 cat >>confdefs.h <<_ACEOF
1741 #define VERSION "$VERSION"
1742 _ACEOF
1744 # Some tools Automake needs.
1746 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1749 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1752 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1755 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1758 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1760 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1762 # Installed binaries are usually stripped using `strip' when the user
1763 # run `make install-strip'. However `strip' might not be the right
1764 # tool to use in cross-compilation environments, therefore Automake
1765 # will honor the `STRIP' environment variable to overrule this program.
1766 if test "$cross_compiling" != no; then
1767 if test -n "$ac_tool_prefix"; then
1768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}strip; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_STRIP+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$STRIP"; then
1776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1789 done
1790 done
1794 STRIP=$ac_cv_prog_STRIP
1795 if test -n "$STRIP"; then
1796 echo "$as_me:$LINENO: result: $STRIP" >&5
1797 echo "${ECHO_T}$STRIP" >&6
1798 else
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1804 if test -z "$ac_cv_prog_STRIP"; then
1805 ac_ct_STRIP=$STRIP
1806 # Extract the first word of "strip", so it can be a program name with args.
1807 set dummy strip; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 if test -n "$ac_ct_STRIP"; then
1814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_STRIP="strip"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1827 done
1828 done
1830 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834 if test -n "$ac_ct_STRIP"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836 echo "${ECHO_T}$ac_ct_STRIP" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 STRIP=$ac_ct_STRIP
1843 else
1844 STRIP="$ac_cv_prog_STRIP"
1848 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1850 # We need awk for the "check" target. The system "awk" is bad on
1851 # some platforms.
1852 # Always define AMTAR for backward compatibility.
1854 AMTAR=${AMTAR-"${am_missing_run}tar"}
1856 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1864 ac_config_headers="$ac_config_headers config.h"
1866 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1867 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1868 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1869 if test "${enable_maintainer_mode+set}" = set; then
1870 enableval="$enable_maintainer_mode"
1871 USE_MAINTAINER_MODE=$enableval
1872 else
1873 USE_MAINTAINER_MODE=no
1875 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1876 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1879 if test $USE_MAINTAINER_MODE = yes; then
1880 MAINTAINER_MODE_TRUE=
1881 MAINTAINER_MODE_FALSE='#'
1882 else
1883 MAINTAINER_MODE_TRUE='#'
1884 MAINTAINER_MODE_FALSE=
1887 MAINT=$MAINTAINER_MODE_TRUE
1891 # Make sure we can run config.sub.
1892 $ac_config_sub sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1894 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 ac_cv_build_alias=$build_alias
1903 test -z "$ac_cv_build_alias" &&
1904 ac_cv_build_alias=`$ac_config_guess`
1905 test -z "$ac_cv_build_alias" &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1911 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6
1917 build=$ac_cv_build
1918 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1919 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1920 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1923 echo "$as_me:$LINENO: checking host system type" >&5
1924 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1925 if test "${ac_cv_host+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 ac_cv_host_alias=$host_alias
1929 test -z "$ac_cv_host_alias" &&
1930 ac_cv_host_alias=$ac_cv_build_alias
1931 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1932 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1933 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1934 { (exit 1); exit 1; }; }
1937 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1938 echo "${ECHO_T}$ac_cv_host" >&6
1939 host=$ac_cv_host
1940 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1941 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1942 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1946 case "${host_os}" in
1947 darwin*)
1948 SYS=darwin
1949 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1950 MULELDFLAGS="-bind_at_load"
1951 touch src/Scanner.cpp
1953 openbsd*)
1954 SYS=openbsd
1955 LIBS="$LIBS -L/usr/local/lib"
1956 MULECPPFLAGS="-D__OPENBSD__"
1958 *cygwin* | *mingw32*)
1959 SYS=win32
1960 MULECPPFLAGS="-DNOMINMAX"
1962 solaris*)
1963 SYS=solaris
1964 RESOLV_LIB="-lresolv -lnsl"
1965 LIBS="$LIBS -lrt"
1967 *netbsd*)
1968 SYS=netbsd
1969 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1970 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1971 # Still, we prepend them, instead of adding, so the user may override them.
1972 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1973 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1975 *irix*)
1976 SYS=irix
1977 MULECPPFLAGS="-D__IRIX__"
1980 SYS=unknown
1982 esac
1984 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1985 if test ${SYS:-unknown} != win32; then
1987 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1988 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1989 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1991 MULELDFLAGS="$MULELDFLAGS -pthread"
1992 echo "$as_me:$LINENO: result: yes" >&5
1993 echo "${ECHO_T}yes" >&6
1995 else
1997 MULELDFLAGS="$MULELDFLAGS -lpthread"
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2009 mule_backup_CFLAGS="$CFLAGS"
2010 mule_backup_CXXFLAGS="$CXXFLAGS"
2011 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2012 ac_ext=cc
2013 ac_cpp='$CXXCPP $CPPFLAGS'
2014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CXX+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$CXX"; then
2028 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2046 CXX=$ac_cv_prog_CXX
2047 if test -n "$CXX"; then
2048 echo "$as_me:$LINENO: result: $CXX" >&5
2049 echo "${ECHO_T}$CXX" >&6
2050 else
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$CXX" && break
2056 done
2058 if test -z "$CXX"; then
2059 ac_ct_CXX=$CXX
2060 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$ac_ct_CXX"; then
2070 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CXX="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2083 done
2084 done
2088 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2089 if test -n "$ac_ct_CXX"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2091 echo "${ECHO_T}$ac_ct_CXX" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$ac_ct_CXX" && break
2098 done
2099 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2101 CXX=$ac_ct_CXX
2105 # Provide some information about the compiler.
2106 echo "$as_me:$LINENO:" \
2107 "checking for C++ compiler version" >&5
2108 ac_compiler=`set X $ac_compile; echo $2`
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2110 (eval $ac_compiler --version </dev/null >&5) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2115 (eval $ac_compiler -v </dev/null >&5) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2120 (eval $ac_compiler -V </dev/null >&5) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2125 cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2133 main ()
2137 return 0;
2139 _ACEOF
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2144 # of exeext.
2145 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2146 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2149 (eval $ac_link_default) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Find the output, starting from the most likely. This scheme is
2154 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2155 # resort.
2157 # Be careful to initialize this variable, since it used to be cached.
2158 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2159 ac_cv_exeext=
2160 # b.out is created by i960 compilers.
2161 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2163 test -f "$ac_file" || continue
2164 case $ac_file in
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2167 conftest.$ac_ext )
2168 # This is the source file.
2170 [ab].out )
2171 # We found the default executable, but exeext='' is most
2172 # certainly right.
2173 break;;
2174 *.* )
2175 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # FIXME: I believe we export ac_cv_exeext for Libtool,
2177 # but it would be cool to find out if it's true. Does anybody
2178 # maintain Libtool? --akim.
2179 export ac_cv_exeext
2180 break;;
2182 break;;
2183 esac
2184 done
2185 else
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C++ compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6
2200 # Check the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2203 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2213 cross_compiling=no
2214 else
2215 if test "$cross_compiling" = maybe; then
2216 cross_compiling=yes
2217 else
2218 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: cannot run C++ compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2228 echo "$as_me:$LINENO: result: yes" >&5
2229 echo "${ECHO_T}yes" >&6
2231 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2232 ac_clean_files=$ac_clean_files_save
2233 # Check the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2236 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2237 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2238 echo "${ECHO_T}$cross_compiling" >&6
2240 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2241 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2243 (eval $ac_link) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2248 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2249 # work properly (i.e., refer to `conftest.exe'), while it won't with
2250 # `rm'.
2251 for ac_file in conftest.exe conftest conftest.*; do
2252 test -f "$ac_file" || continue
2253 case $ac_file in
2254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256 export ac_cv_exeext
2257 break;;
2258 * ) break;;
2259 esac
2260 done
2261 else
2262 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&2;}
2266 { (exit 1); exit 1; }; }
2269 rm -f conftest$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2271 echo "${ECHO_T}$ac_cv_exeext" >&6
2273 rm -f conftest.$ac_ext
2274 EXEEXT=$ac_cv_exeext
2275 ac_exeext=$EXEEXT
2276 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2277 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2278 if test "${ac_cv_objext+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2289 main ()
2293 return 0;
2295 _ACEOF
2296 rm -f conftest.o conftest.obj
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; then
2302 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2303 case $ac_file in
2304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2306 break;;
2307 esac
2308 done
2309 else
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2323 echo "${ECHO_T}$ac_cv_objext" >&6
2324 OBJEXT=$ac_cv_objext
2325 ac_objext=$OBJEXT
2326 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2327 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2328 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h. */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2339 main ()
2341 #ifndef __GNUC__
2342 choke me
2343 #endif
2346 return 0;
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -z "$ac_cxx_werror_flag"
2359 || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 ac_compiler_gnu=yes
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 ac_compiler_gnu=no
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2382 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2384 GXX=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CXXFLAGS=${CXXFLAGS+set}
2386 ac_save_CXXFLAGS=$CXXFLAGS
2387 CXXFLAGS="-g"
2388 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2389 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cxx_g+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h. */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2401 main ()
2405 return 0;
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_cxx_werror_flag"
2418 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 ac_cv_prog_cxx_g=yes
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 ac_cv_prog_cxx_g=no
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2441 if test "$ac_test_CXXFLAGS" = set; then
2442 CXXFLAGS=$ac_save_CXXFLAGS
2443 elif test $ac_cv_prog_cxx_g = yes; then
2444 if test "$GXX" = yes; then
2445 CXXFLAGS="-g -O2"
2446 else
2447 CXXFLAGS="-g"
2449 else
2450 if test "$GXX" = yes; then
2451 CXXFLAGS="-O2"
2452 else
2453 CXXFLAGS=
2456 for ac_declaration in \
2457 '' \
2458 'extern "C" void std::exit (int) throw (); using std::exit;' \
2459 'extern "C" void std::exit (int); using std::exit;' \
2460 'extern "C" void exit (int) throw ();' \
2461 'extern "C" void exit (int);' \
2462 'void exit (int);'
2464 cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2470 $ac_declaration
2471 #include <stdlib.h>
2473 main ()
2475 exit (42);
2477 return 0;
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>conftest.er1
2483 ac_status=$?
2484 grep -v '^ *+' conftest.er1 >conftest.err
2485 rm -f conftest.er1
2486 cat conftest.err >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } &&
2489 { ac_try='test -z "$ac_cxx_werror_flag"
2490 || test ! -s conftest.err'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2507 continue
2509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2516 $ac_declaration
2518 main ()
2520 exit (42);
2522 return 0;
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_cxx_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 break
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 done
2555 rm -f conftest*
2556 if test -n "$ac_declaration"; then
2557 echo '#ifdef __cplusplus' >>confdefs.h
2558 echo $ac_declaration >>confdefs.h
2559 echo '#endif' >>confdefs.h
2562 ac_ext=c
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567 DEPDIR="${am__leading_dot}deps"
2569 ac_config_commands="$ac_config_commands depfiles"
2572 am_make=${MAKE-make}
2573 cat > confinc << 'END'
2574 am__doit:
2575 @echo done
2576 .PHONY: am__doit
2578 # If we don't find an include directive, just comment out the code.
2579 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2580 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2581 am__include="#"
2582 am__quote=
2583 _am_result=none
2584 # First try GNU make style include.
2585 echo "include confinc" > confmf
2586 # We grep out `Entering directory' and `Leaving directory'
2587 # messages which can occur if `w' ends up in MAKEFLAGS.
2588 # In particular we don't look at `^make:' because GNU make might
2589 # be invoked under some other name (usually "gmake"), in which
2590 # case it prints its new name instead of `make'.
2591 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2592 am__include=include
2593 am__quote=
2594 _am_result=GNU
2596 # Now try BSD make style include.
2597 if test "$am__include" = "#"; then
2598 echo '.include "confinc"' > confmf
2599 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2600 am__include=.include
2601 am__quote="\""
2602 _am_result=BSD
2607 echo "$as_me:$LINENO: result: $_am_result" >&5
2608 echo "${ECHO_T}$_am_result" >&6
2609 rm -f confinc confmf
2611 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2612 if test "${enable_dependency_tracking+set}" = set; then
2613 enableval="$enable_dependency_tracking"
2616 if test "x$enable_dependency_tracking" != xno; then
2617 am_depcomp="$ac_aux_dir/depcomp"
2618 AMDEPBACKSLASH='\'
2622 if test "x$enable_dependency_tracking" != xno; then
2623 AMDEP_TRUE=
2624 AMDEP_FALSE='#'
2625 else
2626 AMDEP_TRUE='#'
2627 AMDEP_FALSE=
2633 depcc="$CXX" am_compiler_list=
2635 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2636 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2637 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2641 # We make a subdir and do the tests there. Otherwise we can end up
2642 # making bogus files that we don't know about and never remove. For
2643 # instance it was reported that on HP-UX the gcc test will end up
2644 # making a dummy file named `D' -- because `-MD' means `put the output
2645 # in D'.
2646 mkdir conftest.dir
2647 # Copy depcomp to subdir because otherwise we won't find it if we're
2648 # using a relative directory.
2649 cp "$am_depcomp" conftest.dir
2650 cd conftest.dir
2651 # We will build objects and dependencies in a subdirectory because
2652 # it helps to detect inapplicable dependency modes. For instance
2653 # both Tru64's cc and ICC support -MD to output dependencies as a
2654 # side effect of compilation, but ICC will put the dependencies in
2655 # the current directory while Tru64 will put them in the object
2656 # directory.
2657 mkdir sub
2659 am_cv_CXX_dependencies_compiler_type=none
2660 if test "$am_compiler_list" = ""; then
2661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2663 for depmode in $am_compiler_list; do
2664 # Setup a source with many dependencies, because some compilers
2665 # like to wrap large dependency lists on column 80 (with \), and
2666 # we should not choose a depcomp mode which is confused by this.
2668 # We need to recreate these files for each test, as the compiler may
2669 # overwrite some of them when testing with obscure command lines.
2670 # This happens at least with the AIX C compiler.
2671 : > sub/conftest.c
2672 for i in 1 2 3 4 5 6; do
2673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2675 # Solaris 8's {/usr,}/bin/sh.
2676 touch sub/conftst$i.h
2677 done
2678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2680 case $depmode in
2681 nosideeffect)
2682 # after this tag, mechanisms are not by side-effect, so they'll
2683 # only be used when explicitly requested
2684 if test "x$enable_dependency_tracking" = xyes; then
2685 continue
2686 else
2687 break
2690 none) break ;;
2691 esac
2692 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2693 # mode. It turns out that the SunPro C++ compiler does not properly
2694 # handle `-M -o', and we need to detect this.
2695 if depmode=$depmode \
2696 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2697 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2698 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2699 >/dev/null 2>conftest.err &&
2700 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2701 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2702 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2703 # icc doesn't choke on unknown options, it will just issue warnings
2704 # or remarks (even with -Werror). So we grep stderr for any message
2705 # that says an option was ignored or not supported.
2706 # When given -MP, icc 7.0 and 7.1 complain thusly:
2707 # icc: Command line warning: ignoring option '-M'; no argument required
2708 # The diagnosis changed in icc 8.0:
2709 # icc: Command line remark: option '-MP' not supported
2710 if (grep 'ignoring option' conftest.err ||
2711 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2712 am_cv_CXX_dependencies_compiler_type=$depmode
2713 break
2716 done
2718 cd ..
2719 rm -rf conftest.dir
2720 else
2721 am_cv_CXX_dependencies_compiler_type=none
2725 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2726 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2727 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2732 test "x$enable_dependency_tracking" != xno \
2733 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2734 am__fastdepCXX_TRUE=
2735 am__fastdepCXX_FALSE='#'
2736 else
2737 am__fastdepCXX_TRUE='#'
2738 am__fastdepCXX_FALSE=
2742 ac_ext=cc
2743 ac_cpp='$CXXCPP $CPPFLAGS'
2744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2747 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2748 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2749 if test -z "$CXXCPP"; then
2750 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 # Double quotes because CXXCPP needs to be expanded
2754 for CXXCPP in "$CXX -E" "/lib/cpp"
2756 ac_preproc_ok=false
2757 for ac_cxx_preproc_warn_flag in '' yes
2759 # Use a header file that comes with gcc, so configuring glibc
2760 # with a fresh cross-compiler works.
2761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2762 # <limits.h> exists even on freestanding compilers.
2763 # On the NeXT, cc -E runs the code through the compiler's parser,
2764 # not just through cpp. "Syntax error" is here to catch this case.
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #ifdef __STDC__
2772 # include <limits.h>
2773 #else
2774 # include <assert.h>
2775 #endif
2776 Syntax error
2777 _ACEOF
2778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } >/dev/null; then
2786 if test -s conftest.err; then
2787 ac_cpp_err=$ac_cxx_preproc_warn_flag
2788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2789 else
2790 ac_cpp_err=
2792 else
2793 ac_cpp_err=yes
2795 if test -z "$ac_cpp_err"; then
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 # Broken: fails on valid input.
2802 continue
2804 rm -f conftest.err conftest.$ac_ext
2806 # OK, works on sane cases. Now check whether non-existent headers
2807 # can be detected and how.
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814 #include <ac_nonexistent.h>
2815 _ACEOF
2816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } >/dev/null; then
2824 if test -s conftest.err; then
2825 ac_cpp_err=$ac_cxx_preproc_warn_flag
2826 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2827 else
2828 ac_cpp_err=
2830 else
2831 ac_cpp_err=yes
2833 if test -z "$ac_cpp_err"; then
2834 # Broken: success on invalid input.
2835 continue
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 # Passes both tests.
2841 ac_preproc_ok=:
2842 break
2844 rm -f conftest.err conftest.$ac_ext
2846 done
2847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2848 rm -f conftest.err conftest.$ac_ext
2849 if $ac_preproc_ok; then
2850 break
2853 done
2854 ac_cv_prog_CXXCPP=$CXXCPP
2857 CXXCPP=$ac_cv_prog_CXXCPP
2858 else
2859 ac_cv_prog_CXXCPP=$CXXCPP
2861 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2862 echo "${ECHO_T}$CXXCPP" >&6
2863 ac_preproc_ok=false
2864 for ac_cxx_preproc_warn_flag in '' yes
2866 # Use a header file that comes with gcc, so configuring glibc
2867 # with a fresh cross-compiler works.
2868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869 # <limits.h> exists even on freestanding compilers.
2870 # On the NeXT, cc -E runs the code through the compiler's parser,
2871 # not just through cpp. "Syntax error" is here to catch this case.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #ifdef __STDC__
2879 # include <limits.h>
2880 #else
2881 # include <assert.h>
2882 #endif
2883 Syntax error
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_cxx_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2896 else
2897 ac_cpp_err=
2899 else
2900 ac_cpp_err=yes
2902 if test -z "$ac_cpp_err"; then
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 # Broken: fails on valid input.
2909 continue
2911 rm -f conftest.err conftest.$ac_ext
2913 # OK, works on sane cases. Now check whether non-existent headers
2914 # can be detected and how.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #include <ac_nonexistent.h>
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_cxx_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2934 else
2935 ac_cpp_err=
2937 else
2938 ac_cpp_err=yes
2940 if test -z "$ac_cpp_err"; then
2941 # Broken: success on invalid input.
2942 continue
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 # Passes both tests.
2948 ac_preproc_ok=:
2949 break
2951 rm -f conftest.err conftest.$ac_ext
2953 done
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2958 else
2959 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 ac_ext=c
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
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 echo "$as_me:$LINENO: result: $CC" >&5
3007 echo "${ECHO_T}$CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3014 if test -z "$ac_cv_prog_CC"; then
3015 ac_ct_CC=$CC
3016 # Extract the first word of "gcc", so it can be a program name with args.
3017 set dummy gcc; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$ac_ct_CC"; then
3024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_CC="gcc"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043 if test -n "$ac_ct_CC"; then
3044 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3045 echo "${ECHO_T}$ac_ct_CC" >&6
3046 else
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3051 CC=$ac_ct_CC
3052 else
3053 CC="$ac_cv_prog_CC"
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}cc; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_CC+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_CC="${ac_tool_prefix}cc"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 echo "$as_me:$LINENO: result: $CC" >&5
3087 echo "${ECHO_T}$CC" >&6
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3094 if test -z "$ac_cv_prog_CC"; then
3095 ac_ct_CC=$CC
3096 # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_ac_ct_CC="cc"
3114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3125 echo "${ECHO_T}$ac_ct_CC" >&6
3126 else
3127 echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3131 CC=$ac_ct_CC
3132 else
3133 CC="$ac_cv_prog_CC"
3137 if test -z "$CC"; then
3138 # Extract the first word of "cc", so it can be a program name with args.
3139 set dummy cc; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 ac_prog_rejected=no
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3157 ac_prog_rejected=yes
3158 continue
3160 ac_cv_prog_CC="cc"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3164 done
3165 done
3167 if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy $ac_cv_prog_CC
3170 shift
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3175 shift
3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 echo "$as_me:$LINENO: result: $CC" >&5
3184 echo "${ECHO_T}$CC" >&6
3185 else
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 for ac_prog in cl
3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 echo "$as_me:$LINENO: result: $CC" >&5
3224 echo "${ECHO_T}$CC" >&6
3225 else
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3230 test -n "$CC" && break
3231 done
3233 if test -z "$CC"; then
3234 ac_ct_CC=$CC
3235 for ac_prog in cl
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_ac_ct_CC="$ac_prog"
3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3266 echo "${ECHO_T}$ac_ct_CC" >&6
3267 else
3268 echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3272 test -n "$ac_ct_CC" && break
3273 done
3275 CC=$ac_ct_CC
3281 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: no acceptable C compiler found in \$PATH
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3287 # Provide some information about the compiler.
3288 echo "$as_me:$LINENO:" \
3289 "checking for C compiler version" >&5
3290 ac_compiler=`set X $ac_compile; echo $2`
3291 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3292 (eval $ac_compiler --version </dev/null >&5) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3297 (eval $ac_compiler -v </dev/null >&5) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }
3301 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3302 (eval $ac_compiler -V </dev/null >&5) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }
3307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3320 main ()
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3327 return 0;
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag"
3340 || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_compiler_gnu=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_compiler_gnu=no
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3365 GCC=`test $ac_compiler_gnu = yes && echo yes`
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 CFLAGS="-g"
3369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3371 if test "${ac_cv_prog_cc_g+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3382 main ()
3386 return 0;
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -z "$ac_c_werror_flag"
3399 || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 ac_cv_prog_cc_g=yes
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 ac_cv_prog_cc_g=no
3418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 ac_cv_prog_cc_stdc=no
3443 ac_save_CC=$CC
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <stdarg.h>
3451 #include <stdio.h>
3452 #include <sys/types.h>
3453 #include <sys/stat.h>
3454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3455 struct buf { int x; };
3456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457 static char *e (p, i)
3458 char **p;
3459 int i;
3461 return p[i];
3463 static char *f (char * (*g) (char **, int), char **p, ...)
3465 char *s;
3466 va_list v;
3467 va_start (v,p);
3468 s = g (p, va_arg (v,int));
3469 va_end (v);
3470 return s;
3473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3474 function prototypes and stuff, but not '\xHH' hex character constants.
3475 These don't provoke an error unfortunately, instead are silently treated
3476 as 'x'. The following induces an error, until -std1 is added to get
3477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3478 array size at least. It's necessary to write '\x00'==0 to get something
3479 that's true only with -std1. */
3480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486 int argc;
3487 char **argv;
3489 main ()
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 return 0;
3495 _ACEOF
3496 # Don't try gcc -ansi; that turns off useful extensions and
3497 # breaks some systems' header files.
3498 # AIX -qlanglvl=ansi
3499 # Ultrix and OSF/1 -std1
3500 # HP-UX 10.20 and later -Ae
3501 # HP-UX older versions -Aa -D_HPUX_SOURCE
3502 # SVR4 -Xc -D__EXTENSIONS__
3503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3505 CC="$ac_save_CC $ac_arg"
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_prog_cc_stdc=$ac_arg
3529 break
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3535 rm -f conftest.err conftest.$ac_objext
3536 done
3537 rm -f conftest.$ac_ext conftest.$ac_objext
3538 CC=$ac_save_CC
3542 case "x$ac_cv_prog_cc_stdc" in
3543 x|xno)
3544 echo "$as_me:$LINENO: result: none needed" >&5
3545 echo "${ECHO_T}none needed" >&6 ;;
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3549 CC="$CC $ac_cv_prog_cc_stdc" ;;
3550 esac
3552 # Some people use a C++ compiler to compile C. Since we use `exit',
3553 # in C++ we need to declare it. In case someone uses the same compiler
3554 # for both compiling C and C++ we need to have the C++ compiler decide
3555 # the declaration of exit, since it's the most demanding environment.
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #ifndef __cplusplus
3558 choke me
3559 #endif
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 for ac_declaration in \
3584 '' \
3585 'extern "C" void std::exit (int) throw (); using std::exit;' \
3586 'extern "C" void std::exit (int); using std::exit;' \
3587 'extern "C" void exit (int) throw ();' \
3588 'extern "C" void exit (int);' \
3589 'void exit (int);'
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 $ac_declaration
3598 #include <stdlib.h>
3600 main ()
3602 exit (42);
3604 return 0;
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 continue
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 $ac_declaration
3645 main ()
3647 exit (42);
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 break
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681 done
3682 rm -f conftest*
3683 if test -n "$ac_declaration"; then
3684 echo '#ifdef __cplusplus' >>confdefs.h
3685 echo $ac_declaration >>confdefs.h
3686 echo '#endif' >>confdefs.h
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 depcc="$CC" am_compiler_list=
3703 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3704 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3705 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709 # We make a subdir and do the tests there. Otherwise we can end up
3710 # making bogus files that we don't know about and never remove. For
3711 # instance it was reported that on HP-UX the gcc test will end up
3712 # making a dummy file named `D' -- because `-MD' means `put the output
3713 # in D'.
3714 mkdir conftest.dir
3715 # Copy depcomp to subdir because otherwise we won't find it if we're
3716 # using a relative directory.
3717 cp "$am_depcomp" conftest.dir
3718 cd conftest.dir
3719 # We will build objects and dependencies in a subdirectory because
3720 # it helps to detect inapplicable dependency modes. For instance
3721 # both Tru64's cc and ICC support -MD to output dependencies as a
3722 # side effect of compilation, but ICC will put the dependencies in
3723 # the current directory while Tru64 will put them in the object
3724 # directory.
3725 mkdir sub
3727 am_cv_CC_dependencies_compiler_type=none
3728 if test "$am_compiler_list" = ""; then
3729 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731 for depmode in $am_compiler_list; do
3732 # Setup a source with many dependencies, because some compilers
3733 # like to wrap large dependency lists on column 80 (with \), and
3734 # we should not choose a depcomp mode which is confused by this.
3736 # We need to recreate these files for each test, as the compiler may
3737 # overwrite some of them when testing with obscure command lines.
3738 # This happens at least with the AIX C compiler.
3739 : > sub/conftest.c
3740 for i in 1 2 3 4 5 6; do
3741 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3742 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3743 # Solaris 8's {/usr,}/bin/sh.
3744 touch sub/conftst$i.h
3745 done
3746 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3748 case $depmode in
3749 nosideeffect)
3750 # after this tag, mechanisms are not by side-effect, so they'll
3751 # only be used when explicitly requested
3752 if test "x$enable_dependency_tracking" = xyes; then
3753 continue
3754 else
3755 break
3758 none) break ;;
3759 esac
3760 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3761 # mode. It turns out that the SunPro C++ compiler does not properly
3762 # handle `-M -o', and we need to detect this.
3763 if depmode=$depmode \
3764 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3765 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3766 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3767 >/dev/null 2>conftest.err &&
3768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3769 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3771 # icc doesn't choke on unknown options, it will just issue warnings
3772 # or remarks (even with -Werror). So we grep stderr for any message
3773 # that says an option was ignored or not supported.
3774 # When given -MP, icc 7.0 and 7.1 complain thusly:
3775 # icc: Command line warning: ignoring option '-M'; no argument required
3776 # The diagnosis changed in icc 8.0:
3777 # icc: Command line remark: option '-MP' not supported
3778 if (grep 'ignoring option' conftest.err ||
3779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3780 am_cv_CC_dependencies_compiler_type=$depmode
3781 break
3784 done
3786 cd ..
3787 rm -rf conftest.dir
3788 else
3789 am_cv_CC_dependencies_compiler_type=none
3793 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3794 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3800 test "x$enable_dependency_tracking" != xno \
3801 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3802 am__fastdepCC_TRUE=
3803 am__fastdepCC_FALSE='#'
3804 else
3805 am__fastdepCC_TRUE='#'
3806 am__fastdepCC_FALSE=
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3817 # On Suns, sometimes $CPP names a directory.
3818 if test -n "$CPP" && test -d "$CPP"; then
3819 CPP=
3821 if test -z "$CPP"; then
3822 if test "${ac_cv_prog_CPP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 # Double quotes because CPP needs to be expanded
3826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3828 ac_preproc_ok=false
3829 for ac_c_preproc_warn_flag in '' yes
3831 # Use a header file that comes with gcc, so configuring glibc
3832 # with a fresh cross-compiler works.
3833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834 # <limits.h> exists even on freestanding compilers.
3835 # On the NeXT, cc -E runs the code through the compiler's parser,
3836 # not just through cpp. "Syntax error" is here to catch this case.
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #ifdef __STDC__
3844 # include <limits.h>
3845 #else
3846 # include <assert.h>
3847 #endif
3848 Syntax error
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3864 else
3865 ac_cpp_err=yes
3867 if test -z "$ac_cpp_err"; then
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 # Broken: fails on valid input.
3874 continue
3876 rm -f conftest.err conftest.$ac_ext
3878 # OK, works on sane cases. Now check whether non-existent headers
3879 # can be detected and how.
3880 cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev/null; then
3896 if test -s conftest.err; then
3897 ac_cpp_err=$ac_c_preproc_warn_flag
3898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3899 else
3900 ac_cpp_err=
3902 else
3903 ac_cpp_err=yes
3905 if test -z "$ac_cpp_err"; then
3906 # Broken: success on invalid input.
3907 continue
3908 else
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 # Passes both tests.
3913 ac_preproc_ok=:
3914 break
3916 rm -f conftest.err conftest.$ac_ext
3918 done
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then
3922 break
3925 done
3926 ac_cv_prog_CPP=$CPP
3929 CPP=$ac_cv_prog_CPP
3930 else
3931 ac_cv_prog_CPP=$CPP
3933 echo "$as_me:$LINENO: result: $CPP" >&5
3934 echo "${ECHO_T}$CPP" >&6
3935 ac_preproc_ok=false
3936 for ac_c_preproc_warn_flag in '' yes
3938 # Use a header file that comes with gcc, so configuring glibc
3939 # with a fresh cross-compiler works.
3940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941 # <limits.h> exists even on freestanding compilers.
3942 # On the NeXT, cc -E runs the code through the compiler's parser,
3943 # not just through cpp. "Syntax error" is here to catch this case.
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 #ifdef __STDC__
3951 # include <limits.h>
3952 #else
3953 # include <assert.h>
3954 #endif
3955 Syntax error
3956 _ACEOF
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null; then
3965 if test -s conftest.err; then
3966 ac_cpp_err=$ac_c_preproc_warn_flag
3967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 else
3969 ac_cpp_err=
3971 else
3972 ac_cpp_err=yes
3974 if test -z "$ac_cpp_err"; then
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 # Broken: fails on valid input.
3981 continue
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether non-existent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3997 ac_status=$?
3998 grep -v '^ *+' conftest.er1 >conftest.err
3999 rm -f conftest.er1
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } >/dev/null; then
4003 if test -s conftest.err; then
4004 ac_cpp_err=$ac_c_preproc_warn_flag
4005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006 else
4007 ac_cpp_err=
4009 else
4010 ac_cpp_err=yes
4012 if test -z "$ac_cpp_err"; then
4013 # Broken: success on invalid input.
4014 continue
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4023 rm -f conftest.err conftest.$ac_ext
4025 done
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.$ac_ext
4028 if $ac_preproc_ok; then
4030 else
4031 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4032 See \`config.log' for more details." >&5
4033 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4034 See \`config.log' for more details." >&2;}
4035 { (exit 1); exit 1; }; }
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 if test "$cross_compiling" = yes; then
4045 ac_build_prefix=
4046 test -n "$build_alias" && ac_build_prefix=$build_alias-
4049 # Even if we're cross-compiling, we want a compiler here
4050 # that is not a cross-compiler.
4051 saved_cross=$cross_compiling
4052 cross_compiling=no
4054 ac_ext=c
4055 ac_cpp='$CPP $BUILD_CPPFLAGS'
4056 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059 if test -n "$ac_build_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4061 set dummy ${ac_build_prefix}gcc; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 if test -n "$BUILD_CC"; then
4068 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4081 done
4082 done
4086 BUILD_CC=$ac_cv_prog_BUILD_CC
4087 if test -n "$BUILD_CC"; then
4088 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4089 echo "${ECHO_T}$BUILD_CC" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4096 if test -z "$ac_cv_prog_BUILD_CC"; then
4097 ac_ct_BUILD_CC=$BUILD_CC
4098 # Extract the first word of "gcc", so it can be a program name with args.
4099 set dummy gcc; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 if test -n "$ac_ct_BUILD_CC"; then
4106 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4124 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4125 if test -n "$ac_ct_BUILD_CC"; then
4126 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4127 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4133 BUILD_CC=$ac_ct_BUILD_CC
4134 else
4135 BUILD_CC="$ac_cv_prog_BUILD_CC"
4138 if test -z "$BUILD_CC"; then
4139 if test -n "$ac_build_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4141 set dummy ${ac_build_prefix}cc; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 if test -n "$BUILD_CC"; then
4148 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4166 BUILD_CC=$ac_cv_prog_BUILD_CC
4167 if test -n "$BUILD_CC"; then
4168 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4169 echo "${ECHO_T}$BUILD_CC" >&6
4170 else
4171 echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4176 if test -z "$ac_cv_prog_BUILD_CC"; then
4177 ac_ct_BUILD_CC=$BUILD_CC
4178 # Extract the first word of "cc", so it can be a program name with args.
4179 set dummy cc; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 if test -n "$ac_ct_BUILD_CC"; then
4186 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_BUILD_CC="cc"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4204 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4205 if test -n "$ac_ct_BUILD_CC"; then
4206 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4207 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4208 else
4209 echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4213 BUILD_CC=$ac_ct_BUILD_CC
4214 else
4215 BUILD_CC="$ac_cv_prog_BUILD_CC"
4219 if test -z "$BUILD_CC"; then
4220 # Extract the first word of "cc", so it can be a program name with args.
4221 set dummy cc; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 if test -n "$BUILD_CC"; then
4228 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4229 else
4230 ac_prog_rejected=no
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4239 ac_prog_rejected=yes
4240 continue
4242 ac_cv_prog_BUILD_CC="cc"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4249 if test $ac_prog_rejected = yes; then
4250 # We found a bogon in the path, so make sure we never use it.
4251 set dummy $ac_cv_prog_BUILD_CC
4252 shift
4253 if test $# != 0; then
4254 # We chose a different compiler from the bogus one.
4255 # However, it has the same basename, so the bogon will be chosen
4256 # first if we set BUILD_CC to just the basename; use the full file name.
4257 shift
4258 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4263 BUILD_CC=$ac_cv_prog_BUILD_CC
4264 if test -n "$BUILD_CC"; then
4265 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4266 echo "${ECHO_T}$BUILD_CC" >&6
4267 else
4268 echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4273 if test -z "$BUILD_CC"; then
4274 if test -n "$ac_build_prefix"; then
4275 for ac_prog in cl
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 if test -n "$BUILD_CC"; then
4285 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4298 done
4299 done
4303 BUILD_CC=$ac_cv_prog_BUILD_CC
4304 if test -n "$BUILD_CC"; then
4305 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4306 echo "${ECHO_T}$BUILD_CC" >&6
4307 else
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4312 test -n "$BUILD_CC" && break
4313 done
4315 if test -z "$BUILD_CC"; then
4316 ac_ct_BUILD_CC=$BUILD_CC
4317 for ac_prog in cl
4319 # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 if test -n "$ac_ct_BUILD_CC"; then
4327 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4345 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4346 if test -n "$ac_ct_BUILD_CC"; then
4347 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4348 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4349 else
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4354 test -n "$ac_ct_BUILD_CC" && break
4355 done
4357 BUILD_CC=$ac_ct_BUILD_CC
4363 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4364 See \`config.log' for more details." >&5
4365 echo "$as_me: error: no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." >&2;}
4367 { (exit 1); exit 1; }; }
4369 # Provide some information about the compiler.
4370 echo "$as_me:$LINENO:" \
4371 "checking for C compiler version" >&5
4372 ac_compiler=`set X $ac_compile; echo $2`
4373 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4374 (eval $ac_compiler --version </dev/null >&5) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }
4378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4379 (eval $ac_compiler -v </dev/null >&5) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }
4383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4384 (eval $ac_compiler -V </dev/null >&5) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4397 main ()
4401 return 0;
4403 _ACEOF
4404 ac_clean_files_save=$ac_clean_files
4405 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4406 # Try to create an executable without -o first, disregard a.out.
4407 # It will help us diagnose broken compilers, and finding out an intuition
4408 # of exeext.
4409 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4410 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4411 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4413 (eval $ac_link_default) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; then
4417 # Find the output, starting from the most likely. This scheme is
4418 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4419 # resort.
4421 # Be careful to initialize this variable, since it used to be cached.
4422 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4423 ac_cv_build_exeext=
4424 # b.out is created by i960 compilers.
4425 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4427 test -f "$ac_file" || continue
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4431 conftest.$ac_ext )
4432 # This is the source file.
4434 [ab].out )
4435 # We found the default executable, but exeext='' is most
4436 # certainly right.
4437 break;;
4438 *.* )
4439 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4440 # FIXME: I believe we export ac_cv_exeext for Libtool,
4441 # but it would be cool to find out if it's true. Does anybody
4442 # maintain Libtool? --akim.
4443 export ac_cv_build_exeext
4444 break;;
4446 break;;
4447 esac
4448 done
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4454 See \`config.log' for more details." >&5
4455 echo "$as_me: error: C compiler cannot create executables
4456 See \`config.log' for more details." >&2;}
4457 { (exit 77); exit 77; }; }
4460 ac_build_exeext=$ac_cv_build_exeext
4461 echo "$as_me:$LINENO: result: $ac_file" >&5
4462 echo "${ECHO_T}$ac_file" >&6
4464 # Check the compiler produces executables we can run. If not, either
4465 # the compiler is broken, or we cross compile.
4466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4469 # If not cross compiling, check that we can run a simple program.
4470 if test "$cross_compiling" != yes; then
4471 if { ac_try='./$ac_file'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 cross_compiling=no
4478 else
4479 if test "$cross_compiling" = maybe; then
4480 cross_compiling=yes
4481 else
4482 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4483 If you meant to cross compile, use \`--host'.
4484 See \`config.log' for more details." >&5
4485 echo "$as_me: error: cannot run C compiled programs.
4486 If you meant to cross compile, use \`--host'.
4487 See \`config.log' for more details." >&2;}
4488 { (exit 1); exit 1; }; }
4492 echo "$as_me:$LINENO: result: yes" >&5
4493 echo "${ECHO_T}yes" >&6
4495 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4496 ac_clean_files=$ac_clean_files_save
4497 # Check the compiler produces executables we can run. If not, either
4498 # the compiler is broken, or we cross compile.
4499 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4500 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4501 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4502 echo "${ECHO_T}$cross_compiling" >&6
4504 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4505 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; then
4511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4513 # work properly (i.e., refer to `conftest.exe'), while it won't with
4514 # `rm'.
4515 for ac_file in conftest.exe conftest conftest.*; do
4516 test -f "$ac_file" || continue
4517 case $ac_file in
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4519 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 export ac_cv_build_exeext
4521 break;;
4522 * ) break;;
4523 esac
4524 done
4525 else
4526 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4527 See \`config.log' for more details." >&5
4528 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4529 See \`config.log' for more details." >&2;}
4530 { (exit 1); exit 1; }; }
4533 rm -f conftest$ac_cv_build_exeext
4534 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4535 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4537 rm -f conftest.$ac_ext
4538 BUILD_EXEEXT=$ac_cv_build_exeext
4539 ac_build_exeext=$BUILD_EXEEXT
4542 # Restore configuration environment
4543 cross_compiling=$saved_cross
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 else
4552 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4555 CFLAGS="$mule_backup_CFLAGS"
4556 CXXFLAGS="$mule_backup_CXXFLAGS"
4557 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4558 for ac_prog in gawk mawk nawk awk
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_AWK+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 if test -n "$AWK"; then
4568 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_AWK="$ac_prog"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4586 AWK=$ac_cv_prog_AWK
4587 if test -n "$AWK"; then
4588 echo "$as_me:$LINENO: result: $AWK" >&5
4589 echo "${ECHO_T}$AWK" >&6
4590 else
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4595 test -n "$AWK" && break
4596 done
4598 echo "$as_me:$LINENO: checking for egrep" >&5
4599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4600 if test "${ac_cv_prog_egrep+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4604 then ac_cv_prog_egrep='grep -E'
4605 else ac_cv_prog_egrep='egrep'
4608 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4609 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4610 EGREP=$ac_cv_prog_egrep
4613 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4614 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4615 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4616 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 cat >conftest.make <<\_ACEOF
4620 all:
4621 @echo 'ac_maketemp="$(MAKE)"'
4622 _ACEOF
4623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4624 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4625 if test -n "$ac_maketemp"; then
4626 eval ac_cv_prog_make_${ac_make}_set=yes
4627 else
4628 eval ac_cv_prog_make_${ac_make}_set=no
4630 rm -f conftest.make
4632 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4633 echo "$as_me:$LINENO: result: yes" >&5
4634 echo "${ECHO_T}yes" >&6
4635 SET_MAKE=
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 SET_MAKE="MAKE=${MAKE-make}"
4643 for ac_prog in flex lex
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_prog_LEX+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 if test -n "$LEX"; then
4653 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_LEX="$ac_prog"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4671 LEX=$ac_cv_prog_LEX
4672 if test -n "$LEX"; then
4673 echo "$as_me:$LINENO: result: $LEX" >&5
4674 echo "${ECHO_T}$LEX" >&6
4675 else
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4680 test -n "$LEX" && break
4681 done
4682 test -n "$LEX" || LEX=":"
4684 if test -z "$LEXLIB"
4685 then
4686 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4687 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4688 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 ac_check_lib_save_LIBS=$LIBS
4692 LIBS="-lfl $LIBS"
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4700 /* Override any gcc2 internal prototype to avoid an error. */
4701 #ifdef __cplusplus
4702 extern "C"
4703 #endif
4704 /* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4706 char yywrap ();
4708 main ()
4710 yywrap ();
4712 return 0;
4714 _ACEOF
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_c_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest$ac_exeext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_lib_fl_yywrap=yes
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_cv_lib_fl_yywrap=no
4744 rm -f conftest.err conftest.$ac_objext \
4745 conftest$ac_exeext conftest.$ac_ext
4746 LIBS=$ac_check_lib_save_LIBS
4748 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4749 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4750 if test $ac_cv_lib_fl_yywrap = yes; then
4751 LEXLIB="-lfl"
4752 else
4753 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4754 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4755 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758 ac_check_lib_save_LIBS=$LIBS
4759 LIBS="-ll $LIBS"
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 #ifdef __cplusplus
4769 extern "C"
4770 #endif
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4773 char yywrap ();
4775 main ()
4777 yywrap ();
4779 return 0;
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_cv_lib_l_yywrap=yes
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_cv_lib_l_yywrap=no
4811 rm -f conftest.err conftest.$ac_objext \
4812 conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4815 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4816 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4817 if test $ac_cv_lib_l_yywrap = yes; then
4818 LEXLIB="-ll"
4825 if test "x$LEX" != "x:"; then
4826 echo "$as_me:$LINENO: checking lex output file root" >&5
4827 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4828 if test "${ac_cv_prog_lex_root+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 # The minimal lex program is just a single line: %%. But some broken lexes
4832 # (Solaris, I think it was) want two %% lines, so accommodate them.
4833 cat >conftest.l <<_ACEOF
4836 _ACEOF
4837 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4838 (eval $LEX conftest.l) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }
4842 if test -f lex.yy.c; then
4843 ac_cv_prog_lex_root=lex.yy
4844 elif test -f lexyy.c; then
4845 ac_cv_prog_lex_root=lexyy
4846 else
4847 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4848 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4849 { (exit 1); exit 1; }; }
4852 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4853 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4854 rm -f conftest.l
4855 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4857 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4858 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4859 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 # POSIX says lex can declare yytext either as a pointer or an array; the
4863 # default is implementation-dependent. Figure out which it is, since
4864 # not all implementations provide the %pointer and %array declarations.
4865 ac_cv_prog_lex_yytext_pointer=no
4866 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4867 ac_save_LIBS=$LIBS
4868 LIBS="$LIBS $LEXLIB"
4869 cat >conftest.$ac_ext <<_ACEOF
4870 `cat $LEX_OUTPUT_ROOT.c`
4871 _ACEOF
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest$ac_exeext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 ac_cv_prog_lex_yytext_pointer=yes
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4900 rm -f conftest.err conftest.$ac_objext \
4901 conftest$ac_exeext conftest.$ac_ext
4902 LIBS=$ac_save_LIBS
4903 rm -f "${LEX_OUTPUT_ROOT}.c"
4906 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4907 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4908 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4910 cat >>confdefs.h <<\_ACEOF
4911 #define YYTEXT_POINTER 1
4912 _ACEOF
4917 # Find a good install program. We prefer a C program (faster),
4918 # so one script is as good as another. But avoid the broken or
4919 # incompatible versions:
4920 # SysV /etc/install, /usr/sbin/install
4921 # SunOS /usr/etc/install
4922 # IRIX /sbin/install
4923 # AIX /bin/install
4924 # AmigaOS /C/install, which installs bootblocks on floppy discs
4925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4928 # OS/2's system install, which has a completely different semantic
4929 # ./install, which can be erroneously created by make from ./install.sh.
4930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4932 if test -z "$INSTALL"; then
4933 if test "${ac_cv_path_install+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 # Account for people who put trailing slashes in PATH elements.
4942 case $as_dir/ in
4943 ./ | .// | /cC/* | \
4944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4946 /usr/ucb/* ) ;;
4948 # OSF1 and SCO ODT 3.0 have their own names for install.
4949 # Don't use installbsd from OSF since it installs stuff as root
4950 # by default.
4951 for ac_prog in ginstall scoinst install; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4954 if test $ac_prog = install &&
4955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4956 # AIX install. It has an incompatible calling convention.
4958 elif test $ac_prog = install &&
4959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4960 # program-specific install script used by HP pwplus--don't use.
4962 else
4963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4964 break 3
4967 done
4968 done
4970 esac
4971 done
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL=$ac_cv_path_install
4977 else
4978 # As a last resort, use the slow shell script. We don't cache a
4979 # path for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the path is relative.
4982 INSTALL=$ac_install_sh
4985 echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_RANLIB+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test -n "$RANLIB"; then
5005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5023 RANLIB=$ac_cv_prog_RANLIB
5024 if test -n "$RANLIB"; then
5025 echo "$as_me:$LINENO: result: $RANLIB" >&5
5026 echo "${ECHO_T}$RANLIB" >&6
5027 else
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5033 if test -z "$ac_cv_prog_RANLIB"; then
5034 ac_ct_RANLIB=$RANLIB
5035 # Extract the first word of "ranlib", so it can be a program name with args.
5036 set dummy ranlib; ac_word=$2
5037 echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5039 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 if test -n "$ac_ct_RANLIB"; then
5043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_ac_ct_RANLIB="ranlib"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5056 done
5057 done
5059 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5062 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5063 if test -n "$ac_ct_RANLIB"; then
5064 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5065 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5066 else
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5071 RANLIB=$ac_ct_RANLIB
5072 else
5073 RANLIB="$ac_cv_prog_RANLIB"
5076 for ac_prog in 'bison -y' byacc
5078 # Extract the first word of "$ac_prog", so it can be a program name with args.
5079 set dummy $ac_prog; ac_word=$2
5080 echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082 if test "${ac_cv_prog_YACC+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 if test -n "$YACC"; then
5086 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_YACC="$ac_prog"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5104 YACC=$ac_cv_prog_YACC
5105 if test -n "$YACC"; then
5106 echo "$as_me:$LINENO: result: $YACC" >&5
5107 echo "${ECHO_T}$YACC" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5113 test -n "$YACC" && break
5114 done
5115 test -n "$YACC" || YACC="yacc"
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_RANLIB+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 if test -n "$RANLIB"; then
5127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5145 RANLIB=$ac_cv_prog_RANLIB
5146 if test -n "$RANLIB"; then
5147 echo "$as_me:$LINENO: result: $RANLIB" >&5
5148 echo "${ECHO_T}$RANLIB" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5155 if test -z "$ac_cv_prog_RANLIB"; then
5156 ac_ct_RANLIB=$RANLIB
5157 # Extract the first word of "ranlib", so it can be a program name with args.
5158 set dummy ranlib; ac_word=$2
5159 echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$ac_ct_RANLIB"; then
5165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_RANLIB="ranlib"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5184 if test -n "$ac_ct_RANLIB"; then
5185 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5192 RANLIB=$ac_ct_RANLIB
5193 else
5194 RANLIB="$ac_cv_prog_RANLIB"
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}strip; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_STRIP+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 if test -n "$STRIP"; then
5206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5224 STRIP=$ac_cv_prog_STRIP
5225 if test -n "$STRIP"; then
5226 echo "$as_me:$LINENO: result: $STRIP" >&5
5227 echo "${ECHO_T}$STRIP" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5234 if test -z "$ac_cv_prog_STRIP"; then
5235 ac_ct_STRIP=$STRIP
5236 # Extract the first word of "strip", so it can be a program name with args.
5237 set dummy strip; ac_word=$2
5238 echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 if test -n "$ac_ct_STRIP"; then
5244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_ac_ct_STRIP="strip"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5263 if test -n "$ac_ct_STRIP"; then
5264 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5265 echo "${ECHO_T}$ac_ct_STRIP" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5271 STRIP=$ac_ct_STRIP
5272 else
5273 STRIP="$ac_cv_prog_STRIP"
5276 if test -n "$ac_tool_prefix"; then
5277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5278 set dummy ${ac_tool_prefix}ar; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_AR+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test -n "$AR"; then
5285 ac_cv_prog_AR="$AR" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_AR="${ac_tool_prefix}ar"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5303 AR=$ac_cv_prog_AR
5304 if test -n "$AR"; then
5305 echo "$as_me:$LINENO: result: $AR" >&5
5306 echo "${ECHO_T}$AR" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5313 if test -z "$ac_cv_prog_AR"; then
5314 ac_ct_AR=$AR
5315 # Extract the first word of "ar", so it can be a program name with args.
5316 set dummy ar; ac_word=$2
5317 echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 if test -n "$ac_ct_AR"; then
5323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_ac_ct_AR="ar"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5336 done
5337 done
5341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5342 if test -n "$ac_ct_AR"; then
5343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5344 echo "${ECHO_T}$ac_ct_AR" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5350 AR=$ac_ct_AR
5351 else
5352 AR="$ac_cv_prog_AR"
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}ld; ac_word=$2
5358 echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360 if test "${ac_cv_prog_LD+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 if test -n "$LD"; then
5364 ac_cv_prog_LD="$LD" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_LD="${ac_tool_prefix}ld"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5382 LD=$ac_cv_prog_LD
5383 if test -n "$LD"; then
5384 echo "$as_me:$LINENO: result: $LD" >&5
5385 echo "${ECHO_T}$LD" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5392 if test -z "$ac_cv_prog_LD"; then
5393 ac_ct_LD=$LD
5394 # Extract the first word of "ld", so it can be a program name with args.
5395 set dummy ld; ac_word=$2
5396 echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5398 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 if test -n "$ac_ct_LD"; then
5402 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_LD="ld"
5412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5420 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5421 if test -n "$ac_ct_LD"; then
5422 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5423 echo "${ECHO_T}$ac_ct_LD" >&6
5424 else
5425 echo "$as_me:$LINENO: result: no" >&5
5426 echo "${ECHO_T}no" >&6
5429 LD=$ac_ct_LD
5430 else
5431 LD="$ac_cv_prog_LD"
5435 # Check whether --enable-monolithic or --disable-monolithic was given.
5436 if test "${enable_monolithic+set}" = set; then
5437 enableval="$enable_monolithic"
5442 if test ${enable_monolithic:-yes} = yes; then
5443 MONOLITHIC_TRUE=
5444 MONOLITHIC_FALSE='#'
5445 else
5446 MONOLITHIC_TRUE='#'
5447 MONOLITHIC_FALSE=
5451 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5452 if test "${enable_amule_daemon+set}" = set; then
5453 enableval="$enable_amule_daemon"
5458 if test ${enable_amule_daemon:-no} = yes; then
5459 AMULE_DAEMON_TRUE=
5460 AMULE_DAEMON_FALSE='#'
5461 else
5462 AMULE_DAEMON_TRUE='#'
5463 AMULE_DAEMON_FALSE=
5467 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5468 if test "${enable_amulecmd+set}" = set; then
5469 enableval="$enable_amulecmd"
5474 if test ${enable_amulecmd:-no} = yes; then
5475 COMPILE_CMD_TRUE=
5476 COMPILE_CMD_FALSE='#'
5477 else
5478 COMPILE_CMD_TRUE='#'
5479 COMPILE_CMD_FALSE=
5483 # Check whether --enable-webserver or --disable-webserver was given.
5484 if test "${enable_webserver+set}" = set; then
5485 enableval="$enable_webserver"
5490 if test ${enable_webserver:-no} = yes; then
5491 WEB_TRUE=
5492 WEB_FALSE='#'
5493 else
5494 WEB_TRUE='#'
5495 WEB_FALSE=
5499 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5500 if test "${enable_amule_gui+set}" = set; then
5501 enableval="$enable_amule_gui"
5506 if test ${enable_amule_gui:-no} = yes; then
5507 AMULE_GUI_TRUE=
5508 AMULE_GUI_FALSE='#'
5509 else
5510 AMULE_GUI_TRUE='#'
5511 AMULE_GUI_FALSE=
5515 # Check whether --enable-cas or --disable-cas was given.
5516 if test "${enable_cas+set}" = set; then
5517 enableval="$enable_cas"
5522 if test ${enable_cas:-no} = yes; then
5523 CAS_TRUE=
5524 CAS_FALSE='#'
5525 else
5526 CAS_TRUE='#'
5527 CAS_FALSE=
5531 # Check whether --enable-wxcas or --disable-wxcas was given.
5532 if test "${enable_wxcas+set}" = set; then
5533 enableval="$enable_wxcas"
5538 if test ${enable_wxcas:-no} = yes; then
5539 WXCAS_TRUE=
5540 WXCAS_FALSE='#'
5541 else
5542 WXCAS_TRUE='#'
5543 WXCAS_FALSE=
5547 # Check whether --enable-ed2k or --disable-ed2k was given.
5548 if test "${enable_ed2k+set}" = set; then
5549 enableval="$enable_ed2k"
5554 if test ${enable_ed2k:-yes} = yes; then
5555 ED2K_TRUE=
5556 ED2K_FALSE='#'
5557 else
5558 ED2K_TRUE='#'
5559 ED2K_FALSE=
5563 # Check whether --enable-alc or --disable-alc was given.
5564 if test "${enable_alc+set}" = set; then
5565 enableval="$enable_alc"
5570 if test ${enable_alc:-no} = yes; then
5571 ALC_TRUE=
5572 ALC_FALSE='#'
5573 else
5574 ALC_TRUE='#'
5575 ALC_FALSE=
5579 # Check whether --enable-alcc or --disable-alcc was given.
5580 if test "${enable_alcc+set}" = set; then
5581 enableval="$enable_alcc"
5586 if test ${enable_alcc:-no} = yes; then
5587 ALCC_TRUE=
5588 ALCC_FALSE='#'
5589 else
5590 ALCC_TRUE='#'
5591 ALCC_FALSE=
5595 # Check whether --enable-xas or --disable-xas was given.
5596 if test "${enable_xas+set}" = set; then
5597 enableval="$enable_xas"
5602 if test ${enable_xas:-no} = yes; then
5603 XAS_TRUE=
5604 XAS_FALSE='#'
5605 else
5606 XAS_TRUE='#'
5607 XAS_FALSE=
5611 # Check whether --enable-fileview or --disable-fileview was given.
5612 if test "${enable_fileview+set}" = set; then
5613 enableval="$enable_fileview"
5618 if test ${enable_fileview:-no} = yes; then
5619 FILEVIEW_TRUE=
5620 FILEVIEW_FALSE='#'
5621 else
5622 FILEVIEW_TRUE='#'
5623 FILEVIEW_FALSE=
5628 # Run all the tests with static linkage if we want a statically linked binary
5629 # Check whether --enable-static or --disable-static was given.
5630 if test "${enable_static+set}" = set; then
5631 enableval="$enable_static"
5635 if test ${enable_static:-no} = yes; then
5636 LDFLAGS="$LDFLAGS -static"
5640 # Default is yes, because they're most likely compatible.
5641 # However, this is only used when cross-compiling.
5643 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5644 if test "${with_gnu_malloc+set}" = set; then
5645 withval="$with_gnu_malloc"
5646 gnumalloc=$withval
5647 else
5648 gnumalloc=yes
5652 # Checking for libs before all other stuff to break
5653 # configure as soon as possible in case of a missing one
5654 # to avoid losing too much time
5656 # Check for zlib
5657 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
5660 # Check whether --with-zlib or --without-zlib was given.
5661 if test "${with_zlib+set}" = set; then
5662 withval="$with_zlib"
5666 case "${with_zlib:-yes}" in
5668 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5669 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5670 { (exit 1); exit 1; }; }
5672 yes | sys)
5675 zlib_prefix="$with_zlib"
5676 esac
5678 mule_backup_CPPFLAGS="$CPPFLAGS"
5679 mule_backup_LDFLAGS="$LDFLAGS"
5680 mule_backup_LIBS="$LIBS"
5681 if test -n "$zlib_prefix"; then
5683 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5684 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5685 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5686 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5688 else
5690 ZLIB_CPPFLAGS=
5691 ZLIB_LDFLAGS=
5695 ZLIB_LIBS="-lz"
5696 LIBS="$ZLIB_LIBS $LIBS"
5698 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5699 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5700 if test "$cross_compiling" = yes; then
5702 result=no
5703 z_version=
5704 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5712 #include <zlib.h>
5713 #include <stdio.h>
5716 main ()
5719 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5720 zlibVersion();
5723 return 0;
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5750 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5751 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5752 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5753 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5754 if test "$cross_zver_max" -gt "1"; then
5755 result=yes
5756 elif test "$cross_zver_max" -eq "1"; then
5758 if test "$cross_zver_mid" -gt "1"; then
5759 result=yes
5760 elif test "$cross_zver_mid" -eq "1"; then
5761 if test "$cross_zver_min" -ge "4"; then
5762 result=yes
5770 if test ${result:-no} = yes; then
5771 z_version=" (version $ZLIB_VERSION)"
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5780 rm -f conftest.err conftest.$ac_objext \
5781 conftest$ac_exeext conftest.$ac_ext
5782 echo "$as_me:$LINENO: result: $result$z_version" >&5
5783 echo "${ECHO_T}$result$z_version" >&6
5785 else
5786 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5794 #include <zlib.h>
5795 #include <stdio.h>
5798 main ()
5800 char *zver = zlibVersion();
5801 FILE *f=fopen("conftestval", "w");
5802 if (!f) return 1;
5803 fprintf(f, "%s",
5804 zver[0] > '1' ||
5805 (zver[0] == '1' &&
5806 (zver[2] > '1' ||
5807 (zver[2] == '1' &&
5808 zver[4] >= '4'))) ? "yes" : "no");
5809 fclose(f);
5810 f=fopen("conftestver", "w");
5811 if (f) {
5812 fprintf(f, "%s", ZLIB_VERSION);
5813 fclose(f);
5817 return 0;
5820 _ACEOF
5821 rm -f conftest$ac_exeext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5823 (eval $ac_link) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5833 if test -f conftestval; then
5834 result=`cat conftestval`
5835 else
5836 result=no
5839 if test ${result:-no} = yes; then
5841 if test -f conftestver; then
5843 ZLIB_VERSION=`cat conftestver`
5844 z_version=" (version $ZLIB_VERSION)"
5846 else
5847 z_version=
5853 echo "$as_me:$LINENO: result: $result$z_version" >&5
5854 echo "${ECHO_T}$result$z_version" >&6
5856 else
5857 echo "$as_me: program exited with status $ac_status" >&5
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 ( exit $ac_status )
5863 result=no
5864 echo "$as_me:$LINENO: result: $result" >&5
5865 echo "${ECHO_T}$result" >&6
5868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5871 CPPFLAGS="$mule_backup_CPPFLAGS"
5872 LDFLAGS="$mule_backup_LDFLAGS"
5873 LIBS="$mule_backup_LIBS"
5875 if test ${result:-no} = no; then
5877 ZLIB_CPPFLAGS=
5878 ZLIB_LDFLAGS=
5879 ZLIB_LIBS=
5880 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5881 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5882 { (exit 1); exit 1; }; }
5891 if test ${enable_cas:-no} = yes; then
5893 # Check for gd
5895 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5896 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5897 if test "${ac_cv_header_stdc+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <stdlib.h>
5907 #include <stdarg.h>
5908 #include <string.h>
5909 #include <float.h>
5912 main ()
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_header_stdc=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_cv_header_stdc=no
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 if test $ac_cv_header_stdc = yes; then
5951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include <string.h>
5960 _ACEOF
5961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5962 $EGREP "memchr" >/dev/null 2>&1; then
5964 else
5965 ac_cv_header_stdc=no
5967 rm -f conftest*
5971 if test $ac_cv_header_stdc = yes; then
5972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <stdlib.h>
5981 _ACEOF
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983 $EGREP "free" >/dev/null 2>&1; then
5985 else
5986 ac_cv_header_stdc=no
5988 rm -f conftest*
5992 if test $ac_cv_header_stdc = yes; then
5993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5994 if test "$cross_compiling" = yes; then
5996 else
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <ctype.h>
6004 #if ((' ' & 0x0FF) == 0x020)
6005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6007 #else
6008 # define ISLOWER(c) \
6009 (('a' <= (c) && (c) <= 'i') \
6010 || ('j' <= (c) && (c) <= 'r') \
6011 || ('s' <= (c) && (c) <= 'z'))
6012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6013 #endif
6015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6017 main ()
6019 int i;
6020 for (i = 0; i < 256; i++)
6021 if (XOR (islower (i), ISLOWER (i))
6022 || toupper (i) != TOUPPER (i))
6023 exit(2);
6024 exit (0);
6026 _ACEOF
6027 rm -f conftest$ac_exeext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6029 (eval $ac_link) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 (eval $ac_try) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6039 else
6040 echo "$as_me: program exited with status $ac_status" >&5
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 ( exit $ac_status )
6045 ac_cv_header_stdc=no
6047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6051 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6052 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6053 if test $ac_cv_header_stdc = yes; then
6055 cat >>confdefs.h <<\_ACEOF
6056 #define STDC_HEADERS 1
6057 _ACEOF
6061 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6072 inttypes.h stdint.h unistd.h
6074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6075 echo "$as_me:$LINENO: checking for $ac_header" >&5
6076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 $ac_includes_default
6088 #include <$ac_header>
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 eval "$as_ac_Header=yes"
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 eval "$as_ac_Header=no"
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6124 cat >>confdefs.h <<_ACEOF
6125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6126 _ACEOF
6130 done
6135 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6136 if test "${with_gdlib_prefix+set}" = set; then
6137 withval="$with_gdlib_prefix"
6141 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6142 if test "${with_gdlib_config+set}" = set; then
6143 withval="$with_gdlib_config"
6147 GDLIB_VERSION=
6149 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6150 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6151 GDLIB_CONFIG_NAME=gdlib-config
6154 if test -n "$with_gdlib_config"; then
6155 GDLIB_CONFIG_NAME="$with_gdlib_config"
6159 # deal with optional prefix
6160 if test -n "$with_gdlib_prefix"; then
6161 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6165 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6166 if test -x "$GDLIB_CONFIG_NAME"; then
6168 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6169 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6170 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6171 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6172 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6174 else
6175 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6176 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6177 echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6179 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182 case $GDLIB_CONFIG_PATH in
6183 [\\/]* | ?:[\\/]*)
6184 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6189 for as_dir in $as_dummy
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6199 done
6200 done
6202 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6204 esac
6206 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6208 if test -n "$GDLIB_CONFIG_PATH"; then
6209 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6210 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6211 else
6212 echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6
6219 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6221 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6222 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6223 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6225 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6226 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6227 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6228 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6230 gdlib_ver_ok=
6231 if test $gdlib_config_major_version -gt 2; then
6232 gdlib_ver_ok=yes
6233 elif test $gdlib_config_major_version -eq 2; then
6235 if test $gdlib_config_minor_version -gt 0; then
6236 gdlib_ver_ok=yes
6237 elif test $gdlib_config_minor_version -eq 0; then
6238 if test $gdlib_config_micro_version -ge 0; then
6239 gdlib_ver_ok=yes
6248 if test -z "$gdlib_ver_ok"; then
6250 if test -z "$GDLIB_VERSION"; then
6251 echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6
6253 else
6255 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6256 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6257 GDLIB_VERSION=
6262 else
6264 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6265 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6266 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6267 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6268 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6269 mule_backup_CFLAGS="$CFLAGS"
6270 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6271 if test "${ac_cv_header_gd_h+set}" = set; then
6272 echo "$as_me:$LINENO: checking for gd.h" >&5
6273 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6274 if test "${ac_cv_header_gd_h+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6278 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6279 else
6280 # Is the header compilable?
6281 echo "$as_me:$LINENO: checking gd.h usability" >&5
6282 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6290 #include <gd.h>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag"
6302 || test ! -s conftest.err'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest.$ac_objext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 ac_header_compiler=yes
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 ac_header_compiler=no
6321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6323 echo "${ECHO_T}$ac_header_compiler" >&6
6325 # Is the header present?
6326 echo "$as_me:$LINENO: checking gd.h presence" >&5
6327 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #include <gd.h>
6335 _ACEOF
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null; then
6344 if test -s conftest.err; then
6345 ac_cpp_err=$ac_c_preproc_warn_flag
6346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6347 else
6348 ac_cpp_err=
6350 else
6351 ac_cpp_err=yes
6353 if test -z "$ac_cpp_err"; then
6354 ac_header_preproc=yes
6355 else
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_header_preproc=no
6361 rm -f conftest.err conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6363 echo "${ECHO_T}$ac_header_preproc" >&6
6365 # So? What about this header?
6366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6367 yes:no: )
6368 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6369 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6370 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6371 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6372 ac_header_preproc=yes
6374 no:yes:* )
6375 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6376 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6378 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6380 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6382 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6384 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6386 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6388 cat <<\_ASBOX
6389 ## ------------------------------ ##
6390 ## Report this to admin@amule.org ##
6391 ## ------------------------------ ##
6392 _ASBOX
6394 sed "s/^/$as_me: WARNING: /" >&2
6396 esac
6397 echo "$as_me:$LINENO: checking for gd.h" >&5
6398 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6399 if test "${ac_cv_header_gd_h+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 ac_cv_header_gd_h=$ac_header_preproc
6404 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6405 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6408 if test $ac_cv_header_gd_h = yes; then
6410 else
6411 GDLIB_VERSION=
6415 CFLAGS="$mule_backup_CFLAGS"
6423 if test -n "$GDLIB_VERSION"; then
6425 CAS_DEFS="-D__GD__"
6426 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6428 else
6429 CAS_DEFS=
6435 if test -z "$CAS_DEFS"; then
6436 { echo "$as_me:$LINENO: WARNING:
6437 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6438 Please check that gdlib-config is in your default path, check out
6439 LD_LIBRARY_PATH or equivalent variable.
6440 Or this might also be that your gdlib-config has other name.
6441 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6442 (replace /usr/bin/gdlib-config with a valid path to your
6443 gdlib-config).
6444 If you use compiled packages check if you have devel pack installed.
6445 To download the latest version check http://www.boutell.com/gd for
6446 sources." >&5
6447 echo "$as_me: WARNING:
6448 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6449 Please check that gdlib-config is in your default path, check out
6450 LD_LIBRARY_PATH or equivalent variable.
6451 Or this might also be that your gdlib-config has other name.
6452 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6453 (replace /usr/bin/gdlib-config with a valid path to your
6454 gdlib-config).
6455 If you use compiled packages check if you have devel pack installed.
6456 To download the latest version check http://www.boutell.com/gd for
6457 sources." >&2;}
6458 _mule_warning_0=yes
6459 _mule_has_warnings=yes
6467 if test ${enable_webserver:-no} = yes; then
6470 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6471 if test "${with_libpng_prefix+set}" = set; then
6472 withval="$with_libpng_prefix"
6476 # Check whether --with-libpng-config or --without-libpng-config was given.
6477 if test "${with_libpng_config+set}" = set; then
6478 withval="$with_libpng_config"
6482 LIBPNG_VERSION=
6484 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6485 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6486 LIBPNG_CONFIG_NAME=libpng-config
6489 if test -n "$with_libpng_config"; then
6490 LIBPNG_CONFIG_NAME="$with_libpng_config"
6494 # deal with optional prefix
6495 if test -n "$with_libpng_prefix"; then
6496 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6500 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6501 if test -x "$LIBPNG_CONFIG_NAME"; then
6503 echo "$as_me:$LINENO: checking for libpng-config" >&5
6504 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6505 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6506 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6507 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6509 else
6510 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6511 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6512 echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6514 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 case $LIBPNG_CONFIG_PATH in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6524 for as_dir in $as_dummy
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6534 done
6535 done
6537 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6539 esac
6541 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6543 if test -n "$LIBPNG_CONFIG_PATH"; then
6544 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6545 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6546 else
6547 echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6
6554 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6556 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6557 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6559 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6561 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6562 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6563 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6564 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6566 libpng_ver_ok=
6567 if test $libpng_config_major_version -gt 1; then
6568 libpng_ver_ok=yes
6569 elif test $libpng_config_major_version -eq 1; then
6571 if test $libpng_config_minor_version -gt 2; then
6572 libpng_ver_ok=yes
6573 elif test $libpng_config_minor_version -eq 2; then
6574 if test $libpng_config_micro_version -ge 0; then
6575 libpng_ver_ok=yes
6584 if test -z "$libpng_ver_ok"; then
6586 if test -z "$LIBPNG_VERSION"; then
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6589 else
6591 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6592 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6593 LIBPNG_VERSION=
6598 else
6600 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6601 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6602 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6603 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6604 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6612 if test -n "$LIBPNG_VERSION"; then
6613 AMULEWEB_DEFS="-DWITH_LIBPNG"
6614 else
6616 { echo "$as_me:$LINENO: WARNING:
6617 libpng >= 1.2.0 not found.
6618 amuleweb will be compiled but file download progress bar images will
6619 NOT be generated." >&5
6620 echo "$as_me: WARNING:
6621 libpng >= 1.2.0 not found.
6622 amuleweb will be compiled but file download progress bar images will
6623 NOT be generated." >&2;}
6624 _mule_warning_1=yes
6625 _mule_has_warnings=yes
6637 # Check for perl File::Copy
6638 echo "$as_me:$LINENO: checking for File::Copy" >&5
6639 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6640 if perl -e "require File::Copy" 2>/dev/null; then
6641 echo "$as_me:$LINENO: result: ok" >&5
6642 echo "${ECHO_T}ok" >&6
6643 else
6644 { echo "$as_me:$LINENO: WARNING:
6645 File::Copy perl module is required by the mldonkey_importer script.
6646 If you want to use this script please install File::Copy from CPAN." >&5
6647 echo "$as_me: WARNING:
6648 File::Copy perl module is required by the mldonkey_importer script.
6649 If you want to use this script please install File::Copy from CPAN." >&2;}
6650 _mule_warning_2=yes
6651 _mule_has_warnings=yes
6656 # Check if we need to install skins
6657 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6658 INSTALL_SKINS=yes
6659 else
6660 INSTALL_SKINS=no
6664 # Check for GeoIP (required for IP2Country capability)
6665 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6667 # Check whether --enable-geoip or --disable-geoip was given.
6668 if test "${enable_geoip+set}" = set; then
6669 enableval="$enable_geoip"
6674 if test ${enable_geoip:-no} = yes; then
6677 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6678 if test "${with_geoip_headers+set}" = set; then
6679 withval="$with_geoip_headers"
6680 GEOIP_CPPFLAGS="-I$withval"
6683 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6684 if test "${with_geoip_lib+set}" = set; then
6685 withval="$with_geoip_lib"
6686 GEOIP_LDFLAGS="-L$withval"
6689 mule_backup_CPPFLAGS="$CPPFLAGS"
6690 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6691 mule_backup_LDFLAGS="$LDFLAGS"
6692 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6694 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6695 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6696 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6697 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6701 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6702 else
6703 # Is the header compilable?
6704 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6705 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6713 #include <GeoIP.h>
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -z "$ac_c_werror_flag"
6725 || test ! -s conftest.err'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_header_compiler=yes
6738 else
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ac_header_compiler=no
6744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6746 echo "${ECHO_T}$ac_header_compiler" >&6
6748 # Is the header present?
6749 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6750 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 #include <GeoIP.h>
6758 _ACEOF
6759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } >/dev/null; then
6767 if test -s conftest.err; then
6768 ac_cpp_err=$ac_c_preproc_warn_flag
6769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6770 else
6771 ac_cpp_err=
6773 else
6774 ac_cpp_err=yes
6776 if test -z "$ac_cpp_err"; then
6777 ac_header_preproc=yes
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_header_preproc=no
6784 rm -f conftest.err conftest.$ac_ext
6785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6786 echo "${ECHO_T}$ac_header_preproc" >&6
6788 # So? What about this header?
6789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6790 yes:no: )
6791 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6792 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6793 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6794 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6795 ac_header_preproc=yes
6797 no:yes:* )
6798 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6799 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6800 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6801 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6803 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6805 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6807 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6808 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6809 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6811 cat <<\_ASBOX
6812 ## ------------------------------ ##
6813 ## Report this to admin@amule.org ##
6814 ## ------------------------------ ##
6815 _ASBOX
6817 sed "s/^/$as_me: WARNING: /" >&2
6819 esac
6820 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6821 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6822 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 ac_cv_header_GeoIP_h=$ac_header_preproc
6827 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6828 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6831 if test $ac_cv_header_GeoIP_h = yes; then
6833 if test x$SYS = xwin32; then
6835 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6836 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6837 # Actually, we might not need any if GeoIP is linked as a .dll
6838 # - but that's even harder to check for
6839 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6847 #include <GeoIP.h>
6848 #ifdef _WINSOCK2_H
6849 I do know it's not the best approach, but at least works with MinGW stock headers.
6850 (tested with w32api-3.12)
6851 #endif
6854 main ()
6858 return 0;
6861 _ACEOF
6862 rm -f conftest.$ac_objext
6863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864 (eval $ac_compile) 2>conftest.er1
6865 ac_status=$?
6866 grep -v '^ *+' conftest.er1 >conftest.err
6867 rm -f conftest.er1
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -z "$ac_c_werror_flag"
6872 || test ! -s conftest.err'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; } &&
6878 { ac_try='test -s conftest.$ac_objext'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6885 GEOIP_WINSOCK_LIB="-lwsock32"
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6892 GEOIP_WINSOCK_LIB="-lws2_32"
6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6896 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6897 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6901 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6902 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6903 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906 ac_check_lib_save_LIBS=$LIBS
6907 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6915 /* Override any gcc2 internal prototype to avoid an error. */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6921 char GeoIP_open ();
6923 main ()
6925 GeoIP_open ();
6927 return 0;
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -z "$ac_c_werror_flag"
6940 || test ! -s conftest.err'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; } &&
6946 { ac_try='test -s conftest$ac_exeext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6952 ac_cv_lib_GeoIP_GeoIP_open=yes
6953 else
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 ac_cv_lib_GeoIP_GeoIP_open=no
6959 rm -f conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6961 LIBS=$ac_check_lib_save_LIBS
6963 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
6964 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
6965 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
6968 cat >>confdefs.h <<\_ACEOF
6969 #define SUPPORT_GEOIP 1
6970 _ACEOF
6972 GEOIP_LIBS="-lGeoIP"
6973 if test x$SYS = xwin32; then
6974 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
6977 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6979 # Check whether --with-geoip-static or --without-geoip-static was given.
6980 if test "${with_geoip_static+set}" = set; then
6981 withval="$with_geoip_static"
6983 if test "$withval" != "no" -a ${enable_static:-no} = no; then
6985 mule_backup_LIBS="$LIBS"
6986 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
6987 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6995 #include <GeoIP.h>
6998 main ()
7001 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7004 return 0;
7007 _ACEOF
7008 rm -f conftest.$ac_objext conftest$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010 (eval $ac_link) 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -z "$ac_c_werror_flag"
7018 || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest$ac_exeext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7031 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7038 { echo "$as_me:$LINENO: WARNING:
7039 Cannot link GeoIP statically, because your linker ($LD) does not
7040 support it." >&5
7041 echo "$as_me: WARNING:
7042 Cannot link GeoIP statically, because your linker ($LD) does not
7043 support it." >&2;}
7044 _mule_warning_3=yes
7045 _mule_has_warnings=yes
7049 rm -f conftest.err conftest.$ac_objext \
7050 conftest$ac_exeext conftest.$ac_ext
7051 LIBS="$mule_backup_LIBS"
7058 else
7060 enable_geoip=disabled
7061 { echo "$as_me:$LINENO: WARNING:
7062 GeoIP support has been disabled because the GeoIP libraries were not
7063 found" >&5
7064 echo "$as_me: WARNING:
7065 GeoIP support has been disabled because the GeoIP libraries were not
7066 found" >&2;}
7067 _mule_warning_4=yes
7068 _mule_has_warnings=yes
7074 else
7076 enable_geoip=disabled
7077 { echo "$as_me:$LINENO: WARNING:
7078 GeoIP support has been disabled because the GeoIP header files were
7079 not found" >&5
7080 echo "$as_me: WARNING:
7081 GeoIP support has been disabled because the GeoIP header files were
7082 not found" >&2;}
7083 _mule_warning_5=yes
7084 _mule_has_warnings=yes
7091 CPPFLAGS="$mule_backup_CPPFLAGS"
7092 LDFLAGS="$mule_backup_LDFLAGS"
7100 # Check for wx
7101 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
7104 # Check whether --with-wxdir or --without-wxdir was given.
7105 if test "${with_wxdir+set}" = set; then
7106 withval="$with_wxdir"
7107 wx_config_name="$withval/wx-config"
7108 wx_config_args="--inplace"
7111 # Check whether --with-wx-config or --without-wx-config was given.
7112 if test "${with_wx_config+set}" = set; then
7113 withval="$with_wx_config"
7114 wx_config_name="$withval"
7117 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7118 if test "${with_wx_prefix+set}" = set; then
7119 withval="$with_wx_prefix"
7120 wx_config_prefix="$withval"
7121 else
7122 wx_config_prefix=""
7125 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7126 if test "${with_wx_exec_prefix+set}" = set; then
7127 withval="$with_wx_exec_prefix"
7128 wx_config_exec_prefix="$withval"
7129 else
7130 wx_config_exec_prefix=""
7144 # Check whether --with-toolkit or --without-toolkit was given.
7145 if test "${with_toolkit+set}" = set; then
7146 withval="$with_toolkit"
7148 else
7149 withval="auto"
7152 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7153 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7154 if test "$withval" = "auto" ; then
7155 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7156 echo "${ECHO_T}will be automatically detected" >&6
7157 TOOLKIT="auto"
7158 else
7159 TOOLKIT="$withval"
7161 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7162 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7163 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7164 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7165 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7166 "$TOOLKIT" != "osx_cocoa"; then
7167 { { echo "$as_me:$LINENO: error:
7168 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7169 " >&5
7170 echo "$as_me: error:
7171 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7172 " >&2;}
7173 { (exit 1); exit 1; }; }
7176 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7177 echo "${ECHO_T}$TOOLKIT" >&6
7184 # Check whether --with-wxshared or --without-wxshared was given.
7185 if test "${with_wxshared+set}" = set; then
7186 withval="$with_wxshared"
7188 else
7189 withval="auto"
7192 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7193 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7194 if test "$withval" = "yes" ; then
7195 echo "$as_me:$LINENO: result: yes" >&5
7196 echo "${ECHO_T}yes" >&6
7197 WX_SHARED=1
7199 elif test "1" = "1" -a "$withval" = "no" ; then
7200 echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6
7202 WX_SHARED=0
7203 elif test "$withval" = "auto" ; then
7204 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7205 echo "${ECHO_T}will be automatically detected" >&6
7206 WX_SHARED="auto"
7207 else
7208 { { echo "$as_me:$LINENO: error:
7209 Unrecognized option value (allowed values: yes, auto)
7210 " >&5
7211 echo "$as_me: error:
7212 Unrecognized option value (allowed values: yes, auto)
7213 " >&2;}
7214 { (exit 1); exit 1; }; }
7221 # Check whether --with-wxdebug or --without-wxdebug was given.
7222 if test "${with_wxdebug+set}" = set; then
7223 withval="$with_wxdebug"
7225 else
7226 withval="auto"
7229 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7230 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7231 if test "$withval" = "yes" ; then
7232 echo "$as_me:$LINENO: result: yes" >&5
7233 echo "${ECHO_T}yes" >&6
7234 WX_DEBUG=1
7236 elif test "1" = "1" -a "$withval" = "no" ; then
7237 echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6
7239 WX_DEBUG=0
7240 elif test "$withval" = "auto" ; then
7241 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7242 echo "${ECHO_T}will be automatically detected" >&6
7243 WX_DEBUG="auto"
7244 else
7245 { { echo "$as_me:$LINENO: error:
7246 Unrecognized option value (allowed values: yes, auto)
7247 " >&5
7248 echo "$as_me: error:
7249 Unrecognized option value (allowed values: yes, auto)
7250 " >&2;}
7251 { (exit 1); exit 1; }; }
7258 # Check whether --with-wxversion or --without-wxversion was given.
7259 if test "${with_wxversion+set}" = set; then
7260 withval="$with_wxversion"
7262 else
7263 withval="auto"
7266 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7267 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7268 if test "$withval" = "auto" ; then
7269 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7270 echo "${ECHO_T}will be automatically detected" >&6
7271 WX_VERSION="auto"
7272 else
7274 wx_requested_major_version=`echo $withval | \
7275 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7276 wx_requested_minor_version=`echo $withval | \
7277 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7279 if test "${#wx_requested_major_version}" != "1" -o \
7280 "${#wx_requested_minor_version}" != "1" ; then
7281 { { echo "$as_me:$LINENO: error:
7282 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7283 " >&5
7284 echo "$as_me: error:
7285 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7286 " >&2;}
7287 { (exit 1); exit 1; }; }
7290 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7291 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7292 echo "${ECHO_T}$WX_VERSION" >&6
7296 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7297 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7298 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7299 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7300 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7301 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7304 # Force using a static wxWidgets library if the executable is to be linked statically.
7305 if test ${enable_static:-no} = yes; then
7306 WX_SHARED=0
7309 # Force using a unicode build of the library
7310 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then
7311 WX_UNICODE=1
7314 DEBUG=$WX_DEBUG
7316 if test "$WX_SHARED" = "1" ; then
7317 WXCONFIG_FLAGS="--static=no "
7318 elif test "$WX_SHARED" = "0" ; then
7319 WXCONFIG_FLAGS="--static=yes "
7322 if test "$WX_DEBUG" = "1" ; then
7323 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7324 elif test "$WX_DEBUG" = "0" ; then
7325 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7328 if test "$WX_UNICODE" = "1" ; then
7329 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7330 elif test "$WX_UNICODE" = "0" ; then
7331 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7334 if test "$TOOLKIT" != "auto" ; then
7335 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7338 if test "$WX_VERSION" != "auto" ; then
7339 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7342 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7344 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7345 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7349 if test x${WX_CONFIG_NAME+set} != xset ; then
7350 WX_CONFIG_NAME=wx-config
7353 if test "x$wx_config_name" != x ; then
7354 WX_CONFIG_NAME="$wx_config_name"
7357 if test x$wx_config_exec_prefix != x ; then
7358 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7359 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7361 if test x$wx_config_prefix != x ; then
7362 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7363 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7365 if test "$cross_compiling" = "yes"; then
7366 wx_config_args="$wx_config_args --host=$host_alias"
7369 if test -x "$WX_CONFIG_NAME" ; then
7370 echo "$as_me:$LINENO: checking for wx-config" >&5
7371 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7372 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7373 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7374 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7375 else
7376 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7377 set dummy $WX_CONFIG_NAME; ac_word=$2
7378 echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7380 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 case $WX_CONFIG_PATH in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7390 for as_dir in $as_dummy
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7400 done
7401 done
7403 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7405 esac
7407 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7409 if test -n "$WX_CONFIG_PATH"; then
7410 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7411 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7412 else
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7419 if test "$WX_CONFIG_PATH" != "no" ; then
7420 WX_VERSION_FULL=""
7422 min_wx_version=2.8.8
7423 if test -z "$WXCONFIG_FLAGS" ; then
7424 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7425 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7426 else
7427 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7428 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7431 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7433 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7434 wx_config_major_version=`echo $WX_VERSION_FULL | \
7435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7436 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7438 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7441 wx_requested_major_version=`echo $min_wx_version | \
7442 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7443 wx_requested_minor_version=`echo $min_wx_version | \
7444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7445 wx_requested_micro_version=`echo $min_wx_version | \
7446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7449 wx_ver_ok=""
7450 if test "x$WX_VERSION_FULL" != x ; then
7451 if test $wx_config_major_version -gt $wx_requested_major_version; then
7452 wx_ver_ok=yes
7453 else
7454 if test $wx_config_major_version -eq $wx_requested_major_version; then
7455 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7456 wx_ver_ok=yes
7457 else
7458 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7459 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7460 wx_ver_ok=yes
7469 if test -n "$wx_ver_ok"; then
7471 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7472 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7473 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7475 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7477 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7478 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7479 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7481 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7482 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7484 wxWin=1
7486 else
7488 if test "x$WX_VERSION_FULL" = x; then
7489 echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7491 else
7492 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7493 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7496 WX_CFLAGS=""
7497 WX_CPPFLAGS=""
7498 WX_CXXFLAGS=""
7499 WX_LIBS=""
7500 WX_RESCOMP=""
7502 if test ! -z "$WXCONFIG_FLAGS"; then
7504 wx_error_message="
7505 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7506 build with the following settings:
7507 $WXCONFIG_FLAGS
7508 but such build is not available.
7510 To see the wxWidgets builds available on this system, please use
7511 'wx-config --list' command. To use the default build, returned by
7512 'wx-config --selected-config', use the options with their 'auto'
7513 default values."
7517 wx_error_message="
7518 The requested wxWidgets build couldn't be found.
7519 $wx_error_message
7521 If you still get this error, then check that 'wx-config' is
7522 in path, the directory where wxWidgets libraries are installed
7523 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7524 or equivalent variable and wxWidgets version is 2.8.8 or above."
7526 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7527 echo "$as_me: error: $wx_error_message" >&2;}
7528 { (exit 1); exit 1; }; }
7531 else
7533 WX_CFLAGS=""
7534 WX_CPPFLAGS=""
7535 WX_CXXFLAGS=""
7536 WX_LIBS=""
7537 WX_RESCOMP=""
7552 WX_VERSION_MAJOR="$wx_config_major_version"
7553 WX_VERSION_MINOR="$wx_config_minor_version"
7557 if test "$wxWin" != 1; then
7558 { { echo "$as_me:$LINENO: error:
7559 wxWidgets must be installed on your system but wx-config
7560 script couldn't be found. Please check that wx-config is
7561 in path or specified by --with-wx-config=path flag, the
7562 directory where wxWidgets libraries are installed (returned
7563 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7564 equivalent variable and wxWidgets version is 2.8.8 or above.
7565 " >&5
7566 echo "$as_me: error:
7567 wxWidgets must be installed on your system but wx-config
7568 script couldn't be found. Please check that wx-config is
7569 in path or specified by --with-wx-config=path flag, the
7570 directory where wxWidgets libraries are installed (returned
7571 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7572 equivalent variable and wxWidgets version is 2.8.8 or above.
7573 " >&2;}
7574 { (exit 1); exit 1; }; }
7578 if test "${WX_VERSION_FULL}" = "2.9.0"; then
7579 { { echo "$as_me:$LINENO: error:
7580 This version of wxWidgets is known to not work with aMule.
7581 Please upgrade to a newer version.
7582 " >&5
7583 echo "$as_me: error:
7584 This version of wxWidgets is known to not work with aMule.
7585 Please upgrade to a newer version.
7586 " >&2;}
7587 { (exit 1); exit 1; }; }
7592 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7594 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7596 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7597 echo "[dbg] Using wx-config --selected-config"
7598 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7602 if test $WX_SHARED = "1"; then
7603 STATIC=0
7604 elif test $WX_SHARED = "0"; then
7605 STATIC=1
7606 elif test $WX_SHARED = "auto"; then
7607 STATIC="auto"
7611 if test "$UNICODE" = "auto" ; then
7613 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7614 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7616 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7618 if test "$WX_UNICODE" != "0"; then
7619 WX_UNICODE=1
7620 echo "$as_me:$LINENO: result: yes" >&5
7621 echo "${ECHO_T}yes" >&6
7623 else
7624 WX_UNICODE=0
7625 echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6
7629 else
7631 WX_UNICODE=$UNICODE
7635 if test "$DEBUG" = "auto" ; then
7637 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7638 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7640 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7642 if test "$WX_DEBUG" != "0"; then
7643 WX_DEBUG=1
7644 echo "$as_me:$LINENO: result: yes" >&5
7645 echo "${ECHO_T}yes" >&6
7647 else
7648 WX_DEBUG=0
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7653 else
7655 WX_DEBUG=$DEBUG
7659 if test "$STATIC" = "auto" ; then
7661 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7662 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7664 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7666 if test "$WX_STATIC" != "0"; then
7667 WX_STATIC=1
7668 echo "$as_me:$LINENO: result: yes" >&5
7669 echo "${ECHO_T}yes" >&6
7671 else
7672 WX_STATIC=0
7673 echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6
7677 else
7679 WX_STATIC=$STATIC
7683 if test "$WX_STATIC" != "0"; then
7684 WX_SHARED=0
7685 else
7686 WX_SHARED=1
7693 if test "$TOOLKIT" = "auto" ; then
7695 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7696 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7698 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7699 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7700 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7701 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7702 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7703 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7704 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7705 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7706 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7707 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7708 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7710 WX_PORT="unknown"
7711 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7712 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7713 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7714 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7715 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7716 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7717 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7718 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7719 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7720 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7721 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
7724 if test "$WX_PORT" = "unknown" ; then
7725 { { echo "$as_me:$LINENO: error:
7726 Cannot detect the currently installed wxWidgets port !
7727 Please check your 'wx-config --cxxflags'...
7728 " >&5
7729 echo "$as_me: error:
7730 Cannot detect the currently installed wxWidgets port !
7731 Please check your 'wx-config --cxxflags'...
7732 " >&2;}
7733 { (exit 1); exit 1; }; }
7736 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7737 echo "${ECHO_T}$WX_PORT" >&6
7738 else
7740 if test -n "$TOOLKIT" ; then
7741 WX_PORT=$TOOLKIT
7742 else
7743 WX_PORT=$PORT
7749 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7750 echo "[dbg] Values of all WX_* options after final detection:"
7751 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7752 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7753 echo "[dbg] WX_SHARED: $WX_SHARED"
7754 echo "[dbg] WX_VERSION: $WX_VERSION"
7755 echo "[dbg] WX_PORT: $WX_PORT"
7758 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7759 { { echo "$as_me:$LINENO: error:
7760 Cannot build shared library against a static build of wxWidgets !
7761 This error happens because the wxWidgets build which was selected
7762 has been detected as static while you asked to build $PACKAGE_NAME
7763 as shared library and this is not possible.
7764 Use the '--disable-shared' option to build $PACKAGE_NAME
7765 as static library or '--with-wxshared' to use wxWidgets as shared library.
7766 " >&5
7767 echo "$as_me: error:
7768 Cannot build shared library against a static build of wxWidgets !
7769 This error happens because the wxWidgets build which was selected
7770 has been detected as static while you asked to build $PACKAGE_NAME
7771 as shared library and this is not possible.
7772 Use the '--disable-shared' option to build $PACKAGE_NAME
7773 as static library or '--with-wxshared' to use wxWidgets as shared library.
7774 " >&2;}
7775 { (exit 1); exit 1; }; }
7778 if test "$DEBUG" = "auto"; then
7779 DEBUG=$WX_DEBUG
7781 if test "$DEBUG" = "1"; then
7782 BUILD="debug"
7783 elif test "$DEBUG" = ""; then
7784 BUILD="release"
7787 if test "$UNICODE" = "auto"; then
7788 UNICODE=$WX_UNICODE
7790 if test "$SHARED" = "auto"; then
7791 SHARED=$WX_SHARED
7793 if test "$TOOLKIT" = "auto"; then
7794 TOOLKIT=$WX_PORT
7798 # We also need wxBase
7799 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7800 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7801 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7803 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7808 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then
7809 if test "${WX_PORT}" = base; then
7810 { { echo "$as_me:$LINENO: error:
7811 The selected components need a wxWidgets library with GUI,
7812 but your installation is base-only. Please install a GUI
7813 enabled version of wxWidgets and then retry.
7814 " >&5
7815 echo "$as_me: error:
7816 The selected components need a wxWidgets library with GUI,
7817 but your installation is base-only. Please install a GUI
7818 enabled version of wxWidgets and then retry.
7819 " >&2;}
7820 { (exit 1); exit 1; }; }
7827 if test ${SYS:-unknown} = win32; then
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}windres; ac_word=$2
7831 echo "$as_me:$LINENO: checking for $ac_word" >&5
7832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7833 if test "${ac_cv_prog_RC+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 if test -n "$RC"; then
7837 ac_cv_prog_RC="$RC" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_RC="${ac_tool_prefix}windres"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7850 done
7851 done
7855 RC=$ac_cv_prog_RC
7856 if test -n "$RC"; then
7857 echo "$as_me:$LINENO: result: $RC" >&5
7858 echo "${ECHO_T}$RC" >&6
7859 else
7860 echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6
7865 if test -z "$ac_cv_prog_RC"; then
7866 ac_ct_RC=$RC
7867 # Extract the first word of "windres", so it can be a program name with args.
7868 set dummy windres; ac_word=$2
7869 echo "$as_me:$LINENO: checking for $ac_word" >&5
7870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7871 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874 if test -n "$ac_ct_RC"; then
7875 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_ac_ct_RC="windres"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7891 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7894 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7895 if test -n "$ac_ct_RC"; then
7896 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7897 echo "${ECHO_T}$ac_ct_RC" >&6
7898 else
7899 echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7903 RC=$ac_ct_RC
7904 else
7905 RC="$ac_cv_prog_RC"
7912 # Check for libupnp
7913 # Check whether --enable-upnp or --disable-upnp was given.
7914 if test "${enable_upnp+set}" = set; then
7915 enableval="$enable_upnp"
7919 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
7921 else
7922 enable_upnp=no
7925 if test ${enable_upnp:-yes} = yes; then
7929 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7930 if test -n "$ac_tool_prefix"; then
7931 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7932 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7933 echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7935 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 case $PKG_CONFIG in
7939 [\\/]* | ?:[\\/]*)
7940 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7958 esac
7960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7962 if test -n "$PKG_CONFIG"; then
7963 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7964 echo "${ECHO_T}$PKG_CONFIG" >&6
7965 else
7966 echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6
7971 if test -z "$ac_cv_path_PKG_CONFIG"; then
7972 ac_pt_PKG_CONFIG=$PKG_CONFIG
7973 # Extract the first word of "pkg-config", so it can be a program name with args.
7974 set dummy pkg-config; ac_word=$2
7975 echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 case $ac_pt_PKG_CONFIG in
7981 [\\/]* | ?:[\\/]*)
7982 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7996 done
7997 done
8000 esac
8002 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8004 if test -n "$ac_pt_PKG_CONFIG"; then
8005 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8006 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8007 else
8008 echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6
8012 PKG_CONFIG=$ac_pt_PKG_CONFIG
8013 else
8014 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8018 if test -n "$PKG_CONFIG"; then
8019 _pkg_min_version=0.9.0
8020 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8021 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8022 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024 echo "${ECHO_T}yes" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6
8028 PKG_CONFIG=""
8034 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8035 if test "${with_libupnp_prefix+set}" = set; then
8036 withval="$with_libupnp_prefix"
8037 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8040 if test $cross_compiling = no; then
8042 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8043 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8044 if test -n "$PKG_CONFIG"; then
8046 if $PKG_CONFIG libupnp --exists; then
8048 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8049 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8051 result=yes
8052 resultstr=" (version $LIBUPNP_VERSION)"
8053 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8054 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8055 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8056 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8057 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8059 else
8061 result=no
8062 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8067 else
8069 result=no
8070 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8075 else
8077 result=no
8078 resultstr=" (pkg-config not found)"
8082 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8083 echo "${ECHO_T}$result$resultstr" >&6
8084 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8086 else
8088 result=no
8089 libupnp_error="cross compiling"
8094 if test ${result:-no} = yes; then
8095 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8096 else
8097 enable_upnp=disabled
8098 { echo "$as_me:$LINENO: WARNING:
8099 UPnP code has been disabled because ${libupnp_error}." >&5
8100 echo "$as_me: WARNING:
8101 UPnP code has been disabled because ${libupnp_error}." >&2;}
8102 _mule_warning_6=yes
8103 _mule_has_warnings=yes
8114 # Check for Crypto++
8115 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
8118 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8119 if test "${with_crypto_prefix+set}" = set; then
8120 withval="$with_crypto_prefix"
8124 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8125 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8127 cryptopp_file_with_version="cryptlib.h"
8129 CRYPTOPP_STYLE="unknown"
8130 CRYPTOPP_LIB_NAME="unknown"
8131 cryptopp_includedir="unknown"
8132 CRYPTOPP_INCLUDE_PREFIX="unknown"
8133 cryptopp_libdir="unknown"
8135 if test -n "$with_crypto_prefix"; then
8137 CRYPTOPP_PREFIX="$with_crypto_prefix"
8138 # Find the Cryptopp header in the user-provided location
8139 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8141 CRYPTOPP_STYLE="sources"
8142 CRYPTOPP_LIB_NAME="cryptopp"
8143 cryptopp_includedir=
8144 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8145 cryptopp_libdir=
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"
8155 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8157 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8158 CRYPTOPP_STYLE="gentoo_debian"
8159 CRYPTOPP_LIB_NAME="crypto++"
8160 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8161 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8162 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8167 else
8169 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8170 # Find the Cryptopp header in system locations
8171 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8173 CRYPTOPP_STYLE="sources"
8174 CRYPTOPP_LIB_NAME="cryptopp"
8175 cryptopp_includedir=
8176 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8177 cryptopp_libdir=
8178 break
8180 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8182 CRYPTOPP_STYLE="installed"
8183 CRYPTOPP_LIB_NAME="cryptopp"
8184 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8185 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8186 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8187 break
8189 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8191 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8192 CRYPTOPP_STYLE="gentoo_debian"
8193 CRYPTOPP_LIB_NAME="crypto++"
8194 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8195 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8196 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8197 break
8201 done
8206 if test $CRYPTOPP_STYLE = "unknown"; then
8207 result=no; resultstr=""
8208 else
8210 # Find out the crypto++ version and check against the minimum required
8211 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8212 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8213 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8214 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8216 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8218 result=yes
8219 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8220 if test -n "$cryptopp_includedir"; then
8221 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8222 else
8223 CRYPTOPP_CPPFLAGS=
8226 if test -n "$cryptopp_libdir"; then
8228 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8229 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8231 else
8233 CRYPTOPP_LDFLAGS=
8234 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8240 cat >>confdefs.h <<_ACEOF
8241 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8242 _ACEOF
8245 else
8247 result=no
8248 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8256 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8257 echo "${ECHO_T}$result$resultstr" >&6
8259 if test ${result:-no} = yes; then
8261 # Check for CryptoPP >= 5.5
8262 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8263 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8267 else
8269 { { echo "$as_me:$LINENO: error:
8270 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8271 Please try again with --with-crypto-prefix=/my_crypto_prefix
8272 (replace /my_crypto_prefix with a valid path to your crypto++
8273 installation directory)." >&5
8274 echo "$as_me: error:
8275 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8276 Please try again with --with-crypto-prefix=/my_crypto_prefix
8277 (replace /my_crypto_prefix with a valid path to your crypto++
8278 installation directory)." >&2;}
8279 { (exit 1); exit 1; }; }
8288 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_ed2k:-yes} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
8289 ac_ext=cc
8290 ac_cpp='$CXXCPP $CPPFLAGS'
8291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8298 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8299 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8300 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8308 #include <string>
8309 #ifndef __GLIBCXX__
8310 #error Non-GNU C++ library found.
8311 #endif
8314 _ACEOF
8315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } >/dev/null; then
8323 if test -s conftest.err; then
8324 ac_cpp_err=$ac_cxx_preproc_warn_flag
8325 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8326 else
8327 ac_cpp_err=
8329 else
8330 ac_cpp_err=yes
8332 if test -z "$ac_cpp_err"; then
8333 GLIBCXX=yes
8334 else
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 GLIBCXX=no
8340 rm -f conftest.err conftest.$ac_ext
8341 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8342 echo "${ECHO_T}$GLIBCXX" >&6
8344 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then
8346 mule_backup_CPPFLAGS="$CPPFLAGS"
8347 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8349 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8350 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8359 #include <wx/wx.h>
8360 #include <wx/filefn.h>
8361 #ifndef wxHAS_LARGE_FILES
8362 #error No LargeFile support!
8363 #endif
8366 _ACEOF
8367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } >/dev/null; then
8375 if test -s conftest.err; then
8376 ac_cpp_err=$ac_cxx_preproc_warn_flag
8377 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8378 else
8379 ac_cpp_err=
8381 else
8382 ac_cpp_err=yes
8384 if test -z "$ac_cpp_err"; then
8386 echo "$as_me:$LINENO: result: yes" >&5
8387 echo "${ECHO_T}yes" >&6
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8394 echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6
8396 { { echo "$as_me:$LINENO: error:
8397 Support for large files in wxWidgets is required by aMule.
8398 To continue you must recompile wxWidgets with support for
8399 large files enabled." >&5
8400 echo "$as_me: error:
8401 Support for large files in wxWidgets is required by aMule.
8402 To continue you must recompile wxWidgets with support for
8403 large files enabled." >&2;}
8404 { (exit 1); exit 1; }; }
8407 rm -f conftest.err conftest.$ac_ext
8409 CPPFLAGS="$mule_backup_CPPFLAGS"
8414 # Check if the compiler is broken, wrt. exceptions.
8416 echo "$as_me:$LINENO: checking for exception-handling" >&5
8417 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8418 if test "$cross_compiling" = yes; then
8420 echo "$as_me:$LINENO: result: undeterminable" >&5
8421 echo "${ECHO_T}undeterminable" >&6
8422 { echo "$as_me:$LINENO: WARNING:
8423 Cross-compilation detected, so exception handling cannot be tested.
8424 Note that broken exception handling in your compiler may lead to
8425 unexpected crashes." >&5
8426 echo "$as_me: WARNING:
8427 Cross-compilation detected, so exception handling cannot be tested.
8428 Note that broken exception handling in your compiler may lead to
8429 unexpected crashes." >&2;}
8430 _mule_warning_7=yes
8431 _mule_has_warnings=yes
8434 else
8435 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8444 main ()
8447 try {
8448 throw 1;
8449 } catch (int) {
8450 return 0;
8452 return 1;
8455 return 0;
8458 _ACEOF
8459 rm -f conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8471 echo "$as_me:$LINENO: result: yes" >&5
8472 echo "${ECHO_T}yes" >&6
8474 else
8475 echo "$as_me: program exited with status $ac_status" >&5
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ( exit $ac_status )
8481 echo "$as_me:$LINENO: result: no" >&5
8482 echo "${ECHO_T}no" >&6
8483 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8484 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8485 { (exit 1); exit 1; }; }
8488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8494 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8503 #include <cxxabi.h>
8506 main ()
8509 int status;
8510 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8511 std::type_info *ti = abi::__cxa_current_exception_type();
8514 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520 (eval $ac_link) 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_cxx_werror_flag"
8528 || test ! -s conftest.err'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8543 cat >>confdefs.h <<\_ACEOF
8544 #define HAVE_CXXABI 1
8545 _ACEOF
8547 echo "$as_me:$LINENO: result: yes" >&5
8548 echo "${ECHO_T}yes" >&6
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8555 echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6
8559 rm -f conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8562 ac_ext=c
8563 ac_cpp='$CPP $CPPFLAGS'
8564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8572 # Ok, we have all needed libs, now checking for other stuff
8573 if test "$LEX" = "flex"; then
8575 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8576 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8578 extended_flex=`flex --help | grep header-file`
8579 if test -n "$extended_flex"; then
8580 HAVE_FLEX_EXTENDED=yes
8581 else
8582 HAVE_FLEX_EXTENDED=no
8585 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8586 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8588 if test $HAVE_FLEX_EXTENDED = no; then
8589 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8590 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8594 else
8595 HAVE_FLEX_EXTENDED=no
8599 # Flush standard test results for speeding cache
8600 cat >confcache <<\_ACEOF
8601 # This file is a shell script that caches the results of configure
8602 # tests run on this system so they can be shared between configure
8603 # scripts and configure runs, see configure's option --config-cache.
8604 # It is not useful on other systems. If it contains results you don't
8605 # want to keep, you may remove or edit it.
8607 # config.status only pays attention to the cache file if you give it
8608 # the --recheck option to rerun configure.
8610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8612 # following values.
8614 _ACEOF
8616 # The following way of writing the cache mishandles newlines in values,
8617 # but we know of no workaround that is simple, portable, and efficient.
8618 # So, don't put newlines in cache variables' values.
8619 # Ultrix sh set writes to stderr and can't be redirected directly,
8620 # and sets the high bit in the cache file unless we assign to the vars.
8622 (set) 2>&1 |
8623 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8624 *ac_space=\ *)
8625 # `set' does not quote correctly, so add quotes (double-quote
8626 # substitution turns \\\\ into \\, and sed turns \\ into \).
8627 sed -n \
8628 "s/'/'\\\\''/g;
8629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8632 # `set' quotes correctly as required by POSIX, so do not add quotes.
8633 sed -n \
8634 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8636 esac;
8638 sed '
8639 t clear
8640 : clear
8641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8642 t end
8643 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8644 : end' >>confcache
8645 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8646 if test -w $cache_file; then
8647 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8648 cat confcache >$cache_file
8649 else
8650 echo "not updating unwritable cache $cache_file"
8653 rm -f confcache
8655 # Checks for header files.
8656 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8657 # for constant arguments. Useless!
8658 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8659 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8660 if test "${ac_cv_working_alloca_h+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 #include <alloca.h>
8671 main ()
8673 char *p = (char *) alloca (2 * sizeof (int));
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_working_alloca_h=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_working_alloca_h=no
8707 rm -f conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8710 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8711 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8712 if test $ac_cv_working_alloca_h = yes; then
8714 cat >>confdefs.h <<\_ACEOF
8715 #define HAVE_ALLOCA_H 1
8716 _ACEOF
8720 echo "$as_me:$LINENO: checking for alloca" >&5
8721 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8722 if test "${ac_cv_func_alloca_works+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #ifdef __GNUC__
8732 # define alloca __builtin_alloca
8733 #else
8734 # ifdef _MSC_VER
8735 # include <malloc.h>
8736 # define alloca _alloca
8737 # else
8738 # if HAVE_ALLOCA_H
8739 # include <alloca.h>
8740 # else
8741 # ifdef _AIX
8742 #pragma alloca
8743 # else
8744 # ifndef alloca /* predefined by HP cc +Olibcalls */
8745 char *alloca ();
8746 # endif
8747 # endif
8748 # endif
8749 # endif
8750 #endif
8753 main ()
8755 char *p = (char *) alloca (1);
8757 return 0;
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_func_alloca_works=yes
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_cv_func_alloca_works=no
8789 rm -f conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8793 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8795 if test $ac_cv_func_alloca_works = yes; then
8797 cat >>confdefs.h <<\_ACEOF
8798 #define HAVE_ALLOCA 1
8799 _ACEOF
8801 else
8802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8803 # that cause trouble. Some versions do not even contain alloca or
8804 # contain a buggy version. If you still want to use their alloca,
8805 # use ar to extract alloca.o from them instead of compiling alloca.c.
8807 ALLOCA=alloca.$ac_objext
8809 cat >>confdefs.h <<\_ACEOF
8810 #define C_ALLOCA 1
8811 _ACEOF
8814 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8815 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8816 if test "${ac_cv_os_cray+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h. */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825 #if defined(CRAY) && ! defined(CRAY2)
8826 webecray
8827 #else
8828 wenotbecray
8829 #endif
8831 _ACEOF
8832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8833 $EGREP "webecray" >/dev/null 2>&1; then
8834 ac_cv_os_cray=yes
8835 else
8836 ac_cv_os_cray=no
8838 rm -f conftest*
8841 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8842 echo "${ECHO_T}$ac_cv_os_cray" >&6
8843 if test $ac_cv_os_cray = yes; then
8844 for ac_func in _getb67 GETB67 getb67; do
8845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8846 echo "$as_me:$LINENO: checking for $ac_func" >&5
8847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_var+set}\" = set"; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8859 #define $ac_func innocuous_$ac_func
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char $ac_func (); below.
8863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864 <limits.h> exists even on freestanding compilers. */
8866 #ifdef __STDC__
8867 # include <limits.h>
8868 #else
8869 # include <assert.h>
8870 #endif
8872 #undef $ac_func
8874 /* Override any gcc2 internal prototype to avoid an error. */
8875 #ifdef __cplusplus
8876 extern "C"
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char $ac_func ();
8882 /* The GNU C library defines this for functions which it implements
8883 to always fail with ENOSYS. Some functions are actually named
8884 something starting with __ and the normal name is an alias. */
8885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8886 choke me
8887 #else
8888 char (*f) () = $ac_func;
8889 #endif
8890 #ifdef __cplusplus
8892 #endif
8895 main ()
8897 return f != $ac_func;
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 eval "$as_ac_var=yes"
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 eval "$as_ac_var=no"
8931 rm -f conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8936 if test `eval echo '${'$as_ac_var'}'` = yes; then
8938 cat >>confdefs.h <<_ACEOF
8939 #define CRAY_STACKSEG_END $ac_func
8940 _ACEOF
8942 break
8945 done
8948 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8949 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8950 if test "${ac_cv_c_stack_direction+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 if test "$cross_compiling" = yes; then
8954 ac_cv_c_stack_direction=0
8955 else
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8963 find_stack_direction ()
8965 static char *addr = 0;
8966 auto char dummy;
8967 if (addr == 0)
8969 addr = &dummy;
8970 return find_stack_direction ();
8972 else
8973 return (&dummy > addr) ? 1 : -1;
8977 main ()
8979 exit (find_stack_direction () < 0);
8981 _ACEOF
8982 rm -f conftest$ac_exeext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984 (eval $ac_link) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_c_stack_direction=1
8994 else
8995 echo "$as_me: program exited with status $ac_status" >&5
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ( exit $ac_status )
9000 ac_cv_c_stack_direction=-1
9002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9006 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9008 cat >>confdefs.h <<_ACEOF
9009 #define STACK_DIRECTION $ac_cv_c_stack_direction
9010 _ACEOF
9020 ac_header_dirent=no
9021 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9022 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9023 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9024 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h. */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 #include <sys/types.h>
9035 #include <$ac_hdr>
9038 main ()
9040 if ((DIR *) 0)
9041 return 0;
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 eval "$as_ac_Header=yes"
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 eval "$as_ac_Header=no"
9075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9080 cat >>confdefs.h <<_ACEOF
9081 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9082 _ACEOF
9084 ac_header_dirent=$ac_hdr; break
9087 done
9088 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9089 if test $ac_header_dirent = dirent.h; then
9090 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9091 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9092 if test "${ac_cv_search_opendir+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 else
9095 ac_func_search_save_LIBS=$LIBS
9096 ac_cv_search_opendir=no
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9104 /* Override any gcc2 internal prototype to avoid an error. */
9105 #ifdef __cplusplus
9106 extern "C"
9107 #endif
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char opendir ();
9112 main ()
9114 opendir ();
9116 return 0;
9118 _ACEOF
9119 rm -f conftest.$ac_objext conftest$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -z "$ac_c_werror_flag"
9129 || test ! -s conftest.err'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 (eval $ac_try) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; } &&
9135 { ac_try='test -s conftest$ac_exeext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 (eval $ac_try) 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_cv_search_opendir="none required"
9142 else
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9147 rm -f conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext conftest.$ac_ext
9149 if test "$ac_cv_search_opendir" = no; then
9150 for ac_lib in dir; do
9151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9159 /* Override any gcc2 internal prototype to avoid an error. */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 /* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
9165 char opendir ();
9167 main ()
9169 opendir ();
9171 return 0;
9173 _ACEOF
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>conftest.er1
9177 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -z "$ac_c_werror_flag"
9184 || test ! -s conftest.err'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; } &&
9190 { ac_try='test -s conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 (eval $ac_try) 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_search_opendir="-l$ac_lib"
9197 break
9198 else
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9203 rm -f conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
9205 done
9207 LIBS=$ac_func_search_save_LIBS
9209 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9210 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9211 if test "$ac_cv_search_opendir" != no; then
9212 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9216 else
9217 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9219 if test "${ac_cv_search_opendir+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 ac_func_search_save_LIBS=$LIBS
9223 ac_cv_search_opendir=no
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9231 /* Override any gcc2 internal prototype to avoid an error. */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9237 char opendir ();
9239 main ()
9241 opendir ();
9243 return 0;
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_cv_search_opendir="none required"
9269 else
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9274 rm -f conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
9276 if test "$ac_cv_search_opendir" = no; then
9277 for ac_lib in x; do
9278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h. */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 /* Override any gcc2 internal prototype to avoid an error. */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9292 char opendir ();
9294 main ()
9296 opendir ();
9298 return 0;
9300 _ACEOF
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } &&
9310 { ac_try='test -z "$ac_c_werror_flag"
9311 || test ! -s conftest.err'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; } &&
9317 { ac_try='test -s conftest$ac_exeext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_cv_search_opendir="-l$ac_lib"
9324 break
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9330 rm -f conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
9332 done
9334 LIBS=$ac_func_search_save_LIBS
9336 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9337 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9338 if test "$ac_cv_search_opendir" != no; then
9339 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9345 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9346 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9347 if test "${ac_cv_header_stdc+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <stdlib.h>
9357 #include <stdarg.h>
9358 #include <string.h>
9359 #include <float.h>
9362 main ()
9366 return 0;
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371 (eval $ac_compile) 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } &&
9378 { ac_try='test -z "$ac_c_werror_flag"
9379 || test ! -s conftest.err'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 ac_cv_header_stdc=yes
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_cv_header_stdc=no
9398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9400 if test $ac_cv_header_stdc = yes; then
9401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 #include <string.h>
9410 _ACEOF
9411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9412 $EGREP "memchr" >/dev/null 2>&1; then
9414 else
9415 ac_cv_header_stdc=no
9417 rm -f conftest*
9421 if test $ac_cv_header_stdc = yes; then
9422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 #include <stdlib.h>
9431 _ACEOF
9432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9433 $EGREP "free" >/dev/null 2>&1; then
9435 else
9436 ac_cv_header_stdc=no
9438 rm -f conftest*
9442 if test $ac_cv_header_stdc = yes; then
9443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9444 if test "$cross_compiling" = yes; then
9446 else
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h. */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 #include <ctype.h>
9454 #if ((' ' & 0x0FF) == 0x020)
9455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9457 #else
9458 # define ISLOWER(c) \
9459 (('a' <= (c) && (c) <= 'i') \
9460 || ('j' <= (c) && (c) <= 'r') \
9461 || ('s' <= (c) && (c) <= 'z'))
9462 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9463 #endif
9465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9467 main ()
9469 int i;
9470 for (i = 0; i < 256; i++)
9471 if (XOR (islower (i), ISLOWER (i))
9472 || toupper (i) != TOUPPER (i))
9473 exit(2);
9474 exit (0);
9476 _ACEOF
9477 rm -f conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9489 else
9490 echo "$as_me: program exited with status $ac_status" >&5
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ( exit $ac_status )
9495 ac_cv_header_stdc=no
9497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9502 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9503 if test $ac_cv_header_stdc = yes; then
9505 cat >>confdefs.h <<\_ACEOF
9506 #define STDC_HEADERS 1
9507 _ACEOF
9545 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
9547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9549 echo "$as_me:$LINENO: checking for $ac_header" >&5
9550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9556 else
9557 # Is the header compilable?
9558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 $ac_includes_default
9567 #include <$ac_header>
9568 _ACEOF
9569 rm -f conftest.$ac_objext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9571 (eval $ac_compile) 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest.$ac_objext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 ac_header_compiler=yes
9592 else
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ac_header_compiler=no
9598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9600 echo "${ECHO_T}$ac_header_compiler" >&6
9602 # Is the header present?
9603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h. */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 #include <$ac_header>
9612 _ACEOF
9613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } >/dev/null; then
9621 if test -s conftest.err; then
9622 ac_cpp_err=$ac_c_preproc_warn_flag
9623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9624 else
9625 ac_cpp_err=
9627 else
9628 ac_cpp_err=yes
9630 if test -z "$ac_cpp_err"; then
9631 ac_header_preproc=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_preproc=no
9638 rm -f conftest.err conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9640 echo "${ECHO_T}$ac_header_preproc" >&6
9642 # So? What about this header?
9643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9644 yes:no: )
9645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9649 ac_header_preproc=yes
9651 no:yes:* )
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9665 cat <<\_ASBOX
9666 ## ------------------------------ ##
9667 ## Report this to admin@amule.org ##
9668 ## ------------------------------ ##
9669 _ASBOX
9671 sed "s/^/$as_me: WARNING: /" >&2
9673 esac
9674 echo "$as_me:$LINENO: checking for $ac_header" >&5
9675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679 eval "$as_ac_Header=\$ac_header_preproc"
9681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9686 cat >>confdefs.h <<_ACEOF
9687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9688 _ACEOF
9692 done
9694 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9695 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9696 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 #include <sys/types.h>
9706 #include <sys/wait.h>
9707 #ifndef WEXITSTATUS
9708 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9709 #endif
9710 #ifndef WIFEXITED
9711 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9712 #endif
9715 main ()
9717 int s;
9718 wait (&s);
9719 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9721 return 0;
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag"
9734 || test ! -s conftest.err'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest.$ac_objext'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; }; then
9746 ac_cv_header_sys_wait_h=yes
9747 else
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_cv_header_sys_wait_h=no
9753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9756 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9757 if test $ac_cv_header_sys_wait_h = yes; then
9759 cat >>confdefs.h <<\_ACEOF
9760 #define HAVE_SYS_WAIT_H 1
9761 _ACEOF
9766 # Checks for typedefs, structures, and compiler characteristics.
9767 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9768 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9769 if test "${ac_cv_header_stdbool_h+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 #include <stdbool.h>
9780 #ifndef bool
9781 # error bool is not defined
9782 #endif
9783 #ifndef false
9784 # error false is not defined
9785 #endif
9786 #if false
9787 # error false is not 0
9788 #endif
9789 #ifndef true
9790 # error true is not defined
9791 #endif
9792 #if true != 1
9793 # error true is not 1
9794 #endif
9795 #ifndef __bool_true_false_are_defined
9796 # error __bool_true_false_are_defined is not defined
9797 #endif
9799 struct s { _Bool s: 1; _Bool t; } s;
9801 char a[true == 1 ? 1 : -1];
9802 char b[false == 0 ? 1 : -1];
9803 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9804 char d[(bool) -0.5 == true ? 1 : -1];
9805 bool e = &s;
9806 char f[(_Bool) -0.0 == false ? 1 : -1];
9807 char g[true];
9808 char h[sizeof (_Bool)];
9809 char i[sizeof s.t];
9812 main ()
9814 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9816 return 0;
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_header_stdbool_h=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_cv_header_stdbool_h=no
9848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9850 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9851 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9852 echo "$as_me:$LINENO: checking for _Bool" >&5
9853 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9854 if test "${ac_cv_type__Bool+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h. */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 $ac_includes_default
9865 main ()
9867 if ((_Bool *) 0)
9868 return 0;
9869 if (sizeof (_Bool))
9870 return 0;
9872 return 0;
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_type__Bool=yes
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_type__Bool=no
9904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9907 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9908 if test $ac_cv_type__Bool = yes; then
9910 cat >>confdefs.h <<_ACEOF
9911 #define HAVE__BOOL 1
9912 _ACEOF
9917 if test $ac_cv_header_stdbool_h = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_STDBOOL_H 1
9921 _ACEOF
9925 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9927 if test "${ac_cv_c_const+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9938 main ()
9940 /* FIXME: Include the comments suggested by Paul. */
9941 #ifndef __cplusplus
9942 /* Ultrix mips cc rejects this. */
9943 typedef int charset[2];
9944 const charset x;
9945 /* SunOS 4.1.1 cc rejects this. */
9946 char const *const *ccp;
9947 char **p;
9948 /* NEC SVR4.0.2 mips cc rejects this. */
9949 struct point {int x, y;};
9950 static struct point const zero = {0,0};
9951 /* AIX XL C 1.02.0.0 rejects this.
9952 It does not let you subtract one const X* pointer from another in
9953 an arm of an if-expression whose if-part is not a constant
9954 expression */
9955 const char *g = "string";
9956 ccp = &g + (g ? g-g : 0);
9957 /* HPUX 7.0 cc rejects these. */
9958 ++ccp;
9959 p = (char**) ccp;
9960 ccp = (char const *const *) p;
9961 { /* SCO 3.2v4 cc rejects this. */
9962 char *t;
9963 char const *s = 0 ? (char *) 0 : (char const *) 0;
9965 *t++ = 0;
9967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9968 int x[] = {25, 17};
9969 const int *foo = &x[0];
9970 ++foo;
9972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9973 typedef const int *iptr;
9974 iptr p = 0;
9975 ++p;
9977 { /* AIX XL C 1.02.0.0 rejects this saying
9978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9979 struct s { int j; const int *ap[3]; };
9980 struct s *b; b->j = 5;
9982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9983 const int foo = 10;
9985 #endif
9988 return 0;
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9993 (eval $ac_compile) 2>conftest.er1
9994 ac_status=$?
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try='test -z "$ac_c_werror_flag"
10001 || test ! -s conftest.err'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest.$ac_objext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_c_const=yes
10014 else
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 ac_cv_c_const=no
10020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10023 echo "${ECHO_T}$ac_cv_c_const" >&6
10024 if test $ac_cv_c_const = no; then
10026 cat >>confdefs.h <<\_ACEOF
10027 #define const
10028 _ACEOF
10032 echo "$as_me:$LINENO: checking for inline" >&5
10033 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10034 if test "${ac_cv_c_inline+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037 ac_cv_c_inline=no
10038 for ac_kw in inline __inline__ __inline; do
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #ifndef __cplusplus
10046 typedef int foo_t;
10047 static $ac_kw foo_t static_foo () {return 0; }
10048 $ac_kw foo_t foo () {return 0; }
10049 #endif
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest.$ac_objext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_c_inline=$ac_kw; break
10075 else
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10081 done
10084 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10085 echo "${ECHO_T}$ac_cv_c_inline" >&6
10088 case $ac_cv_c_inline in
10089 inline | yes) ;;
10091 case $ac_cv_c_inline in
10092 no) ac_val=;;
10093 *) ac_val=$ac_cv_c_inline;;
10094 esac
10095 cat >>confdefs.h <<_ACEOF
10096 #ifndef __cplusplus
10097 #define inline $ac_val
10098 #endif
10099 _ACEOF
10101 esac
10103 echo "$as_me:$LINENO: checking for mode_t" >&5
10104 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10105 if test "${ac_cv_type_mode_t+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10116 main ()
10118 if ((mode_t *) 0)
10119 return 0;
10120 if (sizeof (mode_t))
10121 return 0;
10123 return 0;
10125 _ACEOF
10126 rm -f conftest.$ac_objext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128 (eval $ac_compile) 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag"
10136 || test ! -s conftest.err'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest.$ac_objext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_type_mode_t=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_type_mode_t=no
10155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10157 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10158 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10159 if test $ac_cv_type_mode_t = yes; then
10161 else
10163 cat >>confdefs.h <<_ACEOF
10164 #define mode_t int
10165 _ACEOF
10169 echo "$as_me:$LINENO: checking for off_t" >&5
10170 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10171 if test "${ac_cv_type_off_t+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 $ac_includes_default
10182 main ()
10184 if ((off_t *) 0)
10185 return 0;
10186 if (sizeof (off_t))
10187 return 0;
10189 return 0;
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_type_off_t=yes
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_type_off_t=no
10221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10224 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10225 if test $ac_cv_type_off_t = yes; then
10227 else
10229 cat >>confdefs.h <<_ACEOF
10230 #define off_t long
10231 _ACEOF
10235 echo "$as_me:$LINENO: checking for size_t" >&5
10236 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10237 if test "${ac_cv_type_size_t+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 $ac_includes_default
10248 main ()
10250 if ((size_t *) 0)
10251 return 0;
10252 if (sizeof (size_t))
10253 return 0;
10255 return 0;
10257 _ACEOF
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -z "$ac_c_werror_flag"
10268 || test ! -s conftest.err'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 ac_cv_type_size_t=yes
10281 else
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 ac_cv_type_size_t=no
10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10289 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10290 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10291 if test $ac_cv_type_size_t = yes; then
10293 else
10295 cat >>confdefs.h <<_ACEOF
10296 #define size_t unsigned
10297 _ACEOF
10301 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10302 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10303 if test "${ac_cv_header_time+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 #include <sys/types.h>
10313 #include <sys/time.h>
10314 #include <time.h>
10317 main ()
10319 if ((struct tm *) 0)
10320 return 0;
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10327 (eval $ac_compile) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_header_time=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_header_time=no
10354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10357 echo "${ECHO_T}$ac_cv_header_time" >&6
10358 if test $ac_cv_header_time = yes; then
10360 cat >>confdefs.h <<\_ACEOF
10361 #define TIME_WITH_SYS_TIME 1
10362 _ACEOF
10366 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10367 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10368 if test "${ac_cv_struct_tm+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 #include <sys/types.h>
10378 #include <time.h>
10381 main ()
10383 struct tm *tp; tp->tm_sec;
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest.$ac_objext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_cv_struct_tm=time.h
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_cv_struct_tm=sys/time.h
10417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10419 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10420 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10421 if test $ac_cv_struct_tm = sys/time.h; then
10423 cat >>confdefs.h <<\_ACEOF
10424 #define TM_IN_SYS_TIME 1
10425 _ACEOF
10429 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10430 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10431 if test "${ac_cv_type_uid_t+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 #include <sys/types.h>
10442 _ACEOF
10443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10444 $EGREP "uid_t" >/dev/null 2>&1; then
10445 ac_cv_type_uid_t=yes
10446 else
10447 ac_cv_type_uid_t=no
10449 rm -f conftest*
10452 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10453 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10454 if test $ac_cv_type_uid_t = no; then
10456 cat >>confdefs.h <<\_ACEOF
10457 #define uid_t int
10458 _ACEOF
10461 cat >>confdefs.h <<\_ACEOF
10462 #define gid_t int
10463 _ACEOF
10467 echo "$as_me:$LINENO: checking for working volatile" >&5
10468 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10469 if test "${ac_cv_c_volatile+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10480 main ()
10483 volatile int x;
10484 int * volatile y;
10486 return 0;
10488 _ACEOF
10489 rm -f conftest.$ac_objext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag"
10499 || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 ac_cv_c_volatile=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_cv_c_volatile=no
10518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10521 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10522 if test $ac_cv_c_volatile = no; then
10524 cat >>confdefs.h <<\_ACEOF
10525 #define volatile
10526 _ACEOF
10530 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10531 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10532 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 $ac_includes_default
10543 main ()
10545 if ((ptrdiff_t *) 0)
10546 return 0;
10547 if (sizeof (ptrdiff_t))
10548 return 0;
10550 return 0;
10552 _ACEOF
10553 rm -f conftest.$ac_objext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555 (eval $ac_compile) 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try='test -z "$ac_c_werror_flag"
10563 || test ! -s conftest.err'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_type_ptrdiff_t=yes
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_type_ptrdiff_t=no
10582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10584 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10585 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10586 if test $ac_cv_type_ptrdiff_t = yes; then
10588 cat >>confdefs.h <<_ACEOF
10589 #define HAVE_PTRDIFF_T 1
10590 _ACEOF
10596 # Checks for library functions.
10597 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10598 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10599 if test "${ac_cv_func_closedir_void+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602 if test "$cross_compiling" = yes; then
10603 ac_cv_func_closedir_void=yes
10604 else
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h. */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 #include <$ac_header_dirent>
10613 #ifndef __cplusplus
10614 int closedir ();
10615 #endif
10618 main ()
10620 exit (closedir (opendir (".")) != 0);
10622 return 0;
10624 _ACEOF
10625 rm -f conftest$ac_exeext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_func_closedir_void=no
10637 else
10638 echo "$as_me: program exited with status $ac_status" >&5
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ( exit $ac_status )
10643 ac_cv_func_closedir_void=yes
10645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10649 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10650 if test $ac_cv_func_closedir_void = yes; then
10652 cat >>confdefs.h <<\_ACEOF
10653 #define CLOSEDIR_VOID 1
10654 _ACEOF
10658 if test $ac_cv_c_compiler_gnu = yes; then
10659 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10660 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10661 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664 ac_pattern="Autoconf.*'x'"
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 #include <sgtty.h>
10672 Autoconf TIOCGETP
10673 _ACEOF
10674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10675 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10676 ac_cv_prog_gcc_traditional=yes
10677 else
10678 ac_cv_prog_gcc_traditional=no
10680 rm -f conftest*
10683 if test $ac_cv_prog_gcc_traditional = no; then
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <termio.h>
10691 Autoconf TCGETA
10692 _ACEOF
10693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10694 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10695 ac_cv_prog_gcc_traditional=yes
10697 rm -f conftest*
10701 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10702 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10703 if test $ac_cv_prog_gcc_traditional = yes; then
10704 CC="$CC -traditional"
10708 echo "$as_me:$LINENO: checking for pid_t" >&5
10709 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10710 if test "${ac_cv_type_pid_t+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 $ac_includes_default
10721 main ()
10723 if ((pid_t *) 0)
10724 return 0;
10725 if (sizeof (pid_t))
10726 return 0;
10728 return 0;
10730 _ACEOF
10731 rm -f conftest.$ac_objext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10733 (eval $ac_compile) 2>conftest.er1
10734 ac_status=$?
10735 grep -v '^ *+' conftest.er1 >conftest.err
10736 rm -f conftest.er1
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } &&
10740 { ac_try='test -z "$ac_c_werror_flag"
10741 || test ! -s conftest.err'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; } &&
10747 { ac_try='test -s conftest.$ac_objext'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_cv_type_pid_t=yes
10754 else
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_cv_type_pid_t=no
10760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10762 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10763 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10764 if test $ac_cv_type_pid_t = yes; then
10766 else
10768 cat >>confdefs.h <<_ACEOF
10769 #define pid_t int
10770 _ACEOF
10776 for ac_header in unistd.h vfork.h
10778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10780 echo "$as_me:$LINENO: checking for $ac_header" >&5
10781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10787 else
10788 # Is the header compilable?
10789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 $ac_includes_default
10798 #include <$ac_header>
10799 _ACEOF
10800 rm -f conftest.$ac_objext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10802 (eval $ac_compile) 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -z "$ac_c_werror_flag"
10810 || test ! -s conftest.err'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_header_compiler=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_header_compiler=no
10829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10831 echo "${ECHO_T}$ac_header_compiler" >&6
10833 # Is the header present?
10834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <$ac_header>
10843 _ACEOF
10844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } >/dev/null; then
10852 if test -s conftest.err; then
10853 ac_cpp_err=$ac_c_preproc_warn_flag
10854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10855 else
10856 ac_cpp_err=
10858 else
10859 ac_cpp_err=yes
10861 if test -z "$ac_cpp_err"; then
10862 ac_header_preproc=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_header_preproc=no
10869 rm -f conftest.err conftest.$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 yes:no: )
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10882 no:yes:* )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10896 cat <<\_ASBOX
10897 ## ------------------------------ ##
10898 ## Report this to admin@amule.org ##
10899 ## ------------------------------ ##
10900 _ASBOX
10902 sed "s/^/$as_me: WARNING: /" >&2
10904 esac
10905 echo "$as_me:$LINENO: checking for $ac_header" >&5
10906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 eval "$as_ac_Header=\$ac_header_preproc"
10912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10919 _ACEOF
10923 done
10927 for ac_func in fork vfork
10929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930 echo "$as_me:$LINENO: checking for $ac_func" >&5
10931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10932 if eval "test \"\${$as_ac_var+set}\" = set"; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h. */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10943 #define $ac_func innocuous_$ac_func
10945 /* System header to define __stub macros and hopefully few prototypes,
10946 which can conflict with char $ac_func (); below.
10947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10948 <limits.h> exists even on freestanding compilers. */
10950 #ifdef __STDC__
10951 # include <limits.h>
10952 #else
10953 # include <assert.h>
10954 #endif
10956 #undef $ac_func
10958 /* Override any gcc2 internal prototype to avoid an error. */
10959 #ifdef __cplusplus
10960 extern "C"
10962 #endif
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10965 char $ac_func ();
10966 /* The GNU C library defines this for functions which it implements
10967 to always fail with ENOSYS. Some functions are actually named
10968 something starting with __ and the normal name is an alias. */
10969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10970 choke me
10971 #else
10972 char (*f) () = $ac_func;
10973 #endif
10974 #ifdef __cplusplus
10976 #endif
10979 main ()
10981 return f != $ac_func;
10983 return 0;
10985 _ACEOF
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10988 (eval $ac_link) 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag"
10996 || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 eval "$as_ac_var=yes"
11009 else
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 eval "$as_ac_var=no"
11015 rm -f conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11020 if test `eval echo '${'$as_ac_var'}'` = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11023 _ACEOF
11026 done
11028 if test "x$ac_cv_func_fork" = xyes; then
11029 echo "$as_me:$LINENO: checking for working fork" >&5
11030 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11031 if test "${ac_cv_func_fork_works+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 if test "$cross_compiling" = yes; then
11035 ac_cv_func_fork_works=cross
11036 else
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* By Ruediger Kuhlmann. */
11039 #include <sys/types.h>
11040 #if HAVE_UNISTD_H
11041 # include <unistd.h>
11042 #endif
11043 /* Some systems only have a dummy stub for fork() */
11044 int main ()
11046 if (fork() < 0)
11047 exit (1);
11048 exit (0);
11050 _ACEOF
11051 rm -f conftest$ac_exeext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11053 (eval $ac_link) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_func_fork_works=yes
11063 else
11064 echo "$as_me: program exited with status $ac_status" >&5
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ( exit $ac_status )
11069 ac_cv_func_fork_works=no
11071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11074 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11075 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11077 else
11078 ac_cv_func_fork_works=$ac_cv_func_fork
11080 if test "x$ac_cv_func_fork_works" = xcross; then
11081 case $host in
11082 *-*-amigaos* | *-*-msdosdjgpp*)
11083 # Override, as these systems have only a dummy fork() stub
11084 ac_cv_func_fork_works=no
11087 ac_cv_func_fork_works=yes
11089 esac
11090 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11091 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11093 ac_cv_func_vfork_works=$ac_cv_func_vfork
11094 if test "x$ac_cv_func_vfork" = xyes; then
11095 echo "$as_me:$LINENO: checking for working vfork" >&5
11096 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11097 if test "${ac_cv_func_vfork_works+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 if test "$cross_compiling" = yes; then
11101 ac_cv_func_vfork_works=cross
11102 else
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Thanks to Paul Eggert for this test. */
11110 #include <stdio.h>
11111 #include <stdlib.h>
11112 #include <sys/types.h>
11113 #include <sys/stat.h>
11114 #include <sys/wait.h>
11115 #if HAVE_UNISTD_H
11116 # include <unistd.h>
11117 #endif
11118 #if HAVE_VFORK_H
11119 # include <vfork.h>
11120 #endif
11121 /* On some sparc systems, changes by the child to local and incoming
11122 argument registers are propagated back to the parent. The compiler
11123 is told about this with #include <vfork.h>, but some compilers
11124 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11125 static variable whose address is put into a register that is
11126 clobbered by the vfork. */
11127 static void
11128 #ifdef __cplusplus
11129 sparc_address_test (int arg)
11130 # else
11131 sparc_address_test (arg) int arg;
11132 #endif
11134 static pid_t child;
11135 if (!child) {
11136 child = vfork ();
11137 if (child < 0) {
11138 perror ("vfork");
11139 _exit(2);
11141 if (!child) {
11142 arg = getpid();
11143 write(-1, "", 0);
11144 _exit (arg);
11150 main ()
11152 pid_t parent = getpid ();
11153 pid_t child;
11155 sparc_address_test (0);
11157 child = vfork ();
11159 if (child == 0) {
11160 /* Here is another test for sparc vfork register problems. This
11161 test uses lots of local variables, at least as many local
11162 variables as main has allocated so far including compiler
11163 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11164 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11165 reuse the register of parent for one of the local variables,
11166 since it will think that parent can't possibly be used any more
11167 in this routine. Assigning to the local variable will thus
11168 munge parent in the parent process. */
11169 pid_t
11170 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11171 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11172 /* Convince the compiler that p..p7 are live; otherwise, it might
11173 use the same hardware register for all 8 local variables. */
11174 if (p != p1 || p != p2 || p != p3 || p != p4
11175 || p != p5 || p != p6 || p != p7)
11176 _exit(1);
11178 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11179 from child file descriptors. If the child closes a descriptor
11180 before it execs or exits, this munges the parent's descriptor
11181 as well. Test for this by closing stdout in the child. */
11182 _exit(close(fileno(stdout)) != 0);
11183 } else {
11184 int status;
11185 struct stat st;
11187 while (wait(&status) != child)
11189 exit(
11190 /* Was there some problem with vforking? */
11191 child < 0
11193 /* Did the child fail? (This shouldn't happen.) */
11194 || status
11196 /* Did the vfork/compiler bug occur? */
11197 || parent != getpid()
11199 /* Did the file descriptor bug occur? */
11200 || fstat(fileno(stdout), &st) != 0
11204 _ACEOF
11205 rm -f conftest$ac_exeext
11206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11207 (eval $ac_link) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 ac_cv_func_vfork_works=yes
11217 else
11218 echo "$as_me: program exited with status $ac_status" >&5
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11222 ( exit $ac_status )
11223 ac_cv_func_vfork_works=no
11225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11229 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11232 if test "x$ac_cv_func_fork_works" = xcross; then
11233 ac_cv_func_vfork_works=$ac_cv_func_vfork
11234 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11235 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11238 if test "x$ac_cv_func_vfork_works" = xyes; then
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_WORKING_VFORK 1
11242 _ACEOF
11244 else
11246 cat >>confdefs.h <<\_ACEOF
11247 #define vfork fork
11248 _ACEOF
11251 if test "x$ac_cv_func_fork_works" = xyes; then
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_WORKING_FORK 1
11255 _ACEOF
11259 if test x$SYS != xwin32; then
11261 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11262 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11263 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11264 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 ac_check_lib_save_LIBS=$LIBS
11268 LIBS="-lsun $LIBS"
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11276 /* Override any gcc2 internal prototype to avoid an error. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 /* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11282 char getmntent ();
11284 main ()
11286 getmntent ();
11288 return 0;
11290 _ACEOF
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_sun_getmntent=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_cv_lib_sun_getmntent=no
11320 rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11324 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11325 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11326 if test $ac_cv_lib_sun_getmntent = yes; then
11327 LIBS="-lsun $LIBS"
11328 else
11329 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11330 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11331 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-lseq $LIBS"
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11343 /* Override any gcc2 internal prototype to avoid an error. */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 /* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11349 char getmntent ();
11351 main ()
11353 getmntent ();
11355 return 0;
11357 _ACEOF
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -z "$ac_c_werror_flag"
11368 || test ! -s conftest.err'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_lib_seq_getmntent=yes
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_cv_lib_seq_getmntent=no
11387 rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11392 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11393 if test $ac_cv_lib_seq_getmntent = yes; then
11394 LIBS="-lseq $LIBS"
11395 else
11396 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11397 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11398 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-lgen $LIBS"
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11410 /* Override any gcc2 internal prototype to avoid an error. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 /* We use char because int might match the return type of a gcc2
11415 builtin and then its argument prototype would still apply. */
11416 char getmntent ();
11418 main ()
11420 getmntent ();
11422 return 0;
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_c_werror_flag"
11435 || test ! -s conftest.err'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 ac_cv_lib_gen_getmntent=yes
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_cv_lib_gen_getmntent=no
11454 rm -f conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11458 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11459 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11460 if test $ac_cv_lib_gen_getmntent = yes; then
11461 LIBS="-lgen $LIBS"
11469 for ac_func in getmntent
11471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11472 echo "$as_me:$LINENO: checking for $ac_func" >&5
11473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11474 if eval "test \"\${$as_ac_var+set}\" = set"; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11485 #define $ac_func innocuous_$ac_func
11487 /* System header to define __stub macros and hopefully few prototypes,
11488 which can conflict with char $ac_func (); below.
11489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11490 <limits.h> exists even on freestanding compilers. */
11492 #ifdef __STDC__
11493 # include <limits.h>
11494 #else
11495 # include <assert.h>
11496 #endif
11498 #undef $ac_func
11500 /* Override any gcc2 internal prototype to avoid an error. */
11501 #ifdef __cplusplus
11502 extern "C"
11504 #endif
11505 /* We use char because int might match the return type of a gcc2
11506 builtin and then its argument prototype would still apply. */
11507 char $ac_func ();
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11512 choke me
11513 #else
11514 char (*f) () = $ac_func;
11515 #endif
11516 #ifdef __cplusplus
11518 #endif
11521 main ()
11523 return f != $ac_func;
11525 return 0;
11527 _ACEOF
11528 rm -f conftest.$ac_objext conftest$ac_exeext
11529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11530 (eval $ac_link) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_c_werror_flag"
11538 || test ! -s conftest.err'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest$ac_exeext'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11550 eval "$as_ac_var=yes"
11551 else
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 eval "$as_ac_var=no"
11557 rm -f conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 _ACEOF
11568 done
11571 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11572 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11573 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 rm -f conftest.sym conftest.file
11577 echo >conftest.file
11578 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11579 if test "$cross_compiling" = yes; then
11580 ac_cv_func_lstat_dereferences_slashed_symlink=no
11581 else
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 $ac_includes_default
11590 main ()
11592 struct stat sbuf;
11593 /* Linux will dereference the symlink and fail.
11594 That is better in the sense that it means we will not
11595 have to compile and use the lstat wrapper. */
11596 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11598 return 0;
11600 _ACEOF
11601 rm -f conftest$ac_exeext
11602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11603 (eval $ac_link) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11613 else
11614 echo "$as_me: program exited with status $ac_status" >&5
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 ( exit $ac_status )
11619 ac_cv_func_lstat_dereferences_slashed_symlink=no
11621 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11623 else
11624 # If the `ln -s' command failed, then we probably don't even
11625 # have an lstat function.
11626 ac_cv_func_lstat_dereferences_slashed_symlink=no
11628 rm -f conftest.sym conftest.file
11631 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11632 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11634 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11636 cat >>confdefs.h <<_ACEOF
11637 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11638 _ACEOF
11641 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11642 case $LIBOBJS in
11643 "lstat.$ac_objext" | \
11644 *" lstat.$ac_objext" | \
11645 "lstat.$ac_objext "* | \
11646 *" lstat.$ac_objext "* ) ;;
11647 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11648 esac
11652 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11653 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11654 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 if test "$cross_compiling" = yes; then
11658 ac_cv_func_lstat_empty_string_bug=yes
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 $ac_includes_default
11668 main ()
11670 struct stat sbuf;
11671 exit (lstat ("", &sbuf) ? 1 : 0);
11673 return 0;
11675 _ACEOF
11676 rm -f conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_func_lstat_empty_string_bug=yes
11688 else
11689 echo "$as_me: program exited with status $ac_status" >&5
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ( exit $ac_status )
11694 ac_cv_func_lstat_empty_string_bug=no
11696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11699 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11700 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11701 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11702 case $LIBOBJS in
11703 "lstat.$ac_objext" | \
11704 *" lstat.$ac_objext" | \
11705 "lstat.$ac_objext "* | \
11706 *" lstat.$ac_objext "* ) ;;
11707 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11708 esac
11711 cat >>confdefs.h <<_ACEOF
11712 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11713 _ACEOF
11717 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11718 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11719 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722 rm -f conftest.sym conftest.file
11723 echo >conftest.file
11724 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11725 if test "$cross_compiling" = yes; then
11726 ac_cv_func_lstat_dereferences_slashed_symlink=no
11727 else
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 $ac_includes_default
11736 main ()
11738 struct stat sbuf;
11739 /* Linux will dereference the symlink and fail.
11740 That is better in the sense that it means we will not
11741 have to compile and use the lstat wrapper. */
11742 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11744 return 0;
11746 _ACEOF
11747 rm -f conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11759 else
11760 echo "$as_me: program exited with status $ac_status" >&5
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 ( exit $ac_status )
11765 ac_cv_func_lstat_dereferences_slashed_symlink=no
11767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11769 else
11770 # If the `ln -s' command failed, then we probably don't even
11771 # have an lstat function.
11772 ac_cv_func_lstat_dereferences_slashed_symlink=no
11774 rm -f conftest.sym conftest.file
11777 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11778 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11780 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11782 cat >>confdefs.h <<_ACEOF
11783 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11784 _ACEOF
11787 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11788 case $LIBOBJS in
11789 "lstat.$ac_objext" | \
11790 *" lstat.$ac_objext" | \
11791 "lstat.$ac_objext "* | \
11792 *" lstat.$ac_objext "* ) ;;
11793 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11794 esac
11801 echo "$as_me:$LINENO: checking for working memcmp" >&5
11802 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11803 if test "${ac_cv_func_memcmp_working+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806 if test "$cross_compiling" = yes; then
11807 ac_cv_func_memcmp_working=no
11808 else
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11817 main ()
11820 /* Some versions of memcmp are not 8-bit clean. */
11821 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11822 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11823 exit (1);
11825 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11826 or more and with at least one buffer not starting on a 4-byte boundary.
11827 William Lewis provided this test program. */
11829 char foo[21];
11830 char bar[21];
11831 int i;
11832 for (i = 0; i < 4; i++)
11834 char *a = foo + i;
11835 char *b = bar + i;
11836 strcpy (a, "--------01111111");
11837 strcpy (b, "--------10000000");
11838 if (memcmp (a, b, 16) >= 0)
11839 exit (1);
11841 exit (0);
11845 return 0;
11847 _ACEOF
11848 rm -f conftest$ac_exeext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850 (eval $ac_link) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_func_memcmp_working=yes
11860 else
11861 echo "$as_me: program exited with status $ac_status" >&5
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ( exit $ac_status )
11866 ac_cv_func_memcmp_working=no
11868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11871 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11872 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11873 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
11874 "memcmp.$ac_objext" | \
11875 *" memcmp.$ac_objext" | \
11876 "memcmp.$ac_objext "* | \
11877 *" memcmp.$ac_objext "* ) ;;
11878 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
11879 esac
11884 for ac_header in sys/select.h sys/socket.h
11886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11888 echo "$as_me:$LINENO: checking for $ac_header" >&5
11889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11895 else
11896 # Is the header compilable?
11897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11899 cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h. */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 $ac_includes_default
11906 #include <$ac_header>
11907 _ACEOF
11908 rm -f conftest.$ac_objext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910 (eval $ac_compile) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_header_compiler=yes
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_header_compiler=no
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11939 echo "${ECHO_T}$ac_header_compiler" >&6
11941 # Is the header present?
11942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <$ac_header>
11951 _ACEOF
11952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } >/dev/null; then
11960 if test -s conftest.err; then
11961 ac_cpp_err=$ac_c_preproc_warn_flag
11962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11963 else
11964 ac_cpp_err=
11966 else
11967 ac_cpp_err=yes
11969 if test -z "$ac_cpp_err"; then
11970 ac_header_preproc=yes
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_header_preproc=no
11977 rm -f conftest.err conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11979 echo "${ECHO_T}$ac_header_preproc" >&6
11981 # So? What about this header?
11982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11983 yes:no: )
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11988 ac_header_preproc=yes
11990 no:yes:* )
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12004 cat <<\_ASBOX
12005 ## ------------------------------ ##
12006 ## Report this to admin@amule.org ##
12007 ## ------------------------------ ##
12008 _ASBOX
12010 sed "s/^/$as_me: WARNING: /" >&2
12012 esac
12013 echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018 eval "$as_ac_Header=\$ac_header_preproc"
12020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 _ACEOF
12031 done
12033 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12034 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12035 if test "${ac_cv_func_select_args+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12039 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12040 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #if HAVE_SYS_SELECT_H
12049 # include <sys/select.h>
12050 #endif
12051 #if HAVE_SYS_SOCKET_H
12052 # include <sys/socket.h>
12053 #endif
12056 main ()
12058 extern int select ($ac_arg1,
12059 $ac_arg234, $ac_arg234, $ac_arg234,
12060 $ac_arg5);
12062 return 0;
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -z "$ac_c_werror_flag"
12075 || test ! -s conftest.err'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12094 done
12095 done
12096 done
12097 # Provide a safe default value.
12098 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12101 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12102 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12103 ac_save_IFS=$IFS; IFS=','
12104 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12105 IFS=$ac_save_IFS
12106 shift
12108 cat >>confdefs.h <<_ACEOF
12109 #define SELECT_TYPE_ARG1 $1
12110 _ACEOF
12113 cat >>confdefs.h <<_ACEOF
12114 #define SELECT_TYPE_ARG234 ($2)
12115 _ACEOF
12118 cat >>confdefs.h <<_ACEOF
12119 #define SELECT_TYPE_ARG5 ($3)
12120 _ACEOF
12122 rm -f conftest*
12124 echo "$as_me:$LINENO: checking for function prototypes" >&5
12125 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12126 if test "$ac_cv_prog_cc_stdc" != no; then
12127 echo "$as_me:$LINENO: result: yes" >&5
12128 echo "${ECHO_T}yes" >&6
12130 cat >>confdefs.h <<\_ACEOF
12131 #define PROTOTYPES 1
12132 _ACEOF
12135 cat >>confdefs.h <<\_ACEOF
12136 #define __PROTOTYPES 1
12137 _ACEOF
12139 else
12140 echo "$as_me:$LINENO: result: no" >&5
12141 echo "${ECHO_T}no" >&6
12144 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12145 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12146 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 ac_cv_func_setvbuf_reversed=no
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 #include <stdio.h>
12157 # if PROTOTYPES
12158 int (setvbuf) (FILE *, int, char *, size_t);
12159 # endif
12161 main ()
12163 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170 (eval $ac_link) 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag"
12178 || test ! -s conftest.err'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest$ac_exeext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <stdio.h>
12197 # if PROTOTYPES
12198 int (setvbuf) (FILE *, int, char *, size_t);
12199 # endif
12201 main ()
12203 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12205 return 0;
12207 _ACEOF
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12210 (eval $ac_link) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -z "$ac_c_werror_flag"
12218 || test ! -s conftest.err'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 # It compiles and links either way, so it must not be declared
12231 # with a prototype and most likely this is a K&R C compiler.
12232 # Try running it.
12233 if test "$cross_compiling" = yes; then
12234 : # Assume setvbuf is not reversed when cross-compiling.
12235 else
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <stdio.h>
12244 main ()
12246 /* This call has the arguments reversed.
12247 A reversed system may check and see that the address of buf
12248 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12249 char buf;
12250 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12251 exit (1);
12252 putchar ('\r');
12253 exit (0); /* Non-reversed systems SEGV here. */
12255 return 0;
12257 _ACEOF
12258 rm -f conftest$ac_exeext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_func_setvbuf_reversed=yes
12270 else
12271 echo "$as_me: program exited with status $ac_status" >&5
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ( exit $ac_status )
12276 rm -f core *.core
12278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12280 ac_cv_func_setvbuf_reversed=yes
12281 else
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12286 rm -f conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 else
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12293 rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12296 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12297 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12298 if test $ac_cv_func_setvbuf_reversed = yes; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define SETVBUF_REVERSED 1
12302 _ACEOF
12306 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12307 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12308 if test "${ac_cv_type_signal+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12318 #include <signal.h>
12319 #ifdef signal
12320 # undef signal
12321 #endif
12322 #ifdef __cplusplus
12323 extern "C" void (*signal (int, void (*)(int)))(int);
12324 #else
12325 void (*signal ()) ();
12326 #endif
12329 main ()
12331 int i;
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest.$ac_objext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_type_signal=void
12359 else
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_type_signal=int
12365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12367 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12368 echo "${ECHO_T}$ac_cv_type_signal" >&6
12370 cat >>confdefs.h <<_ACEOF
12371 #define RETSIGTYPE $ac_cv_type_signal
12372 _ACEOF
12375 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12376 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12377 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 if test "$cross_compiling" = yes; then
12381 ac_cv_func_stat_empty_string_bug=yes
12382 else
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h. */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12389 $ac_includes_default
12391 main ()
12393 struct stat sbuf;
12394 exit (stat ("", &sbuf) ? 1 : 0);
12396 return 0;
12398 _ACEOF
12399 rm -f conftest$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_func_stat_empty_string_bug=yes
12411 else
12412 echo "$as_me: program exited with status $ac_status" >&5
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ( exit $ac_status )
12417 ac_cv_func_stat_empty_string_bug=no
12419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12423 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12424 if test $ac_cv_func_stat_empty_string_bug = yes; then
12425 case $LIBOBJS in
12426 "stat.$ac_objext" | \
12427 *" stat.$ac_objext" | \
12428 "stat.$ac_objext "* | \
12429 *" stat.$ac_objext "* ) ;;
12430 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12431 esac
12434 cat >>confdefs.h <<_ACEOF
12435 #define HAVE_STAT_EMPTY_STRING_BUG 1
12436 _ACEOF
12441 for ac_func in strftime
12443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12444 echo "$as_me:$LINENO: checking for $ac_func" >&5
12445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12446 if eval "test \"\${$as_ac_var+set}\" = set"; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12457 #define $ac_func innocuous_$ac_func
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char $ac_func (); below.
12461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462 <limits.h> exists even on freestanding compilers. */
12464 #ifdef __STDC__
12465 # include <limits.h>
12466 #else
12467 # include <assert.h>
12468 #endif
12470 #undef $ac_func
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 #ifdef __cplusplus
12474 extern "C"
12476 #endif
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char $ac_func ();
12480 /* The GNU C library defines this for functions which it implements
12481 to always fail with ENOSYS. Some functions are actually named
12482 something starting with __ and the normal name is an alias. */
12483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12484 choke me
12485 #else
12486 char (*f) () = $ac_func;
12487 #endif
12488 #ifdef __cplusplus
12490 #endif
12493 main ()
12495 return f != $ac_func;
12497 return 0;
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest$ac_exeext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 eval "$as_ac_var=yes"
12523 else
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 eval "$as_ac_var=no"
12529 rm -f conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12534 if test `eval echo '${'$as_ac_var'}'` = yes; then
12535 cat >>confdefs.h <<_ACEOF
12536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12537 _ACEOF
12539 else
12540 # strftime is in -lintl on SCO UNIX.
12541 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12542 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12543 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lintl $LIBS"
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12555 /* Override any gcc2 internal prototype to avoid an error. */
12556 #ifdef __cplusplus
12557 extern "C"
12558 #endif
12559 /* We use char because int might match the return type of a gcc2
12560 builtin and then its argument prototype would still apply. */
12561 char strftime ();
12563 main ()
12565 strftime ();
12567 return 0;
12569 _ACEOF
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12572 (eval $ac_link) 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -z "$ac_c_werror_flag"
12580 || test ! -s conftest.err'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; } &&
12586 { ac_try='test -s conftest$ac_exeext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 ac_cv_lib_intl_strftime=yes
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ac_cv_lib_intl_strftime=no
12599 rm -f conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601 LIBS=$ac_check_lib_save_LIBS
12603 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12604 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12605 if test $ac_cv_lib_intl_strftime = yes; then
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_STRFTIME 1
12608 _ACEOF
12610 LIBS="-lintl $LIBS"
12614 done
12616 echo "$as_me:$LINENO: checking for working strtod" >&5
12617 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12618 if test "${ac_cv_func_strtod+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621 if test "$cross_compiling" = yes; then
12622 ac_cv_func_strtod=no
12623 else
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12631 double strtod ();
12633 main()
12636 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12637 char *string = " +69";
12638 char *term;
12639 double value;
12640 value = strtod (string, &term);
12641 if (value != 69 || term != (string + 4))
12642 exit (1);
12646 /* Under Solaris 2.4, strtod returns the wrong value for the
12647 terminating character under some conditions. */
12648 char *string = "NaN";
12649 char *term;
12650 strtod (string, &term);
12651 if (term != string && *(term - 1) == 0)
12652 exit (1);
12654 exit (0);
12657 _ACEOF
12658 rm -f conftest$ac_exeext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660 (eval $ac_link) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_func_strtod=yes
12670 else
12671 echo "$as_me: program exited with status $ac_status" >&5
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12675 ( exit $ac_status )
12676 ac_cv_func_strtod=no
12678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12681 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12682 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12683 if test $ac_cv_func_strtod = no; then
12684 case $LIBOBJS in
12685 "strtod.$ac_objext" | \
12686 *" strtod.$ac_objext" | \
12687 "strtod.$ac_objext "* | \
12688 *" strtod.$ac_objext "* ) ;;
12689 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
12690 esac
12692 echo "$as_me:$LINENO: checking for pow" >&5
12693 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12694 if test "${ac_cv_func_pow+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h. */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12705 #define pow innocuous_pow
12707 /* System header to define __stub macros and hopefully few prototypes,
12708 which can conflict with char pow (); below.
12709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12710 <limits.h> exists even on freestanding compilers. */
12712 #ifdef __STDC__
12713 # include <limits.h>
12714 #else
12715 # include <assert.h>
12716 #endif
12718 #undef pow
12720 /* Override any gcc2 internal prototype to avoid an error. */
12721 #ifdef __cplusplus
12722 extern "C"
12724 #endif
12725 /* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12727 char pow ();
12728 /* The GNU C library defines this for functions which it implements
12729 to always fail with ENOSYS. Some functions are actually named
12730 something starting with __ and the normal name is an alias. */
12731 #if defined (__stub_pow) || defined (__stub___pow)
12732 choke me
12733 #else
12734 char (*f) () = pow;
12735 #endif
12736 #ifdef __cplusplus
12738 #endif
12741 main ()
12743 return f != pow;
12745 return 0;
12747 _ACEOF
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_c_werror_flag"
12758 || test ! -s conftest.err'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; } &&
12764 { ac_try='test -s conftest$ac_exeext'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_func_pow=yes
12771 else
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ac_cv_func_pow=no
12777 rm -f conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12780 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12781 echo "${ECHO_T}$ac_cv_func_pow" >&6
12783 if test $ac_cv_func_pow = no; then
12784 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12785 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12786 if test "${ac_cv_lib_m_pow+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789 ac_check_lib_save_LIBS=$LIBS
12790 LIBS="-lm $LIBS"
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h. */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12798 /* Override any gcc2 internal prototype to avoid an error. */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 /* We use char because int might match the return type of a gcc2
12803 builtin and then its argument prototype would still apply. */
12804 char pow ();
12806 main ()
12808 pow ();
12810 return 0;
12812 _ACEOF
12813 rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12815 (eval $ac_link) 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -z "$ac_c_werror_flag"
12823 || test ! -s conftest.err'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } &&
12829 { ac_try='test -s conftest$ac_exeext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_cv_lib_m_pow=yes
12836 else
12837 echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12840 ac_cv_lib_m_pow=no
12842 rm -f conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 LIBS=$ac_check_lib_save_LIBS
12846 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12847 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
12848 if test $ac_cv_lib_m_pow = yes; then
12849 POW_LIB=-lm
12850 else
12851 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12852 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12860 for ac_func in vprintf
12862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12863 echo "$as_me:$LINENO: checking for $ac_func" >&5
12864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12865 if eval "test \"\${$as_ac_var+set}\" = set"; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12876 #define $ac_func innocuous_$ac_func
12878 /* System header to define __stub macros and hopefully few prototypes,
12879 which can conflict with char $ac_func (); below.
12880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12881 <limits.h> exists even on freestanding compilers. */
12883 #ifdef __STDC__
12884 # include <limits.h>
12885 #else
12886 # include <assert.h>
12887 #endif
12889 #undef $ac_func
12891 /* Override any gcc2 internal prototype to avoid an error. */
12892 #ifdef __cplusplus
12893 extern "C"
12895 #endif
12896 /* We use char because int might match the return type of a gcc2
12897 builtin and then its argument prototype would still apply. */
12898 char $ac_func ();
12899 /* The GNU C library defines this for functions which it implements
12900 to always fail with ENOSYS. Some functions are actually named
12901 something starting with __ and the normal name is an alias. */
12902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12903 choke me
12904 #else
12905 char (*f) () = $ac_func;
12906 #endif
12907 #ifdef __cplusplus
12909 #endif
12912 main ()
12914 return f != $ac_func;
12916 return 0;
12918 _ACEOF
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12921 (eval $ac_link) 2>conftest.er1
12922 ac_status=$?
12923 grep -v '^ *+' conftest.er1 >conftest.err
12924 rm -f conftest.er1
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } &&
12928 { ac_try='test -z "$ac_c_werror_flag"
12929 || test ! -s conftest.err'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest$ac_exeext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 eval "$as_ac_var=yes"
12942 else
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 eval "$as_ac_var=no"
12948 rm -f conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12953 if test `eval echo '${'$as_ac_var'}'` = yes; then
12954 cat >>confdefs.h <<_ACEOF
12955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12956 _ACEOF
12958 echo "$as_me:$LINENO: checking for _doprnt" >&5
12959 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
12960 if test "${ac_cv_func__doprnt+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12971 #define _doprnt innocuous__doprnt
12973 /* System header to define __stub macros and hopefully few prototypes,
12974 which can conflict with char _doprnt (); below.
12975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12976 <limits.h> exists even on freestanding compilers. */
12978 #ifdef __STDC__
12979 # include <limits.h>
12980 #else
12981 # include <assert.h>
12982 #endif
12984 #undef _doprnt
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 #ifdef __cplusplus
12988 extern "C"
12990 #endif
12991 /* We use char because int might match the return type of a gcc2
12992 builtin and then its argument prototype would still apply. */
12993 char _doprnt ();
12994 /* The GNU C library defines this for functions which it implements
12995 to always fail with ENOSYS. Some functions are actually named
12996 something starting with __ and the normal name is an alias. */
12997 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12998 choke me
12999 #else
13000 char (*f) () = _doprnt;
13001 #endif
13002 #ifdef __cplusplus
13004 #endif
13007 main ()
13009 return f != _doprnt;
13011 return 0;
13013 _ACEOF
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>conftest.er1
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -z "$ac_c_werror_flag"
13024 || test ! -s conftest.err'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest$ac_exeext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_func__doprnt=yes
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_cv_func__doprnt=no
13043 rm -f conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13047 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13048 if test $ac_cv_func__doprnt = yes; then
13050 cat >>confdefs.h <<\_ACEOF
13051 #define HAVE_DOPRNT 1
13052 _ACEOF
13057 done
13060 if test $cross_compiling = yes -a $gnumalloc = yes; then
13062 { echo "$as_me:$LINENO: WARNING:
13063 configure cannot check whether malloc() and realloc() are GNU libc
13064 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13065 run configure with the --without-gnu-malloc switch." >&5
13066 echo "$as_me: WARNING:
13067 configure cannot check whether malloc() and realloc() are GNU libc
13068 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13069 run configure with the --without-gnu-malloc switch." >&2;}
13070 _mule_warning_8=yes
13071 _mule_has_warnings=yes
13073 ac_cv_func_malloc_0_nonnull=yes
13074 ac_cv_func_realloc_0_nonnull=yes
13079 for ac_header in stdlib.h
13081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13083 echo "$as_me:$LINENO: checking for $ac_header" >&5
13084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13090 else
13091 # Is the header compilable?
13092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h. */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 $ac_includes_default
13101 #include <$ac_header>
13102 _ACEOF
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105 (eval $ac_compile) 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -z "$ac_c_werror_flag"
13113 || test ! -s conftest.err'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest.$ac_objext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_header_compiler=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13130 ac_header_compiler=no
13132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13134 echo "${ECHO_T}$ac_header_compiler" >&6
13136 # Is the header present?
13137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h. */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13145 #include <$ac_header>
13146 _ACEOF
13147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } >/dev/null; then
13155 if test -s conftest.err; then
13156 ac_cpp_err=$ac_c_preproc_warn_flag
13157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13158 else
13159 ac_cpp_err=
13161 else
13162 ac_cpp_err=yes
13164 if test -z "$ac_cpp_err"; then
13165 ac_header_preproc=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_header_preproc=no
13172 rm -f conftest.err conftest.$ac_ext
13173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13174 echo "${ECHO_T}$ac_header_preproc" >&6
13176 # So? What about this header?
13177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13178 yes:no: )
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13183 ac_header_preproc=yes
13185 no:yes:* )
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13199 cat <<\_ASBOX
13200 ## ------------------------------ ##
13201 ## Report this to admin@amule.org ##
13202 ## ------------------------------ ##
13203 _ASBOX
13205 sed "s/^/$as_me: WARNING: /" >&2
13207 esac
13208 echo "$as_me:$LINENO: checking for $ac_header" >&5
13209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 eval "$as_ac_Header=\$ac_header_preproc"
13215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13220 cat >>confdefs.h <<_ACEOF
13221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13222 _ACEOF
13226 done
13228 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13229 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13230 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233 if test "$cross_compiling" = yes; then
13234 ac_cv_func_malloc_0_nonnull=no
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 #if STDC_HEADERS || HAVE_STDLIB_H
13243 # include <stdlib.h>
13244 #else
13245 char *malloc ();
13246 #endif
13249 main ()
13251 exit (malloc (0) ? 0 : 1);
13253 return 0;
13255 _ACEOF
13256 rm -f conftest$ac_exeext
13257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13258 (eval $ac_link) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_func_malloc_0_nonnull=yes
13268 else
13269 echo "$as_me: program exited with status $ac_status" >&5
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 ( exit $ac_status )
13274 ac_cv_func_malloc_0_nonnull=no
13276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13280 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13281 if test $ac_cv_func_malloc_0_nonnull = yes; then
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_MALLOC 1
13285 _ACEOF
13287 else
13288 cat >>confdefs.h <<\_ACEOF
13289 #define HAVE_MALLOC 0
13290 _ACEOF
13292 case $LIBOBJS in
13293 "malloc.$ac_objext" | \
13294 *" malloc.$ac_objext" | \
13295 "malloc.$ac_objext "* | \
13296 *" malloc.$ac_objext "* ) ;;
13297 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13298 esac
13301 cat >>confdefs.h <<\_ACEOF
13302 #define malloc rpl_malloc
13303 _ACEOF
13310 for ac_header in stdlib.h
13312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13314 echo "$as_me:$LINENO: checking for $ac_header" >&5
13315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13321 else
13322 # Is the header compilable?
13323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13331 $ac_includes_default
13332 #include <$ac_header>
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_c_werror_flag"
13344 || test ! -s conftest.err'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest.$ac_objext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_header_compiler=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_header_compiler=no
13363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13365 echo "${ECHO_T}$ac_header_compiler" >&6
13367 # Is the header present?
13368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 #include <$ac_header>
13377 _ACEOF
13378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } >/dev/null; then
13386 if test -s conftest.err; then
13387 ac_cpp_err=$ac_c_preproc_warn_flag
13388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13389 else
13390 ac_cpp_err=
13392 else
13393 ac_cpp_err=yes
13395 if test -z "$ac_cpp_err"; then
13396 ac_header_preproc=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_header_preproc=no
13403 rm -f conftest.err conftest.$ac_ext
13404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405 echo "${ECHO_T}$ac_header_preproc" >&6
13407 # So? What about this header?
13408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13409 yes:no: )
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13414 ac_header_preproc=yes
13416 no:yes:* )
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13430 cat <<\_ASBOX
13431 ## ------------------------------ ##
13432 ## Report this to admin@amule.org ##
13433 ## ------------------------------ ##
13434 _ASBOX
13436 sed "s/^/$as_me: WARNING: /" >&2
13438 esac
13439 echo "$as_me:$LINENO: checking for $ac_header" >&5
13440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444 eval "$as_ac_Header=\$ac_header_preproc"
13446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13451 cat >>confdefs.h <<_ACEOF
13452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13453 _ACEOF
13457 done
13459 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13460 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13461 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 if test "$cross_compiling" = yes; then
13465 ac_cv_func_realloc_0_nonnull=no
13466 else
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #if STDC_HEADERS || HAVE_STDLIB_H
13474 # include <stdlib.h>
13475 #else
13476 char *realloc ();
13477 #endif
13480 main ()
13482 exit (realloc (0, 0) ? 0 : 1);
13484 return 0;
13486 _ACEOF
13487 rm -f conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_func_realloc_0_nonnull=yes
13499 else
13500 echo "$as_me: program exited with status $ac_status" >&5
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ( exit $ac_status )
13505 ac_cv_func_realloc_0_nonnull=no
13507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13510 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13511 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13512 if test $ac_cv_func_realloc_0_nonnull = yes; then
13514 cat >>confdefs.h <<\_ACEOF
13515 #define HAVE_REALLOC 1
13516 _ACEOF
13518 else
13519 cat >>confdefs.h <<\_ACEOF
13520 #define HAVE_REALLOC 0
13521 _ACEOF
13523 case $LIBOBJS in
13524 "realloc.$ac_objext" | \
13525 *" realloc.$ac_objext" | \
13526 "realloc.$ac_objext "* | \
13527 *" realloc.$ac_objext "* ) ;;
13528 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13529 esac
13532 cat >>confdefs.h <<\_ACEOF
13533 #define realloc rpl_realloc
13534 _ACEOF
13573 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
13575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13576 echo "$as_me:$LINENO: checking for $ac_func" >&5
13577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13578 if eval "test \"\${$as_ac_var+set}\" = set"; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13589 #define $ac_func innocuous_$ac_func
13591 /* System header to define __stub macros and hopefully few prototypes,
13592 which can conflict with char $ac_func (); below.
13593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13594 <limits.h> exists even on freestanding compilers. */
13596 #ifdef __STDC__
13597 # include <limits.h>
13598 #else
13599 # include <assert.h>
13600 #endif
13602 #undef $ac_func
13604 /* Override any gcc2 internal prototype to avoid an error. */
13605 #ifdef __cplusplus
13606 extern "C"
13608 #endif
13609 /* We use char because int might match the return type of a gcc2
13610 builtin and then its argument prototype would still apply. */
13611 char $ac_func ();
13612 /* The GNU C library defines this for functions which it implements
13613 to always fail with ENOSYS. Some functions are actually named
13614 something starting with __ and the normal name is an alias. */
13615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13616 choke me
13617 #else
13618 char (*f) () = $ac_func;
13619 #endif
13620 #ifdef __cplusplus
13622 #endif
13625 main ()
13627 return f != $ac_func;
13629 return 0;
13631 _ACEOF
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634 (eval $ac_link) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 eval "$as_ac_var=yes"
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 eval "$as_ac_var=no"
13661 rm -f conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13666 if test `eval echo '${'$as_ac_var'}'` = yes; then
13667 cat >>confdefs.h <<_ACEOF
13668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13669 _ACEOF
13672 done
13674 #-------------------------------------------------------------------------------
13675 # End of autoscan stuff
13676 #-------------------------------------------------------------------------------
13682 for ac_func in mkdir getrlimit setrlimit getopt_long
13684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13685 echo "$as_me:$LINENO: checking for $ac_func" >&5
13686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13687 if eval "test \"\${$as_ac_var+set}\" = set"; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h. */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13698 #define $ac_func innocuous_$ac_func
13700 /* System header to define __stub macros and hopefully few prototypes,
13701 which can conflict with char $ac_func (); below.
13702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13703 <limits.h> exists even on freestanding compilers. */
13705 #ifdef __STDC__
13706 # include <limits.h>
13707 #else
13708 # include <assert.h>
13709 #endif
13711 #undef $ac_func
13713 /* Override any gcc2 internal prototype to avoid an error. */
13714 #ifdef __cplusplus
13715 extern "C"
13717 #endif
13718 /* We use char because int might match the return type of a gcc2
13719 builtin and then its argument prototype would still apply. */
13720 char $ac_func ();
13721 /* The GNU C library defines this for functions which it implements
13722 to always fail with ENOSYS. Some functions are actually named
13723 something starting with __ and the normal name is an alias. */
13724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13725 choke me
13726 #else
13727 char (*f) () = $ac_func;
13728 #endif
13729 #ifdef __cplusplus
13731 #endif
13734 main ()
13736 return f != $ac_func;
13738 return 0;
13740 _ACEOF
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13743 (eval $ac_link) 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag"
13751 || test ! -s conftest.err'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try='test -s conftest$ac_exeext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 eval "$as_ac_var=yes"
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 eval "$as_ac_var=no"
13770 rm -f conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13775 if test `eval echo '${'$as_ac_var'}'` = yes; then
13776 cat >>confdefs.h <<_ACEOF
13777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13778 _ACEOF
13781 done
13784 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
13786 # Check whether --enable-mmap or --disable-mmap was given.
13787 if test "${enable_mmap+set}" = set; then
13788 enableval="$enable_mmap"
13793 if test ${enable_mmap:-no} = yes; then
13796 for ac_header in sys/mman.h
13798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13800 echo "$as_me:$LINENO: checking for $ac_header" >&5
13801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13807 else
13808 # Is the header compilable?
13809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 $ac_includes_default
13818 #include <$ac_header>
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag"
13830 || test ! -s conftest.err'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_header_compiler=yes
13843 else
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ac_header_compiler=no
13849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13851 echo "${ECHO_T}$ac_header_compiler" >&6
13853 # Is the header present?
13854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h. */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <$ac_header>
13863 _ACEOF
13864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } >/dev/null; then
13872 if test -s conftest.err; then
13873 ac_cpp_err=$ac_c_preproc_warn_flag
13874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13875 else
13876 ac_cpp_err=
13878 else
13879 ac_cpp_err=yes
13881 if test -z "$ac_cpp_err"; then
13882 ac_header_preproc=yes
13883 else
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_header_preproc=no
13889 rm -f conftest.err conftest.$ac_ext
13890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13891 echo "${ECHO_T}$ac_header_preproc" >&6
13893 # So? What about this header?
13894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13895 yes:no: )
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13900 ac_header_preproc=yes
13902 no:yes:* )
13903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13916 cat <<\_ASBOX
13917 ## ------------------------------ ##
13918 ## Report this to admin@amule.org ##
13919 ## ------------------------------ ##
13920 _ASBOX
13922 sed "s/^/$as_me: WARNING: /" >&2
13924 esac
13925 echo "$as_me:$LINENO: checking for $ac_header" >&5
13926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 eval "$as_ac_Header=\$ac_header_preproc"
13932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13937 cat >>confdefs.h <<_ACEOF
13938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13939 _ACEOF
13943 done
13947 for ac_header in stdlib.h unistd.h
13949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo "$as_me:$LINENO: checking for $ac_header" >&5
13952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13958 else
13959 # Is the header compilable?
13960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13969 #include <$ac_header>
13970 _ACEOF
13971 rm -f conftest.$ac_objext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13973 (eval $ac_compile) 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag"
13981 || test ! -s conftest.err'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_header_compiler=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_header_compiler=no
14000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14002 echo "${ECHO_T}$ac_header_compiler" >&6
14004 # Is the header present?
14005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <$ac_header>
14014 _ACEOF
14015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14017 ac_status=$?
14018 grep -v '^ *+' conftest.er1 >conftest.err
14019 rm -f conftest.er1
14020 cat conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } >/dev/null; then
14023 if test -s conftest.err; then
14024 ac_cpp_err=$ac_c_preproc_warn_flag
14025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14026 else
14027 ac_cpp_err=
14029 else
14030 ac_cpp_err=yes
14032 if test -z "$ac_cpp_err"; then
14033 ac_header_preproc=yes
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_header_preproc=no
14040 rm -f conftest.err conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14042 echo "${ECHO_T}$ac_header_preproc" >&6
14044 # So? What about this header?
14045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14046 yes:no: )
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14051 ac_header_preproc=yes
14053 no:yes:* )
14054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14067 cat <<\_ASBOX
14068 ## ------------------------------ ##
14069 ## Report this to admin@amule.org ##
14070 ## ------------------------------ ##
14071 _ASBOX
14073 sed "s/^/$as_me: WARNING: /" >&2
14075 esac
14076 echo "$as_me:$LINENO: checking for $ac_header" >&5
14077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081 eval "$as_ac_Header=\$ac_header_preproc"
14083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14088 cat >>confdefs.h <<_ACEOF
14089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14090 _ACEOF
14094 done
14097 for ac_func in getpagesize
14099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14100 echo "$as_me:$LINENO: checking for $ac_func" >&5
14101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14102 if eval "test \"\${$as_ac_var+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h. */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14113 #define $ac_func innocuous_$ac_func
14115 /* System header to define __stub macros and hopefully few prototypes,
14116 which can conflict with char $ac_func (); below.
14117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14118 <limits.h> exists even on freestanding compilers. */
14120 #ifdef __STDC__
14121 # include <limits.h>
14122 #else
14123 # include <assert.h>
14124 #endif
14126 #undef $ac_func
14128 /* Override any gcc2 internal prototype to avoid an error. */
14129 #ifdef __cplusplus
14130 extern "C"
14132 #endif
14133 /* We use char because int might match the return type of a gcc2
14134 builtin and then its argument prototype would still apply. */
14135 char $ac_func ();
14136 /* The GNU C library defines this for functions which it implements
14137 to always fail with ENOSYS. Some functions are actually named
14138 something starting with __ and the normal name is an alias. */
14139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14140 choke me
14141 #else
14142 char (*f) () = $ac_func;
14143 #endif
14144 #ifdef __cplusplus
14146 #endif
14149 main ()
14151 return f != $ac_func;
14153 return 0;
14155 _ACEOF
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158 (eval $ac_link) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest$ac_exeext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 eval "$as_ac_var=yes"
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 eval "$as_ac_var=no"
14185 rm -f conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14190 if test `eval echo '${'$as_ac_var'}'` = yes; then
14191 cat >>confdefs.h <<_ACEOF
14192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14193 _ACEOF
14196 done
14198 echo "$as_me:$LINENO: checking for working mmap" >&5
14199 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14200 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 if test "$cross_compiling" = yes; then
14204 ac_cv_func_mmap_fixed_mapped=no
14205 else
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 $ac_includes_default
14213 /* malloc might have been renamed as rpl_malloc. */
14214 #undef malloc
14216 /* Thanks to Mike Haertel and Jim Avera for this test.
14217 Here is a matrix of mmap possibilities:
14218 mmap private not fixed
14219 mmap private fixed at somewhere currently unmapped
14220 mmap private fixed at somewhere already mapped
14221 mmap shared not fixed
14222 mmap shared fixed at somewhere currently unmapped
14223 mmap shared fixed at somewhere already mapped
14224 For private mappings, we should verify that changes cannot be read()
14225 back from the file, nor mmap's back from the file at a different
14226 address. (There have been systems where private was not correctly
14227 implemented like the infamous i386 svr4.0, and systems where the
14228 VM page cache was not coherent with the file system buffer cache
14229 like early versions of FreeBSD and possibly contemporary NetBSD.)
14230 For shared mappings, we should conversely verify that changes get
14231 propagated back to all the places they're supposed to be.
14233 Grep wants private fixed already mapped.
14234 The main things grep needs to know about mmap are:
14235 * does it exist and is it safe to write into the mmap'd area
14236 * how to use it (BSD variants) */
14238 #include <fcntl.h>
14239 #include <sys/mman.h>
14241 #if !STDC_HEADERS && !HAVE_STDLIB_H
14242 char *malloc ();
14243 #endif
14245 /* This mess was copied from the GNU getpagesize.h. */
14246 #if !HAVE_GETPAGESIZE
14247 /* Assume that all systems that can run configure have sys/param.h. */
14248 # if !HAVE_SYS_PARAM_H
14249 # define HAVE_SYS_PARAM_H 1
14250 # endif
14252 # ifdef _SC_PAGESIZE
14253 # define getpagesize() sysconf(_SC_PAGESIZE)
14254 # else /* no _SC_PAGESIZE */
14255 # if HAVE_SYS_PARAM_H
14256 # include <sys/param.h>
14257 # ifdef EXEC_PAGESIZE
14258 # define getpagesize() EXEC_PAGESIZE
14259 # else /* no EXEC_PAGESIZE */
14260 # ifdef NBPG
14261 # define getpagesize() NBPG * CLSIZE
14262 # ifndef CLSIZE
14263 # define CLSIZE 1
14264 # endif /* no CLSIZE */
14265 # else /* no NBPG */
14266 # ifdef NBPC
14267 # define getpagesize() NBPC
14268 # else /* no NBPC */
14269 # ifdef PAGESIZE
14270 # define getpagesize() PAGESIZE
14271 # endif /* PAGESIZE */
14272 # endif /* no NBPC */
14273 # endif /* no NBPG */
14274 # endif /* no EXEC_PAGESIZE */
14275 # else /* no HAVE_SYS_PARAM_H */
14276 # define getpagesize() 8192 /* punt totally */
14277 # endif /* no HAVE_SYS_PARAM_H */
14278 # endif /* no _SC_PAGESIZE */
14280 #endif /* no HAVE_GETPAGESIZE */
14283 main ()
14285 char *data, *data2, *data3;
14286 int i, pagesize;
14287 int fd;
14289 pagesize = getpagesize ();
14291 /* First, make a file with some known garbage in it. */
14292 data = (char *) malloc (pagesize);
14293 if (!data)
14294 exit (1);
14295 for (i = 0; i < pagesize; ++i)
14296 *(data + i) = rand ();
14297 umask (0);
14298 fd = creat ("conftest.mmap", 0600);
14299 if (fd < 0)
14300 exit (1);
14301 if (write (fd, data, pagesize) != pagesize)
14302 exit (1);
14303 close (fd);
14305 /* Next, try to mmap the file at a fixed address which already has
14306 something else allocated at it. If we can, also make sure that
14307 we see the same garbage. */
14308 fd = open ("conftest.mmap", O_RDWR);
14309 if (fd < 0)
14310 exit (1);
14311 data2 = (char *) malloc (2 * pagesize);
14312 if (!data2)
14313 exit (1);
14314 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14315 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14316 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14317 exit (1);
14318 for (i = 0; i < pagesize; ++i)
14319 if (*(data + i) != *(data2 + i))
14320 exit (1);
14322 /* Finally, make sure that changes to the mapped area do not
14323 percolate back to the file as seen by read(). (This is a bug on
14324 some variants of i386 svr4.0.) */
14325 for (i = 0; i < pagesize; ++i)
14326 *(data2 + i) = *(data2 + i) + 1;
14327 data3 = (char *) malloc (pagesize);
14328 if (!data3)
14329 exit (1);
14330 if (read (fd, data3, pagesize) != pagesize)
14331 exit (1);
14332 for (i = 0; i < pagesize; ++i)
14333 if (*(data + i) != *(data3 + i))
14334 exit (1);
14335 close (fd);
14336 exit (0);
14338 _ACEOF
14339 rm -f conftest$ac_exeext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14341 (eval $ac_link) 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_cv_func_mmap_fixed_mapped=yes
14351 else
14352 echo "$as_me: program exited with status $ac_status" >&5
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14356 ( exit $ac_status )
14357 ac_cv_func_mmap_fixed_mapped=no
14359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14362 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14363 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14364 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14366 cat >>confdefs.h <<\_ACEOF
14367 #define HAVE_MMAP 1
14368 _ACEOF
14371 rm -f conftest.mmap
14375 for ac_func in munmap sysconf
14377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14378 echo "$as_me:$LINENO: checking for $ac_func" >&5
14379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14380 if eval "test \"\${$as_ac_var+set}\" = set"; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383 cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14391 #define $ac_func innocuous_$ac_func
14393 /* System header to define __stub macros and hopefully few prototypes,
14394 which can conflict with char $ac_func (); below.
14395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14396 <limits.h> exists even on freestanding compilers. */
14398 #ifdef __STDC__
14399 # include <limits.h>
14400 #else
14401 # include <assert.h>
14402 #endif
14404 #undef $ac_func
14406 /* Override any gcc2 internal prototype to avoid an error. */
14407 #ifdef __cplusplus
14408 extern "C"
14410 #endif
14411 /* We use char because int might match the return type of a gcc2
14412 builtin and then its argument prototype would still apply. */
14413 char $ac_func ();
14414 /* The GNU C library defines this for functions which it implements
14415 to always fail with ENOSYS. Some functions are actually named
14416 something starting with __ and the normal name is an alias. */
14417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14418 choke me
14419 #else
14420 char (*f) () = $ac_func;
14421 #endif
14422 #ifdef __cplusplus
14424 #endif
14427 main ()
14429 return f != $ac_func;
14431 return 0;
14433 _ACEOF
14434 rm -f conftest.$ac_objext conftest$ac_exeext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14436 (eval $ac_link) 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -z "$ac_c_werror_flag"
14444 || test ! -s conftest.err'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 eval "$as_ac_var=yes"
14457 else
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 eval "$as_ac_var=no"
14463 rm -f conftest.err conftest.$ac_objext \
14464 conftest$ac_exeext conftest.$ac_ext
14466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14468 if test `eval echo '${'$as_ac_var'}'` = yes; then
14469 cat >>confdefs.h <<_ACEOF
14470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14471 _ACEOF
14474 done
14476 if test $ac_cv_func_sysconf = yes; then
14478 echo "$as_me:$LINENO: checking for pagesize constant for sysconf" >&5
14479 echo $ECHO_N "checking for pagesize constant for sysconf... $ECHO_C" >&6
14480 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h. */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14488 #include <unistd.h>
14491 main ()
14494 return sysconf(_SC_PAGESIZE);
14497 return 0;
14500 _ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14503 (eval $ac_link) 2>conftest.er1
14504 ac_status=$?
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try='test -z "$ac_c_werror_flag"
14511 || test ! -s conftest.err'
14512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14514 ac_status=$?
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } &&
14517 { ac_try='test -s conftest$ac_exeext'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14524 echo "$as_me:$LINENO: result: _SC_PAGESIZE" >&5
14525 echo "${ECHO_T}_SC_PAGESIZE" >&6
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE__SC_PAGESIZE 1
14529 _ACEOF
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14537 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14545 #include <unistd.h>
14548 main ()
14551 return sysconf(_SC_PAGE_SIZE);
14554 return 0;
14557 _ACEOF
14558 rm -f conftest.$ac_objext conftest$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest$ac_exeext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14581 echo "$as_me:$LINENO: result: _SC_PAGE_SIZE" >&5
14582 echo "${ECHO_T}_SC_PAGE_SIZE" >&6
14584 cat >>confdefs.h <<\_ACEOF
14585 #define HAVE__SC_PAGE_SIZE 1
14586 _ACEOF
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14594 echo "$as_me:$LINENO: result: none" >&5
14595 echo "${ECHO_T}none" >&6
14598 rm -f conftest.err conftest.$ac_objext \
14599 conftest$ac_exeext conftest.$ac_ext
14602 rm -f conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14608 else
14610 # fake the result of the test for munmap() for the gettext macros
14611 ac_cv_func_munmap=no
14619 mule_backup_CPPFLAGS="$CPPFLAGS"
14620 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14621 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14622 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14623 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h. */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14632 $ac_includes_default
14634 main ()
14636 #ifndef strerror_r
14637 char *p = (char *) strerror_r;
14638 #endif
14641 return 0;
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646 (eval $ac_compile) 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -z "$ac_c_werror_flag"
14654 || test ! -s conftest.err'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_cv_have_decl_strerror_r=yes
14667 else
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ac_cv_have_decl_strerror_r=no
14673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14675 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14676 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14677 if test $ac_cv_have_decl_strerror_r = yes; then
14679 cat >>confdefs.h <<_ACEOF
14680 #define HAVE_DECL_STRERROR_R 1
14681 _ACEOF
14684 else
14685 cat >>confdefs.h <<_ACEOF
14686 #define HAVE_DECL_STRERROR_R 0
14687 _ACEOF
14694 for ac_func in strerror_r
14696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14697 echo "$as_me:$LINENO: checking for $ac_func" >&5
14698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14699 if eval "test \"\${$as_ac_var+set}\" = set"; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h. */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14710 #define $ac_func innocuous_$ac_func
14712 /* System header to define __stub macros and hopefully few prototypes,
14713 which can conflict with char $ac_func (); below.
14714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14715 <limits.h> exists even on freestanding compilers. */
14717 #ifdef __STDC__
14718 # include <limits.h>
14719 #else
14720 # include <assert.h>
14721 #endif
14723 #undef $ac_func
14725 /* Override any gcc2 internal prototype to avoid an error. */
14726 #ifdef __cplusplus
14727 extern "C"
14729 #endif
14730 /* We use char because int might match the return type of a gcc2
14731 builtin and then its argument prototype would still apply. */
14732 char $ac_func ();
14733 /* The GNU C library defines this for functions which it implements
14734 to always fail with ENOSYS. Some functions are actually named
14735 something starting with __ and the normal name is an alias. */
14736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14737 choke me
14738 #else
14739 char (*f) () = $ac_func;
14740 #endif
14741 #ifdef __cplusplus
14743 #endif
14746 main ()
14748 return f != $ac_func;
14750 return 0;
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag"
14763 || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest$ac_exeext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 eval "$as_ac_var=yes"
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 eval "$as_ac_var=no"
14782 rm -f conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14787 if test `eval echo '${'$as_ac_var'}'` = yes; then
14788 cat >>confdefs.h <<_ACEOF
14789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14790 _ACEOF
14793 done
14795 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14796 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14797 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14801 ac_cv_func_strerror_r_char_p=no
14802 if test $ac_cv_have_decl_strerror_r = yes; then
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 $ac_includes_default
14811 main ()
14814 char buf[100];
14815 char x = *strerror_r (0, buf, sizeof buf);
14816 char *p = strerror_r (0, buf, sizeof buf);
14819 return 0;
14821 _ACEOF
14822 rm -f conftest.$ac_objext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14824 (eval $ac_compile) 2>conftest.er1
14825 ac_status=$?
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -z "$ac_c_werror_flag"
14832 || test ! -s conftest.err'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest.$ac_objext'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_cv_func_strerror_r_char_p=yes
14845 else
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14851 else
14852 # strerror_r is not declared. Choose between
14853 # systems that have relatively inaccessible declarations for the
14854 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14855 # former has a strerror_r that returns char*, while the latter
14856 # has a strerror_r that returns `int'.
14857 # This test should segfault on the DEC system.
14858 if test "$cross_compiling" = yes; then
14860 else
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 extern char *strerror_r ();
14870 main ()
14872 char buf[100];
14873 char x = *strerror_r (0, buf, sizeof buf);
14874 exit (!isalpha (x));
14876 return 0;
14878 _ACEOF
14879 rm -f conftest$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_cv_func_strerror_r_char_p=yes
14891 else
14892 echo "$as_me: program exited with status $ac_status" >&5
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14902 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14903 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14904 if test $ac_cv_func_strerror_r_char_p = yes; then
14906 cat >>confdefs.h <<\_ACEOF
14907 #define STRERROR_R_CHAR_P 1
14908 _ACEOF
14912 CPPFLAGS="$mule_backup_CPPFLAGS"
14914 # Look for a way to preallocate disk space for files.
14915 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
14917 echo "$as_me:$LINENO: checking for fallocate" >&5
14918 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14919 mule_backup_CPPFLAGS="$CPPFLAGS"
14920 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
14921 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h. */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14929 #define _GNU_SOURCE
14930 #ifdef HAVE_FCNTL_H
14931 # include <fcntl.h>
14932 #endif
14933 #include <linux/falloc.h>
14936 main ()
14939 fallocate(0, 0, 0, 0);
14942 return 0;
14945 _ACEOF
14946 rm -f conftest.$ac_objext conftest$ac_exeext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14948 (eval $ac_link) 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
14955 { ac_try='test -z "$ac_c_werror_flag"
14956 || test ! -s conftest.err'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest$ac_exeext'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14971 cat >>confdefs.h <<\_ACEOF
14972 #define HAVE_FALLOCATE 1
14973 _ACEOF
14975 echo "$as_me:$LINENO: result: yes" >&5
14976 echo "${ECHO_T}yes" >&6
14978 else
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14983 echo "$as_me:$LINENO: result: no" >&5
14984 echo "${ECHO_T}no" >&6
14987 rm -f conftest.err conftest.$ac_objext \
14988 conftest$ac_exeext conftest.$ac_ext
14989 CPPFLAGS="$mule_backup_CPPFLAGS"
14992 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14993 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14994 cat >conftest.$ac_ext <<_ACEOF
14996 /* confdefs.h. */
14997 _ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15002 #include <sys/syscall.h>
15003 #include <sys/types.h>
15004 #include <unistd.h>
15007 main ()
15010 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15013 return 0;
15016 _ACEOF
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15042 cat >>confdefs.h <<\_ACEOF
15043 #define HAVE_SYS_FALLOCATE 1
15044 _ACEOF
15046 echo "$as_me:$LINENO: result: yes" >&5
15047 echo "${ECHO_T}yes" >&6
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15054 echo "$as_me:$LINENO: result: no" >&5
15055 echo "${ECHO_T}no" >&6
15058 rm -f conftest.err conftest.$ac_objext \
15059 conftest$ac_exeext conftest.$ac_ext
15061 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15062 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15063 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h. */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15071 #define _XOPEN_SOURCE 600
15072 #include <stdlib.h>
15073 #ifdef HAVE_FCNTL_H
15074 # include <fcntl.h>
15075 #endif
15078 main ()
15081 posix_fallocate(0, 0, 0);
15084 return 0;
15087 _ACEOF
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -z "$ac_c_werror_flag"
15098 || test ! -s conftest.err'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try='test -s conftest$ac_exeext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15113 cat >>confdefs.h <<\_ACEOF
15114 #define HAVE_POSIX_FALLOCATE 1
15115 _ACEOF
15117 echo "$as_me:$LINENO: result: yes" >&5
15118 echo "${ECHO_T}yes" >&6
15120 else
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15125 echo "$as_me:$LINENO: result: no" >&5
15126 echo "${ECHO_T}no" >&6
15129 rm -f conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15135 # Checking Native Language Support
15138 MKINSTALLDIRS=
15139 if test -n "$ac_aux_dir"; then
15140 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15142 if test -z "$MKINSTALLDIRS"; then
15143 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15150 # Extract the first word of "msgfmt", so it can be a program name with args.
15151 set dummy msgfmt; ac_word=$2
15152 echo "$as_me:$LINENO: checking for $ac_word" >&5
15153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15154 if test "${ac_cv_path_MSGFMT+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 case "$MSGFMT" in
15159 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15163 for ac_dir in $PATH; do
15164 test -z "$ac_dir" && ac_dir=.
15165 if test -f $ac_dir/$ac_word; then
15166 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15167 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15168 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15169 break
15172 done
15173 IFS="$ac_save_ifs"
15174 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15176 esac
15178 MSGFMT="$ac_cv_path_MSGFMT"
15179 if test "$MSGFMT" != ":"; then
15180 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15181 echo "${ECHO_T}$MSGFMT" >&6
15182 else
15183 echo "$as_me:$LINENO: result: no" >&5
15184 echo "${ECHO_T}no" >&6
15187 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15188 set dummy gmsgfmt; ac_word=$2
15189 echo "$as_me:$LINENO: checking for $ac_word" >&5
15190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15191 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 case $GMSGFMT in
15195 [\\/]* | ?:[\\/]*)
15196 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200 for as_dir in $PATH
15202 IFS=$as_save_IFS
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15206 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15208 break 2
15210 done
15211 done
15213 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15215 esac
15217 GMSGFMT=$ac_cv_path_GMSGFMT
15219 if test -n "$GMSGFMT"; then
15220 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15221 echo "${ECHO_T}$GMSGFMT" >&6
15222 else
15223 echo "$as_me:$LINENO: result: no" >&5
15224 echo "${ECHO_T}no" >&6
15228 # Extract the first word of "xgettext", so it can be a program name with args.
15229 set dummy xgettext; ac_word=$2
15230 echo "$as_me:$LINENO: checking for $ac_word" >&5
15231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15232 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 case "$XGETTEXT" in
15237 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15241 for ac_dir in $PATH; do
15242 test -z "$ac_dir" && ac_dir=.
15243 if test -f $ac_dir/$ac_word; then
15244 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15245 (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
15246 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15247 break
15250 done
15251 IFS="$ac_save_ifs"
15252 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15254 esac
15256 XGETTEXT="$ac_cv_path_XGETTEXT"
15257 if test "$XGETTEXT" != ":"; then
15258 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15259 echo "${ECHO_T}$XGETTEXT" >&6
15260 else
15261 echo "$as_me:$LINENO: result: no" >&5
15262 echo "${ECHO_T}no" >&6
15265 rm -f messages.po
15267 # Extract the first word of "msgmerge", so it can be a program name with args.
15268 set dummy msgmerge; ac_word=$2
15269 echo "$as_me:$LINENO: checking for $ac_word" >&5
15270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15271 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 case "$MSGMERGE" in
15276 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15280 for ac_dir in $PATH; do
15281 test -z "$ac_dir" && ac_dir=.
15282 if test -f $ac_dir/$ac_word; then
15283 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15284 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15285 break
15288 done
15289 IFS="$ac_save_ifs"
15290 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15292 esac
15294 MSGMERGE="$ac_cv_path_MSGMERGE"
15295 if test "$MSGMERGE" != ":"; then
15296 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15297 echo "${ECHO_T}$MSGMERGE" >&6
15298 else
15299 echo "$as_me:$LINENO: result: no" >&5
15300 echo "${ECHO_T}no" >&6
15304 if test "$GMSGFMT" != ":"; then
15305 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15306 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15308 else
15309 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15310 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15311 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15312 GMSGFMT=":"
15316 if test "$XGETTEXT" != ":"; then
15317 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15318 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15320 else
15321 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15322 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15323 XGETTEXT=":"
15325 rm -f messages.po
15328 ac_config_commands="$ac_config_commands default-1"
15331 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15332 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15333 if test "${ac_cv_search_strerror+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 else
15336 ac_func_search_save_LIBS=$LIBS
15337 ac_cv_search_strerror=no
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15345 /* Override any gcc2 internal prototype to avoid an error. */
15346 #ifdef __cplusplus
15347 extern "C"
15348 #endif
15349 /* We use char because int might match the return type of a gcc2
15350 builtin and then its argument prototype would still apply. */
15351 char strerror ();
15353 main ()
15355 strerror ();
15357 return 0;
15359 _ACEOF
15360 rm -f conftest.$ac_objext conftest$ac_exeext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15362 (eval $ac_link) 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest$ac_exeext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_cv_search_strerror="none required"
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15388 rm -f conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390 if test "$ac_cv_search_strerror" = no; then
15391 for ac_lib in cposix; do
15392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15393 cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h. */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15400 /* Override any gcc2 internal prototype to avoid an error. */
15401 #ifdef __cplusplus
15402 extern "C"
15403 #endif
15404 /* We use char because int might match the return type of a gcc2
15405 builtin and then its argument prototype would still apply. */
15406 char strerror ();
15408 main ()
15410 strerror ();
15412 return 0;
15414 _ACEOF
15415 rm -f conftest.$ac_objext conftest$ac_exeext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15417 (eval $ac_link) 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest$ac_exeext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_search_strerror="-l$ac_lib"
15438 break
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15444 rm -f conftest.err conftest.$ac_objext \
15445 conftest$ac_exeext conftest.$ac_ext
15446 done
15448 LIBS=$ac_func_search_save_LIBS
15450 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15451 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15452 if test "$ac_cv_search_strerror" != no; then
15453 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15458 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15459 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15460 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15470 #include <features.h>
15471 #ifdef __GNU_LIBRARY__
15472 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15473 Lucky GNU user
15474 #endif
15475 #endif
15477 _ACEOF
15478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15479 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15480 ac_cv_gnu_library_2_1=yes
15481 else
15482 ac_cv_gnu_library_2_1=no
15484 rm -f conftest*
15489 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15490 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15492 GLIBC21="$ac_cv_gnu_library_2_1"
15497 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15498 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15499 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15503 if test "$cross_compiling" = yes; then
15505 # Guess based on the CPU.
15506 case "$host_cpu" in
15507 alpha* | i3456786 | m68k | s390*)
15508 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15510 gt_cv_int_divbyzero_sigfpe="guessing no";;
15511 esac
15513 else
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15521 #include <stdlib.h>
15522 #include <signal.h>
15524 static void
15525 #ifdef __cplusplus
15526 sigfpe_handler (int sig)
15527 #else
15528 sigfpe_handler (sig) int sig;
15529 #endif
15531 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15532 exit (sig != SIGFPE);
15535 int x = 1;
15536 int y = 0;
15537 int z;
15538 int nan;
15540 int main ()
15542 signal (SIGFPE, sigfpe_handler);
15543 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15544 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15545 signal (SIGTRAP, sigfpe_handler);
15546 #endif
15547 /* Linux/SPARC yields signal SIGILL. */
15548 #if defined (__sparc__) && defined (__linux__)
15549 signal (SIGILL, sigfpe_handler);
15550 #endif
15552 z = x / y;
15553 nan = y / y;
15554 exit (1);
15557 _ACEOF
15558 rm -f conftest$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560 (eval $ac_link) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }; then
15569 gt_cv_int_divbyzero_sigfpe=yes
15570 else
15571 echo "$as_me: program exited with status $ac_status" >&5
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ( exit $ac_status )
15576 gt_cv_int_divbyzero_sigfpe=no
15578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15582 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15583 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15584 case "$gt_cv_int_divbyzero_sigfpe" in
15585 *yes) value=1;;
15586 *) value=0;;
15587 esac
15589 cat >>confdefs.h <<_ACEOF
15590 #define INTDIV0_RAISES_SIGFPE $value
15591 _ACEOF
15595 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15596 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15597 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600 cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h. */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include <sys/types.h>
15607 #include <inttypes.h>
15609 main ()
15611 uintmax_t i = (uintmax_t) -1;
15613 return 0;
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag"
15626 || test ! -s conftest.err'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 jm_ac_cv_header_inttypes_h=yes
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 jm_ac_cv_header_inttypes_h=no
15645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15647 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15648 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15649 if test $jm_ac_cv_header_inttypes_h = yes; then
15651 cat >>confdefs.h <<_ACEOF
15652 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15653 _ACEOF
15658 echo "$as_me:$LINENO: checking for stdint.h" >&5
15659 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15660 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <sys/types.h>
15670 #include <stdint.h>
15672 main ()
15674 uintmax_t i = (uintmax_t) -1;
15676 return 0;
15678 _ACEOF
15679 rm -f conftest.$ac_objext
15680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15681 (eval $ac_compile) 2>conftest.er1
15682 ac_status=$?
15683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -z "$ac_c_werror_flag"
15689 || test ! -s conftest.err'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; } &&
15695 { ac_try='test -s conftest.$ac_objext'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 jm_ac_cv_header_stdint_h=yes
15702 else
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 jm_ac_cv_header_stdint_h=no
15708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15710 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15711 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15712 if test $jm_ac_cv_header_stdint_h = yes; then
15714 cat >>confdefs.h <<_ACEOF
15715 #define HAVE_STDINT_H_WITH_UINTMAX 1
15716 _ACEOF
15721 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15722 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15723 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 unsigned long long ull = 1; int i = 63;
15734 main ()
15736 unsigned long long ullmax = (unsigned long long) -1;
15737 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15739 return 0;
15741 _ACEOF
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15744 (eval $ac_link) 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest$ac_exeext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_cv_type_unsigned_long_long=yes
15765 else
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_cv_type_unsigned_long_long=no
15771 rm -f conftest.err conftest.$ac_objext \
15772 conftest$ac_exeext conftest.$ac_ext
15774 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15775 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15776 if test $ac_cv_type_unsigned_long_long = yes; then
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE_UNSIGNED_LONG_LONG 1
15780 _ACEOF
15787 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15789 test $ac_cv_type_unsigned_long_long = yes \
15790 && ac_type='unsigned long long' \
15791 || ac_type='unsigned long'
15793 cat >>confdefs.h <<_ACEOF
15794 #define uintmax_t $ac_type
15795 _ACEOF
15800 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15801 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15802 if test "${gt_cv_header_inttypes_h+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15806 cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h. */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 #include <sys/types.h>
15813 #include <inttypes.h>
15815 main ()
15819 return 0;
15821 _ACEOF
15822 rm -f conftest.$ac_objext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824 (eval $ac_compile) 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag"
15832 || test ! -s conftest.err'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; } &&
15838 { ac_try='test -s conftest.$ac_objext'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844 gt_cv_header_inttypes_h=yes
15845 else
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 gt_cv_header_inttypes_h=no
15851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15854 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15855 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15856 if test $gt_cv_header_inttypes_h = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859 #define HAVE_INTTYPES_H 1
15860 _ACEOF
15866 if test $gt_cv_header_inttypes_h = yes; then
15867 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15868 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15869 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h. */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 #include <inttypes.h>
15880 #ifdef PRId32
15881 char *p = PRId32;
15882 #endif
15885 main ()
15889 return 0;
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -z "$ac_c_werror_flag"
15902 || test ! -s conftest.err'
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; } &&
15908 { ac_try='test -s conftest.$ac_objext'
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 gt_cv_inttypes_pri_broken=no
15915 else
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 gt_cv_inttypes_pri_broken=yes
15921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15925 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15927 if test "$gt_cv_inttypes_pri_broken" = yes; then
15929 cat >>confdefs.h <<_ACEOF
15930 #define PRI_MACROS_BROKEN 1
15931 _ACEOF
15936 if test "X$prefix" = "XNONE"; then
15937 acl_final_prefix="$ac_default_prefix"
15938 else
15939 acl_final_prefix="$prefix"
15941 if test "X$exec_prefix" = "XNONE"; then
15942 acl_final_exec_prefix='${prefix}'
15943 else
15944 acl_final_exec_prefix="$exec_prefix"
15946 acl_save_prefix="$prefix"
15947 prefix="$acl_final_prefix"
15948 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15949 prefix="$acl_save_prefix"
15952 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15953 if test "${with_gnu_ld+set}" = set; then
15954 withval="$with_gnu_ld"
15955 test "$withval" = no || with_gnu_ld=yes
15956 else
15957 with_gnu_ld=no
15959 ac_prog=ld
15960 if test "$GCC" = yes; then
15961 # Check if gcc -print-prog-name=ld gives a path.
15962 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15963 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15964 case $host in
15965 *-*-mingw*)
15966 # gcc leaves a trailing carriage return which upsets mingw
15967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15970 esac
15971 case $ac_prog in
15972 # Accept absolute paths.
15973 [\\/]* | [A-Za-z]:[\\/]*)
15974 re_direlt='/[^/][^/]*/\.\./'
15975 # Canonicalize the path of ld
15976 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15977 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15978 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15979 done
15980 test -z "$LD" && LD="$ac_prog"
15983 # If it fails, then pretend we aren't using GCC.
15984 ac_prog=ld
15987 # If it is relative, then search for the first ld in PATH.
15988 with_gnu_ld=unknown
15990 esac
15991 elif test "$with_gnu_ld" = yes; then
15992 echo "$as_me:$LINENO: checking for GNU ld" >&5
15993 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15994 else
15995 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15996 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15998 if test "${acl_cv_path_LD+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 if test -z "$LD"; then
16002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16003 for ac_dir in $PATH; do
16004 test -z "$ac_dir" && ac_dir=.
16005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16006 acl_cv_path_LD="$ac_dir/$ac_prog"
16007 # Check to see if the program is GNU ld. I'd rather use --version,
16008 # but apparently some GNU ld's only accept -v.
16009 # Break only if it was the GNU/non-GNU ld that we prefer.
16010 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16011 test "$with_gnu_ld" != no && break
16012 else
16013 test "$with_gnu_ld" != yes && break
16016 done
16017 IFS="$ac_save_ifs"
16018 else
16019 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16023 LD="$acl_cv_path_LD"
16024 if test -n "$LD"; then
16025 echo "$as_me:$LINENO: result: $LD" >&5
16026 echo "${ECHO_T}$LD" >&6
16027 else
16028 echo "$as_me:$LINENO: result: no" >&5
16029 echo "${ECHO_T}no" >&6
16031 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16032 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16033 { (exit 1); exit 1; }; }
16034 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16035 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16036 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16040 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16041 acl_cv_prog_gnu_ld=yes
16042 else
16043 acl_cv_prog_gnu_ld=no
16046 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16047 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16048 with_gnu_ld=$acl_cv_prog_gnu_ld
16052 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16053 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16054 if test "${acl_cv_rpath+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16058 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16059 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16060 . ./conftest.sh
16061 rm -f ./conftest.sh
16062 acl_cv_rpath=done
16065 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16066 echo "${ECHO_T}$acl_cv_rpath" >&6
16067 wl="$acl_cv_wl"
16068 libext="$acl_cv_libext"
16069 shlibext="$acl_cv_shlibext"
16070 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16071 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16072 hardcode_direct="$acl_cv_hardcode_direct"
16073 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16074 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16075 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16076 # Check whether --enable-rpath or --disable-rpath was given.
16077 if test "${enable_rpath+set}" = set; then
16078 enableval="$enable_rpath"
16080 else
16081 enable_rpath=yes
16090 use_additional=yes
16092 acl_save_prefix="$prefix"
16093 prefix="$acl_final_prefix"
16094 acl_save_exec_prefix="$exec_prefix"
16095 exec_prefix="$acl_final_exec_prefix"
16097 eval additional_includedir=\"$includedir\"
16098 eval additional_libdir=\"$libdir\"
16100 exec_prefix="$acl_save_exec_prefix"
16101 prefix="$acl_save_prefix"
16104 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16105 if test "${with_libiconv_prefix+set}" = set; then
16106 withval="$with_libiconv_prefix"
16108 if test "X$withval" = "Xno"; then
16109 use_additional=no
16110 else
16111 if test "X$withval" = "X"; then
16113 acl_save_prefix="$prefix"
16114 prefix="$acl_final_prefix"
16115 acl_save_exec_prefix="$exec_prefix"
16116 exec_prefix="$acl_final_exec_prefix"
16118 eval additional_includedir=\"$includedir\"
16119 eval additional_libdir=\"$libdir\"
16121 exec_prefix="$acl_save_exec_prefix"
16122 prefix="$acl_save_prefix"
16124 else
16125 additional_includedir="$withval/include"
16126 additional_libdir="$withval/lib"
16131 LIBICONV=
16132 LTLIBICONV=
16133 INCICONV=
16134 rpathdirs=
16135 ltrpathdirs=
16136 names_already_handled=
16137 names_next_round='iconv '
16138 while test -n "$names_next_round"; do
16139 names_this_round="$names_next_round"
16140 names_next_round=
16141 for name in $names_this_round; do
16142 already_handled=
16143 for n in $names_already_handled; do
16144 if test "$n" = "$name"; then
16145 already_handled=yes
16146 break
16148 done
16149 if test -z "$already_handled"; then
16150 names_already_handled="$names_already_handled $name"
16151 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16152 eval value=\"\$HAVE_LIB$uppername\"
16153 if test -n "$value"; then
16154 if test "$value" = yes; then
16155 eval value=\"\$LIB$uppername\"
16156 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16157 eval value=\"\$LTLIB$uppername\"
16158 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16159 else
16162 else
16163 found_dir=
16164 found_la=
16165 found_so=
16166 found_a=
16167 if test $use_additional = yes; then
16168 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16169 found_dir="$additional_libdir"
16170 found_so="$additional_libdir/lib$name.$shlibext"
16171 if test -f "$additional_libdir/lib$name.la"; then
16172 found_la="$additional_libdir/lib$name.la"
16174 else
16175 if test -f "$additional_libdir/lib$name.$libext"; then
16176 found_dir="$additional_libdir"
16177 found_a="$additional_libdir/lib$name.$libext"
16178 if test -f "$additional_libdir/lib$name.la"; then
16179 found_la="$additional_libdir/lib$name.la"
16184 if test "X$found_dir" = "X"; then
16185 for x in $LDFLAGS $LTLIBICONV; do
16187 acl_save_prefix="$prefix"
16188 prefix="$acl_final_prefix"
16189 acl_save_exec_prefix="$exec_prefix"
16190 exec_prefix="$acl_final_exec_prefix"
16191 eval x=\"$x\"
16192 exec_prefix="$acl_save_exec_prefix"
16193 prefix="$acl_save_prefix"
16195 case "$x" in
16196 -L*)
16197 dir=`echo "X$x" | sed -e 's/^X-L//'`
16198 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16199 found_dir="$dir"
16200 found_so="$dir/lib$name.$shlibext"
16201 if test -f "$dir/lib$name.la"; then
16202 found_la="$dir/lib$name.la"
16204 else
16205 if test -f "$dir/lib$name.$libext"; then
16206 found_dir="$dir"
16207 found_a="$dir/lib$name.$libext"
16208 if test -f "$dir/lib$name.la"; then
16209 found_la="$dir/lib$name.la"
16214 esac
16215 if test "X$found_dir" != "X"; then
16216 break
16218 done
16220 if test "X$found_dir" != "X"; then
16221 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16222 if test "X$found_so" != "X"; then
16223 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16224 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16225 else
16226 haveit=
16227 for x in $ltrpathdirs; do
16228 if test "X$x" = "X$found_dir"; then
16229 haveit=yes
16230 break
16232 done
16233 if test -z "$haveit"; then
16234 ltrpathdirs="$ltrpathdirs $found_dir"
16236 if test "$hardcode_direct" = yes; then
16237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16238 else
16239 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16240 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16241 haveit=
16242 for x in $rpathdirs; do
16243 if test "X$x" = "X$found_dir"; then
16244 haveit=yes
16245 break
16247 done
16248 if test -z "$haveit"; then
16249 rpathdirs="$rpathdirs $found_dir"
16251 else
16252 haveit=
16253 for x in $LDFLAGS $LIBICONV; do
16255 acl_save_prefix="$prefix"
16256 prefix="$acl_final_prefix"
16257 acl_save_exec_prefix="$exec_prefix"
16258 exec_prefix="$acl_final_exec_prefix"
16259 eval x=\"$x\"
16260 exec_prefix="$acl_save_exec_prefix"
16261 prefix="$acl_save_prefix"
16263 if test "X$x" = "X-L$found_dir"; then
16264 haveit=yes
16265 break
16267 done
16268 if test -z "$haveit"; then
16269 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16271 if test "$hardcode_minus_L" != no; then
16272 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16273 else
16274 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16279 else
16280 if test "X$found_a" != "X"; then
16281 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16282 else
16283 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16286 additional_includedir=
16287 case "$found_dir" in
16288 */lib | */lib/)
16289 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16290 additional_includedir="$basedir/include"
16292 esac
16293 if test "X$additional_includedir" != "X"; then
16294 if test "X$additional_includedir" != "X/usr/include"; then
16295 haveit=
16296 if test "X$additional_includedir" = "X/usr/local/include"; then
16297 if test -n "$GCC"; then
16298 case $host_os in
16299 linux*) haveit=yes;;
16300 esac
16303 if test -z "$haveit"; then
16304 for x in $CPPFLAGS $INCICONV; do
16306 acl_save_prefix="$prefix"
16307 prefix="$acl_final_prefix"
16308 acl_save_exec_prefix="$exec_prefix"
16309 exec_prefix="$acl_final_exec_prefix"
16310 eval x=\"$x\"
16311 exec_prefix="$acl_save_exec_prefix"
16312 prefix="$acl_save_prefix"
16314 if test "X$x" = "X-I$additional_includedir"; then
16315 haveit=yes
16316 break
16318 done
16319 if test -z "$haveit"; then
16320 if test -d "$additional_includedir"; then
16321 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16327 if test -n "$found_la"; then
16328 save_libdir="$libdir"
16329 case "$found_la" in
16330 */* | *\\*) . "$found_la" ;;
16331 *) . "./$found_la" ;;
16332 esac
16333 libdir="$save_libdir"
16334 for dep in $dependency_libs; do
16335 case "$dep" in
16336 -L*)
16337 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16338 if test "X$additional_libdir" != "X/usr/lib"; then
16339 haveit=
16340 if test "X$additional_libdir" = "X/usr/local/lib"; then
16341 if test -n "$GCC"; then
16342 case $host_os in
16343 linux*) haveit=yes;;
16344 esac
16347 if test -z "$haveit"; then
16348 haveit=
16349 for x in $LDFLAGS $LIBICONV; do
16351 acl_save_prefix="$prefix"
16352 prefix="$acl_final_prefix"
16353 acl_save_exec_prefix="$exec_prefix"
16354 exec_prefix="$acl_final_exec_prefix"
16355 eval x=\"$x\"
16356 exec_prefix="$acl_save_exec_prefix"
16357 prefix="$acl_save_prefix"
16359 if test "X$x" = "X-L$additional_libdir"; then
16360 haveit=yes
16361 break
16363 done
16364 if test -z "$haveit"; then
16365 if test -d "$additional_libdir"; then
16366 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16369 haveit=
16370 for x in $LDFLAGS $LTLIBICONV; do
16372 acl_save_prefix="$prefix"
16373 prefix="$acl_final_prefix"
16374 acl_save_exec_prefix="$exec_prefix"
16375 exec_prefix="$acl_final_exec_prefix"
16376 eval x=\"$x\"
16377 exec_prefix="$acl_save_exec_prefix"
16378 prefix="$acl_save_prefix"
16380 if test "X$x" = "X-L$additional_libdir"; then
16381 haveit=yes
16382 break
16384 done
16385 if test -z "$haveit"; then
16386 if test -d "$additional_libdir"; then
16387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16393 -R*)
16394 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16395 if test "$enable_rpath" != no; then
16396 haveit=
16397 for x in $rpathdirs; do
16398 if test "X$x" = "X$dir"; then
16399 haveit=yes
16400 break
16402 done
16403 if test -z "$haveit"; then
16404 rpathdirs="$rpathdirs $dir"
16406 haveit=
16407 for x in $ltrpathdirs; do
16408 if test "X$x" = "X$dir"; then
16409 haveit=yes
16410 break
16412 done
16413 if test -z "$haveit"; then
16414 ltrpathdirs="$ltrpathdirs $dir"
16418 -l*)
16419 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16421 *.la)
16422 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16425 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16426 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16428 esac
16429 done
16431 else
16432 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16433 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16437 done
16438 done
16439 if test "X$rpathdirs" != "X"; then
16440 if test -n "$hardcode_libdir_separator"; then
16441 alldirs=
16442 for found_dir in $rpathdirs; do
16443 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16444 done
16445 acl_save_libdir="$libdir"
16446 libdir="$alldirs"
16447 eval flag=\"$hardcode_libdir_flag_spec\"
16448 libdir="$acl_save_libdir"
16449 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16450 else
16451 for found_dir in $rpathdirs; do
16452 acl_save_libdir="$libdir"
16453 libdir="$found_dir"
16454 eval flag=\"$hardcode_libdir_flag_spec\"
16455 libdir="$acl_save_libdir"
16456 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16457 done
16460 if test "X$ltrpathdirs" != "X"; then
16461 for found_dir in $ltrpathdirs; do
16462 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16463 done
16479 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16480 stdlib.h string.h unistd.h sys/param.h
16482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16484 echo "$as_me:$LINENO: checking for $ac_header" >&5
16485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16491 else
16492 # Is the header compilable?
16493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h. */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 $ac_includes_default
16502 #include <$ac_header>
16503 _ACEOF
16504 rm -f conftest.$ac_objext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506 (eval $ac_compile) 2>conftest.er1
16507 ac_status=$?
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -z "$ac_c_werror_flag"
16514 || test ! -s conftest.err'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_header_compiler=yes
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ac_header_compiler=no
16533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16535 echo "${ECHO_T}$ac_header_compiler" >&6
16537 # Is the header present?
16538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16540 cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 #include <$ac_header>
16547 _ACEOF
16548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } >/dev/null; then
16556 if test -s conftest.err; then
16557 ac_cpp_err=$ac_c_preproc_warn_flag
16558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16559 else
16560 ac_cpp_err=
16562 else
16563 ac_cpp_err=yes
16565 if test -z "$ac_cpp_err"; then
16566 ac_header_preproc=yes
16567 else
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_header_preproc=no
16573 rm -f conftest.err conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16575 echo "${ECHO_T}$ac_header_preproc" >&6
16577 # So? What about this header?
16578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16579 yes:no: )
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16584 ac_header_preproc=yes
16586 no:yes:* )
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16600 cat <<\_ASBOX
16601 ## ------------------------------ ##
16602 ## Report this to admin@amule.org ##
16603 ## ------------------------------ ##
16604 _ASBOX
16606 sed "s/^/$as_me: WARNING: /" >&2
16608 esac
16609 echo "$as_me:$LINENO: checking for $ac_header" >&5
16610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 eval "$as_ac_Header=\$ac_header_preproc"
16616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16621 cat >>confdefs.h <<_ACEOF
16622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16623 _ACEOF
16627 done
16650 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16651 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16652 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16655 echo "$as_me:$LINENO: checking for $ac_func" >&5
16656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16657 if eval "test \"\${$as_ac_var+set}\" = set"; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16668 #define $ac_func innocuous_$ac_func
16670 /* System header to define __stub macros and hopefully few prototypes,
16671 which can conflict with char $ac_func (); below.
16672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16673 <limits.h> exists even on freestanding compilers. */
16675 #ifdef __STDC__
16676 # include <limits.h>
16677 #else
16678 # include <assert.h>
16679 #endif
16681 #undef $ac_func
16683 /* Override any gcc2 internal prototype to avoid an error. */
16684 #ifdef __cplusplus
16685 extern "C"
16687 #endif
16688 /* We use char because int might match the return type of a gcc2
16689 builtin and then its argument prototype would still apply. */
16690 char $ac_func ();
16691 /* The GNU C library defines this for functions which it implements
16692 to always fail with ENOSYS. Some functions are actually named
16693 something starting with __ and the normal name is an alias. */
16694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16695 choke me
16696 #else
16697 char (*f) () = $ac_func;
16698 #endif
16699 #ifdef __cplusplus
16701 #endif
16704 main ()
16706 return f != $ac_func;
16708 return 0;
16710 _ACEOF
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16713 (eval $ac_link) 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag"
16721 || test ! -s conftest.err'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; } &&
16727 { ac_try='test -s conftest$ac_exeext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 eval "$as_ac_var=yes"
16734 else
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 eval "$as_ac_var=no"
16740 rm -f conftest.err conftest.$ac_objext \
16741 conftest$ac_exeext conftest.$ac_ext
16743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16745 if test `eval echo '${'$as_ac_var'}'` = yes; then
16746 cat >>confdefs.h <<_ACEOF
16747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16748 _ACEOF
16751 done
16759 am_save_CPPFLAGS="$CPPFLAGS"
16761 for element in $INCICONV; do
16762 haveit=
16763 for x in $CPPFLAGS; do
16765 acl_save_prefix="$prefix"
16766 prefix="$acl_final_prefix"
16767 acl_save_exec_prefix="$exec_prefix"
16768 exec_prefix="$acl_final_exec_prefix"
16769 eval x=\"$x\"
16770 exec_prefix="$acl_save_exec_prefix"
16771 prefix="$acl_save_prefix"
16773 if test "X$x" = "X$element"; then
16774 haveit=yes
16775 break
16777 done
16778 if test -z "$haveit"; then
16779 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16781 done
16784 echo "$as_me:$LINENO: checking for iconv" >&5
16785 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16786 if test "${am_cv_func_iconv+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16790 am_cv_func_iconv="no, consider installing GNU libiconv"
16791 am_cv_lib_iconv=no
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 #include <stdlib.h>
16799 #include <iconv.h>
16801 main ()
16803 iconv_t cd = iconv_open("","");
16804 iconv(cd,NULL,NULL,NULL,NULL);
16805 iconv_close(cd);
16807 return 0;
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812 (eval $ac_link) 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag"
16820 || test ! -s conftest.err'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest$ac_exeext'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 am_cv_func_iconv=yes
16833 else
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16838 rm -f conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840 if test "$am_cv_func_iconv" != yes; then
16841 am_save_LIBS="$LIBS"
16842 LIBS="$LIBS $LIBICONV"
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <stdlib.h>
16850 #include <iconv.h>
16852 main ()
16854 iconv_t cd = iconv_open("","");
16855 iconv(cd,NULL,NULL,NULL,NULL);
16856 iconv_close(cd);
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 am_cv_lib_iconv=yes
16884 am_cv_func_iconv=yes
16885 else
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 LIBS="$am_save_LIBS"
16896 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16897 echo "${ECHO_T}$am_cv_func_iconv" >&6
16898 if test "$am_cv_func_iconv" = yes; then
16900 cat >>confdefs.h <<\_ACEOF
16901 #define HAVE_ICONV 1
16902 _ACEOF
16905 if test "$am_cv_lib_iconv" = yes; then
16906 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16907 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16908 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16909 echo "${ECHO_T}$LIBICONV" >&6
16910 else
16911 CPPFLAGS="$am_save_CPPFLAGS"
16912 LIBICONV=
16913 LTLIBICONV=
16918 if test "$am_cv_func_iconv" = yes; then
16919 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16920 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16921 if test "${am_cv_proto_iconv+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16925 cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h. */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16932 #include <stdlib.h>
16933 #include <iconv.h>
16934 extern
16935 #ifdef __cplusplus
16937 #endif
16938 #if defined(__STDC__) || defined(__cplusplus)
16939 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16940 #else
16941 size_t iconv();
16942 #endif
16945 main ()
16949 return 0;
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954 (eval $ac_compile) 2>conftest.er1
16955 ac_status=$?
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag"
16962 || test ! -s conftest.err'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 am_cv_proto_iconv_arg1=""
16975 else
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 am_cv_proto_iconv_arg1="const"
16981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16982 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);"
16985 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16986 echo "$as_me:$LINENO: result: ${ac_t:-
16987 }$am_cv_proto_iconv" >&5
16988 echo "${ECHO_T}${ac_t:-
16989 }$am_cv_proto_iconv" >&6
16991 cat >>confdefs.h <<_ACEOF
16992 #define ICONV_CONST $am_cv_proto_iconv_arg1
16993 _ACEOF
16998 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16999 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17000 if test "${am_cv_langinfo_codeset+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h. */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 #include <langinfo.h>
17011 main ()
17013 char* cs = nl_langinfo(CODESET);
17015 return 0;
17017 _ACEOF
17018 rm -f conftest.$ac_objext conftest$ac_exeext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020 (eval $ac_link) 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 am_cv_langinfo_codeset=yes
17041 else
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 am_cv_langinfo_codeset=no
17047 rm -f conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17051 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17052 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17053 if test $am_cv_langinfo_codeset = yes; then
17055 cat >>confdefs.h <<\_ACEOF
17056 #define HAVE_LANGINFO_CODESET 1
17057 _ACEOF
17061 if test $ac_cv_header_locale_h = yes; then
17063 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17064 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17065 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h. */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 #include <locale.h>
17076 main ()
17078 return LC_MESSAGES
17080 return 0;
17082 _ACEOF
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17085 (eval $ac_link) 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag"
17093 || test ! -s conftest.err'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest$ac_exeext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 am_cv_val_LC_MESSAGES=yes
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 am_cv_val_LC_MESSAGES=no
17112 rm -f conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17115 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17116 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17117 if test $am_cv_val_LC_MESSAGES = yes; then
17119 cat >>confdefs.h <<\_ACEOF
17120 #define HAVE_LC_MESSAGES 1
17121 _ACEOF
17127 for ac_prog in bison
17129 # Extract the first word of "$ac_prog", so it can be a program name with args.
17130 set dummy $ac_prog; ac_word=$2
17131 echo "$as_me:$LINENO: checking for $ac_word" >&5
17132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17133 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136 if test -n "$INTLBISON"; then
17137 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17138 else
17139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17140 for as_dir in $PATH
17142 IFS=$as_save_IFS
17143 test -z "$as_dir" && as_dir=.
17144 for ac_exec_ext in '' $ac_executable_extensions; do
17145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17146 ac_cv_prog_INTLBISON="$ac_prog"
17147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17148 break 2
17150 done
17151 done
17155 INTLBISON=$ac_cv_prog_INTLBISON
17156 if test -n "$INTLBISON"; then
17157 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17158 echo "${ECHO_T}$INTLBISON" >&6
17159 else
17160 echo "$as_me:$LINENO: result: no" >&5
17161 echo "${ECHO_T}no" >&6
17164 test -n "$INTLBISON" && break
17165 done
17167 if test -z "$INTLBISON"; then
17168 ac_verc_fail=yes
17169 else
17170 echo "$as_me:$LINENO: checking version of bison" >&5
17171 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17172 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17173 case $ac_prog_version in
17174 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17175 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17176 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17177 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17178 esac
17179 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17180 echo "${ECHO_T}$ac_prog_version" >&6
17182 if test $ac_verc_fail = yes; then
17183 INTLBISON=:
17188 # Check whether --with-language or --without-language was given.
17189 if test "${with_language+set}" = set; then
17190 withval="$with_language"
17191 if test "$withval" != "all"; then
17192 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17211 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17212 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17213 # Check whether --enable-nls or --disable-nls was given.
17214 if test "${enable_nls+set}" = set; then
17215 enableval="$enable_nls"
17216 USE_NLS=$enableval
17217 else
17218 USE_NLS=yes
17220 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17221 echo "${ECHO_T}$USE_NLS" >&6
17225 BUILD_INCLUDED_LIBINTL=no
17226 USE_INCLUDED_LIBINTL=no
17228 LIBINTL=
17229 LTLIBINTL=
17230 POSUB=
17232 if test "$USE_NLS" = "yes"; then
17233 gt_use_preinstalled_gnugettext=no
17235 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17236 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17238 # Check whether --with-included-gettext or --without-included-gettext was given.
17239 if test "${with_included_gettext+set}" = set; then
17240 withval="$with_included_gettext"
17241 nls_cv_force_use_gnu_gettext=$withval
17242 else
17243 nls_cv_force_use_gnu_gettext=no
17245 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17246 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17248 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17249 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17256 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17257 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17258 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 #include <libintl.h>
17268 extern int _nl_msg_cat_cntr;
17269 extern int *_nl_domain_bindings;
17271 main ()
17273 bindtextdomain ("", "");
17274 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17276 return 0;
17278 _ACEOF
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 gt_cv_func_gnugettext2_libc=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 gt_cv_func_gnugettext2_libc=no
17308 rm -f conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17311 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17312 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17314 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17318 use_additional=yes
17320 acl_save_prefix="$prefix"
17321 prefix="$acl_final_prefix"
17322 acl_save_exec_prefix="$exec_prefix"
17323 exec_prefix="$acl_final_exec_prefix"
17325 eval additional_includedir=\"$includedir\"
17326 eval additional_libdir=\"$libdir\"
17328 exec_prefix="$acl_save_exec_prefix"
17329 prefix="$acl_save_prefix"
17332 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17333 if test "${with_libintl_prefix+set}" = set; then
17334 withval="$with_libintl_prefix"
17336 if test "X$withval" = "Xno"; then
17337 use_additional=no
17338 else
17339 if test "X$withval" = "X"; then
17341 acl_save_prefix="$prefix"
17342 prefix="$acl_final_prefix"
17343 acl_save_exec_prefix="$exec_prefix"
17344 exec_prefix="$acl_final_exec_prefix"
17346 eval additional_includedir=\"$includedir\"
17347 eval additional_libdir=\"$libdir\"
17349 exec_prefix="$acl_save_exec_prefix"
17350 prefix="$acl_save_prefix"
17352 else
17353 additional_includedir="$withval/include"
17354 additional_libdir="$withval/lib"
17359 LIBINTL=
17360 LTLIBINTL=
17361 INCINTL=
17362 rpathdirs=
17363 ltrpathdirs=
17364 names_already_handled=
17365 names_next_round='intl '
17366 while test -n "$names_next_round"; do
17367 names_this_round="$names_next_round"
17368 names_next_round=
17369 for name in $names_this_round; do
17370 already_handled=
17371 for n in $names_already_handled; do
17372 if test "$n" = "$name"; then
17373 already_handled=yes
17374 break
17376 done
17377 if test -z "$already_handled"; then
17378 names_already_handled="$names_already_handled $name"
17379 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17380 eval value=\"\$HAVE_LIB$uppername\"
17381 if test -n "$value"; then
17382 if test "$value" = yes; then
17383 eval value=\"\$LIB$uppername\"
17384 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17385 eval value=\"\$LTLIB$uppername\"
17386 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17387 else
17390 else
17391 found_dir=
17392 found_la=
17393 found_so=
17394 found_a=
17395 if test $use_additional = yes; then
17396 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17397 found_dir="$additional_libdir"
17398 found_so="$additional_libdir/lib$name.$shlibext"
17399 if test -f "$additional_libdir/lib$name.la"; then
17400 found_la="$additional_libdir/lib$name.la"
17402 else
17403 if test -f "$additional_libdir/lib$name.$libext"; then
17404 found_dir="$additional_libdir"
17405 found_a="$additional_libdir/lib$name.$libext"
17406 if test -f "$additional_libdir/lib$name.la"; then
17407 found_la="$additional_libdir/lib$name.la"
17412 if test "X$found_dir" = "X"; then
17413 for x in $LDFLAGS $LTLIBINTL; do
17415 acl_save_prefix="$prefix"
17416 prefix="$acl_final_prefix"
17417 acl_save_exec_prefix="$exec_prefix"
17418 exec_prefix="$acl_final_exec_prefix"
17419 eval x=\"$x\"
17420 exec_prefix="$acl_save_exec_prefix"
17421 prefix="$acl_save_prefix"
17423 case "$x" in
17424 -L*)
17425 dir=`echo "X$x" | sed -e 's/^X-L//'`
17426 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17427 found_dir="$dir"
17428 found_so="$dir/lib$name.$shlibext"
17429 if test -f "$dir/lib$name.la"; then
17430 found_la="$dir/lib$name.la"
17432 else
17433 if test -f "$dir/lib$name.$libext"; then
17434 found_dir="$dir"
17435 found_a="$dir/lib$name.$libext"
17436 if test -f "$dir/lib$name.la"; then
17437 found_la="$dir/lib$name.la"
17442 esac
17443 if test "X$found_dir" != "X"; then
17444 break
17446 done
17448 if test "X$found_dir" != "X"; then
17449 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17450 if test "X$found_so" != "X"; then
17451 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17453 else
17454 haveit=
17455 for x in $ltrpathdirs; do
17456 if test "X$x" = "X$found_dir"; then
17457 haveit=yes
17458 break
17460 done
17461 if test -z "$haveit"; then
17462 ltrpathdirs="$ltrpathdirs $found_dir"
17464 if test "$hardcode_direct" = yes; then
17465 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17466 else
17467 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17468 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17469 haveit=
17470 for x in $rpathdirs; do
17471 if test "X$x" = "X$found_dir"; then
17472 haveit=yes
17473 break
17475 done
17476 if test -z "$haveit"; then
17477 rpathdirs="$rpathdirs $found_dir"
17479 else
17480 haveit=
17481 for x in $LDFLAGS $LIBINTL; do
17483 acl_save_prefix="$prefix"
17484 prefix="$acl_final_prefix"
17485 acl_save_exec_prefix="$exec_prefix"
17486 exec_prefix="$acl_final_exec_prefix"
17487 eval x=\"$x\"
17488 exec_prefix="$acl_save_exec_prefix"
17489 prefix="$acl_save_prefix"
17491 if test "X$x" = "X-L$found_dir"; then
17492 haveit=yes
17493 break
17495 done
17496 if test -z "$haveit"; then
17497 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17499 if test "$hardcode_minus_L" != no; then
17500 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17501 else
17502 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17507 else
17508 if test "X$found_a" != "X"; then
17509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17510 else
17511 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17514 additional_includedir=
17515 case "$found_dir" in
17516 */lib | */lib/)
17517 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17518 additional_includedir="$basedir/include"
17520 esac
17521 if test "X$additional_includedir" != "X"; then
17522 if test "X$additional_includedir" != "X/usr/include"; then
17523 haveit=
17524 if test "X$additional_includedir" = "X/usr/local/include"; then
17525 if test -n "$GCC"; then
17526 case $host_os in
17527 linux*) haveit=yes;;
17528 esac
17531 if test -z "$haveit"; then
17532 for x in $CPPFLAGS $INCINTL; do
17534 acl_save_prefix="$prefix"
17535 prefix="$acl_final_prefix"
17536 acl_save_exec_prefix="$exec_prefix"
17537 exec_prefix="$acl_final_exec_prefix"
17538 eval x=\"$x\"
17539 exec_prefix="$acl_save_exec_prefix"
17540 prefix="$acl_save_prefix"
17542 if test "X$x" = "X-I$additional_includedir"; then
17543 haveit=yes
17544 break
17546 done
17547 if test -z "$haveit"; then
17548 if test -d "$additional_includedir"; then
17549 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17555 if test -n "$found_la"; then
17556 save_libdir="$libdir"
17557 case "$found_la" in
17558 */* | *\\*) . "$found_la" ;;
17559 *) . "./$found_la" ;;
17560 esac
17561 libdir="$save_libdir"
17562 for dep in $dependency_libs; do
17563 case "$dep" in
17564 -L*)
17565 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17566 if test "X$additional_libdir" != "X/usr/lib"; then
17567 haveit=
17568 if test "X$additional_libdir" = "X/usr/local/lib"; then
17569 if test -n "$GCC"; then
17570 case $host_os in
17571 linux*) haveit=yes;;
17572 esac
17575 if test -z "$haveit"; then
17576 haveit=
17577 for x in $LDFLAGS $LIBINTL; do
17579 acl_save_prefix="$prefix"
17580 prefix="$acl_final_prefix"
17581 acl_save_exec_prefix="$exec_prefix"
17582 exec_prefix="$acl_final_exec_prefix"
17583 eval x=\"$x\"
17584 exec_prefix="$acl_save_exec_prefix"
17585 prefix="$acl_save_prefix"
17587 if test "X$x" = "X-L$additional_libdir"; then
17588 haveit=yes
17589 break
17591 done
17592 if test -z "$haveit"; then
17593 if test -d "$additional_libdir"; then
17594 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17597 haveit=
17598 for x in $LDFLAGS $LTLIBINTL; do
17600 acl_save_prefix="$prefix"
17601 prefix="$acl_final_prefix"
17602 acl_save_exec_prefix="$exec_prefix"
17603 exec_prefix="$acl_final_exec_prefix"
17604 eval x=\"$x\"
17605 exec_prefix="$acl_save_exec_prefix"
17606 prefix="$acl_save_prefix"
17608 if test "X$x" = "X-L$additional_libdir"; then
17609 haveit=yes
17610 break
17612 done
17613 if test -z "$haveit"; then
17614 if test -d "$additional_libdir"; then
17615 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17621 -R*)
17622 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17623 if test "$enable_rpath" != no; then
17624 haveit=
17625 for x in $rpathdirs; do
17626 if test "X$x" = "X$dir"; then
17627 haveit=yes
17628 break
17630 done
17631 if test -z "$haveit"; then
17632 rpathdirs="$rpathdirs $dir"
17634 haveit=
17635 for x in $ltrpathdirs; do
17636 if test "X$x" = "X$dir"; then
17637 haveit=yes
17638 break
17640 done
17641 if test -z "$haveit"; then
17642 ltrpathdirs="$ltrpathdirs $dir"
17646 -l*)
17647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17649 *.la)
17650 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17653 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17654 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17656 esac
17657 done
17659 else
17660 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17665 done
17666 done
17667 if test "X$rpathdirs" != "X"; then
17668 if test -n "$hardcode_libdir_separator"; then
17669 alldirs=
17670 for found_dir in $rpathdirs; do
17671 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17672 done
17673 acl_save_libdir="$libdir"
17674 libdir="$alldirs"
17675 eval flag=\"$hardcode_libdir_flag_spec\"
17676 libdir="$acl_save_libdir"
17677 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17678 else
17679 for found_dir in $rpathdirs; do
17680 acl_save_libdir="$libdir"
17681 libdir="$found_dir"
17682 eval flag=\"$hardcode_libdir_flag_spec\"
17683 libdir="$acl_save_libdir"
17684 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17685 done
17688 if test "X$ltrpathdirs" != "X"; then
17689 for found_dir in $ltrpathdirs; do
17690 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17691 done
17694 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17695 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17696 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699 gt_save_CPPFLAGS="$CPPFLAGS"
17700 CPPFLAGS="$CPPFLAGS $INCINTL"
17701 gt_save_LIBS="$LIBS"
17702 LIBS="$LIBS $LIBINTL"
17703 cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h. */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17709 #include <libintl.h>
17710 extern int _nl_msg_cat_cntr;
17711 extern
17712 #ifdef __cplusplus
17714 #endif
17715 const char *_nl_expand_alias ();
17717 main ()
17719 bindtextdomain ("", "");
17720 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17722 return 0;
17724 _ACEOF
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17727 (eval $ac_link) 2>conftest.er1
17728 ac_status=$?
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
17734 { ac_try='test -z "$ac_c_werror_flag"
17735 || test ! -s conftest.err'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; } &&
17741 { ac_try='test -s conftest$ac_exeext'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 gt_cv_func_gnugettext2_libintl=yes
17748 else
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 gt_cv_func_gnugettext2_libintl=no
17754 rm -f conftest.err conftest.$ac_objext \
17755 conftest$ac_exeext conftest.$ac_ext
17756 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17757 LIBS="$LIBS $LIBICONV"
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 #include <libintl.h>
17765 extern int _nl_msg_cat_cntr;
17766 extern
17767 #ifdef __cplusplus
17769 #endif
17770 const char *_nl_expand_alias ();
17772 main ()
17774 bindtextdomain ("", "");
17775 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17777 return 0;
17779 _ACEOF
17780 rm -f conftest.$ac_objext conftest$ac_exeext
17781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782 (eval $ac_link) 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag"
17790 || test ! -s conftest.err'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest$ac_exeext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 LIBINTL="$LIBINTL $LIBICONV"
17803 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17804 gt_cv_func_gnugettext2_libintl=yes
17806 else
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17811 rm -f conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17814 CPPFLAGS="$gt_save_CPPFLAGS"
17815 LIBS="$gt_save_LIBS"
17817 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17818 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17821 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17822 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17823 && test "$PACKAGE" != gettext; }; then
17824 gt_use_preinstalled_gnugettext=yes
17825 else
17826 LIBINTL=
17827 LTLIBINTL=
17828 INCINTL=
17832 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17833 nls_cv_use_gnu_gettext=yes
17837 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17838 INTLOBJS="\$(GETTOBJS)"
17839 BUILD_INCLUDED_LIBINTL=yes
17840 USE_INCLUDED_LIBINTL=yes
17841 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17842 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17843 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17846 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17847 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17848 CATOBJEXT=.gmo
17852 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17853 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17855 cat >>confdefs.h <<\_ACEOF
17856 #define ENABLE_NLS 1
17857 _ACEOF
17859 else
17860 USE_NLS=no
17864 if test "$USE_NLS" = "yes"; then
17866 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17867 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17868 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17869 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17870 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17871 echo "${ECHO_T}$LIBINTL" >&6
17873 for element in $INCINTL; do
17874 haveit=
17875 for x in $CPPFLAGS; do
17877 acl_save_prefix="$prefix"
17878 prefix="$acl_final_prefix"
17879 acl_save_exec_prefix="$exec_prefix"
17880 exec_prefix="$acl_final_exec_prefix"
17881 eval x=\"$x\"
17882 exec_prefix="$acl_save_exec_prefix"
17883 prefix="$acl_save_prefix"
17885 if test "X$x" = "X$element"; then
17886 haveit=yes
17887 break
17889 done
17890 if test -z "$haveit"; then
17891 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17893 done
17898 cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_GETTEXT 1
17900 _ACEOF
17903 cat >>confdefs.h <<\_ACEOF
17904 #define HAVE_DCGETTEXT 1
17905 _ACEOF
17909 POSUB=po
17913 if test "$PACKAGE" = gettext; then
17914 BUILD_INCLUDED_LIBINTL=yes
17922 nls_cv_header_intl=
17923 nls_cv_header_libgt=
17925 DATADIRNAME=share
17928 INSTOBJEXT=.mo
17931 GENCAT=gencat
17934 INTL_LIBTOOL_SUFFIX_PREFIX=
17938 INTLLIBS="$LIBINTL"
17945 if test $USE_INCLUDED_LIBINTL = yes; then
17946 INCINTL=-I\${top_builddir}/intl
17950 if test x$USE_NLS = xyes; then
17952 echo "$as_me:$LINENO: checking for autopoint" >&5
17953 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17954 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17955 if test -n "$autopoint_version"; then
17957 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17958 echo "${ECHO_T}yes ($autopoint_version)" >&6
17961 else
17963 echo "$as_me:$LINENO: result: no" >&5
17964 echo "${ECHO_T}no" >&6
17965 USE_NLS=no
17972 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
17973 { echo "$as_me:$LINENO: WARNING:
17974 You need to install GNU gettext/gettext-tools to compile aMule with
17975 i18n support." >&5
17976 echo "$as_me: WARNING:
17977 You need to install GNU gettext/gettext-tools to compile aMule with
17978 i18n support." >&2;}
17979 _mule_warning_9=yes
17980 _mule_has_warnings=yes
17985 if test ${USE_NLS:-no} = yes; then
17987 echo "$as_me:$LINENO: checking for requested languages" >&5
17988 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17989 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17991 if test ${enable_amule_daemon:-no} = yes; then
17993 if test -z "$LINGUAS"; then
17994 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17995 else
17997 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
17998 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18002 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18004 else
18005 AMULE_DAEMON_MANPAGES=
18011 if test ${enable_amulecmd:-no} = yes; then
18013 if test -z "$LINGUAS"; then
18014 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18015 else
18017 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18018 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18022 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18024 else
18025 AMULECMD_MANPAGES=
18031 if test ${enable_webserver:-no} = yes; then
18033 if test -z "$LINGUAS"; then
18034 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18035 else
18037 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18038 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
18042 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
18044 else
18045 WEBSERVER_MANPAGES=
18051 if test ${enable_amule_gui:-no} = yes; then
18053 if test -z "$LINGUAS"; then
18054 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18055 else
18057 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18058 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18062 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18064 else
18065 AMULE_GUI_MANPAGES=
18071 if test ${enable_cas:-no} = yes; then
18073 if test -z "$LINGUAS"; then
18074 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18075 else
18077 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18078 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18082 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18084 else
18085 CAS_MANPAGES=
18091 if test ${enable_wxcas:-no} = yes; then
18093 if test -z "$LINGUAS"; then
18094 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18095 else
18097 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18098 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18102 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18104 else
18105 WXCAS_MANPAGES=
18111 if test ${enable_ed2k:-yes} = yes; then
18113 if test -z "$LINGUAS"; then
18114 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18115 else
18117 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18118 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18122 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18124 else
18125 ED2K_MANPAGES=
18131 if test ${enable_alc:-no} = yes; then
18133 if test -z "$LINGUAS"; then
18134 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18135 else
18137 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18138 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18142 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18144 else
18145 ALC_MANPAGES=
18151 if test ${enable_alcc:-no} = yes; then
18153 if test -z "$LINGUAS"; then
18154 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18155 else
18157 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18158 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18162 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18164 else
18165 ALCC_MANPAGES=
18171 if test ${enable_monolithic:-yes} = yes; then
18173 if test -z "$LINGUAS"; then
18174 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18175 else
18177 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18178 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18182 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18184 else
18185 MONOLITHIC_MANPAGES=
18190 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18191 echo "${ECHO_T}${LINGUAS:-all}" >&6
18198 # Check for bfd.h (to have proper backtraces without using wxExecute)
18200 echo "$as_me:$LINENO: checking for bfd" >&5
18201 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18202 result=no
18203 for bfd_ldadd in "" "${LIBINTL}"; do
18204 mule_backup_LIBS="$LIBS"
18205 mule_backup_LDFLAGS="$LDFLAGS"
18206 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18207 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18208 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18216 #include <ansidecl.h>
18217 #include <bfd.h>
18220 main ()
18223 char *dummy = bfd_errmsg(bfd_get_error());
18226 return 0;
18229 _ACEOF
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>conftest.er1
18233 ac_status=$?
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18253 result=yes
18254 BFD_CPPFLAGS="-DHAVE_BFD"
18255 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18256 LIBS="$mule_backup_LIBS"
18257 LDFLAGS="$mule_backup_LDFLAGS"
18258 break
18260 else
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18265 rm -f conftest.err conftest.$ac_objext \
18266 conftest$ac_exeext conftest.$ac_ext
18267 LIBS="$mule_backup_LIBS"
18268 LDFLAGS="$mule_backup_LDFLAGS"
18269 done
18271 echo "$as_me:$LINENO: result: $result" >&5
18272 echo "${ECHO_T}$result" >&6
18274 if test $result = no; then
18275 { echo "$as_me:$LINENO: WARNING:
18276 bfd.h not found or unusable, please install binutils development
18277 package if you are a developer or want to help testing aMule" >&5
18278 echo "$as_me: WARNING:
18279 bfd.h not found or unusable, please install binutils development
18280 package if you are a developer or want to help testing aMule" >&2;}
18281 _mule_warning_10=yes
18282 _mule_has_warnings=yes
18289 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18290 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18291 cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h. */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18299 #include <execinfo.h>
18302 main ()
18305 void *bt[1];
18306 int n = backtrace(&bt, 1);
18307 const char **bt_syms = backtrace_symbols(bt, n);
18310 return 0;
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag"
18324 || test ! -s conftest.err'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest$ac_exeext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18339 cat >>confdefs.h <<\_ACEOF
18340 #define HAVE_EXECINFO 1
18341 _ACEOF
18343 echo "$as_me:$LINENO: result: yes" >&5
18344 echo "${ECHO_T}yes" >&6
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18351 echo "$as_me:$LINENO: result: no" >&5
18352 echo "${ECHO_T}no" >&6
18355 rm -f conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18359 # Flush standard test results for speeding cache
18360 cat >confcache <<\_ACEOF
18361 # This file is a shell script that caches the results of configure
18362 # tests run on this system so they can be shared between configure
18363 # scripts and configure runs, see configure's option --config-cache.
18364 # It is not useful on other systems. If it contains results you don't
18365 # want to keep, you may remove or edit it.
18367 # config.status only pays attention to the cache file if you give it
18368 # the --recheck option to rerun configure.
18370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18372 # following values.
18374 _ACEOF
18376 # The following way of writing the cache mishandles newlines in values,
18377 # but we know of no workaround that is simple, portable, and efficient.
18378 # So, don't put newlines in cache variables' values.
18379 # Ultrix sh set writes to stderr and can't be redirected directly,
18380 # and sets the high bit in the cache file unless we assign to the vars.
18382 (set) 2>&1 |
18383 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18384 *ac_space=\ *)
18385 # `set' does not quote correctly, so add quotes (double-quote
18386 # substitution turns \\\\ into \\, and sed turns \\ into \).
18387 sed -n \
18388 "s/'/'\\\\''/g;
18389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18392 # `set' quotes correctly as required by POSIX, so do not add quotes.
18393 sed -n \
18394 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18396 esac;
18398 sed '
18399 t clear
18400 : clear
18401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18402 t end
18403 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18404 : end' >>confcache
18405 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18406 if test -w $cache_file; then
18407 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18408 cat confcache >$cache_file
18409 else
18410 echo "not updating unwritable cache $cache_file"
18413 rm -f confcache
18415 # Other tests
18416 # aMule options
18418 # Check whether --enable-debug or --disable-debug was given.
18419 if test "${enable_debug+set}" = set; then
18420 enableval="$enable_debug"
18424 # Check whether --enable-profile or --disable-profile was given.
18425 if test "${enable_profile+set}" = set; then
18426 enableval="$enable_profile"
18430 # Check whether --enable-optimize or --disable-optimize was given.
18431 if test "${enable_optimize+set}" = set; then
18432 enableval="$enable_optimize"
18437 if test ${enable_debug:-yes} = yes; then
18439 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18441 MULECFLAGS="$MULECFLAGS -g"
18442 MULECXXFLAGS="$MULECXXFLAGS -g"
18444 if test ${GLIBCXX:-no} = yes; then
18445 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18448 if test ${GCC:-no} = yes; then
18450 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18451 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18455 if test ${SYS:-unknown} = win32; then
18456 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18460 else
18462 if test ${GCC:-no} = yes; then
18464 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18465 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18473 if test ${enable_profile:-no} = yes; then
18476 MULECFLAGS="$MULECFLAGS -pg"
18477 MULECXXFLAGS="$MULECXXFLAGS -pg"
18479 MULELDFLAGS="$MULELDFLAGS -pg"
18484 if test ${enable_optimize:-no} = yes; then
18486 MULECFLAGS="$MULECFLAGS -O2"
18487 MULECXXFLAGS="$MULECXXFLAGS -O2"
18492 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18495 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18496 echo "$as_me:$LINENO: checking for docdir" >&5
18497 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18498 if test -z "$docdir"; then
18499 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18502 echo "$as_me:$LINENO: result: $docdir" >&5
18503 echo "${ECHO_T}$docdir" >&6
18505 # Try to set the SVN checkout-date
18506 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18507 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18508 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18509 then
18510 svndate="rev. `cat $srcdir/.svn-revision`"
18511 elif test -d $srcdir/.svn # SVNDATE for svn
18512 then
18513 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18515 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18516 echo "${ECHO_T}${svndate:-None required}" >&6
18517 if test -n "$svndate"; then
18520 cat >>confdefs.h <<_ACEOF
18521 #define SVNDATE "$svndate"
18522 _ACEOF
18524 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18528 SVNDATE=$svndate
18532 # Check whether --with-denoise-level or --without-denoise-level was given.
18533 if test "${with_denoise_level+set}" = set; then
18534 withval="$with_denoise_level"
18538 echo "$as_me:$LINENO: checking denoising level" >&5
18539 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18540 if test ${with_denoise_level:-5} = yes; then
18541 with_denoise_level=5
18544 if test ${with_denoise_level:-5} = no; then
18545 with_denoise_level=0
18548 if test ${with_denoise_level:-5} -gt 4; then
18549 if test "${svndate:+set}" = "set"; then
18550 with_denoise_level=0
18551 else
18552 with_denoise_level=4
18557 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18558 echo "${ECHO_T}$with_denoise_level" >&6
18560 ac_config_commands="$ac_config_commands denoiser"
18566 if test ${enable_upnp:-yes} = yes; then
18567 ENABLE_UPNP_TRUE=
18568 ENABLE_UPNP_FALSE='#'
18569 else
18570 ENABLE_UPNP_TRUE='#'
18571 ENABLE_UPNP_FALSE=
18576 if test ${enable_geoip:-no} = yes; then
18577 ENABLE_IP2COUNTRY_TRUE=
18578 ENABLE_IP2COUNTRY_FALSE='#'
18579 else
18580 ENABLE_IP2COUNTRY_TRUE='#'
18581 ENABLE_IP2COUNTRY_FALSE=
18586 if test x$SYS = xwin32; then
18587 SYS_WIN32_TRUE=
18588 SYS_WIN32_FALSE='#'
18589 else
18590 SYS_WIN32_TRUE='#'
18591 SYS_WIN32_FALSE=
18596 if test x$SYS = xwin32 -a "$RC" != ":"; then
18597 NEED_RC_TRUE=
18598 NEED_RC_FALSE='#'
18599 else
18600 NEED_RC_TRUE='#'
18601 NEED_RC_FALSE=
18606 if test x$SYS = xdarwin; then
18607 NEED_CORESERVICES_TRUE=
18608 NEED_CORESERVICES_FALSE='#'
18609 else
18610 NEED_CORESERVICES_TRUE='#'
18611 NEED_CORESERVICES_FALSE=
18616 if test x$USE_NLS = xyes; then
18617 COMPILE_NLS_TRUE=
18618 COMPILE_NLS_FALSE='#'
18619 else
18620 COMPILE_NLS_TRUE='#'
18621 COMPILE_NLS_FALSE=
18626 if test x$HAVE_FLEX_EXTENDED = xyes; then
18627 GENERATE_FLEX_HEADER_TRUE=
18628 GENERATE_FLEX_HEADER_FALSE='#'
18629 else
18630 GENERATE_FLEX_HEADER_TRUE='#'
18631 GENERATE_FLEX_HEADER_FALSE=
18636 if test x$INSTALL_SKINS = xyes; then
18637 INSTALL_SKINS_TRUE=
18638 INSTALL_SKINS_FALSE='#'
18639 else
18640 INSTALL_SKINS_TRUE='#'
18641 INSTALL_SKINS_FALSE=
18645 # Check for readline library
18646 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then
18648 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18649 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18650 if test "${vl_cv_lib_readline+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18654 ORIG_LIBS="$LIBS"
18655 for readline_lib in readline edit editline; do
18656 for termcap_lib in "" termcap curses ncurses; do
18657 if test -z "$termcap_lib"; then
18658 TRY_LIB="-l$readline_lib"
18659 else
18660 TRY_LIB="-l$readline_lib -l$termcap_lib"
18662 LIBS="$ORIG_LIBS $TRY_LIB"
18663 cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h. */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18670 /* Override any gcc2 internal prototype to avoid an error. */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 /* We use char because int might match the return type of a gcc2
18675 builtin and then its argument prototype would still apply. */
18676 char readline ();
18678 main ()
18680 readline ();
18682 return 0;
18684 _ACEOF
18685 rm -f conftest.$ac_objext conftest$ac_exeext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18687 (eval $ac_link) 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_c_werror_flag"
18695 || test ! -s conftest.err'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest$ac_exeext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 vl_cv_lib_readline="$TRY_LIB"
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18713 rm -f conftest.err conftest.$ac_objext \
18714 conftest$ac_exeext conftest.$ac_ext
18715 if test -n "$vl_cv_lib_readline"; then
18716 break
18718 done
18719 if test -n "$vl_cv_lib_readline"; then
18720 break
18722 done
18723 if test -z "$vl_cv_lib_readline"; then
18724 vl_cv_lib_readline="no"
18725 LIBS="$ORIG_LIBS"
18726 READLINE_LIBS=""
18727 else
18728 READLINE_LIBS="$vl_cv_lib_readline"
18732 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18733 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18735 if test "$vl_cv_lib_readline" != "no"; then
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_LIBREADLINE 1
18739 _ACEOF
18743 for ac_header in readline.h readline/readline.h
18745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18747 echo "$as_me:$LINENO: checking for $ac_header" >&5
18748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18754 else
18755 # Is the header compilable?
18756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h. */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 $ac_includes_default
18765 #include <$ac_header>
18766 _ACEOF
18767 rm -f conftest.$ac_objext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18769 (eval $ac_compile) 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag"
18777 || test ! -s conftest.err'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try='test -s conftest.$ac_objext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_header_compiler=yes
18790 else
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 ac_header_compiler=no
18796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18798 echo "${ECHO_T}$ac_header_compiler" >&6
18800 # Is the header present?
18801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 #include <$ac_header>
18810 _ACEOF
18811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18813 ac_status=$?
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } >/dev/null; then
18819 if test -s conftest.err; then
18820 ac_cpp_err=$ac_c_preproc_warn_flag
18821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18822 else
18823 ac_cpp_err=
18825 else
18826 ac_cpp_err=yes
18828 if test -z "$ac_cpp_err"; then
18829 ac_header_preproc=yes
18830 else
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18834 ac_header_preproc=no
18836 rm -f conftest.err conftest.$ac_ext
18837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18838 echo "${ECHO_T}$ac_header_preproc" >&6
18840 # So? What about this header?
18841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18842 yes:no: )
18843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18847 ac_header_preproc=yes
18849 no:yes:* )
18850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18863 cat <<\_ASBOX
18864 ## ------------------------------ ##
18865 ## Report this to admin@amule.org ##
18866 ## ------------------------------ ##
18867 _ASBOX
18869 sed "s/^/$as_me: WARNING: /" >&2
18871 esac
18872 echo "$as_me:$LINENO: checking for $ac_header" >&5
18873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877 eval "$as_ac_Header=\$ac_header_preproc"
18879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18884 cat >>confdefs.h <<_ACEOF
18885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18886 _ACEOF
18890 done
18892 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18893 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18894 if test "${vl_cv_lib_readline_history+set}" = set; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 else
18898 vl_cv_lib_readline_history="no"
18899 cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h. */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18906 /* Override any gcc2 internal prototype to avoid an error. */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 /* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
18912 char add_history ();
18914 main ()
18916 add_history ();
18918 return 0;
18920 _ACEOF
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18923 (eval $ac_link) 2>conftest.er1
18924 ac_status=$?
18925 grep -v '^ *+' conftest.er1 >conftest.err
18926 rm -f conftest.er1
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest$ac_exeext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
18943 vl_cv_lib_readline_history="yes"
18944 else
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18949 rm -f conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18953 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18954 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18955 if test "$vl_cv_lib_readline_history" = "yes"; then
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE_READLINE_HISTORY 1
18959 _ACEOF
18963 for ac_header in history.h readline/history.h
18965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18967 echo "$as_me:$LINENO: checking for $ac_header" >&5
18968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18974 else
18975 # Is the header compilable?
18976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18978 cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h. */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 $ac_includes_default
18985 #include <$ac_header>
18986 _ACEOF
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989 (eval $ac_compile) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest.$ac_objext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009 ac_header_compiler=yes
19010 else
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 ac_header_compiler=no
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19018 echo "${ECHO_T}$ac_header_compiler" >&6
19020 # Is the header present?
19021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #include <$ac_header>
19030 _ACEOF
19031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19033 ac_status=$?
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } >/dev/null; then
19039 if test -s conftest.err; then
19040 ac_cpp_err=$ac_c_preproc_warn_flag
19041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19042 else
19043 ac_cpp_err=
19045 else
19046 ac_cpp_err=yes
19048 if test -z "$ac_cpp_err"; then
19049 ac_header_preproc=yes
19050 else
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 ac_header_preproc=no
19056 rm -f conftest.err conftest.$ac_ext
19057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19058 echo "${ECHO_T}$ac_header_preproc" >&6
19060 # So? What about this header?
19061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19062 yes:no: )
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19067 ac_header_preproc=yes
19069 no:yes:* )
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19083 cat <<\_ASBOX
19084 ## ------------------------------ ##
19085 ## Report this to admin@amule.org ##
19086 ## ------------------------------ ##
19087 _ASBOX
19089 sed "s/^/$as_me: WARNING: /" >&2
19091 esac
19092 echo "$as_me:$LINENO: checking for $ac_header" >&5
19093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097 eval "$as_ac_Header=\$ac_header_preproc"
19099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19104 cat >>confdefs.h <<_ACEOF
19105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19106 _ACEOF
19110 done
19115 LIBS="$ORIG_LIBS"
19120 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19123 # Check whether --enable-ccache or --disable-ccache was given.
19124 if test "${enable_ccache+set}" = set; then
19125 enableval="$enable_ccache"
19131 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19132 if test "${with_ccache_prefix+set}" = set; then
19133 withval="$with_ccache_prefix"
19137 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19138 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19139 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19140 echo "${ECHO_T}${enable_ccache:-no}" >&6
19142 if test ${enable_ccache:-no} = yes; then
19144 echo "$as_me:$LINENO: checking for ccache presence" >&5
19145 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19146 if test -z "$with_ccache_prefix"; then
19148 ccache_full=`which ccache`
19149 with_ccache_prefix=`dirname ${ccache_full}`
19153 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19155 CC="$with_ccache_prefix/ccache $CC"
19156 CXX="$with_ccache_prefix/ccache $CXX"
19157 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19159 else
19160 enable_ccache=no
19163 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19164 echo "${ECHO_T}${enable_ccache:-no}" >&6
19170 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"
19172 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19174 if test x$SYS = xwin32; then
19175 ac_config_files="$ac_config_files version.rc"
19179 cat >confcache <<\_ACEOF
19180 # This file is a shell script that caches the results of configure
19181 # tests run on this system so they can be shared between configure
19182 # scripts and configure runs, see configure's option --config-cache.
19183 # It is not useful on other systems. If it contains results you don't
19184 # want to keep, you may remove or edit it.
19186 # config.status only pays attention to the cache file if you give it
19187 # the --recheck option to rerun configure.
19189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19191 # following values.
19193 _ACEOF
19195 # The following way of writing the cache mishandles newlines in values,
19196 # but we know of no workaround that is simple, portable, and efficient.
19197 # So, don't put newlines in cache variables' values.
19198 # Ultrix sh set writes to stderr and can't be redirected directly,
19199 # and sets the high bit in the cache file unless we assign to the vars.
19201 (set) 2>&1 |
19202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19203 *ac_space=\ *)
19204 # `set' does not quote correctly, so add quotes (double-quote
19205 # substitution turns \\\\ into \\, and sed turns \\ into \).
19206 sed -n \
19207 "s/'/'\\\\''/g;
19208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19211 # `set' quotes correctly as required by POSIX, so do not add quotes.
19212 sed -n \
19213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19215 esac;
19217 sed '
19218 t clear
19219 : clear
19220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19221 t end
19222 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19223 : end' >>confcache
19224 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19225 if test -w $cache_file; then
19226 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19227 cat confcache >$cache_file
19228 else
19229 echo "not updating unwritable cache $cache_file"
19232 rm -f confcache
19234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19235 # Let make expand exec_prefix.
19236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19240 # trailing colons and then remove the whole line if VPATH becomes empty
19241 # (actually we leave an empty line to preserve line numbers).
19242 if test "x$srcdir" = x.; then
19243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19244 s/:*\$(srcdir):*/:/;
19245 s/:*\${srcdir}:*/:/;
19246 s/:*@srcdir@:*/:/;
19247 s/^\([^=]*=[ ]*\):*/\1/;
19248 s/:*$//;
19249 s/^[^=]*=[ ]*$//;
19253 DEFS=-DHAVE_CONFIG_H
19255 ac_libobjs=
19256 ac_ltlibobjs=
19257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19258 # 1. Remove the extension, and $U if already installed.
19259 ac_i=`echo "$ac_i" |
19260 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19261 # 2. Add them.
19262 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19263 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19264 done
19265 LIBOBJS=$ac_libobjs
19267 LTLIBOBJS=$ac_ltlibobjs
19270 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19271 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19272 Usually this means the macro was only invoked conditionally." >&5
19273 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19274 Usually this means the macro was only invoked conditionally." >&2;}
19275 { (exit 1); exit 1; }; }
19277 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19278 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19279 Usually this means the macro was only invoked conditionally." >&5
19280 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19281 Usually this means the macro was only invoked conditionally." >&2;}
19282 { (exit 1); exit 1; }; }
19284 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19285 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19286 Usually this means the macro was only invoked conditionally." >&5
19287 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19288 Usually this means the macro was only invoked conditionally." >&2;}
19289 { (exit 1); exit 1; }; }
19291 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19292 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19293 Usually this means the macro was only invoked conditionally." >&5
19294 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19295 Usually this means the macro was only invoked conditionally." >&2;}
19296 { (exit 1); exit 1; }; }
19298 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19299 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19300 Usually this means the macro was only invoked conditionally." >&5
19301 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19302 Usually this means the macro was only invoked conditionally." >&2;}
19303 { (exit 1); exit 1; }; }
19305 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19306 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19307 Usually this means the macro was only invoked conditionally." >&5
19308 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19309 Usually this means the macro was only invoked conditionally." >&2;}
19310 { (exit 1); exit 1; }; }
19312 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19313 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19314 Usually this means the macro was only invoked conditionally." >&5
19315 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19316 Usually this means the macro was only invoked conditionally." >&2;}
19317 { (exit 1); exit 1; }; }
19319 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19320 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19321 Usually this means the macro was only invoked conditionally." >&5
19322 echo "$as_me: error: conditional \"WEB\" was never defined.
19323 Usually this means the macro was only invoked conditionally." >&2;}
19324 { (exit 1); exit 1; }; }
19326 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19327 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19328 Usually this means the macro was only invoked conditionally." >&5
19329 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19330 Usually this means the macro was only invoked conditionally." >&2;}
19331 { (exit 1); exit 1; }; }
19333 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19334 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19335 Usually this means the macro was only invoked conditionally." >&5
19336 echo "$as_me: error: conditional \"CAS\" was never defined.
19337 Usually this means the macro was only invoked conditionally." >&2;}
19338 { (exit 1); exit 1; }; }
19340 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19341 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19342 Usually this means the macro was only invoked conditionally." >&5
19343 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19344 Usually this means the macro was only invoked conditionally." >&2;}
19345 { (exit 1); exit 1; }; }
19347 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19348 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19349 Usually this means the macro was only invoked conditionally." >&5
19350 echo "$as_me: error: conditional \"ED2K\" was never defined.
19351 Usually this means the macro was only invoked conditionally." >&2;}
19352 { (exit 1); exit 1; }; }
19354 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19355 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19356 Usually this means the macro was only invoked conditionally." >&5
19357 echo "$as_me: error: conditional \"ALC\" was never defined.
19358 Usually this means the macro was only invoked conditionally." >&2;}
19359 { (exit 1); exit 1; }; }
19361 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19362 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19363 Usually this means the macro was only invoked conditionally." >&5
19364 echo "$as_me: error: conditional \"ALCC\" was never defined.
19365 Usually this means the macro was only invoked conditionally." >&2;}
19366 { (exit 1); exit 1; }; }
19368 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19369 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19370 Usually this means the macro was only invoked conditionally." >&5
19371 echo "$as_me: error: conditional \"XAS\" was never defined.
19372 Usually this means the macro was only invoked conditionally." >&2;}
19373 { (exit 1); exit 1; }; }
19375 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
19376 { { echo "$as_me:$LINENO: error: conditional \"FILEVIEW\" was never defined.
19377 Usually this means the macro was only invoked conditionally." >&5
19378 echo "$as_me: error: conditional \"FILEVIEW\" was never defined.
19379 Usually this means the macro was only invoked conditionally." >&2;}
19380 { (exit 1); exit 1; }; }
19382 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19383 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19384 Usually this means the macro was only invoked conditionally." >&5
19385 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19386 Usually this means the macro was only invoked conditionally." >&2;}
19387 { (exit 1); exit 1; }; }
19389 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19390 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19391 Usually this means the macro was only invoked conditionally." >&5
19392 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19393 Usually this means the macro was only invoked conditionally." >&2;}
19394 { (exit 1); exit 1; }; }
19396 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19397 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19398 Usually this means the macro was only invoked conditionally." >&5
19399 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19400 Usually this means the macro was only invoked conditionally." >&2;}
19401 { (exit 1); exit 1; }; }
19403 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19404 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19405 Usually this means the macro was only invoked conditionally." >&5
19406 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19407 Usually this means the macro was only invoked conditionally." >&2;}
19408 { (exit 1); exit 1; }; }
19410 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19411 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19412 Usually this means the macro was only invoked conditionally." >&5
19413 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19414 Usually this means the macro was only invoked conditionally." >&2;}
19415 { (exit 1); exit 1; }; }
19417 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19418 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19419 Usually this means the macro was only invoked conditionally." >&5
19420 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19421 Usually this means the macro was only invoked conditionally." >&2;}
19422 { (exit 1); exit 1; }; }
19424 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19425 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19426 Usually this means the macro was only invoked conditionally." >&5
19427 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19428 Usually this means the macro was only invoked conditionally." >&2;}
19429 { (exit 1); exit 1; }; }
19431 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19432 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19433 Usually this means the macro was only invoked conditionally." >&5
19434 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19435 Usually this means the macro was only invoked conditionally." >&2;}
19436 { (exit 1); exit 1; }; }
19439 : ${CONFIG_STATUS=./config.status}
19440 ac_clean_files_save=$ac_clean_files
19441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19444 cat >$CONFIG_STATUS <<_ACEOF
19445 #! $SHELL
19446 # Generated by $as_me.
19447 # Run this file to recreate the current configuration.
19448 # Compiler output produced by configure, useful for debugging
19449 # configure, is in config.log if it exists.
19451 debug=false
19452 ac_cs_recheck=false
19453 ac_cs_silent=false
19454 SHELL=\${CONFIG_SHELL-$SHELL}
19455 _ACEOF
19457 cat >>$CONFIG_STATUS <<\_ACEOF
19458 ## --------------------- ##
19459 ## M4sh Initialization. ##
19460 ## --------------------- ##
19462 # Be Bourne compatible
19463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19464 emulate sh
19465 NULLCMD=:
19466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19467 # is contrary to our usage. Disable this feature.
19468 alias -g '${1+"$@"}'='"$@"'
19469 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19470 set -o posix
19472 DUALCASE=1; export DUALCASE # for MKS sh
19474 # Support unset when possible.
19475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19476 as_unset=unset
19477 else
19478 as_unset=false
19482 # Work around bugs in pre-3.0 UWIN ksh.
19483 $as_unset ENV MAIL MAILPATH
19484 PS1='$ '
19485 PS2='> '
19486 PS4='+ '
19488 # NLS nuisances.
19489 for as_var in \
19490 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19491 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19492 LC_TELEPHONE LC_TIME
19494 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19495 eval $as_var=C; export $as_var
19496 else
19497 $as_unset $as_var
19499 done
19501 # Required to use basename.
19502 if expr a : '\(a\)' >/dev/null 2>&1; then
19503 as_expr=expr
19504 else
19505 as_expr=false
19508 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19509 as_basename=basename
19510 else
19511 as_basename=false
19515 # Name of the executable.
19516 as_me=`$as_basename "$0" ||
19517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19518 X"$0" : 'X\(//\)$' \| \
19519 X"$0" : 'X\(/\)$' \| \
19520 . : '\(.\)' 2>/dev/null ||
19521 echo X/"$0" |
19522 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19523 /^X\/\(\/\/\)$/{ s//\1/; q; }
19524 /^X\/\(\/\).*/{ s//\1/; q; }
19525 s/.*/./; q'`
19528 # PATH needs CR, and LINENO needs CR and PATH.
19529 # Avoid depending upon Character Ranges.
19530 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19531 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19532 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19533 as_cr_digits='0123456789'
19534 as_cr_alnum=$as_cr_Letters$as_cr_digits
19536 # The user is always right.
19537 if test "${PATH_SEPARATOR+set}" != set; then
19538 echo "#! /bin/sh" >conf$$.sh
19539 echo "exit 0" >>conf$$.sh
19540 chmod +x conf$$.sh
19541 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19542 PATH_SEPARATOR=';'
19543 else
19544 PATH_SEPARATOR=:
19546 rm -f conf$$.sh
19550 as_lineno_1=$LINENO
19551 as_lineno_2=$LINENO
19552 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19553 test "x$as_lineno_1" != "x$as_lineno_2" &&
19554 test "x$as_lineno_3" = "x$as_lineno_2" || {
19555 # Find who we are. Look in the path if we contain no path at all
19556 # relative or not.
19557 case $0 in
19558 *[\\/]* ) as_myself=$0 ;;
19559 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19560 for as_dir in $PATH
19562 IFS=$as_save_IFS
19563 test -z "$as_dir" && as_dir=.
19564 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19565 done
19568 esac
19569 # We did not find ourselves, most probably we were run as `sh COMMAND'
19570 # in which case we are not to be found in the path.
19571 if test "x$as_myself" = x; then
19572 as_myself=$0
19574 if test ! -f "$as_myself"; then
19575 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19576 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19577 { (exit 1); exit 1; }; }
19579 case $CONFIG_SHELL in
19581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19582 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19584 IFS=$as_save_IFS
19585 test -z "$as_dir" && as_dir=.
19586 for as_base in sh bash ksh sh5; do
19587 case $as_dir in
19589 if ("$as_dir/$as_base" -c '
19590 as_lineno_1=$LINENO
19591 as_lineno_2=$LINENO
19592 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19593 test "x$as_lineno_1" != "x$as_lineno_2" &&
19594 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19595 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19596 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19597 CONFIG_SHELL=$as_dir/$as_base
19598 export CONFIG_SHELL
19599 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19600 fi;;
19601 esac
19602 done
19603 done
19605 esac
19607 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19608 # uniformly replaced by the line number. The first 'sed' inserts a
19609 # line-number line before each line; the second 'sed' does the real
19610 # work. The second script uses 'N' to pair each line-number line
19611 # with the numbered line, and appends trailing '-' during
19612 # substitution so that $LINENO is not a special case at line end.
19613 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19614 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19615 sed '=' <$as_myself |
19616 sed '
19618 s,$,-,
19619 : loop
19620 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19621 t loop
19622 s,-$,,
19623 s,^['$as_cr_digits']*\n,,
19624 ' >$as_me.lineno &&
19625 chmod +x $as_me.lineno ||
19626 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19627 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19628 { (exit 1); exit 1; }; }
19630 # Don't try to exec as it changes $[0], causing all sort of problems
19631 # (the dirname of $[0] is not the place where we might find the
19632 # original and so on. Autoconf is especially sensible to this).
19633 . ./$as_me.lineno
19634 # Exit status is that of the last command.
19635 exit
19639 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19640 *c*,-n*) ECHO_N= ECHO_C='
19641 ' ECHO_T=' ' ;;
19642 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19643 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19644 esac
19646 if expr a : '\(a\)' >/dev/null 2>&1; then
19647 as_expr=expr
19648 else
19649 as_expr=false
19652 rm -f conf$$ conf$$.exe conf$$.file
19653 echo >conf$$.file
19654 if ln -s conf$$.file conf$$ 2>/dev/null; then
19655 # We could just check for DJGPP; but this test a) works b) is more generic
19656 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19657 if test -f conf$$.exe; then
19658 # Don't use ln at all; we don't have any links
19659 as_ln_s='cp -p'
19660 else
19661 as_ln_s='ln -s'
19663 elif ln conf$$.file conf$$ 2>/dev/null; then
19664 as_ln_s=ln
19665 else
19666 as_ln_s='cp -p'
19668 rm -f conf$$ conf$$.exe conf$$.file
19670 if mkdir -p . 2>/dev/null; then
19671 as_mkdir_p=:
19672 else
19673 test -d ./-p && rmdir ./-p
19674 as_mkdir_p=false
19677 as_executable_p="test -f"
19679 # Sed expression to map a string onto a valid CPP name.
19680 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19682 # Sed expression to map a string onto a valid variable name.
19683 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19686 # IFS
19687 # We need space, tab and new line, in precisely that order.
19688 as_nl='
19690 IFS=" $as_nl"
19692 # CDPATH.
19693 $as_unset CDPATH
19695 exec 6>&1
19697 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19698 # report actual input values of CONFIG_FILES etc. instead of their
19699 # values after options handling. Logging --version etc. is OK.
19700 exec 5>>config.log
19702 echo
19703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19704 ## Running $as_me. ##
19705 _ASBOX
19706 } >&5
19707 cat >&5 <<_CSEOF
19709 This file was extended by aMule $as_me SVN, which was
19710 generated by GNU Autoconf 2.59. Invocation command line was
19712 CONFIG_FILES = $CONFIG_FILES
19713 CONFIG_HEADERS = $CONFIG_HEADERS
19714 CONFIG_LINKS = $CONFIG_LINKS
19715 CONFIG_COMMANDS = $CONFIG_COMMANDS
19716 $ $0 $@
19718 _CSEOF
19719 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19720 echo >&5
19721 _ACEOF
19723 # Files that config.status was made for.
19724 if test -n "$ac_config_files"; then
19725 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19728 if test -n "$ac_config_headers"; then
19729 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19732 if test -n "$ac_config_links"; then
19733 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19736 if test -n "$ac_config_commands"; then
19737 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19740 cat >>$CONFIG_STATUS <<\_ACEOF
19742 ac_cs_usage="\
19743 \`$as_me' instantiates files from templates according to the
19744 current configuration.
19746 Usage: $0 [OPTIONS] [FILE]...
19748 -h, --help print this help, then exit
19749 -V, --version print version number, then exit
19750 -q, --quiet do not print progress messages
19751 -d, --debug don't remove temporary files
19752 --recheck update $as_me by reconfiguring in the same conditions
19753 --file=FILE[:TEMPLATE]
19754 instantiate the configuration file FILE
19755 --header=FILE[:TEMPLATE]
19756 instantiate the configuration header FILE
19758 Configuration files:
19759 $config_files
19761 Configuration headers:
19762 $config_headers
19764 Configuration commands:
19765 $config_commands
19767 Report bugs to <bug-autoconf@gnu.org>."
19768 _ACEOF
19770 cat >>$CONFIG_STATUS <<_ACEOF
19771 ac_cs_version="\\
19772 aMule config.status SVN
19773 configured by $0, generated by GNU Autoconf 2.59,
19774 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19776 Copyright (C) 2003 Free Software Foundation, Inc.
19777 This config.status script is free software; the Free Software Foundation
19778 gives unlimited permission to copy, distribute and modify it."
19779 srcdir=$srcdir
19780 INSTALL="$INSTALL"
19781 _ACEOF
19783 cat >>$CONFIG_STATUS <<\_ACEOF
19784 # If no file are specified by the user, then we need to provide default
19785 # value. By we need to know if files were specified by the user.
19786 ac_need_defaults=:
19787 while test $# != 0
19789 case $1 in
19790 --*=*)
19791 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19792 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19793 ac_shift=:
19796 ac_option=$1
19797 ac_optarg=$2
19798 ac_shift=shift
19800 *) # This is not an option, so the user has probably given explicit
19801 # arguments.
19802 ac_option=$1
19803 ac_need_defaults=false;;
19804 esac
19806 case $ac_option in
19807 # Handling of the options.
19808 _ACEOF
19809 cat >>$CONFIG_STATUS <<\_ACEOF
19810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19811 ac_cs_recheck=: ;;
19812 --version | --vers* | -V )
19813 echo "$ac_cs_version"; exit 0 ;;
19814 --he | --h)
19815 # Conflict between --help and --header
19816 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19817 Try \`$0 --help' for more information." >&5
19818 echo "$as_me: error: ambiguous option: $1
19819 Try \`$0 --help' for more information." >&2;}
19820 { (exit 1); exit 1; }; };;
19821 --help | --hel | -h )
19822 echo "$ac_cs_usage"; exit 0 ;;
19823 --debug | --d* | -d )
19824 debug=: ;;
19825 --file | --fil | --fi | --f )
19826 $ac_shift
19827 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19828 ac_need_defaults=false;;
19829 --header | --heade | --head | --hea )
19830 $ac_shift
19831 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19832 ac_need_defaults=false;;
19833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19835 ac_cs_silent=: ;;
19837 # This is an error.
19838 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19839 Try \`$0 --help' for more information." >&5
19840 echo "$as_me: error: unrecognized option: $1
19841 Try \`$0 --help' for more information." >&2;}
19842 { (exit 1); exit 1; }; } ;;
19844 *) ac_config_targets="$ac_config_targets $1" ;;
19846 esac
19847 shift
19848 done
19850 ac_configure_extra_args=
19852 if $ac_cs_silent; then
19853 exec 6>/dev/null
19854 ac_configure_extra_args="$ac_configure_extra_args --silent"
19857 _ACEOF
19858 cat >>$CONFIG_STATUS <<_ACEOF
19859 if \$ac_cs_recheck; then
19860 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19861 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19864 _ACEOF
19866 cat >>$CONFIG_STATUS <<_ACEOF
19868 # INIT-COMMANDS section.
19871 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19872 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19873 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19874 # from automake.
19875 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19876 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19877 LINGUAS="${LINGUAS-%UNSET%}"
19879 denoiserlevel=$with_denoise_level
19881 _ACEOF
19885 cat >>$CONFIG_STATUS <<\_ACEOF
19886 for ac_config_target in $ac_config_targets
19888 case "$ac_config_target" in
19889 # Handling of arguments.
19890 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19891 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19892 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19893 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19894 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19895 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19896 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19897 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19898 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19899 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19900 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19901 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19902 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19903 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19904 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19905 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19906 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19907 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19908 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19909 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19910 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19911 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19912 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19913 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19914 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19915 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19916 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19917 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19918 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19919 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19920 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19921 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19922 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19923 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19924 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19925 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19926 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19927 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19929 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19930 { (exit 1); exit 1; }; };;
19931 esac
19932 done
19934 # If the user did not use the arguments to specify the items to instantiate,
19935 # then the envvar interface is used. Set only those that are not.
19936 # We use the long form for the default assignment because of an extremely
19937 # bizarre bug on SunOS 4.1.3.
19938 if $ac_need_defaults; then
19939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19944 # Have a temporary directory for convenience. Make it in the build tree
19945 # simply because there is no reason to put it here, and in addition,
19946 # creating and moving files from /tmp can sometimes cause problems.
19947 # Create a temporary directory, and hook for its removal unless debugging.
19948 $debug ||
19950 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19951 trap '{ (exit 1); exit 1; }' 1 2 13 15
19954 # Create a (secure) tmp directory for tmp files.
19957 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19958 test -n "$tmp" && test -d "$tmp"
19959 } ||
19961 tmp=./confstat$$-$RANDOM
19962 (umask 077 && mkdir $tmp)
19963 } ||
19965 echo "$me: cannot create a temporary directory in ." >&2
19966 { (exit 1); exit 1; }
19969 _ACEOF
19971 cat >>$CONFIG_STATUS <<_ACEOF
19974 # CONFIG_FILES section.
19977 # No need to generate the scripts if there are no CONFIG_FILES.
19978 # This happens for instance when ./config.status config.h
19979 if test -n "\$CONFIG_FILES"; then
19980 # Protect against being on the right side of a sed subst in config.status.
19981 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19982 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19983 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
19984 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
19985 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
19986 s,@SHELL@,$SHELL,;t t
19987 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19988 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19989 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19990 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19991 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19992 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19993 s,@exec_prefix@,$exec_prefix,;t t
19994 s,@prefix@,$prefix,;t t
19995 s,@program_transform_name@,$program_transform_name,;t t
19996 s,@bindir@,$bindir,;t t
19997 s,@sbindir@,$sbindir,;t t
19998 s,@libexecdir@,$libexecdir,;t t
19999 s,@datadir@,$datadir,;t t
20000 s,@sysconfdir@,$sysconfdir,;t t
20001 s,@sharedstatedir@,$sharedstatedir,;t t
20002 s,@localstatedir@,$localstatedir,;t t
20003 s,@libdir@,$libdir,;t t
20004 s,@includedir@,$includedir,;t t
20005 s,@oldincludedir@,$oldincludedir,;t t
20006 s,@infodir@,$infodir,;t t
20007 s,@mandir@,$mandir,;t t
20008 s,@build_alias@,$build_alias,;t t
20009 s,@host_alias@,$host_alias,;t t
20010 s,@target_alias@,$target_alias,;t t
20011 s,@DEFS@,$DEFS,;t t
20012 s,@ECHO_C@,$ECHO_C,;t t
20013 s,@ECHO_N@,$ECHO_N,;t t
20014 s,@ECHO_T@,$ECHO_T,;t t
20015 s,@LIBS@,$LIBS,;t t
20016 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20017 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20018 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20019 s,@CYGPATH_W@,$CYGPATH_W,;t t
20020 s,@PACKAGE@,$PACKAGE,;t t
20021 s,@VERSION@,$VERSION,;t t
20022 s,@ACLOCAL@,$ACLOCAL,;t t
20023 s,@AUTOCONF@,$AUTOCONF,;t t
20024 s,@AUTOMAKE@,$AUTOMAKE,;t t
20025 s,@AUTOHEADER@,$AUTOHEADER,;t t
20026 s,@MAKEINFO@,$MAKEINFO,;t t
20027 s,@install_sh@,$install_sh,;t t
20028 s,@STRIP@,$STRIP,;t t
20029 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20030 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20031 s,@mkdir_p@,$mkdir_p,;t t
20032 s,@AWK@,$AWK,;t t
20033 s,@SET_MAKE@,$SET_MAKE,;t t
20034 s,@am__leading_dot@,$am__leading_dot,;t t
20035 s,@AMTAR@,$AMTAR,;t t
20036 s,@am__tar@,$am__tar,;t t
20037 s,@am__untar@,$am__untar,;t t
20038 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20039 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20040 s,@MAINT@,$MAINT,;t t
20041 s,@build@,$build,;t t
20042 s,@build_cpu@,$build_cpu,;t t
20043 s,@build_vendor@,$build_vendor,;t t
20044 s,@build_os@,$build_os,;t t
20045 s,@host@,$host,;t t
20046 s,@host_cpu@,$host_cpu,;t t
20047 s,@host_vendor@,$host_vendor,;t t
20048 s,@host_os@,$host_os,;t t
20049 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20050 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20051 s,@MULECFLAGS@,$MULECFLAGS,;t t
20052 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20053 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20054 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20055 s,@CXX@,$CXX,;t t
20056 s,@CXXFLAGS@,$CXXFLAGS,;t t
20057 s,@LDFLAGS@,$LDFLAGS,;t t
20058 s,@CPPFLAGS@,$CPPFLAGS,;t t
20059 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20060 s,@EXEEXT@,$EXEEXT,;t t
20061 s,@OBJEXT@,$OBJEXT,;t t
20062 s,@DEPDIR@,$DEPDIR,;t t
20063 s,@am__include@,$am__include,;t t
20064 s,@am__quote@,$am__quote,;t t
20065 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20066 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20067 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20068 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20069 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20070 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20071 s,@CXXCPP@,$CXXCPP,;t t
20072 s,@CC@,$CC,;t t
20073 s,@CFLAGS@,$CFLAGS,;t t
20074 s,@ac_ct_CC@,$ac_ct_CC,;t t
20075 s,@CCDEPMODE@,$CCDEPMODE,;t t
20076 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20077 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20078 s,@CPP@,$CPP,;t t
20079 s,@BUILD_CC@,$BUILD_CC,;t t
20080 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20081 s,@EXEEXT@,$EXEEXT,;t t
20082 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20083 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20084 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20085 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20086 s,@EGREP@,$EGREP,;t t
20087 s,@LEX@,$LEX,;t t
20088 s,@LEXLIB@,$LEXLIB,;t t
20089 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20090 s,@RANLIB@,$RANLIB,;t t
20091 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20092 s,@YACC@,$YACC,;t t
20093 s,@AR@,$AR,;t t
20094 s,@ac_ct_AR@,$ac_ct_AR,;t t
20095 s,@LD@,$LD,;t t
20096 s,@ac_ct_LD@,$ac_ct_LD,;t t
20097 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20098 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20099 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20100 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20101 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20102 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20103 s,@WEB_TRUE@,$WEB_TRUE,;t t
20104 s,@WEB_FALSE@,$WEB_FALSE,;t t
20105 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20106 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20107 s,@CAS_TRUE@,$CAS_TRUE,;t t
20108 s,@CAS_FALSE@,$CAS_FALSE,;t t
20109 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20110 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20111 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20112 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20113 s,@ALC_TRUE@,$ALC_TRUE,;t t
20114 s,@ALC_FALSE@,$ALC_FALSE,;t t
20115 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20116 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20117 s,@XAS_TRUE@,$XAS_TRUE,;t t
20118 s,@XAS_FALSE@,$XAS_FALSE,;t t
20119 s,@FILEVIEW_TRUE@,$FILEVIEW_TRUE,;t t
20120 s,@FILEVIEW_FALSE@,$FILEVIEW_FALSE,;t t
20121 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20122 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20123 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20124 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20125 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20126 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20127 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20128 s,@CAS_DEFS@,$CAS_DEFS,;t t
20129 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20130 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20131 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20132 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20133 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20134 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20135 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20136 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20137 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20138 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20139 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20140 s,@WX_LIBS@,$WX_LIBS,;t t
20141 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20142 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20143 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20144 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20145 s,@WX_UNICODE@,$WX_UNICODE,;t t
20146 s,@WX_DEBUG@,$WX_DEBUG,;t t
20147 s,@WX_SHARED@,$WX_SHARED,;t t
20148 s,@WX_PORT@,$WX_PORT,;t t
20149 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20150 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20151 s,@RC@,$RC,;t t
20152 s,@RCFLAGS@,$RCFLAGS,;t t
20153 s,@ac_ct_RC@,$ac_ct_RC,;t t
20154 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20155 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20156 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20157 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20158 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20159 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20160 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20161 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20162 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20163 s,@ALLOCA@,$ALLOCA,;t t
20164 s,@LIBOBJS@,$LIBOBJS,;t t
20165 s,@POW_LIB@,$POW_LIB,;t t
20166 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20167 s,@MSGFMT@,$MSGFMT,;t t
20168 s,@GMSGFMT@,$GMSGFMT,;t t
20169 s,@XGETTEXT@,$XGETTEXT,;t t
20170 s,@MSGMERGE@,$MSGMERGE,;t t
20171 s,@GLIBC21@,$GLIBC21,;t t
20172 s,@LIBICONV@,$LIBICONV,;t t
20173 s,@LTLIBICONV@,$LTLIBICONV,;t t
20174 s,@INTLBISON@,$INTLBISON,;t t
20175 s,@USE_NLS@,$USE_NLS,;t t
20176 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20177 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20178 s,@CATOBJEXT@,$CATOBJEXT,;t t
20179 s,@INTLOBJS@,$INTLOBJS,;t t
20180 s,@DATADIRNAME@,$DATADIRNAME,;t t
20181 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20182 s,@GENCAT@,$GENCAT,;t t
20183 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20184 s,@INTLLIBS@,$INTLLIBS,;t t
20185 s,@LIBINTL@,$LIBINTL,;t t
20186 s,@LTLIBINTL@,$LTLIBINTL,;t t
20187 s,@POSUB@,$POSUB,;t t
20188 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20189 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20190 s,@WEBSERVER_MANPAGES@,$WEBSERVER_MANPAGES,;t t
20191 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20192 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20193 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20194 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20195 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20196 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20197 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20198 s,@INCINTL@,$INCINTL,;t t
20199 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20200 s,@BFD_LIBS@,$BFD_LIBS,;t t
20201 s,@docdir@,$docdir,;t t
20202 s,@SVNDATE@,$SVNDATE,;t t
20203 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20204 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20205 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20206 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20207 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20208 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20209 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20210 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20211 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20212 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20213 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20214 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20215 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20216 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20217 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20218 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20219 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20220 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20221 CEOF
20223 _ACEOF
20225 cat >>$CONFIG_STATUS <<\_ACEOF
20226 # Split the substitutions into bite-sized pieces for seds with
20227 # small command number limits, like on Digital OSF/1 and HP-UX.
20228 ac_max_sed_lines=48
20229 ac_sed_frag=1 # Number of current file.
20230 ac_beg=1 # First line for current file.
20231 ac_end=$ac_max_sed_lines # Line after last line for current file.
20232 ac_more_lines=:
20233 ac_sed_cmds=
20234 while $ac_more_lines; do
20235 if test $ac_beg -gt 1; then
20236 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20237 else
20238 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20240 if test ! -s $tmp/subs.frag; then
20241 ac_more_lines=false
20242 else
20243 # The purpose of the label and of the branching condition is to
20244 # speed up the sed processing (if there are no `@' at all, there
20245 # is no need to browse any of the substitutions).
20246 # These are the two extra sed commands mentioned above.
20247 (echo ':t
20248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20249 if test -z "$ac_sed_cmds"; then
20250 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20251 else
20252 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20254 ac_sed_frag=`expr $ac_sed_frag + 1`
20255 ac_beg=$ac_end
20256 ac_end=`expr $ac_end + $ac_max_sed_lines`
20258 done
20259 if test -z "$ac_sed_cmds"; then
20260 ac_sed_cmds=cat
20262 fi # test -n "$CONFIG_FILES"
20264 _ACEOF
20265 cat >>$CONFIG_STATUS <<\_ACEOF
20266 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20267 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20268 case $ac_file in
20269 - | *:- | *:-:* ) # input from stdin
20270 cat >$tmp/stdin
20271 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20273 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20275 * ) ac_file_in=$ac_file.in ;;
20276 esac
20278 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20279 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20281 X"$ac_file" : 'X\(//\)[^/]' \| \
20282 X"$ac_file" : 'X\(//\)$' \| \
20283 X"$ac_file" : 'X\(/\)' \| \
20284 . : '\(.\)' 2>/dev/null ||
20285 echo X"$ac_file" |
20286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20288 /^X\(\/\/\)$/{ s//\1/; q; }
20289 /^X\(\/\).*/{ s//\1/; q; }
20290 s/.*/./; q'`
20291 { if $as_mkdir_p; then
20292 mkdir -p "$ac_dir"
20293 else
20294 as_dir="$ac_dir"
20295 as_dirs=
20296 while test ! -d "$as_dir"; do
20297 as_dirs="$as_dir $as_dirs"
20298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20300 X"$as_dir" : 'X\(//\)[^/]' \| \
20301 X"$as_dir" : 'X\(//\)$' \| \
20302 X"$as_dir" : 'X\(/\)' \| \
20303 . : '\(.\)' 2>/dev/null ||
20304 echo X"$as_dir" |
20305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20307 /^X\(\/\/\)$/{ s//\1/; q; }
20308 /^X\(\/\).*/{ s//\1/; q; }
20309 s/.*/./; q'`
20310 done
20311 test ! -n "$as_dirs" || mkdir $as_dirs
20312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20313 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20314 { (exit 1); exit 1; }; }; }
20316 ac_builddir=.
20318 if test "$ac_dir" != .; then
20319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20320 # A "../" for each directory in $ac_dir_suffix.
20321 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20322 else
20323 ac_dir_suffix= ac_top_builddir=
20326 case $srcdir in
20327 .) # No --srcdir option. We are building in place.
20328 ac_srcdir=.
20329 if test -z "$ac_top_builddir"; then
20330 ac_top_srcdir=.
20331 else
20332 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20333 fi ;;
20334 [\\/]* | ?:[\\/]* ) # Absolute path.
20335 ac_srcdir=$srcdir$ac_dir_suffix;
20336 ac_top_srcdir=$srcdir ;;
20337 *) # Relative path.
20338 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20339 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20340 esac
20342 # Do not use `cd foo && pwd` to compute absolute paths, because
20343 # the directories may not exist.
20344 case `pwd` in
20345 .) ac_abs_builddir="$ac_dir";;
20347 case "$ac_dir" in
20348 .) ac_abs_builddir=`pwd`;;
20349 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20350 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20351 esac;;
20352 esac
20353 case $ac_abs_builddir in
20354 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20356 case ${ac_top_builddir}. in
20357 .) ac_abs_top_builddir=$ac_abs_builddir;;
20358 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20359 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20360 esac;;
20361 esac
20362 case $ac_abs_builddir in
20363 .) ac_abs_srcdir=$ac_srcdir;;
20365 case $ac_srcdir in
20366 .) ac_abs_srcdir=$ac_abs_builddir;;
20367 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20368 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20369 esac;;
20370 esac
20371 case $ac_abs_builddir in
20372 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20374 case $ac_top_srcdir in
20375 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20376 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20377 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20378 esac;;
20379 esac
20382 case $INSTALL in
20383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20384 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20385 esac
20387 if test x"$ac_file" != x-; then
20388 { echo "$as_me:$LINENO: creating $ac_file" >&5
20389 echo "$as_me: creating $ac_file" >&6;}
20390 rm -f "$ac_file"
20392 # Let's still pretend it is `configure' which instantiates (i.e., don't
20393 # use $as_me), people would be surprised to read:
20394 # /* config.h. Generated by config.status. */
20395 if test x"$ac_file" = x-; then
20396 configure_input=
20397 else
20398 configure_input="$ac_file. "
20400 configure_input=$configure_input"Generated from `echo $ac_file_in |
20401 sed 's,.*/,,'` by configure."
20403 # First look for the input files in the build tree, otherwise in the
20404 # src tree.
20405 ac_file_inputs=`IFS=:
20406 for f in $ac_file_in; do
20407 case $f in
20408 -) echo $tmp/stdin ;;
20409 [\\/$]*)
20410 # Absolute (can't be DOS-style, as IFS=:)
20411 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20412 echo "$as_me: error: cannot find input file: $f" >&2;}
20413 { (exit 1); exit 1; }; }
20414 echo "$f";;
20415 *) # Relative
20416 if test -f "$f"; then
20417 # Build tree
20418 echo "$f"
20419 elif test -f "$srcdir/$f"; then
20420 # Source tree
20421 echo "$srcdir/$f"
20422 else
20423 # /dev/null tree
20424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20425 echo "$as_me: error: cannot find input file: $f" >&2;}
20426 { (exit 1); exit 1; }; }
20427 fi;;
20428 esac
20429 done` || { (exit 1); exit 1; }
20430 _ACEOF
20431 cat >>$CONFIG_STATUS <<_ACEOF
20432 sed "$ac_vpsub
20433 $extrasub
20434 _ACEOF
20435 cat >>$CONFIG_STATUS <<\_ACEOF
20437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20438 s,@configure_input@,$configure_input,;t t
20439 s,@srcdir@,$ac_srcdir,;t t
20440 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20441 s,@top_srcdir@,$ac_top_srcdir,;t t
20442 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20443 s,@builddir@,$ac_builddir,;t t
20444 s,@abs_builddir@,$ac_abs_builddir,;t t
20445 s,@top_builddir@,$ac_top_builddir,;t t
20446 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20447 s,@INSTALL@,$ac_INSTALL,;t t
20448 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20449 rm -f $tmp/stdin
20450 if test x"$ac_file" != x-; then
20451 mv $tmp/out $ac_file
20452 else
20453 cat $tmp/out
20454 rm -f $tmp/out
20457 done
20458 _ACEOF
20459 cat >>$CONFIG_STATUS <<\_ACEOF
20462 # CONFIG_HEADER section.
20465 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20466 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20468 # ac_d sets the value in "#define NAME VALUE" lines.
20469 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20470 ac_dB='[ ].*$,\1#\2'
20471 ac_dC=' '
20472 ac_dD=',;t'
20473 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20474 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20475 ac_uB='$,\1#\2define\3'
20476 ac_uC=' '
20477 ac_uD=',;t'
20479 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20480 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20481 case $ac_file in
20482 - | *:- | *:-:* ) # input from stdin
20483 cat >$tmp/stdin
20484 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20486 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20488 * ) ac_file_in=$ac_file.in ;;
20489 esac
20491 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20492 echo "$as_me: creating $ac_file" >&6;}
20494 # First look for the input files in the build tree, otherwise in the
20495 # src tree.
20496 ac_file_inputs=`IFS=:
20497 for f in $ac_file_in; do
20498 case $f in
20499 -) echo $tmp/stdin ;;
20500 [\\/$]*)
20501 # Absolute (can't be DOS-style, as IFS=:)
20502 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20503 echo "$as_me: error: cannot find input file: $f" >&2;}
20504 { (exit 1); exit 1; }; }
20505 # Do quote $f, to prevent DOS paths from being IFS'd.
20506 echo "$f";;
20507 *) # Relative
20508 if test -f "$f"; then
20509 # Build tree
20510 echo "$f"
20511 elif test -f "$srcdir/$f"; then
20512 # Source tree
20513 echo "$srcdir/$f"
20514 else
20515 # /dev/null tree
20516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20517 echo "$as_me: error: cannot find input file: $f" >&2;}
20518 { (exit 1); exit 1; }; }
20519 fi;;
20520 esac
20521 done` || { (exit 1); exit 1; }
20522 # Remove the trailing spaces.
20523 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20525 _ACEOF
20527 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20528 # `conftest.undefs', that substitutes the proper values into
20529 # config.h.in to produce config.h. The first handles `#define'
20530 # templates, and the second `#undef' templates.
20531 # And first: Protect against being on the right side of a sed subst in
20532 # config.status. Protect against being in an unquoted here document
20533 # in config.status.
20534 rm -f conftest.defines conftest.undefs
20535 # Using a here document instead of a string reduces the quoting nightmare.
20536 # Putting comments in sed scripts is not portable.
20538 # `end' is used to avoid that the second main sed command (meant for
20539 # 0-ary CPP macros) applies to n-ary macro definitions.
20540 # See the Autoconf documentation for `clear'.
20541 cat >confdef2sed.sed <<\_ACEOF
20542 s/[\\&,]/\\&/g
20543 s,[\\$`],\\&,g
20544 t clear
20545 : clear
20546 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20547 t end
20548 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20549 : end
20550 _ACEOF
20551 # If some macros were called several times there might be several times
20552 # the same #defines, which is useless. Nevertheless, we may not want to
20553 # sort them, since we want the *last* AC-DEFINE to be honored.
20554 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20555 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20556 rm -f confdef2sed.sed
20558 # This sed command replaces #undef with comments. This is necessary, for
20559 # example, in the case of _POSIX_SOURCE, which is predefined and required
20560 # on some systems where configure will not decide to define it.
20561 cat >>conftest.undefs <<\_ACEOF
20562 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20563 _ACEOF
20565 # Break up conftest.defines because some shells have a limit on the size
20566 # of here documents, and old seds have small limits too (100 cmds).
20567 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20568 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20569 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20570 echo ' :' >>$CONFIG_STATUS
20571 rm -f conftest.tail
20572 while grep . conftest.defines >/dev/null
20574 # Write a limited-size here document to $tmp/defines.sed.
20575 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20576 # Speed up: don't consider the non `#define' lines.
20577 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20578 # Work around the forget-to-reset-the-flag bug.
20579 echo 't clr' >>$CONFIG_STATUS
20580 echo ': clr' >>$CONFIG_STATUS
20581 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20582 echo 'CEOF
20583 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20584 rm -f $tmp/in
20585 mv $tmp/out $tmp/in
20586 ' >>$CONFIG_STATUS
20587 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20588 rm -f conftest.defines
20589 mv conftest.tail conftest.defines
20590 done
20591 rm -f conftest.defines
20592 echo ' fi # grep' >>$CONFIG_STATUS
20593 echo >>$CONFIG_STATUS
20595 # Break up conftest.undefs because some shells have a limit on the size
20596 # of here documents, and old seds have small limits too (100 cmds).
20597 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20598 rm -f conftest.tail
20599 while grep . conftest.undefs >/dev/null
20601 # Write a limited-size here document to $tmp/undefs.sed.
20602 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20603 # Speed up: don't consider the non `#undef'
20604 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20605 # Work around the forget-to-reset-the-flag bug.
20606 echo 't clr' >>$CONFIG_STATUS
20607 echo ': clr' >>$CONFIG_STATUS
20608 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20609 echo 'CEOF
20610 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20611 rm -f $tmp/in
20612 mv $tmp/out $tmp/in
20613 ' >>$CONFIG_STATUS
20614 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20615 rm -f conftest.undefs
20616 mv conftest.tail conftest.undefs
20617 done
20618 rm -f conftest.undefs
20620 cat >>$CONFIG_STATUS <<\_ACEOF
20621 # Let's still pretend it is `configure' which instantiates (i.e., don't
20622 # use $as_me), people would be surprised to read:
20623 # /* config.h. Generated by config.status. */
20624 if test x"$ac_file" = x-; then
20625 echo "/* Generated by configure. */" >$tmp/config.h
20626 else
20627 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20629 cat $tmp/in >>$tmp/config.h
20630 rm -f $tmp/in
20631 if test x"$ac_file" != x-; then
20632 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20633 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20634 echo "$as_me: $ac_file is unchanged" >&6;}
20635 else
20636 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20638 X"$ac_file" : 'X\(//\)[^/]' \| \
20639 X"$ac_file" : 'X\(//\)$' \| \
20640 X"$ac_file" : 'X\(/\)' \| \
20641 . : '\(.\)' 2>/dev/null ||
20642 echo X"$ac_file" |
20643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20645 /^X\(\/\/\)$/{ s//\1/; q; }
20646 /^X\(\/\).*/{ s//\1/; q; }
20647 s/.*/./; q'`
20648 { if $as_mkdir_p; then
20649 mkdir -p "$ac_dir"
20650 else
20651 as_dir="$ac_dir"
20652 as_dirs=
20653 while test ! -d "$as_dir"; do
20654 as_dirs="$as_dir $as_dirs"
20655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20657 X"$as_dir" : 'X\(//\)[^/]' \| \
20658 X"$as_dir" : 'X\(//\)$' \| \
20659 X"$as_dir" : 'X\(/\)' \| \
20660 . : '\(.\)' 2>/dev/null ||
20661 echo X"$as_dir" |
20662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20664 /^X\(\/\/\)$/{ s//\1/; q; }
20665 /^X\(\/\).*/{ s//\1/; q; }
20666 s/.*/./; q'`
20667 done
20668 test ! -n "$as_dirs" || mkdir $as_dirs
20669 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20671 { (exit 1); exit 1; }; }; }
20673 rm -f $ac_file
20674 mv $tmp/config.h $ac_file
20676 else
20677 cat $tmp/config.h
20678 rm -f $tmp/config.h
20680 # Compute $ac_file's index in $config_headers.
20681 _am_stamp_count=1
20682 for _am_header in $config_headers :; do
20683 case $_am_header in
20684 $ac_file | $ac_file:* )
20685 break ;;
20687 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20688 esac
20689 done
20690 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20691 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20692 X$ac_file : 'X\(//\)[^/]' \| \
20693 X$ac_file : 'X\(//\)$' \| \
20694 X$ac_file : 'X\(/\)' \| \
20695 . : '\(.\)' 2>/dev/null ||
20696 echo X$ac_file |
20697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20699 /^X\(\/\/\)$/{ s//\1/; q; }
20700 /^X\(\/\).*/{ s//\1/; q; }
20701 s/.*/./; q'`/stamp-h$_am_stamp_count
20702 done
20703 _ACEOF
20704 cat >>$CONFIG_STATUS <<\_ACEOF
20707 # CONFIG_COMMANDS section.
20709 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20710 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20711 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20712 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20713 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20714 X"$ac_dest" : 'X\(//\)[^/]' \| \
20715 X"$ac_dest" : 'X\(//\)$' \| \
20716 X"$ac_dest" : 'X\(/\)' \| \
20717 . : '\(.\)' 2>/dev/null ||
20718 echo X"$ac_dest" |
20719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20721 /^X\(\/\/\)$/{ s//\1/; q; }
20722 /^X\(\/\).*/{ s//\1/; q; }
20723 s/.*/./; q'`
20724 { if $as_mkdir_p; then
20725 mkdir -p "$ac_dir"
20726 else
20727 as_dir="$ac_dir"
20728 as_dirs=
20729 while test ! -d "$as_dir"; do
20730 as_dirs="$as_dir $as_dirs"
20731 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20733 X"$as_dir" : 'X\(//\)[^/]' \| \
20734 X"$as_dir" : 'X\(//\)$' \| \
20735 X"$as_dir" : 'X\(/\)' \| \
20736 . : '\(.\)' 2>/dev/null ||
20737 echo X"$as_dir" |
20738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20740 /^X\(\/\/\)$/{ s//\1/; q; }
20741 /^X\(\/\).*/{ s//\1/; q; }
20742 s/.*/./; q'`
20743 done
20744 test ! -n "$as_dirs" || mkdir $as_dirs
20745 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20746 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20747 { (exit 1); exit 1; }; }; }
20749 ac_builddir=.
20751 if test "$ac_dir" != .; then
20752 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20753 # A "../" for each directory in $ac_dir_suffix.
20754 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20755 else
20756 ac_dir_suffix= ac_top_builddir=
20759 case $srcdir in
20760 .) # No --srcdir option. We are building in place.
20761 ac_srcdir=.
20762 if test -z "$ac_top_builddir"; then
20763 ac_top_srcdir=.
20764 else
20765 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20766 fi ;;
20767 [\\/]* | ?:[\\/]* ) # Absolute path.
20768 ac_srcdir=$srcdir$ac_dir_suffix;
20769 ac_top_srcdir=$srcdir ;;
20770 *) # Relative path.
20771 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20772 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20773 esac
20775 # Do not use `cd foo && pwd` to compute absolute paths, because
20776 # the directories may not exist.
20777 case `pwd` in
20778 .) ac_abs_builddir="$ac_dir";;
20780 case "$ac_dir" in
20781 .) ac_abs_builddir=`pwd`;;
20782 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20783 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20784 esac;;
20785 esac
20786 case $ac_abs_builddir in
20787 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20789 case ${ac_top_builddir}. in
20790 .) ac_abs_top_builddir=$ac_abs_builddir;;
20791 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20792 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20793 esac;;
20794 esac
20795 case $ac_abs_builddir in
20796 .) ac_abs_srcdir=$ac_srcdir;;
20798 case $ac_srcdir in
20799 .) ac_abs_srcdir=$ac_abs_builddir;;
20800 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20801 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20802 esac;;
20803 esac
20804 case $ac_abs_builddir in
20805 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20807 case $ac_top_srcdir in
20808 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20809 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20810 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20811 esac;;
20812 esac
20815 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20816 echo "$as_me: executing $ac_dest commands" >&6;}
20817 case $ac_dest in
20818 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20819 # Strip MF so we end up with the name of the file.
20820 mf=`echo "$mf" | sed -e 's/:.*$//'`
20821 # Check whether this is an Automake generated Makefile or not.
20822 # We used to match only the files named `Makefile.in', but
20823 # some people rename them; so instead we look at the file content.
20824 # Grep'ing the first line is not enough: some people post-process
20825 # each Makefile.in and add a new line on top of each file to say so.
20826 # So let's grep whole file.
20827 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20828 dirpart=`(dirname "$mf") 2>/dev/null ||
20829 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20830 X"$mf" : 'X\(//\)[^/]' \| \
20831 X"$mf" : 'X\(//\)$' \| \
20832 X"$mf" : 'X\(/\)' \| \
20833 . : '\(.\)' 2>/dev/null ||
20834 echo X"$mf" |
20835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20837 /^X\(\/\/\)$/{ s//\1/; q; }
20838 /^X\(\/\).*/{ s//\1/; q; }
20839 s/.*/./; q'`
20840 else
20841 continue
20843 # Extract the definition of DEPDIR, am__include, and am__quote
20844 # from the Makefile without running `make'.
20845 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20846 test -z "$DEPDIR" && continue
20847 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20848 test -z "am__include" && continue
20849 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20850 # When using ansi2knr, U may be empty or an underscore; expand it
20851 U=`sed -n 's/^U = //p' < "$mf"`
20852 # Find all dependency output files, they are included files with
20853 # $(DEPDIR) in their names. We invoke sed twice because it is the
20854 # simplest approach to changing $(DEPDIR) to its actual value in the
20855 # expansion.
20856 for file in `sed -n "
20857 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20858 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20859 # Make sure the directory exists.
20860 test -f "$dirpart/$file" && continue
20861 fdir=`(dirname "$file") 2>/dev/null ||
20862 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20863 X"$file" : 'X\(//\)[^/]' \| \
20864 X"$file" : 'X\(//\)$' \| \
20865 X"$file" : 'X\(/\)' \| \
20866 . : '\(.\)' 2>/dev/null ||
20867 echo X"$file" |
20868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20870 /^X\(\/\/\)$/{ s//\1/; q; }
20871 /^X\(\/\).*/{ s//\1/; q; }
20872 s/.*/./; q'`
20873 { if $as_mkdir_p; then
20874 mkdir -p $dirpart/$fdir
20875 else
20876 as_dir=$dirpart/$fdir
20877 as_dirs=
20878 while test ! -d "$as_dir"; do
20879 as_dirs="$as_dir $as_dirs"
20880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20882 X"$as_dir" : 'X\(//\)[^/]' \| \
20883 X"$as_dir" : 'X\(//\)$' \| \
20884 X"$as_dir" : 'X\(/\)' \| \
20885 . : '\(.\)' 2>/dev/null ||
20886 echo X"$as_dir" |
20887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20889 /^X\(\/\/\)$/{ s//\1/; q; }
20890 /^X\(\/\).*/{ s//\1/; q; }
20891 s/.*/./; q'`
20892 done
20893 test ! -n "$as_dirs" || mkdir $as_dirs
20894 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20895 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20896 { (exit 1); exit 1; }; }; }
20898 # echo "creating $dirpart/$file"
20899 echo '# dummy' > "$dirpart/$file"
20900 done
20901 done
20903 default-1 )
20904 for ac_file in $CONFIG_FILES; do
20905 # Support "outfile[:infile[:infile...]]"
20906 case "$ac_file" in
20907 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20908 esac
20909 # PO directories have a Makefile.in generated from Makefile.in.in.
20910 case "$ac_file" in */Makefile.in)
20911 # Adjust a relative srcdir.
20912 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20913 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20914 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20915 # In autoconf-2.13 it is called $ac_given_srcdir.
20916 # In autoconf-2.50 it is called $srcdir.
20917 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20918 case "$ac_given_srcdir" in
20919 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20920 /*) top_srcdir="$ac_given_srcdir" ;;
20921 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20922 esac
20923 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20924 rm -f "$ac_dir/POTFILES"
20925 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20926 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20927 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20928 # on $ac_dir but don't depend on user-specified configuration
20929 # parameters.
20930 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20931 # The LINGUAS file contains the set of available languages.
20932 if test -n "$ALL_LINGUAS"; then
20933 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20935 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20936 # Hide the ALL_LINGUAS assigment from automake.
20937 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20939 case "$ac_given_srcdir" in
20940 .) srcdirpre= ;;
20941 *) srcdirpre='$(srcdir)/' ;;
20942 esac
20943 POFILES=
20944 GMOFILES=
20945 UPDATEPOFILES=
20946 DUMMYPOFILES=
20947 for lang in $ALL_LINGUAS; do
20948 POFILES="$POFILES $srcdirpre$lang.po"
20949 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20950 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20951 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20952 done
20953 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20954 # environment variable.
20955 INST_LINGUAS=
20956 if test -n "$ALL_LINGUAS"; then
20957 for presentlang in $ALL_LINGUAS; do
20958 useit=no
20959 if test "%UNSET%" != "$LINGUAS"; then
20960 desiredlanguages="$LINGUAS"
20961 else
20962 desiredlanguages="$ALL_LINGUAS"
20964 for desiredlang in $desiredlanguages; do
20965 # Use the presentlang catalog if desiredlang is
20966 # a. equal to presentlang, or
20967 # b. a variant of presentlang (because in this case,
20968 # presentlang can be used as a fallback for messages
20969 # which are not translated in the desiredlang catalog).
20970 case "$desiredlang" in
20971 "$presentlang"*) useit=yes;;
20972 esac
20973 done
20974 if test $useit = yes; then
20975 INST_LINGUAS="$INST_LINGUAS $presentlang"
20977 done
20979 CATALOGS=
20980 if test -n "$INST_LINGUAS"; then
20981 for lang in $INST_LINGUAS; do
20982 CATALOGS="$CATALOGS $lang.gmo"
20983 done
20985 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20986 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"
20987 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20988 if test -f "$f"; then
20989 case "$f" in
20990 *.orig | *.bak | *~) ;;
20991 *) cat "$f" >> "$ac_dir/Makefile" ;;
20992 esac
20994 done
20997 esac
20998 done ;;
20999 denoiser ) if test $denoiserlevel -gt 0; then
21000 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21001 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" \
21002 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21003 for i in `find . -name 'Makefile' -print`; do
21004 if test -n "`head -n 1 $i | grep '^#'`"; then
21005 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21007 done
21008 fi ;;
21009 esac
21010 done
21011 _ACEOF
21013 cat >>$CONFIG_STATUS <<\_ACEOF
21015 { (exit 0); exit 0; }
21016 _ACEOF
21017 chmod +x $CONFIG_STATUS
21018 ac_clean_files=$ac_clean_files_save
21021 # configure is writing to config.log, and then calls config.status.
21022 # config.status does its own redirection, appending to config.log.
21023 # Unfortunately, on DOS this fails, as config.log is still kept open
21024 # by configure, so config.status won't be able to write to it; its
21025 # output is simply discarded. So we exec the FD to /dev/null,
21026 # effectively closing config.log, so it can be properly (re)opened and
21027 # appended to by config.status. When coming back to configure, we
21028 # need to make the FD available again.
21029 if test "$no_create" != yes; then
21030 ac_cs_success=:
21031 ac_config_status_args=
21032 test "$silent" = yes &&
21033 ac_config_status_args="$ac_config_status_args --quiet"
21034 exec 5>/dev/null
21035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21036 exec 5>>config.log
21037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21038 # would make configure fail if this is the last instruction.
21039 $ac_cs_success || { (exit 1); exit 1; }
21043 if test -n "$svndate"; then
21044 SVN_REVISION=" ($svndate)"
21045 else
21046 SVN_REVISION=
21050 echo
21051 echo
21052 echo " Configure script has finished system check."
21053 echo
21054 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21055 echo
21056 echo " aMule enabled options:"
21057 echo
21058 echo " **** aMule Core ****"
21059 echo " Prefix where aMule should be installed? ${prefix:-none}"
21060 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21061 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
21062 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
21063 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
21064 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
21065 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
21066 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
21067 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
21068 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${enable_amule_gui:-no}"
21069 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21071 echo
21072 echo " **** aMule TextClient ****"
21073 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
21074 echo
21075 echo " **** aMule WebServer ****"
21076 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
21077 echo
21078 echo " **** aMule ED2K Links Handler ****"
21079 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
21080 echo
21081 echo " **** aMuleLinkCreator ****"
21082 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
21083 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
21084 echo
21085 echo " **** aMule Statistics ****"
21086 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
21087 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
21088 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
21090 echo
21091 echo " **** General Libraries and Tools ****"
21092 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21093 echo " Libraries aMule will use to build:"
21094 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
21096 wxinfo="$WX_PORT"
21097 if test $WX_DEBUG -eq 1; then
21098 wxinfo="$wxinfo,debug"
21101 if test $WX_SHARED -eq 1; then
21102 wxinfo="$wxinfo,shared"
21103 else
21104 wxinfo="$wxinfo,static"
21107 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21111 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
21112 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21115 if test ${enable_upnp:-yes} = yes; then
21117 if test -n "$with_libupnp_prefix"; then
21118 libupnp_place=" (in $with_libupnp_prefix)"
21121 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21125 if test ${enable_nls:-yes} = yes; then
21126 if test x$USE_NLS = xno; then
21127 libintl_found="Not detected"
21128 else
21129 if test x$USE_INCLUDED_LIBINTL = xyes; then
21130 libintl_found="included"
21131 else
21132 libintl_found="system"
21137 echo " libintl $libintl_found"
21139 if test ${enable_geoip:-no} = yes; then
21140 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21141 geoip_style=system
21142 else
21143 geoip_style=user
21146 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
21147 echo " libGeoIP ${geoip_style}"
21152 if test ${enable_webserver:-no} = yes; then
21153 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21156 if test ${enable_cas:-no} = yes; then
21157 echo " libgd ${GDLIB_VERSION:-Not detected}"
21160 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
21161 echo " zlib ${ZLIB_VERSION:-Not detected}"
21164 if test ${_mule_has_warnings:-no} = yes; then
21165 echo ""
21166 echo ""
21167 echo " *** Warnings during configuration ***"
21169 if test ${_mule_warning_0:-no} = yes; then
21170 cat <<_MULEEOT
21172 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21173 Please check that gdlib-config is in your default path, check out
21174 LD_LIBRARY_PATH or equivalent variable.
21175 Or this might also be that your gdlib-config has other name.
21176 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21177 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21178 If you use compiled packages check if you have devel pack installed.
21179 To download the latest version check http://www.boutell.com/gd for sources.
21180 _MULEEOT
21182 if test ${_mule_warning_1:-no} = yes; then
21183 cat <<_MULEEOT
21185 * libpng >= 1.2.0 not found.
21186 amuleweb will be compiled but file download progress bar images will NOT be
21187 generated.
21188 _MULEEOT
21190 if test ${_mule_warning_2:-no} = yes; then
21191 cat <<_MULEEOT
21193 * File::Copy perl module is required by the mldonkey_importer script.
21194 If you want to use this script please install File::Copy from CPAN.
21195 _MULEEOT
21197 if test ${_mule_warning_3:-no} = yes; then
21198 cat <<_MULEEOT
21200 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21201 _MULEEOT
21203 if test ${_mule_warning_4:-no} = yes; then
21204 cat <<_MULEEOT
21206 * GeoIP support has been disabled because the GeoIP libraries were not found
21207 _MULEEOT
21209 if test ${_mule_warning_5:-no} = yes; then
21210 cat <<_MULEEOT
21212 * GeoIP support has been disabled because the GeoIP header files were not
21213 found
21214 _MULEEOT
21216 if test ${_mule_warning_6:-no} = yes; then
21217 cat <<_MULEEOT
21219 * UPnP code has been disabled because ${libupnp_error}.
21220 _MULEEOT
21222 if test ${_mule_warning_7:-no} = yes; then
21223 cat <<_MULEEOT
21225 * Cross-compilation detected, so exception handling cannot be tested.
21226 Note that broken exception handling in your compiler may lead to unexpected
21227 crashes.
21228 _MULEEOT
21230 if test ${_mule_warning_8:-no} = yes; then
21231 cat <<_MULEEOT
21233 * configure cannot check whether malloc() and realloc() are GNU libc
21234 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21235 configure with the --without-gnu-malloc switch.
21236 _MULEEOT
21238 if test ${_mule_warning_9:-no} = yes; then
21239 cat <<_MULEEOT
21241 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21242 support.
21243 _MULEEOT
21245 if test ${_mule_warning_10:-no} = yes; then
21246 cat <<_MULEEOT
21248 * bfd.h not found or unusable, please install binutils development package if
21249 you are a developer or want to help testing aMule
21250 _MULEEOT