Upstream tarball 9815
[amule.git] / configure
blobe5570cc5e64bf3083b8c3153dc5d6f7bb05679c0
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 X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
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 X features:
866 --x-includes=DIR X include files are in DIR
867 --x-libraries=DIR X library files are in DIR
869 System types:
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of aMule SVN:";;
878 esac
879 cat <<\_ACEOF
881 Optional Features:
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-optimize enable code optimization
906 --enable-profile enable code profiling
907 --enable-static produce a statically linked executable
908 --enable-ccache enable ccache support for fast recompilation
910 Optional Packages:
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --without-gnu-malloc Don't assume that we use GNU libc compatible
914 malloc/realloc when cross-compiling
915 --with-zlib=PREFIX use zlib in PREFIX
916 --with-gdlib-prefix=PREFIX
917 prefix where gdlib is installed (optional)
918 --with-gdlib-config=CONFIG
919 gdlib-config script to use (optional)
920 --with-libpng-prefix=PREFIX
921 prefix where libpng is installed (optional)
922 --with-libpng-config=CONFIG
923 libpng-config script to use (optional)
924 --with-geoip-headers=DIR
925 GeoIP include files location
926 --with-geoip-lib=DIR GeoIP library location
927 --with-geoip-static Explicitly link GeoIP statically (default=no)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
929 --with-wx-config=CONFIG wx-config script to use (optional)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed (optional)
933 --with-toolkit Build against a specific wxWidgets toolkit (default
934 is auto)
935 --with-wxshared Force building against a shared build of wxWidgets,
936 even if --disable-shared is given (default is auto)
937 --with-wxdebug Force building against a debug build of wxWidgets,
938 even if --disable-debug is given (default is auto)
939 --with-wxversion Build against a specific version of wxWidgets
940 (default is auto)
941 --with-libupnp-prefix=PREFIX
942 UPnP library location
943 --with-crypto-prefix=PREFIX
944 prefix where crypto++ is installed
945 --with-x use the X Window System
946 --with-language=<langs> Specify a comma-separated list of languages you want
947 to have installed. See po/LINGUAS for available
948 languages
949 --with-gnu-ld assume the C compiler uses GNU ld default=no
950 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
951 --without-libiconv-prefix don't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search for libintl in includedir and libdir
955 --with-denoise-level=<level>
956 Specifies denoising level (0-4):
957 0 - Do nothing
958 4 - Suppress all normal output
959 (for more information see
960 src/utils/scripts/denoiser.rules)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables:
966 CXX C++ compiler command
967 CXXFLAGS C++ compiler flags
968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
969 nonstandard directory <lib dir>
970 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
971 headers in a nonstandard directory <include dir>
972 CXXCPP C++ preprocessor
973 CC C compiler command
974 CFLAGS C compiler flags
975 CPP C preprocessor
976 RC Resource Compiler
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by `configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
984 _ACEOF
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
989 ac_popdir=`pwd`
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
992 ac_builddir=.
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
998 else
999 ac_dir_suffix= ac_top_builddir=
1002 case $srcdir in
1003 .) # No --srcdir option. We are building in place.
1004 ac_srcdir=.
1005 if test -z "$ac_top_builddir"; then
1006 ac_top_srcdir=.
1007 else
1008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1009 fi ;;
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1013 *) # Relative path.
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1016 esac
1018 # Do not use `cd foo && pwd` to compute absolute paths, because
1019 # the directories may not exist.
1020 case `pwd` in
1021 .) ac_abs_builddir="$ac_dir";;
1023 case "$ac_dir" in
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1027 esac;;
1028 esac
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1036 esac;;
1037 esac
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1041 case $ac_srcdir in
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1045 esac;;
1046 esac
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1054 esac;;
1055 esac
1057 cd $ac_dir
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1060 echo
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1063 echo
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1067 echo
1068 $ac_configure --help
1069 else
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1072 cd $ac_popdir
1073 done
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1078 cat <<\_ACEOF
1079 aMule configure SVN
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1085 _ACEOF
1086 exit 0
1088 exec 5>config.log
1089 cat >&5 <<_ACEOF
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1096 $ $0 $@
1098 _ACEOF
1100 cat <<_ASUNAME
1101 ## --------- ##
1102 ## Platform. ##
1103 ## --------- ##
1105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1117 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1122 _ASUNAME
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1125 for as_dir in $PATH
1127 IFS=$as_save_IFS
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1130 done
1132 } >&5
1134 cat >&5 <<_ACEOF
1137 ## ----------- ##
1138 ## Core tests. ##
1139 ## ----------- ##
1141 _ACEOF
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1149 ac_configure_args=
1150 ac_configure_args0=
1151 ac_configure_args1=
1152 ac_sep=
1153 ac_must_keep_next=false
1154 for ac_pass in 1 2
1156 for ac_arg
1158 case $ac_arg in
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 continue ;;
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1165 esac
1166 case $ac_pass in
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1172 else
1173 case $ac_arg in
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1180 esac
1182 -* ) ac_must_keep_next=true ;;
1183 esac
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1187 ac_sep=" "
1189 esac
1190 done
1191 done
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close' the trap.
1200 trap 'exit_status=$?
1201 # Save into config.log some information that might help in debugging.
1203 echo
1205 cat <<\_ASBOX
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1209 _ASBOX
1210 echo
1211 # The following way of writing the cache mishandles newlines in values,
1213 (set) 2>&1 |
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1215 *ac_space=\ *)
1216 sed -n \
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1221 sed -n \
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1224 esac;
1226 echo
1228 cat <<\_ASBOX
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_vars
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1241 if test -n "$ac_subst_files"; then
1242 cat <<\_ASBOX
1243 ## ------------- ##
1244 ## Output files. ##
1245 ## ------------- ##
1246 _ASBOX
1247 echo
1248 for ac_var in $ac_subst_files
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1252 done | sort
1253 echo
1256 if test -s confdefs.h; then
1257 cat <<\_ASBOX
1258 ## ----------- ##
1259 ## confdefs.h. ##
1260 ## ----------- ##
1261 _ASBOX
1262 echo
1263 sed "/^$/d" confdefs.h | sort
1264 echo
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1269 } >&5
1270 rm -f core *.core &&
1271 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1272 exit $exit_status
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1276 done
1277 ac_signal=0
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1282 echo >confdefs.h
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1288 _ACEOF
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1293 _ACEOF
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1298 _ACEOF
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1303 _ACEOF
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1308 _ACEOF
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1316 else
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's/^/| /' "$ac_site_file" >&5
1325 . "$ac_site_file"
1327 done
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1335 case $cache_file in
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1338 esac
1340 else
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1343 >$cache_file
1346 # Check that the precious variables saved in the cache have kept the same
1347 # value.
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1356 set,)
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1359 ac_cache_corrupted=: ;;
1360 ,set)
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1364 ,);;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1368 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1374 fi;;
1375 esac
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1378 case $ac_new_val in
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1382 esac
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1386 esac
1388 done
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1393 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1430 ac_aux_dir=
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if 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/install.sh; then
1437 ac_aux_dir=$ac_dir
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1439 break
1440 elif test -f $ac_dir/shtool; then
1441 ac_aux_dir=$ac_dir
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1443 break
1445 done
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1461 # AIX /bin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 # Account for people who put trailing slashes in PATH elements.
1480 case $as_dir/ in
1481 ./ | .// | /cC/* | \
1482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1483 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1484 /usr/ucb/* ) ;;
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1488 # by default.
1489 for ac_prog in ginstall scoinst install; do
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1500 else
1501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1502 break 3
1505 done
1506 done
1508 esac
1509 done
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL=$ac_cv_path_install
1515 else
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1536 # Just in case
1537 sleep 1
1538 echo timestamp > conftest.file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1543 # directory).
1544 if (
1545 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1547 # -L didn't work.
1548 set X `ls -t $srcdir/configure conftest.file`
1550 rm -f conftest.file
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.file
1567 then
1568 # Ok.
1570 else
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE &&
1580 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE &&
1583 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF >conftest.sed
1587 s/[\\$]/&&/g;s/;s,x,x,$//
1588 _ACEOF
1589 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1590 rm conftest.sed
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir=`cd $ac_aux_dir && pwd`
1595 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run="$MISSING --run "
1599 else
1600 am_missing_run=
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1610 # for two reasons:
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p='mkdir -p --'
1621 else
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1625 # exists.
1626 for d in ./-p ./--version;
1628 test -d $d && rmdir $d
1629 done
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p='$(mkinstalldirs)'
1633 else
1634 mkdir_p='$(install_sh) -d'
1638 for ac_prog in gawk mawk nawk awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy $ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1661 done
1662 done
1666 AWK=$ac_cv_prog_AWK
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1670 else
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1676 done
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 cat >conftest.make <<\_ACEOF
1685 all:
1686 @echo 'ac_maketemp="$(MAKE)"'
1687 _ACEOF
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_${ac_make}_set=yes
1692 else
1693 eval ac_cv_prog_make_${ac_make}_set=no
1695 rm -f conftest.make
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1700 SET_MAKE=
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE="MAKE=${MAKE-make}"
1707 rm -rf .tst 2>/dev/null
1708 mkdir .tst 2>/dev/null
1709 if test -d .tst; then
1710 am__leading_dot=.
1711 else
1712 am__leading_dot=_
1714 rmdir .tst 2>/dev/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath --version) >/dev/null 2>/dev/null; then
1727 CYGPATH_W='cygpath -w'
1728 else
1729 CYGPATH_W=echo
1734 # Define the identity of the package.
1735 PACKAGE='amule'
1736 VERSION='SVN'
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1741 _ACEOF
1744 cat >>confdefs.h <<_ACEOF
1745 #define VERSION "$VERSION"
1746 _ACEOF
1748 # Some tools Automake needs.
1750 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}strip; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1798 STRIP=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1809 ac_ct_STRIP=$STRIP
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1841 else
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1846 STRIP=$ac_ct_STRIP
1847 else
1848 STRIP="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1855 # some platforms.
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR=${AMTAR-"${am_missing_run}tar"}
1860 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1868 ac_config_headers="$ac_config_headers config.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE=$enableval
1876 else
1877 USE_MAINTAINER_MODE=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE=
1885 MAINTAINER_MODE_FALSE='#'
1886 else
1887 MAINTAINER_MODE_TRUE='#'
1888 MAINTAINER_MODE_FALSE=
1891 MAINT=$MAINTAINER_MODE_TRUE
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4 >/dev/null 2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 ac_cv_build_alias=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1921 build=$ac_cv_build
1922 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 ac_cv_host_alias=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias=$ac_cv_build_alias
1935 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1943 host=$ac_cv_host
1944 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1950 case "${host_os}" in
1951 darwin*)
1952 SYS=darwin
1953 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1954 MULELDFLAGS="-bind_at_load"
1955 touch src/Scanner.cpp
1957 openbsd*)
1958 SYS=openbsd
1959 LIBS="$LIBS -L/usr/local/lib"
1960 X11LIBS="-lX11 -L/usr/X11R6/lib"
1961 MULECPPFLAGS="-D__OPENBSD__"
1963 *cygwin* | *mingw32*)
1964 SYS=win32
1965 MULECPPFLAGS="-DNOMINMAX"
1967 solaris*)
1968 SYS=solaris
1969 RESOLV_LIB="-lresolv -lnsl"
1970 X11LIBS="-lX11"
1971 LIBS="$LIBS -lrt"
1973 *netbsd*)
1974 SYS=netbsd
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1981 *irix*)
1982 SYS=irix
1983 MULECPPFLAGS="-D__IRIX__"
1986 SYS=unknown
1988 esac
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2001 else
2003 MULELDFLAGS="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS="$CFLAGS"
2016 mule_backup_CXXFLAGS="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2018 ac_ext=cc
2019 ac_cpp='$CXXCPP $CPPFLAGS'
2020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 CXX=$ac_cv_prog_CXX
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2062 done
2064 if test -z "$CXX"; then
2065 ac_ct_CXX=$CXX
2066 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2094 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2098 else
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2104 done
2105 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2107 CXX=$ac_ct_CXX
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev/null >&5) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev/null >&5) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2139 main ()
2143 return 0;
2145 _ACEOF
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2150 # of exeext.
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161 # resort.
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165 ac_cv_exeext=
2166 # b.out is created by i960 compilers.
2167 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2169 test -f "$ac_file" || continue
2170 case $ac_file in
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2173 conftest.$ac_ext )
2174 # This is the source file.
2176 [ab].out )
2177 # We found the default executable, but exeext='' is most
2178 # certainly right.
2179 break;;
2180 *.* )
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2185 export ac_cv_exeext
2186 break;;
2188 break;;
2189 esac
2190 done
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 cross_compiling=no
2220 else
2221 if test "$cross_compiling" = maybe; then
2222 cross_compiling=yes
2223 else
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238 ac_clean_files=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2256 # `rm'.
2257 for ac_file in conftest.exe conftest conftest.*; do
2258 test -f "$ac_file" || continue
2259 case $ac_file in
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 export ac_cv_exeext
2263 break;;
2264 * ) break;;
2265 esac
2266 done
2267 else
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.$ac_ext
2280 EXEEXT=$ac_cv_exeext
2281 ac_exeext=$EXEEXT
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 cat >conftest.$ac_ext <<_ACEOF
2288 /* confdefs.h. */
2289 _ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2295 main ()
2299 return 0;
2301 _ACEOF
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2309 case $ac_file in
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312 break;;
2313 esac
2314 done
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT=$ac_cv_objext
2331 ac_objext=$OBJEXT
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h. */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2345 main ()
2347 #ifndef __GNUC__
2348 choke me
2349 #endif
2352 return 0;
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2358 ac_status=$?
2359 grep -v '^ *+' conftest.er1 >conftest.err
2360 rm -f conftest.er1
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2377 ac_compiler_gnu=yes
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2382 ac_compiler_gnu=no
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS=$CXXFLAGS
2393 CXXFLAGS="-g"
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2407 main ()
2411 return 0;
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2417 ac_status=$?
2418 grep -v '^ *+' conftest.er1 >conftest.err
2419 rm -f conftest.er1
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g=yes
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 ac_cv_prog_cxx_g=no
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2451 CXXFLAGS="-g -O2"
2452 else
2453 CXXFLAGS="-g"
2455 else
2456 if test "$GXX" = yes; then
2457 CXXFLAGS="-O2"
2458 else
2459 CXXFLAGS=
2462 for ac_declaration in \
2463 '' \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2468 'void exit (int);'
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476 $ac_declaration
2477 #include <stdlib.h>
2479 main ()
2481 exit (42);
2483 return 0;
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 continue
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 $ac_declaration
2524 main ()
2526 exit (42);
2528 return 0;
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 break
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560 done
2561 rm -f conftest*
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 DEPDIR="${am__leading_dot}deps"
2575 ac_config_commands="$ac_config_commands depfiles"
2578 am_make=${MAKE-make}
2579 cat > confinc << 'END'
2580 am__doit:
2581 @echo done
2582 .PHONY: am__doit
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2587 am__include="#"
2588 am__quote=
2589 _am_result=none
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2598 am__include=include
2599 am__quote=
2600 _am_result=GNU
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include=.include
2607 am__quote="\""
2608 _am_result=BSD
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno; then
2623 am_depcomp="$ac_aux_dir/depcomp"
2624 AMDEPBACKSLASH='\'
2628 if test "x$enable_dependency_tracking" != xno; then
2629 AMDEP_TRUE=
2630 AMDEP_FALSE='#'
2631 else
2632 AMDEP_TRUE='#'
2633 AMDEP_FALSE=
2639 depcc="$CXX" am_compiler_list=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2651 # in D'.
2652 mkdir conftest.dir
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2656 cd conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2662 # directory.
2663 mkdir sub
2665 am_cv_CXX_dependencies_compiler_type=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2677 : > sub/conftest.c
2678 for i in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub/conftst$i.h
2683 done
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2686 case $depmode in
2687 nosideeffect)
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes; then
2691 continue
2692 else
2693 break
2696 none) break ;;
2697 esac
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode=$depmode \
2702 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2704 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2705 >/dev/null 2>conftest.err &&
2706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type=$depmode
2719 break
2722 done
2724 cd ..
2725 rm -rf conftest.dir
2726 else
2727 am_cv_CXX_dependencies_compiler_type=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2740 am__fastdepCXX_TRUE=
2741 am__fastdepCXX_FALSE='#'
2742 else
2743 am__fastdepCXX_TRUE='#'
2744 am__fastdepCXX_FALSE=
2748 ac_ext=cc
2749 ac_cpp='$CXXCPP $CPPFLAGS'
2750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP in "$CXX -E" "/lib/cpp"
2762 ac_preproc_ok=false
2763 for ac_cxx_preproc_warn_flag in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777 #ifdef __STDC__
2778 # include <limits.h>
2779 #else
2780 # include <assert.h>
2781 #endif
2782 Syntax error
2783 _ACEOF
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev/null; then
2792 if test -s conftest.err; then
2793 ac_cpp_err=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2795 else
2796 ac_cpp_err=
2798 else
2799 ac_cpp_err=yes
2801 if test -z "$ac_cpp_err"; then
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 # Broken: fails on valid input.
2808 continue
2810 rm -f conftest.err conftest.$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2821 _ACEOF
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev/null; then
2830 if test -s conftest.err; then
2831 ac_cpp_err=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2833 else
2834 ac_cpp_err=
2836 else
2837 ac_cpp_err=yes
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2841 continue
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 # Passes both tests.
2847 ac_preproc_ok=:
2848 break
2850 rm -f conftest.err conftest.$ac_ext
2852 done
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.$ac_ext
2855 if $ac_preproc_ok; then
2856 break
2859 done
2860 ac_cv_prog_CXXCPP=$CXXCPP
2863 CXXCPP=$ac_cv_prog_CXXCPP
2864 else
2865 ac_cv_prog_CXXCPP=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2869 ac_preproc_ok=false
2870 for ac_cxx_preproc_warn_flag in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #ifdef __STDC__
2885 # include <limits.h>
2886 #else
2887 # include <assert.h>
2888 #endif
2889 Syntax error
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2902 else
2903 ac_cpp_err=
2905 else
2906 ac_cpp_err=yes
2908 if test -z "$ac_cpp_err"; then
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 # Broken: fails on valid input.
2915 continue
2917 rm -f conftest.err conftest.$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2928 _ACEOF
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2940 else
2941 ac_cpp_err=
2943 else
2944 ac_cpp_err=yes
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948 continue
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 # Passes both tests.
2954 ac_preproc_ok=:
2955 break
2957 rm -f conftest.err conftest.$ac_ext
2959 done
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.$ac_ext
2962 if $ac_preproc_ok; then
2964 else
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
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
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3005 done
3006 done
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3021 ac_ct_CC=$CC
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3052 else
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3057 CC=$ac_ct_CC
3058 else
3059 CC="$ac_cv_prog_CC"
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3101 ac_ct_CC=$CC
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3137 CC=$ac_ct_CC
3138 else
3139 CC="$ac_cv_prog_CC"
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 ac_prog_rejected=no
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected=yes
3164 continue
3166 ac_cv_prog_CC="cc"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy $ac_cv_prog_CC
3176 shift
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3181 shift
3182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3222 done
3223 done
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3237 done
3239 if test -z "$CC"; then
3240 ac_ct_CC=$CC
3241 for ac_prog in cl
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3273 else
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3279 done
3281 CC=$ac_ct_CC
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev/null >&5) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev/null >&5) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev/null >&5) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3326 main ()
3328 #ifndef __GNUC__
3329 choke me
3330 #endif
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_compiler_gnu=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_compiler_gnu=no
3365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 CFLAGS="-g"
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_prog_cc_g=yes
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_cv_prog_cc_g=no
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3432 CFLAGS="-g -O2"
3433 else
3434 CFLAGS="-g"
3436 else
3437 if test "$GCC" = yes; then
3438 CFLAGS="-O2"
3439 else
3440 CFLAGS=
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 ac_cv_prog_cc_stdc=no
3449 ac_save_CC=$CC
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #include <stdarg.h>
3457 #include <stdio.h>
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3464 char **p;
3465 int i;
3467 return p[i];
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3471 char *s;
3472 va_list v;
3473 va_start (v,p);
3474 s = g (p, va_arg (v,int));
3475 va_end (v);
3476 return s;
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492 int argc;
3493 char **argv;
3495 main ()
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3499 return 0;
3501 _ACEOF
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC="$ac_save_CC $ac_arg"
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc=$ac_arg
3535 break
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3541 rm -f conftest.err conftest.$ac_objext
3542 done
3543 rm -f conftest.$ac_ext conftest.$ac_objext
3544 CC=$ac_save_CC
3548 case "x$ac_cv_prog_cc_stdc" in
3549 x|xno)
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC="$CC $ac_cv_prog_cc_stdc" ;;
3556 esac
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.$ac_ext <<_ACEOF
3563 #ifndef __cplusplus
3564 choke me
3565 #endif
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration in \
3590 '' \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3595 'void exit (int);'
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_declaration
3604 #include <stdlib.h>
3606 main ()
3608 exit (42);
3610 return 0;
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 continue
3642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 $ac_declaration
3651 main ()
3653 exit (42);
3655 return 0;
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 break
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 done
3688 rm -f conftest*
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 depcc="$CC" am_compiler_list=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3719 # in D'.
3720 mkdir conftest.dir
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3724 cd conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3730 # directory.
3731 mkdir sub
3733 am_cv_CC_dependencies_compiler_type=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3745 : > sub/conftest.c
3746 for i in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub/conftst$i.h
3751 done
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754 case $depmode in
3755 nosideeffect)
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes; then
3759 continue
3760 else
3761 break
3764 none) break ;;
3765 esac
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode=$depmode \
3770 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3772 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3773 >/dev/null 2>conftest.err &&
3774 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3775 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type=$depmode
3787 break
3790 done
3792 cd ..
3793 rm -rf conftest.dir
3794 else
3795 am_cv_CC_dependencies_compiler_type=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3808 am__fastdepCC_TRUE=
3809 am__fastdepCC_FALSE='#'
3810 else
3811 am__fastdepCC_TRUE='#'
3812 am__fastdepCC_FALSE=
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3825 CPP=
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 # Double quotes because CPP needs to be expanded
3832 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3834 ac_preproc_ok=false
3835 for ac_c_preproc_warn_flag in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #ifdef __STDC__
3850 # include <limits.h>
3851 #else
3852 # include <assert.h>
3853 #endif
3854 Syntax error
3855 _ACEOF
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3870 else
3871 ac_cpp_err=yes
3873 if test -z "$ac_cpp_err"; then
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Broken: fails on valid input.
3880 continue
3882 rm -f conftest.err conftest.$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905 else
3906 ac_cpp_err=
3908 else
3909 ac_cpp_err=yes
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3913 continue
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 # Passes both tests.
3919 ac_preproc_ok=:
3920 break
3922 rm -f conftest.err conftest.$ac_ext
3924 done
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then
3928 break
3931 done
3932 ac_cv_prog_CPP=$CPP
3935 CPP=$ac_cv_prog_CPP
3936 else
3937 ac_cv_prog_CPP=$CPP
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3941 ac_preproc_ok=false
3942 for ac_c_preproc_warn_flag in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #ifdef __STDC__
3957 # include <limits.h>
3958 #else
3959 # include <assert.h>
3960 #endif
3961 Syntax error
3962 _ACEOF
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null; then
3971 if test -s conftest.err; then
3972 ac_cpp_err=$ac_c_preproc_warn_flag
3973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3974 else
3975 ac_cpp_err=
3977 else
3978 ac_cpp_err=yes
3980 if test -z "$ac_cpp_err"; then
3982 else
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 # Broken: fails on valid input.
3987 continue
3989 rm -f conftest.err conftest.$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4000 _ACEOF
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012 else
4013 ac_cpp_err=
4015 else
4016 ac_cpp_err=yes
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4020 continue
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4029 rm -f conftest.err conftest.$ac_ext
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then
4036 else
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4051 ac_build_prefix=
4052 test -n "$build_alias" && ac_build_prefix=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross=$cross_compiling
4058 cross_compiling=no
4060 ac_ext=c
4061 ac_cpp='$CPP $BUILD_CPPFLAGS'
4062 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy ${ac_build_prefix}gcc; ac_word=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4087 done
4088 done
4092 BUILD_CC=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4130 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4134 else
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC=$ac_ct_BUILD_CC
4140 else
4141 BUILD_CC="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy ${ac_build_prefix}cc; ac_word=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4172 BUILD_CC=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4210 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC=$ac_ct_BUILD_CC
4220 else
4221 BUILD_CC="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc; ac_word=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4235 else
4236 ac_prog_rejected=no
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected=yes
4246 continue
4248 ac_cv_prog_BUILD_CC="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy $ac_cv_prog_BUILD_CC
4258 shift
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4263 shift
4264 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4281 for ac_prog in cl
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4309 BUILD_CC=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4319 done
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC=$BUILD_CC
4323 for ac_prog in cl
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4351 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4361 done
4363 BUILD_CC=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev/null >&5) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4385 (eval $ac_compiler -v </dev/null >&5) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev/null >&5) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4403 main ()
4407 return 0;
4409 _ACEOF
4410 ac_clean_files_save=$ac_clean_files
4411 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4414 # of exeext.
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4425 # resort.
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4429 ac_cv_build_exeext=
4430 # b.out is created by i960 compilers.
4431 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4433 test -f "$ac_file" || continue
4434 case $ac_file in
4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4437 conftest.$ac_ext )
4438 # This is the source file.
4440 [ab].out )
4441 # We found the default executable, but exeext='' is most
4442 # certainly right.
4443 break;;
4444 *.* )
4445 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4450 break;;
4452 break;;
4453 esac
4454 done
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 cross_compiling=no
4484 else
4485 if test "$cross_compiling" = maybe; then
4486 cross_compiling=yes
4487 else
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4502 ac_clean_files=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4520 # `rm'.
4521 for ac_file in conftest.exe conftest conftest.*; do
4522 test -f "$ac_file" || continue
4523 case $ac_file in
4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4525 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4527 break;;
4528 * ) break;;
4529 esac
4530 done
4531 else
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.$ac_ext
4544 BUILD_EXEEXT=$ac_cv_build_exeext
4545 ac_build_exeext=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling=$saved_cross
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 else
4558 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4561 CFLAGS="$mule_backup_CFLAGS"
4562 CXXFLAGS="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog in gawk mawk nawk awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4587 done
4588 done
4592 AWK=$ac_cv_prog_AWK
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4596 else
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4602 done
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4610 then ac_cv_prog_egrep='grep -E'
4611 else ac_cv_prog_egrep='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 cat >conftest.make <<\_ACEOF
4626 all:
4627 @echo 'ac_maketemp="$(MAKE)"'
4628 _ACEOF
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_${ac_make}_set=yes
4633 else
4634 eval ac_cv_prog_make_${ac_make}_set=no
4636 rm -f conftest.make
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4641 SET_MAKE=
4642 else
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE="MAKE=${MAKE-make}"
4649 for ac_prog in flex lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4677 LEX=$ac_cv_prog_LEX
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4681 else
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4687 done
4688 test -n "$LEX" || LEX=":"
4690 if test -z "$LEXLIB"
4691 then
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 ac_check_lib_save_LIBS=$LIBS
4698 LIBS="-lfl $LIBS"
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 #ifdef __cplusplus
4708 extern "C"
4709 #endif
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4712 char yywrap ();
4714 main ()
4716 yywrap ();
4718 return 0;
4720 _ACEOF
4721 rm -f conftest.$ac_objext conftest$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap=yes
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_cv_lib_fl_yywrap=no
4750 rm -f conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4757 LEXLIB="-lfl"
4758 else
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 ac_check_lib_save_LIBS=$LIBS
4765 LIBS="-ll $LIBS"
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4779 char yywrap ();
4781 main ()
4783 yywrap ();
4785 return 0;
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap=yes
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_cv_lib_l_yywrap=no
4817 rm -f conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819 LIBS=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4824 LEXLIB="-ll"
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l <<_ACEOF
4842 _ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c; then
4849 ac_cv_prog_lex_root=lex.yy
4850 elif test -f lexyy.c; then
4851 ac_cv_prog_lex_root=lexyy
4852 else
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4860 rm -f conftest.l
4861 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4873 ac_save_LIBS=$LIBS
4874 LIBS="$LIBS $LEXLIB"
4875 cat >conftest.$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4877 _ACEOF
4878 rm -f conftest.$ac_objext conftest$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4906 rm -f conftest.err conftest.$ac_objext \
4907 conftest$ac_exeext conftest.$ac_ext
4908 LIBS=$ac_save_LIBS
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h <<\_ACEOF
4917 #define YYTEXT_POINTER 1
4918 _ACEOF
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4929 # AIX /bin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 # Account for people who put trailing slashes in PATH elements.
4948 case $as_dir/ in
4949 ./ | .// | /cC/* | \
4950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4951 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4952 /usr/ucb/* ) ;;
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4956 # by default.
4957 for ac_prog in ginstall scoinst install; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4968 else
4969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4970 break 3
4973 done
4974 done
4976 esac
4977 done
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL=$ac_cv_path_install
4983 else
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5029 RANLIB=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5033 else
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib; ac_word=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5068 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5072 else
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB=$ac_ct_RANLIB
5078 else
5079 RANLIB="$ac_cv_prog_RANLIB"
5082 for ac_prog in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5110 YACC=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5120 done
5121 test -n "$YACC" || YACC="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5151 RANLIB=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib; ac_word=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB=$ac_ct_RANLIB
5199 else
5200 RANLIB="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}strip; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5230 STRIP=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5241 ac_ct_STRIP=$STRIP
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5277 STRIP=$ac_ct_STRIP
5278 else
5279 STRIP="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}ar; ac_word=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR="$AR" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5309 AR=$ac_cv_prog_AR
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5320 ac_ct_AR=$AR
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy ar; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5347 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5356 AR=$ac_ct_AR
5357 else
5358 AR="$ac_cv_prog_AR"
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}ld; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD="$LD" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5383 done
5384 done
5388 LD=$ac_cv_prog_LD
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5399 ac_ct_LD=$LD
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld; ac_word=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5426 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5435 LD=$ac_ct_LD
5436 else
5437 LD="$ac_cv_prog_LD"
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval="$enable_monolithic"
5444 MONOLITHIC=$enableval
5445 else
5446 MONOLITHIC=yes
5449 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5450 if test "${enable_amule_daemon+set}" = set; then
5451 enableval="$enable_amule_daemon"
5452 AMULE_DAEMON=$enableval
5453 else
5454 AMULE_DAEMON=no
5457 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5458 if test "${enable_amulecmd+set}" = set; then
5459 enableval="$enable_amulecmd"
5460 AMULECMD=$enableval
5461 else
5462 AMULECMD=no
5465 # Check whether --enable-webserver or --disable-webserver was given.
5466 if test "${enable_webserver+set}" = set; then
5467 enableval="$enable_webserver"
5468 WEB=$enableval
5469 else
5470 WEB=no
5473 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5474 if test "${enable_amule_gui+set}" = set; then
5475 enableval="$enable_amule_gui"
5476 AMULE_GUI=$enableval
5477 else
5478 AMULE_GUI=no
5481 # Check whether --enable-cas or --disable-cas was given.
5482 if test "${enable_cas+set}" = set; then
5483 enableval="$enable_cas"
5484 CAS=$enableval
5485 else
5486 CAS=no
5489 # Check whether --enable-wxcas or --disable-wxcas was given.
5490 if test "${enable_wxcas+set}" = set; then
5491 enableval="$enable_wxcas"
5492 WXCAS=$enableval
5493 else
5494 WXCAS=no
5497 # Check whether --enable-ed2k or --disable-ed2k was given.
5498 if test "${enable_ed2k+set}" = set; then
5499 enableval="$enable_ed2k"
5500 ED2K=$enableval
5501 else
5502 ED2K=yes
5505 # Check whether --enable-alc or --disable-alc was given.
5506 if test "${enable_alc+set}" = set; then
5507 enableval="$enable_alc"
5508 ALC=$enableval
5509 else
5510 ALC=no
5513 # Check whether --enable-alcc or --disable-alcc was given.
5514 if test "${enable_alcc+set}" = set; then
5515 enableval="$enable_alcc"
5516 ALCC=$enableval
5517 else
5518 ALCC=no
5521 # Check whether --enable-monolithic or --disable-monolithic was given.
5522 if test "${enable_monolithic+set}" = set; then
5523 enableval="$enable_monolithic"
5524 MONOLITHIC=$enableval
5525 else
5526 MONOLITHIC=yes
5529 # Check whether --enable-upnp or --disable-upnp was given.
5530 if test "${enable_upnp+set}" = set; then
5531 enableval="$enable_upnp"
5532 ENABLE_UPNP=$enableval
5533 else
5534 ENABLE_UPNP=yes
5537 # Check whether --enable-xas or --disable-xas was given.
5538 if test "${enable_xas+set}" = set; then
5539 enableval="$enable_xas"
5540 XAS=$enableval
5541 else
5542 XAS=no
5545 # Default is yes, because they're most likely compatible.
5546 # However, this is only used when cross-compiling.
5548 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5549 if test "${with_gnu_malloc+set}" = set; then
5550 withval="$with_gnu_malloc"
5551 gnumalloc=$withval
5552 else
5553 gnumalloc=yes
5557 # Checking for libs before all other stuff to break
5558 # configure as soon as possible in case of a missing one
5559 # to avoid losing too much time
5561 # Check for zlib
5564 # Check whether --with-zlib or --without-zlib was given.
5565 if test "${with_zlib+set}" = set; then
5566 withval="$with_zlib"
5570 case "${with_zlib:-yes}" in
5572 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5573 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5574 { (exit 1); exit 1; }; }
5576 yes | sys)
5579 zlib_prefix="$with_zlib"
5580 esac
5582 mule_backup_CPPFLAGS="$CPPFLAGS"
5583 mule_backup_LDFLAGS="$LDFLAGS"
5584 mule_backup_LIBS="$LIBS"
5585 if test -n "$zlib_prefix"; then
5587 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5588 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5589 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5590 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5592 else
5594 ZLIB_CPPFLAGS=
5595 ZLIB_LDFLAGS=
5599 ZLIB_LIBS="-lz"
5600 LIBS="$ZLIB_LIBS $LIBS"
5602 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5603 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5604 if test "$cross_compiling" = yes; then
5606 result=no
5607 z_version=
5608 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5616 #include <zlib.h>
5617 #include <stdio.h>
5620 main ()
5623 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5624 zlibVersion();
5627 return 0;
5630 _ACEOF
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5654 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5655 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5656 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5657 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5658 if test "$cross_zver_max" -gt "1"; then
5659 result=yes
5660 elif test "$cross_zver_max" -eq "1"; then
5662 if test "$cross_zver_mid" -gt "1"; then
5663 result=yes
5664 elif test "$cross_zver_mid" -eq "1"; then
5665 if test "$cross_zver_min" -ge "4"; then
5666 result=yes
5674 if test ${result:-no} = yes; then
5675 z_version=" (version $ZLIB_VERSION)"
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5684 rm -f conftest.err conftest.$ac_objext \
5685 conftest$ac_exeext conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $result$z_version" >&5
5687 echo "${ECHO_T}$result$z_version" >&6
5689 else
5690 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5698 #include <zlib.h>
5699 #include <stdio.h>
5702 main ()
5704 char *zver = zlibVersion();
5705 FILE *f=fopen("conftestval", "w");
5706 if (!f) return 1;
5707 fprintf(f, "%s",
5708 zver[0] > '1' ||
5709 (zver[0] == '1' &&
5710 (zver[2] > '1' ||
5711 (zver[2] == '1' &&
5712 zver[4] >= '4'))) ? "yes" : "no");
5713 fclose(f);
5714 f=fopen("conftestver", "w");
5715 if (f) {
5716 fprintf(f, "%s", ZLIB_VERSION);
5717 fclose(f);
5721 return 0;
5724 _ACEOF
5725 rm -f conftest$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5737 if test -f conftestval; then
5738 result=`cat conftestval`
5739 else
5740 result=no
5743 if test ${result:-no} = yes; then
5745 if test -f conftestver; then
5747 ZLIB_VERSION=`cat conftestver`
5748 z_version=" (version $ZLIB_VERSION)"
5750 else
5751 z_version=
5757 echo "$as_me:$LINENO: result: $result$z_version" >&5
5758 echo "${ECHO_T}$result$z_version" >&6
5760 else
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ( exit $ac_status )
5767 result=no
5768 echo "$as_me:$LINENO: result: $result" >&5
5769 echo "${ECHO_T}$result" >&6
5772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5775 CPPFLAGS="$mule_backup_CPPFLAGS"
5776 LDFLAGS="$mule_backup_LDFLAGS"
5777 LIBS="$mule_backup_LIBS"
5779 if test ${result:-no} = no; then
5781 ZLIB_CPPFLAGS=
5782 ZLIB_LDFLAGS=
5783 ZLIB_LIBS=
5784 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5785 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5786 { (exit 1); exit 1; }; }
5793 if test x$CAS = xyes; then
5795 # Check for gd
5797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5799 if test "${ac_cv_header_stdc+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #include <stdlib.h>
5809 #include <stdarg.h>
5810 #include <string.h>
5811 #include <float.h>
5814 main ()
5818 return 0;
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_header_stdc=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 ac_cv_header_stdc=no
5850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 if test $ac_cv_header_stdc = yes; then
5853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5854 cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 #include <string.h>
5862 _ACEOF
5863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864 $EGREP "memchr" >/dev/null 2>&1; then
5866 else
5867 ac_cv_header_stdc=no
5869 rm -f conftest*
5873 if test $ac_cv_header_stdc = yes; then
5874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <stdlib.h>
5883 _ACEOF
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "free" >/dev/null 2>&1; then
5887 else
5888 ac_cv_header_stdc=no
5890 rm -f conftest*
5894 if test $ac_cv_header_stdc = yes; then
5895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896 if test "$cross_compiling" = yes; then
5898 else
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <ctype.h>
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 #else
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #endif
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5919 main ()
5921 int i;
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5925 exit(2);
5926 exit (0);
5928 _ACEOF
5929 rm -f conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5941 else
5942 echo "$as_me: program exited with status $ac_status" >&5
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ( exit $ac_status )
5947 ac_cv_header_stdc=no
5949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5955 if test $ac_cv_header_stdc = yes; then
5957 cat >>confdefs.h <<\_ACEOF
5958 #define STDC_HEADERS 1
5959 _ACEOF
5963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5973 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5974 inttypes.h stdint.h unistd.h
5976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5990 #include <$ac_header>
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag"
6002 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 eval "$as_ac_Header=yes"
6015 else
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 eval "$as_ac_Header=no"
6021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026 cat >>confdefs.h <<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6028 _ACEOF
6032 done
6037 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6038 if test "${with_gdlib_prefix+set}" = set; then
6039 withval="$with_gdlib_prefix"
6043 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6044 if test "${with_gdlib_config+set}" = set; then
6045 withval="$with_gdlib_config"
6049 GDLIB_VERSION=
6051 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6052 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6053 GDLIB_CONFIG_NAME=gdlib-config
6056 if test -n "$with_gdlib_config"; then
6057 GDLIB_CONFIG_NAME="$with_gdlib_config"
6061 # deal with optional prefix
6062 if test -n "$with_gdlib_prefix"; then
6063 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6067 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6068 if test -x "$GDLIB_CONFIG_NAME"; then
6070 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6071 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6072 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6073 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6074 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6076 else
6077 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6078 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6079 echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 case $GDLIB_CONFIG_PATH in
6085 [\\/]* | ?:[\\/]*)
6086 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6091 for as_dir in $as_dummy
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6101 done
6102 done
6104 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6106 esac
6108 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6110 if test -n "$GDLIB_CONFIG_PATH"; then
6111 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6112 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6121 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6123 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6124 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6125 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6127 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6128 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6129 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6130 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6132 gdlib_ver_ok=
6133 if test $gdlib_config_major_version -gt 2; then
6134 gdlib_ver_ok=yes
6135 elif test $gdlib_config_major_version -eq 2; then
6137 if test $gdlib_config_minor_version -gt 0; then
6138 gdlib_ver_ok=yes
6139 elif test $gdlib_config_minor_version -eq 0; then
6140 if test $gdlib_config_micro_version -ge 0; then
6141 gdlib_ver_ok=yes
6150 if test -z "$gdlib_ver_ok"; then
6152 if test -z "$GDLIB_VERSION"; then
6153 echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6155 else
6157 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6158 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6159 GDLIB_VERSION=
6164 else
6166 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6167 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6168 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6169 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6170 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6171 mule_backup_CFLAGS="$CFLAGS"
6172 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6173 if test "${ac_cv_header_gd_h+set}" = set; then
6174 echo "$as_me:$LINENO: checking for gd.h" >&5
6175 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6176 if test "${ac_cv_header_gd_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6181 else
6182 # Is the header compilable?
6183 echo "$as_me:$LINENO: checking gd.h usability" >&5
6184 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 #include <gd.h>
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_header_compiler=yes
6217 else
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6221 ac_header_compiler=no
6223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225 echo "${ECHO_T}$ac_header_compiler" >&6
6227 # Is the header present?
6228 echo "$as_me:$LINENO: checking gd.h presence" >&5
6229 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <gd.h>
6237 _ACEOF
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev/null; then
6246 if test -s conftest.err; then
6247 ac_cpp_err=$ac_c_preproc_warn_flag
6248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6249 else
6250 ac_cpp_err=
6252 else
6253 ac_cpp_err=yes
6255 if test -z "$ac_cpp_err"; then
6256 ac_header_preproc=yes
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 ac_header_preproc=no
6263 rm -f conftest.err conftest.$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6269 yes:no: )
6270 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc=yes
6276 no:yes:* )
6277 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6290 cat <<\_ASBOX
6291 ## ------------------------------ ##
6292 ## Report this to admin@amule.org ##
6293 ## ------------------------------ ##
6294 _ASBOX
6296 sed "s/^/$as_me: WARNING: /" >&2
6298 esac
6299 echo "$as_me:$LINENO: checking for gd.h" >&5
6300 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6301 if test "${ac_cv_header_gd_h+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 ac_cv_header_gd_h=$ac_header_preproc
6306 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6307 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6310 if test $ac_cv_header_gd_h = yes; then
6312 else
6313 GDLIB_VERSION=
6317 CFLAGS="$mule_backup_CFLAGS"
6325 if test -n "$GDLIB_VERSION"; then
6327 CAS_DEFS="-D__GD__"
6328 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6330 else
6331 CAS_DEFS=
6337 if test -z "$CAS_DEFS"; then
6338 { echo "$as_me:$LINENO: WARNING:
6339 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6340 Please check that gdlib-config is in your default path, check out
6341 LD_LIBRARY_PATH or equivalent variable.
6342 Or this might also be that your gdlib-config has other name.
6343 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6344 (replace /usr/bin/gdlib-config with a valid path to your
6345 gdlib-config).
6346 If you use compiled packages check if you have devel pack installed.
6347 To download the latest version check http://www.boutell.com/gd for
6348 sources." >&5
6349 echo "$as_me: WARNING:
6350 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6351 Please check that gdlib-config is in your default path, check out
6352 LD_LIBRARY_PATH or equivalent variable.
6353 Or this might also be that your gdlib-config has other name.
6354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6355 (replace /usr/bin/gdlib-config with a valid path to your
6356 gdlib-config).
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd for
6359 sources." >&2;}
6360 _mule_warning_0=yes
6361 _mule_has_warnings=yes
6366 else
6367 GDLIB_VERSION="not_needed"
6372 if test x$WEB = xyes; then
6375 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6376 if test "${with_libpng_prefix+set}" = set; then
6377 withval="$with_libpng_prefix"
6381 # Check whether --with-libpng-config or --without-libpng-config was given.
6382 if test "${with_libpng_config+set}" = set; then
6383 withval="$with_libpng_config"
6387 LIBPNG_VERSION=
6389 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6390 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6391 LIBPNG_CONFIG_NAME=libpng-config
6394 if test -n "$with_libpng_config"; then
6395 LIBPNG_CONFIG_NAME="$with_libpng_config"
6399 # deal with optional prefix
6400 if test -n "$with_libpng_prefix"; then
6401 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6405 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6406 if test -x "$LIBPNG_CONFIG_NAME"; then
6408 echo "$as_me:$LINENO: checking for libpng-config" >&5
6409 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6410 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6411 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6412 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6414 else
6415 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6416 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6417 echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6419 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 case $LIBPNG_CONFIG_PATH in
6423 [\\/]* | ?:[\\/]*)
6424 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6429 for as_dir in $as_dummy
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6442 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6444 esac
6446 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6448 if test -n "$LIBPNG_CONFIG_PATH"; then
6449 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6450 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6451 else
6452 echo "$as_me:$LINENO: result: no" >&5
6453 echo "${ECHO_T}no" >&6
6459 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6461 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6462 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6464 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6466 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6467 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6468 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6469 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6471 libpng_ver_ok=
6472 if test $libpng_config_major_version -gt 1; then
6473 libpng_ver_ok=yes
6474 elif test $libpng_config_major_version -eq 1; then
6476 if test $libpng_config_minor_version -gt 2; then
6477 libpng_ver_ok=yes
6478 elif test $libpng_config_minor_version -eq 2; then
6479 if test $libpng_config_micro_version -ge 0; then
6480 libpng_ver_ok=yes
6489 if test -z "$libpng_ver_ok"; then
6491 if test -z "$LIBPNG_VERSION"; then
6492 echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6494 else
6496 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6497 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6498 LIBPNG_VERSION=
6503 else
6505 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6506 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6507 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6508 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6509 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6517 if test -n "$LIBPNG_VERSION"; then
6518 AMULEWEB_DEFS="-DWITH_LIBPNG"
6519 else
6521 { echo "$as_me:$LINENO: WARNING:
6522 libpng >= 1.2.0 not found.
6523 amuleweb will be compiled but file download progress bar images will
6524 NOT be generated." >&5
6525 echo "$as_me: WARNING:
6526 libpng >= 1.2.0 not found.
6527 amuleweb will be compiled but file download progress bar images will
6528 NOT be generated." >&2;}
6529 _mule_warning_1=yes
6530 _mule_has_warnings=yes
6539 else
6540 LIBPNG_VERSION="not_needed"
6545 # Check for perl File::Copy
6546 echo "$as_me:$LINENO: checking for File::Copy" >&5
6547 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6548 if perl -e "require File::Copy" 2>/dev/null; then
6549 echo "$as_me:$LINENO: result: ok" >&5
6550 echo "${ECHO_T}ok" >&6
6551 else
6552 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6553 echo "$as_me: error: File::Copy perl module is required" >&2;}
6554 { (exit 1); exit 1; }; }
6559 # Check if we need the GUI
6560 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6561 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6562 if test x$MONOLITHIC = xyes; then
6563 need_gui=yes
6566 if test x$WXCAS = xyes; then
6567 need_gui=yes
6570 if test x$ALC = xyes; then
6571 need_gui=yes
6574 if test x$AMULE_GUI = xyes; then
6575 need_gui=yes
6578 if test x${need_gui:+set} != xset; then
6579 need_gui=no
6582 echo "$as_me:$LINENO: result: $need_gui" >&5
6583 echo "${ECHO_T}$need_gui" >&6
6585 # Check if we need to install skins
6586 if test x$MONOLITHIC = xyes; then
6587 INSTALL_SKINS=yes
6590 if test x$AMULE_GUI = xyes; then
6591 INSTALL_SKINS=yes
6594 if test x${INSTALL_SKINS:+set} != xset; then
6595 INSTALL_SKINS=no
6599 # Check for GeoIP (required for IP2Country capability)
6601 # Check whether --enable-geoip or --disable-geoip was given.
6602 if test "${enable_geoip+set}" = set; then
6603 enableval="$enable_geoip"
6604 ENABLE_IP2COUNTRY=$enableval
6605 else
6606 ENABLE_IP2COUNTRY=no
6609 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6612 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6613 if test "${with_geoip_headers+set}" = set; then
6614 withval="$with_geoip_headers"
6615 GEOIP_CPPFLAGS="-I$withval"
6618 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6619 if test "${with_geoip_lib+set}" = set; then
6620 withval="$with_geoip_lib"
6621 GEOIP_LDFLAGS="-L$withval"
6624 mule_backup_CPPFLAGS="$CPPFLAGS"
6625 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6626 mule_backup_LDFLAGS="$LDFLAGS"
6627 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6629 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6630 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6631 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6632 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6636 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6637 else
6638 # Is the header compilable?
6639 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6640 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 #include <GeoIP.h>
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6653 ac_status=$?
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_header_compiler=yes
6673 else
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 ac_header_compiler=no
6679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 echo "${ECHO_T}$ac_header_compiler" >&6
6683 # Is the header present?
6684 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6685 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <GeoIP.h>
6693 _ACEOF
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev/null; then
6702 if test -s conftest.err; then
6703 ac_cpp_err=$ac_c_preproc_warn_flag
6704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6705 else
6706 ac_cpp_err=
6708 else
6709 ac_cpp_err=yes
6711 if test -z "$ac_cpp_err"; then
6712 ac_header_preproc=yes
6713 else
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 ac_header_preproc=no
6719 rm -f conftest.err conftest.$ac_ext
6720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 echo "${ECHO_T}$ac_header_preproc" >&6
6723 # So? What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6725 yes:no: )
6726 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6727 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6729 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6730 ac_header_preproc=yes
6732 no:yes:* )
6733 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6734 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6736 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6738 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6740 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6742 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6744 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6746 cat <<\_ASBOX
6747 ## ------------------------------ ##
6748 ## Report this to admin@amule.org ##
6749 ## ------------------------------ ##
6750 _ASBOX
6752 sed "s/^/$as_me: WARNING: /" >&2
6754 esac
6755 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6756 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6757 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 ac_cv_header_GeoIP_h=$ac_header_preproc
6762 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6763 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6766 if test $ac_cv_header_GeoIP_h = yes; then
6768 if test x$SYS = xwin32; then
6770 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6771 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6772 # Actually, we might not need any if GeoIP is linked as a .dll
6773 # - but that's even harder to check for
6774 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6782 #include <GeoIP.h>
6783 #ifdef _WINSOCK2_H
6784 I do know it's not the best approach, but at least works with MinGW stock headers.
6785 (tested with w32api-3.12)
6786 #endif
6789 main ()
6793 return 0;
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6820 GEOIP_WINSOCK_LIB="-lwsock32"
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6827 GEOIP_WINSOCK_LIB="-lws2_32"
6830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6832 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6836 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6837 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6838 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 ac_check_lib_save_LIBS=$LIBS
6842 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 #ifdef __cplusplus
6852 extern "C"
6853 #endif
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6856 char GeoIP_open ();
6858 main ()
6860 GeoIP_open ();
6862 return 0;
6864 _ACEOF
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867 (eval $ac_link) 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -z "$ac_c_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_lib_GeoIP_GeoIP_open=yes
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 ac_cv_lib_GeoIP_GeoIP_open=no
6894 rm -f conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext conftest.$ac_ext
6896 LIBS=$ac_check_lib_save_LIBS
6898 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
6899 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
6900 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define SUPPORT_GEOIP 1
6905 _ACEOF
6907 GEOIP_LIBS="-lGeoIP"
6908 if test x$SYS = xwin32; then
6909 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
6912 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6914 # Check whether --with-geoip-static or --without-geoip-static was given.
6915 if test "${with_geoip_static+set}" = set; then
6916 withval="$with_geoip_static"
6918 if test "$withval" != "no" -a ${enable_static:-no} = no; then
6920 mule_backup_LIBS="$LIBS"
6921 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
6922 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6930 #include <GeoIP.h>
6933 main ()
6936 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
6939 return 0;
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6966 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6973 { echo "$as_me:$LINENO: WARNING:
6974 Cannot link GeoIP statically, because your linker ($LD) does not
6975 support it." >&5
6976 echo "$as_me: WARNING:
6977 Cannot link GeoIP statically, because your linker ($LD) does not
6978 support it." >&2;}
6979 _mule_warning_2=yes
6980 _mule_has_warnings=yes
6984 rm -f conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 LIBS="$mule_backup_LIBS"
6993 else
6995 ENABLE_IP2COUNTRY=disabled
6996 { echo "$as_me:$LINENO: WARNING:
6997 GeoIP support has been disabled because the GeoIP libraries were not
6998 found" >&5
6999 echo "$as_me: WARNING:
7000 GeoIP support has been disabled because the GeoIP libraries were not
7001 found" >&2;}
7002 _mule_warning_3=yes
7003 _mule_has_warnings=yes
7009 else
7011 ENABLE_IP2COUNTRY=disabled
7012 { echo "$as_me:$LINENO: WARNING:
7013 GeoIP support has been disabled because the GeoIP header files were
7014 not found" >&5
7015 echo "$as_me: WARNING:
7016 GeoIP support has been disabled because the GeoIP header files were
7017 not found" >&2;}
7018 _mule_warning_4=yes
7019 _mule_has_warnings=yes
7026 CPPFLAGS="$mule_backup_CPPFLAGS"
7027 LDFLAGS="$mule_backup_LDFLAGS"
7033 # Check for wx
7036 # Check whether --with-wxdir or --without-wxdir was given.
7037 if test "${with_wxdir+set}" = set; then
7038 withval="$with_wxdir"
7039 wx_config_name="$withval/wx-config"
7040 wx_config_args="--inplace"
7043 # Check whether --with-wx-config or --without-wx-config was given.
7044 if test "${with_wx_config+set}" = set; then
7045 withval="$with_wx_config"
7046 wx_config_name="$withval"
7049 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7050 if test "${with_wx_prefix+set}" = set; then
7051 withval="$with_wx_prefix"
7052 wx_config_prefix="$withval"
7053 else
7054 wx_config_prefix=""
7057 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7058 if test "${with_wx_exec_prefix+set}" = set; then
7059 withval="$with_wx_exec_prefix"
7060 wx_config_exec_prefix="$withval"
7061 else
7062 wx_config_exec_prefix=""
7076 # Check whether --with-toolkit or --without-toolkit was given.
7077 if test "${with_toolkit+set}" = set; then
7078 withval="$with_toolkit"
7080 else
7081 withval="auto"
7084 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7085 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7086 if test "$withval" = "auto" ; then
7087 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7088 echo "${ECHO_T}will be automatically detected" >&6
7089 TOOLKIT="auto"
7090 else
7091 TOOLKIT="$withval"
7093 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7094 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7095 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7096 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7097 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7098 "$TOOLKIT" != "osx_cocoa"; then
7099 { { echo "$as_me:$LINENO: error:
7100 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7101 " >&5
7102 echo "$as_me: error:
7103 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7104 " >&2;}
7105 { (exit 1); exit 1; }; }
7108 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7109 echo "${ECHO_T}$TOOLKIT" >&6
7116 # Check whether --with-wxshared or --without-wxshared was given.
7117 if test "${with_wxshared+set}" = set; then
7118 withval="$with_wxshared"
7120 else
7121 withval="auto"
7124 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7125 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7126 if test "$withval" = "yes" ; then
7127 echo "$as_me:$LINENO: result: yes" >&5
7128 echo "${ECHO_T}yes" >&6
7129 WX_SHARED=1
7131 elif test "1" = "1" -a "$withval" = "no" ; then
7132 echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7134 WX_SHARED=0
7135 elif test "$withval" = "auto" ; then
7136 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7137 echo "${ECHO_T}will be automatically detected" >&6
7138 WX_SHARED="auto"
7139 else
7140 { { echo "$as_me:$LINENO: error:
7141 Unrecognized option value (allowed values: yes, auto)
7142 " >&5
7143 echo "$as_me: error:
7144 Unrecognized option value (allowed values: yes, auto)
7145 " >&2;}
7146 { (exit 1); exit 1; }; }
7153 # Check whether --with-wxdebug or --without-wxdebug was given.
7154 if test "${with_wxdebug+set}" = set; then
7155 withval="$with_wxdebug"
7157 else
7158 withval="auto"
7161 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7162 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7163 if test "$withval" = "yes" ; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165 echo "${ECHO_T}yes" >&6
7166 WX_DEBUG=1
7168 elif test "1" = "1" -a "$withval" = "no" ; then
7169 echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6
7171 WX_DEBUG=0
7172 elif test "$withval" = "auto" ; then
7173 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7174 echo "${ECHO_T}will be automatically detected" >&6
7175 WX_DEBUG="auto"
7176 else
7177 { { echo "$as_me:$LINENO: error:
7178 Unrecognized option value (allowed values: yes, auto)
7179 " >&5
7180 echo "$as_me: error:
7181 Unrecognized option value (allowed values: yes, auto)
7182 " >&2;}
7183 { (exit 1); exit 1; }; }
7190 # Check whether --with-wxversion or --without-wxversion was given.
7191 if test "${with_wxversion+set}" = set; then
7192 withval="$with_wxversion"
7194 else
7195 withval="auto"
7198 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7199 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7200 if test "$withval" = "auto" ; then
7201 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7202 echo "${ECHO_T}will be automatically detected" >&6
7203 WX_VERSION="auto"
7204 else
7206 wx_requested_major_version=`echo $withval | \
7207 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7208 wx_requested_minor_version=`echo $withval | \
7209 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7211 if test "${#wx_requested_major_version}" != "1" -o \
7212 "${#wx_requested_minor_version}" != "1" ; then
7213 { { echo "$as_me:$LINENO: error:
7214 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7215 " >&5
7216 echo "$as_me: error:
7217 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7218 " >&2;}
7219 { (exit 1); exit 1; }; }
7222 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7223 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7224 echo "${ECHO_T}$WX_VERSION" >&6
7228 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7229 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7230 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7231 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7232 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7233 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7236 # Force using a static wxWidgets library if the executable is to be linked statically.
7237 if test ${enable_static:-no} = yes; then
7238 WX_SHARED=0
7241 # Force using a unicode build of the library
7242 WX_UNICODE=1
7243 DEBUG=$WX_DEBUG
7245 if test "$WX_SHARED" = "1" ; then
7246 WXCONFIG_FLAGS="--static=no "
7247 elif test "$WX_SHARED" = "0" ; then
7248 WXCONFIG_FLAGS="--static=yes "
7251 if test "$WX_DEBUG" = "1" ; then
7252 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7253 elif test "$WX_DEBUG" = "0" ; then
7254 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7257 if test "$WX_UNICODE" = "1" ; then
7258 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7259 elif test "$WX_UNICODE" = "0" ; then
7260 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7263 if test "$TOOLKIT" != "auto" ; then
7264 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7267 if test "$WX_VERSION" != "auto" ; then
7268 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7271 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7273 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7274 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7278 if test x${WX_CONFIG_NAME+set} != xset ; then
7279 WX_CONFIG_NAME=wx-config
7282 if test "x$wx_config_name" != x ; then
7283 WX_CONFIG_NAME="$wx_config_name"
7286 if test x$wx_config_exec_prefix != x ; then
7287 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7288 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7290 if test x$wx_config_prefix != x ; then
7291 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7292 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7294 if test "$cross_compiling" = "yes"; then
7295 wx_config_args="$wx_config_args --host=$host_alias"
7298 if test -x "$WX_CONFIG_NAME" ; then
7299 echo "$as_me:$LINENO: checking for wx-config" >&5
7300 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7301 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7302 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7303 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7304 else
7305 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7306 set dummy $WX_CONFIG_NAME; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 case $WX_CONFIG_PATH in
7313 [\\/]* | ?:[\\/]*)
7314 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7319 for as_dir in $as_dummy
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7329 done
7330 done
7332 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7334 esac
7336 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7338 if test -n "$WX_CONFIG_PATH"; then
7339 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7340 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6
7348 if test "$WX_CONFIG_PATH" != "no" ; then
7349 WX_VERSION_FULL=""
7351 min_wx_version=2.8.8
7352 if test -z "$WXCONFIG_FLAGS" ; then
7353 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7354 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7355 else
7356 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7357 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7360 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7362 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7363 wx_config_major_version=`echo $WX_VERSION_FULL | \
7364 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7365 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7366 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7367 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7368 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7370 wx_requested_major_version=`echo $min_wx_version | \
7371 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7372 wx_requested_minor_version=`echo $min_wx_version | \
7373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7374 wx_requested_micro_version=`echo $min_wx_version | \
7375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7378 wx_ver_ok=""
7379 if test "x$WX_VERSION_FULL" != x ; then
7380 if test $wx_config_major_version -gt $wx_requested_major_version; then
7381 wx_ver_ok=yes
7382 else
7383 if test $wx_config_major_version -eq $wx_requested_major_version; then
7384 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7385 wx_ver_ok=yes
7386 else
7387 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7388 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7389 wx_ver_ok=yes
7398 if test -n "$wx_ver_ok"; then
7400 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7401 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7402 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7404 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7405 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7406 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7407 if test "x$WX_LIBS_STATIC" = "x"; then
7408 echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410 else
7411 echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7415 wx_has_cppflags=""
7416 if test $wx_config_major_version -gt 2; then
7417 wx_has_cppflags=yes
7418 else
7419 if test $wx_config_major_version -eq 2; then
7420 if test $wx_config_minor_version -gt 2; then
7421 wx_has_cppflags=yes
7422 else
7423 if test $wx_config_minor_version -eq 2; then
7424 if test $wx_config_micro_version -ge 6; then
7425 wx_has_cppflags=yes
7432 wx_has_rescomp=""
7433 if test $wx_config_major_version -gt 2; then
7434 wx_has_rescomp=yes
7435 else
7436 if test $wx_config_major_version -eq 2; then
7437 if test $wx_config_minor_version -ge 7; then
7438 wx_has_rescomp=yes
7442 if test "x$wx_has_rescomp" = x ; then
7443 WX_RESCOMP=
7444 else
7445 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7448 if test "x$wx_has_cppflags" = x ; then
7449 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7450 WX_CPPFLAGS=$WX_CFLAGS
7451 WX_CXXFLAGS=$WX_CFLAGS
7453 WX_CFLAGS_ONLY=$WX_CFLAGS
7454 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7455 else
7456 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7457 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7458 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7460 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7461 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7464 wxWin=1
7466 else
7468 if test "x$WX_VERSION_FULL" = x; then
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471 else
7472 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7473 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7476 WX_CFLAGS=""
7477 WX_CPPFLAGS=""
7478 WX_CXXFLAGS=""
7479 WX_LIBS=""
7480 WX_LIBS_STATIC=""
7481 WX_RESCOMP=""
7483 if test ! -z "$WXCONFIG_FLAGS"; then
7485 wx_error_message="
7486 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7487 build with the following settings:
7488 $WXCONFIG_FLAGS
7489 but such build is not available.
7491 To see the wxWidgets builds available on this system, please use
7492 'wx-config --list' command. To use the default build, returned by
7493 'wx-config --selected-config', use the options with their 'auto'
7494 default values."
7498 wx_error_message="
7499 The requested wxWidgets build couldn't be found.
7500 $wx_error_message
7502 If you still get this error, then check that 'wx-config' is
7503 in path, the directory where wxWidgets libraries are installed
7504 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7505 or equivalent variable and wxWidgets version is 2.8.8 or above."
7507 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7508 echo "$as_me: error: $wx_error_message" >&2;}
7509 { (exit 1); exit 1; }; }
7512 else
7514 WX_CFLAGS=""
7515 WX_CPPFLAGS=""
7516 WX_CXXFLAGS=""
7517 WX_LIBS=""
7518 WX_LIBS_STATIC=""
7519 WX_RESCOMP=""
7535 WX_VERSION_MAJOR="$wx_config_major_version"
7536 WX_VERSION_MINOR="$wx_config_minor_version"
7540 if test "$wxWin" != 1; then
7541 { { echo "$as_me:$LINENO: error:
7542 wxWidgets must be installed on your system but wx-config
7543 script couldn't be found. Please check that wx-config is
7544 in path or specified by --with-wx-config=path flag, the
7545 directory where wxWidgets libraries are installed (returned
7546 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7547 equivalent variable and wxWidgets version is 2.8.8 or above.
7548 " >&5
7549 echo "$as_me: error:
7550 wxWidgets must be installed on your system but wx-config
7551 script couldn't be found. Please check that wx-config is
7552 in path or specified by --with-wx-config=path flag, the
7553 directory where wxWidgets libraries are installed (returned
7554 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7555 equivalent variable and wxWidgets version is 2.8.8 or above.
7556 " >&2;}
7557 { (exit 1); exit 1; }; }
7560 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7561 if test $WX_VERSION -lt 26 ; then
7563 { { echo "$as_me:$LINENO: error:
7564 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7565 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7566 version of wxWidgets.
7567 " >&5
7568 echo "$as_me: error:
7569 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7570 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7571 version of wxWidgets.
7572 " >&2;}
7573 { (exit 1); exit 1; }; }
7576 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7578 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7579 echo "[dbg] Using wx-config --selected-config"
7580 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7584 if test $WX_SHARED = "1"; then
7585 STATIC=0
7586 elif test $WX_SHARED = "0"; then
7587 STATIC=1
7588 elif test $WX_SHARED = "auto"; then
7589 STATIC="auto"
7593 if test "$UNICODE" = "auto" ; then
7595 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7596 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7598 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7600 if test "$WX_UNICODE" != "0"; then
7601 WX_UNICODE=1
7602 echo "$as_me:$LINENO: result: yes" >&5
7603 echo "${ECHO_T}yes" >&6
7605 else
7606 WX_UNICODE=0
7607 echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7611 else
7613 WX_UNICODE=$UNICODE
7617 if test "$DEBUG" = "auto" ; then
7619 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7620 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7622 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7624 if test "$WX_DEBUG" != "0"; then
7625 WX_DEBUG=1
7626 echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6
7629 else
7630 WX_DEBUG=0
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7635 else
7637 WX_DEBUG=$DEBUG
7641 if test "$STATIC" = "auto" ; then
7643 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7644 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7646 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7648 if test "$WX_STATIC" != "0"; then
7649 WX_STATIC=1
7650 echo "$as_me:$LINENO: result: yes" >&5
7651 echo "${ECHO_T}yes" >&6
7653 else
7654 WX_STATIC=0
7655 echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6
7659 else
7661 WX_STATIC=$STATIC
7665 if test "$WX_STATIC" != "0"; then
7666 WX_SHARED=0
7667 else
7668 WX_SHARED=1
7675 if test "$TOOLKIT" = "auto" ; then
7677 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7678 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7680 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7681 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7682 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7683 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7684 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7685 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7686 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7687 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7688 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7689 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7690 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7692 WX_PORT="unknown"
7693 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7694 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7695 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7696 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7697 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7698 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7699 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7700 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7701 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7702 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7703 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
7706 if test "$WX_PORT" = "unknown" ; then
7707 { { echo "$as_me:$LINENO: error:
7708 Cannot detect the currently installed wxWidgets port !
7709 Please check your 'wx-config --cxxflags'...
7710 " >&5
7711 echo "$as_me: error:
7712 Cannot detect the currently installed wxWidgets port !
7713 Please check your 'wx-config --cxxflags'...
7714 " >&2;}
7715 { (exit 1); exit 1; }; }
7718 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7719 echo "${ECHO_T}$WX_PORT" >&6
7720 else
7722 if test -n "$TOOLKIT" ; then
7723 WX_PORT=$TOOLKIT
7724 else
7725 WX_PORT=$PORT
7731 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7732 echo "[dbg] Values of all WX_* options after final detection:"
7733 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7734 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7735 echo "[dbg] WX_SHARED: $WX_SHARED"
7736 echo "[dbg] WX_VERSION: $WX_VERSION"
7737 echo "[dbg] WX_PORT: $WX_PORT"
7740 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7741 { { echo "$as_me:$LINENO: error:
7742 Cannot build shared library against a static build of wxWidgets !
7743 This error happens because the wxWidgets build which was selected
7744 has been detected as static while you asked to build $PACKAGE_NAME
7745 as shared library and this is not possible.
7746 Use the '--disable-shared' option to build $PACKAGE_NAME
7747 as static library or '--with-wxshared' to use wxWidgets as shared library.
7748 " >&5
7749 echo "$as_me: error:
7750 Cannot build shared library against a static build of wxWidgets !
7751 This error happens because the wxWidgets build which was selected
7752 has been detected as static while you asked to build $PACKAGE_NAME
7753 as shared library and this is not possible.
7754 Use the '--disable-shared' option to build $PACKAGE_NAME
7755 as static library or '--with-wxshared' to use wxWidgets as shared library.
7756 " >&2;}
7757 { (exit 1); exit 1; }; }
7760 if test "$DEBUG" = "auto"; then
7761 DEBUG=$WX_DEBUG
7763 if test "$DEBUG" = "1"; then
7764 BUILD="debug"
7765 elif test "$DEBUG" = ""; then
7766 BUILD="release"
7769 if test "$UNICODE" = "auto"; then
7770 UNICODE=$WX_UNICODE
7772 if test "$SHARED" = "auto"; then
7773 SHARED=$WX_SHARED
7775 if test "$TOOLKIT" = "auto"; then
7776 TOOLKIT=$WX_PORT
7781 # We also need wxBase
7782 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7783 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7784 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7788 if test ${need_gui} = yes -a "${WX_PORT}" = base; then
7789 { { echo "$as_me:$LINENO: error:
7790 The selected components need a wxWidgets library with GUI,
7791 but your installation is base-only. Please install a GUI
7792 enabled version of wxWidgets and then retry.
7793 " >&5
7794 echo "$as_me: error:
7795 The selected components need a wxWidgets library with GUI,
7796 but your installation is base-only. Please install a GUI
7797 enabled version of wxWidgets and then retry.
7798 " >&2;}
7799 { (exit 1); exit 1; }; }
7804 if test ${SYS:-unknown} = win32; then
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}windres; ac_word=$2
7809 echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7811 if test "${ac_cv_prog_RC+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 if test -n "$RC"; then
7815 ac_cv_prog_RC="$RC" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_RC="${ac_tool_prefix}windres"
7825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7828 done
7829 done
7833 RC=$ac_cv_prog_RC
7834 if test -n "$RC"; then
7835 echo "$as_me:$LINENO: result: $RC" >&5
7836 echo "${ECHO_T}$RC" >&6
7837 else
7838 echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6
7843 if test -z "$ac_cv_prog_RC"; then
7844 ac_ct_RC=$RC
7845 # Extract the first word of "windres", so it can be a program name with args.
7846 set dummy windres; ac_word=$2
7847 echo "$as_me:$LINENO: checking for $ac_word" >&5
7848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7849 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 if test -n "$ac_ct_RC"; then
7853 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_RC="windres"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7869 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7872 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7873 if test -n "$ac_ct_RC"; then
7874 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7875 echo "${ECHO_T}$ac_ct_RC" >&6
7876 else
7877 echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6
7881 RC=$ac_ct_RC
7882 else
7883 RC="$ac_cv_prog_RC"
7886 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7892 # Check for libupnp
7893 if test "${ENABLE_UPNP:-yes}" = yes; then
7897 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7901 echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7903 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 case $PKG_CONFIG in
7907 [\\/]* | ?:[\\/]*)
7908 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7922 done
7923 done
7926 esac
7928 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7930 if test -n "$PKG_CONFIG"; then
7931 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7932 echo "${ECHO_T}$PKG_CONFIG" >&6
7933 else
7934 echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6
7939 if test -z "$ac_cv_path_PKG_CONFIG"; then
7940 ac_pt_PKG_CONFIG=$PKG_CONFIG
7941 # Extract the first word of "pkg-config", so it can be a program name with args.
7942 set dummy pkg-config; ac_word=$2
7943 echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7945 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 case $ac_pt_PKG_CONFIG in
7949 [\\/]* | ?:[\\/]*)
7950 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7964 done
7965 done
7968 esac
7970 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7972 if test -n "$ac_pt_PKG_CONFIG"; then
7973 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7974 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7975 else
7976 echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7980 PKG_CONFIG=$ac_pt_PKG_CONFIG
7981 else
7982 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7986 if test -n "$PKG_CONFIG"; then
7987 _pkg_min_version=0.9.0
7988 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7989 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7990 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7996 PKG_CONFIG=""
8002 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8003 if test "${with_libupnp_prefix+set}" = set; then
8004 withval="$with_libupnp_prefix"
8005 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8008 if test $cross_compiling = no; then
8010 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8011 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8012 if test -n "$PKG_CONFIG"; then
8014 if $PKG_CONFIG libupnp --exists; then
8016 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8017 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8019 result=yes
8020 resultstr=" (version $LIBUPNP_VERSION)"
8021 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8022 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8023 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8024 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8025 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8027 else
8029 result=no
8030 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8035 else
8037 result=no
8038 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8043 else
8045 result=no
8046 resultstr=" (pkg-config not found)"
8050 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8051 echo "${ECHO_T}$result$resultstr" >&6
8052 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8054 else
8056 result=no
8057 libupnp_error="cross compiling"
8062 if test ${result:-no} = yes; then
8063 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8064 else
8065 ENABLE_UPNP=disabled
8066 { echo "$as_me:$LINENO: WARNING:
8067 UPnP code has been disabled because ${libupnp_error}." >&5
8068 echo "$as_me: WARNING:
8069 UPnP code has been disabled because ${libupnp_error}." >&2;}
8070 _mule_warning_5=yes
8071 _mule_has_warnings=yes
8082 # Check for Crypto++
8085 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8086 if test "${with_crypto_prefix+set}" = set; then
8087 withval="$with_crypto_prefix"
8091 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8092 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8094 cryptopp_file_with_version="cryptlib.h"
8096 CRYPTOPP_STYLE="unknown"
8097 CRYPTOPP_LIB_NAME="unknown"
8098 cryptopp_includedir="unknown"
8099 CRYPTOPP_INCLUDE_PREFIX="unknown"
8100 cryptopp_libdir="unknown"
8102 if test -n "$with_crypto_prefix"; then
8104 CRYPTOPP_PREFIX="$with_crypto_prefix"
8105 # Find the Cryptopp header in the user-provided location
8106 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8108 CRYPTOPP_STYLE="sources"
8109 CRYPTOPP_LIB_NAME="cryptopp"
8110 cryptopp_includedir=
8111 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8112 cryptopp_libdir=
8114 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8116 CRYPTOPP_STYLE="installed"
8117 CRYPTOPP_LIB_NAME="cryptopp"
8118 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8119 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8120 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8122 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8124 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8125 CRYPTOPP_STYLE="gentoo_debian"
8126 CRYPTOPP_LIB_NAME="crypto++"
8127 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8128 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8129 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8134 else
8136 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8137 # Find the Cryptopp header in system locations
8138 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8140 CRYPTOPP_STYLE="sources"
8141 CRYPTOPP_LIB_NAME="cryptopp"
8142 cryptopp_includedir=
8143 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8144 cryptopp_libdir=
8145 break
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"
8154 break
8156 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8158 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8159 CRYPTOPP_STYLE="gentoo_debian"
8160 CRYPTOPP_LIB_NAME="crypto++"
8161 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8162 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8163 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8164 break
8168 done
8173 if test $CRYPTOPP_STYLE = "unknown"; then
8174 result=no; resultstr=""
8175 else
8177 # Find out the crypto++ version and check against the minimum required
8178 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8179 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8180 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8181 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8183 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8185 result=yes
8186 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8187 if test -n "$cryptopp_includedir"; then
8188 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8189 else
8190 CRYPTOPP_CPPFLAGS=
8193 if test -n "$cryptopp_libdir"; then
8195 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8196 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8198 else
8200 CRYPTOPP_LDFLAGS=
8201 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8207 cat >>confdefs.h <<_ACEOF
8208 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8209 _ACEOF
8212 else
8214 result=no
8215 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8223 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8224 echo "${ECHO_T}$result$resultstr" >&6
8226 if test ${result:-no} = yes; then
8228 # Check for CryptoPP >= 5.5
8229 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8230 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8234 else
8236 { { echo "$as_me:$LINENO: error:
8237 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8238 Please try again with --with-crypto-prefix=/my_crypto_prefix
8239 (replace /my_crypto_prefix with a valid path to your crypto++
8240 installation directory)." >&5
8241 echo "$as_me: error:
8242 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8243 Please try again with --with-crypto-prefix=/my_crypto_prefix
8244 (replace /my_crypto_prefix with a valid path to your crypto++
8245 installation directory)." >&2;}
8246 { (exit 1); exit 1; }; }
8253 ac_ext=cc
8254 ac_cpp='$CXXCPP $CPPFLAGS'
8255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8262 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8263 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8264 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8272 #include <string>
8273 #ifndef __GLIBCXX__
8274 #error Non-GNU C++ library found.
8275 #endif
8278 _ACEOF
8279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } >/dev/null; then
8287 if test -s conftest.err; then
8288 ac_cpp_err=$ac_cxx_preproc_warn_flag
8289 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8290 else
8291 ac_cpp_err=
8293 else
8294 ac_cpp_err=yes
8296 if test -z "$ac_cpp_err"; then
8297 GLIBCXX=yes
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 GLIBCXX=no
8304 rm -f conftest.err conftest.$ac_ext
8305 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8306 echo "${ECHO_T}$GLIBCXX" >&6
8309 mule_backup_CPPFLAGS="$CPPFLAGS"
8310 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8312 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8313 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h. */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8322 #include <wx/wx.h>
8323 #include <wx/filefn.h>
8324 #ifndef wxHAS_LARGE_FILES
8325 #error No LargeFile support!
8326 #endif
8329 _ACEOF
8330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } >/dev/null; then
8338 if test -s conftest.err; then
8339 ac_cpp_err=$ac_cxx_preproc_warn_flag
8340 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8341 else
8342 ac_cpp_err=
8344 else
8345 ac_cpp_err=yes
8347 if test -z "$ac_cpp_err"; then
8349 echo "$as_me:$LINENO: result: yes" >&5
8350 echo "${ECHO_T}yes" >&6
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8357 echo "$as_me:$LINENO: result: no" >&5
8358 echo "${ECHO_T}no" >&6
8359 { { echo "$as_me:$LINENO: error:
8360 Support for large files in wxWidgets is required by aMule.
8361 To continue you must recompile wxWidgets with support for
8362 large files enabled." >&5
8363 echo "$as_me: error:
8364 Support for large files in wxWidgets is required by aMule.
8365 To continue you must recompile wxWidgets with support for
8366 large files enabled." >&2;}
8367 { (exit 1); exit 1; }; }
8370 rm -f conftest.err conftest.$ac_ext
8372 CPPFLAGS="$mule_backup_CPPFLAGS"
8375 # Check if the compiler is broken, wrt. exceptions.
8377 echo "$as_me:$LINENO: checking for exception-handling" >&5
8378 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8379 if test "$cross_compiling" = yes; then
8381 echo "$as_me:$LINENO: result: undeterminable" >&5
8382 echo "${ECHO_T}undeterminable" >&6
8383 { echo "$as_me:$LINENO: WARNING:
8384 Cross-compilation detected, so exception handling cannot be tested.
8385 Note that broken exception handling in your compiler may lead to
8386 unexpected crashes." >&5
8387 echo "$as_me: WARNING:
8388 Cross-compilation detected, so exception handling cannot be tested.
8389 Note that broken exception handling in your compiler may lead to
8390 unexpected crashes." >&2;}
8391 _mule_warning_6=yes
8392 _mule_has_warnings=yes
8395 else
8396 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8405 main ()
8408 try {
8409 throw 1;
8410 } catch (int) {
8411 return 0;
8413 return 1;
8416 return 0;
8419 _ACEOF
8420 rm -f conftest$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8432 echo "$as_me:$LINENO: result: yes" >&5
8433 echo "${ECHO_T}yes" >&6
8435 else
8436 echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 ( exit $ac_status )
8442 echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6
8444 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8445 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8446 { (exit 1); exit 1; }; }
8449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8454 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8455 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8456 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 #include <cxxabi.h>
8467 main ()
8470 int status;
8471 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8472 std::type_info *ti = abi::__cxa_current_exception_type();
8475 return 0;
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_cxx_werror_flag"
8489 || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8504 cat >>confdefs.h <<\_ACEOF
8505 #define HAVE_CXXABI 1
8506 _ACEOF
8508 echo "$as_me:$LINENO: result: yes" >&5
8509 echo "${ECHO_T}yes" >&6
8511 else
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8516 echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6
8520 rm -f conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8523 ac_ext=c
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8530 # Ok, we have all needed libs, now checking for other stuff
8531 if test "$LEX" = "flex"; then
8533 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8534 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8536 extended_flex=`flex --help | grep header-file`
8537 if test -n "$extended_flex"; then
8538 HAVE_FLEX_EXTENDED=yes
8539 else
8540 HAVE_FLEX_EXTENDED=no
8543 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8544 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8546 if test $HAVE_FLEX_EXTENDED = no; then
8547 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8548 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8552 else
8553 HAVE_FLEX_EXTENDED=no
8557 # Flush standard test results for speeding cache
8558 cat >confcache <<\_ACEOF
8559 # This file is a shell script that caches the results of configure
8560 # tests run on this system so they can be shared between configure
8561 # scripts and configure runs, see configure's option --config-cache.
8562 # It is not useful on other systems. If it contains results you don't
8563 # want to keep, you may remove or edit it.
8565 # config.status only pays attention to the cache file if you give it
8566 # the --recheck option to rerun configure.
8568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8570 # following values.
8572 _ACEOF
8574 # The following way of writing the cache mishandles newlines in values,
8575 # but we know of no workaround that is simple, portable, and efficient.
8576 # So, don't put newlines in cache variables' values.
8577 # Ultrix sh set writes to stderr and can't be redirected directly,
8578 # and sets the high bit in the cache file unless we assign to the vars.
8580 (set) 2>&1 |
8581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8582 *ac_space=\ *)
8583 # `set' does not quote correctly, so add quotes (double-quote
8584 # substitution turns \\\\ into \\, and sed turns \\ into \).
8585 sed -n \
8586 "s/'/'\\\\''/g;
8587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8590 # `set' quotes correctly as required by POSIX, so do not add quotes.
8591 sed -n \
8592 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8594 esac;
8596 sed '
8597 t clear
8598 : clear
8599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8600 t end
8601 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8602 : end' >>confcache
8603 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8604 if test -w $cache_file; then
8605 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8606 cat confcache >$cache_file
8607 else
8608 echo "not updating unwritable cache $cache_file"
8611 rm -f confcache
8613 # Checks for header files.
8614 echo "$as_me:$LINENO: checking for X" >&5
8615 echo $ECHO_N "checking for X... $ECHO_C" >&6
8618 # Check whether --with-x or --without-x was given.
8619 if test "${with_x+set}" = set; then
8620 withval="$with_x"
8623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8624 if test "x$with_x" = xno; then
8625 # The user explicitly disabled X.
8626 have_x=disabled
8627 else
8628 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8629 # Both variables are already set.
8630 have_x=yes
8631 else
8632 if test "${ac_cv_have_x+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635 # One or both of the vars are not set, and there is no cached value.
8636 ac_x_includes=no ac_x_libraries=no
8637 rm -fr conftest.dir
8638 if mkdir conftest.dir; then
8639 cd conftest.dir
8640 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8641 cat >Imakefile <<'_ACEOF'
8642 acfindx:
8643 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8644 _ACEOF
8645 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8647 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8648 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8649 for ac_extension in a so sl; do
8650 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8651 test -f $ac_im_libdir/libX11.$ac_extension; then
8652 ac_im_usrlibdir=$ac_im_libdir; break
8654 done
8655 # Screen out bogus values from the imake configuration. They are
8656 # bogus both because they are the default anyway, and because
8657 # using them would break gcc on systems where it needs fixed includes.
8658 case $ac_im_incroot in
8659 /usr/include) ;;
8660 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8661 esac
8662 case $ac_im_usrlibdir in
8663 /usr/lib | /lib) ;;
8664 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8665 esac
8667 cd ..
8668 rm -fr conftest.dir
8671 # Standard set of common directories for X headers.
8672 # Check X11 before X11Rn because it is often a symlink to the current release.
8673 ac_x_header_dirs='
8674 /usr/X11/include
8675 /usr/X11R6/include
8676 /usr/X11R5/include
8677 /usr/X11R4/include
8679 /usr/include/X11
8680 /usr/include/X11R6
8681 /usr/include/X11R5
8682 /usr/include/X11R4
8684 /usr/local/X11/include
8685 /usr/local/X11R6/include
8686 /usr/local/X11R5/include
8687 /usr/local/X11R4/include
8689 /usr/local/include/X11
8690 /usr/local/include/X11R6
8691 /usr/local/include/X11R5
8692 /usr/local/include/X11R4
8694 /usr/X386/include
8695 /usr/x386/include
8696 /usr/XFree86/include/X11
8698 /usr/include
8699 /usr/local/include
8700 /usr/unsupported/include
8701 /usr/athena/include
8702 /usr/local/x11r5/include
8703 /usr/lpp/Xamples/include
8705 /usr/openwin/include
8706 /usr/openwin/share/include'
8708 if test "$ac_x_includes" = no; then
8709 # Guess where to find include files, by looking for Intrinsic.h.
8710 # First, try using that file with no special directory specified.
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 #include <X11/Intrinsic.h>
8718 _ACEOF
8719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } >/dev/null; then
8727 if test -s conftest.err; then
8728 ac_cpp_err=$ac_c_preproc_warn_flag
8729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8730 else
8731 ac_cpp_err=
8733 else
8734 ac_cpp_err=yes
8736 if test -z "$ac_cpp_err"; then
8737 # We can compile using X headers with no special include directory.
8738 ac_x_includes=
8739 else
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 for ac_dir in $ac_x_header_dirs; do
8744 if test -r "$ac_dir/X11/Intrinsic.h"; then
8745 ac_x_includes=$ac_dir
8746 break
8748 done
8750 rm -f conftest.err conftest.$ac_ext
8751 fi # $ac_x_includes = no
8753 if test "$ac_x_libraries" = no; then
8754 # Check for the libraries.
8755 # See if we find them without any special options.
8756 # Don't add to $LIBS permanently.
8757 ac_save_LIBS=$LIBS
8758 LIBS="-lXt $LIBS"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 #include <X11/Intrinsic.h>
8767 main ()
8769 XtMalloc (0)
8771 return 0;
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 LIBS=$ac_save_LIBS
8797 # We can link X programs with no special library path.
8798 ac_x_libraries=
8799 else
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 LIBS=$ac_save_LIBS
8804 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8806 # Don't even attempt the hair of trying to link an X program!
8807 for ac_extension in a so sl; do
8808 if test -r $ac_dir/libXt.$ac_extension; then
8809 ac_x_libraries=$ac_dir
8810 break 2
8812 done
8813 done
8815 rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 fi # $ac_x_libraries = no
8819 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8820 # Didn't find X anywhere. Cache the known absence of X.
8821 ac_cv_have_x="have_x=no"
8822 else
8823 # Record where we found X for the cache.
8824 ac_cv_have_x="have_x=yes \
8825 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8830 eval "$ac_cv_have_x"
8831 fi # $with_x != no
8833 if test "$have_x" != yes; then
8834 echo "$as_me:$LINENO: result: $have_x" >&5
8835 echo "${ECHO_T}$have_x" >&6
8836 no_x=yes
8837 else
8838 # If each of the values was on the command line, it overrides each guess.
8839 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8840 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8841 # Update the cache value to reflect the command line values.
8842 ac_cv_have_x="have_x=yes \
8843 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8844 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8845 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8848 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8849 # for constant arguments. Useless!
8850 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8851 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8852 if test "${ac_cv_working_alloca_h+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 #include <alloca.h>
8863 main ()
8865 char *p = (char *) alloca (2 * sizeof (int));
8867 return 0;
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag"
8880 || test ! -s conftest.err'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 (eval $ac_try) 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; } &&
8886 { ac_try='test -s conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_working_alloca_h=yes
8893 else
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_working_alloca_h=no
8899 rm -f conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8902 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8903 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8904 if test $ac_cv_working_alloca_h = yes; then
8906 cat >>confdefs.h <<\_ACEOF
8907 #define HAVE_ALLOCA_H 1
8908 _ACEOF
8912 echo "$as_me:$LINENO: checking for alloca" >&5
8913 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8914 if test "${ac_cv_func_alloca_works+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 #ifdef __GNUC__
8924 # define alloca __builtin_alloca
8925 #else
8926 # ifdef _MSC_VER
8927 # include <malloc.h>
8928 # define alloca _alloca
8929 # else
8930 # if HAVE_ALLOCA_H
8931 # include <alloca.h>
8932 # else
8933 # ifdef _AIX
8934 #pragma alloca
8935 # else
8936 # ifndef alloca /* predefined by HP cc +Olibcalls */
8937 char *alloca ();
8938 # endif
8939 # endif
8940 # endif
8941 # endif
8942 #endif
8945 main ()
8947 char *p = (char *) alloca (1);
8949 return 0;
8951 _ACEOF
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>conftest.er1
8955 ac_status=$?
8956 grep -v '^ *+' conftest.er1 >conftest.err
8957 rm -f conftest.er1
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -z "$ac_c_werror_flag"
8962 || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_func_alloca_works=yes
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_cv_func_alloca_works=no
8981 rm -f conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8985 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8987 if test $ac_cv_func_alloca_works = yes; then
8989 cat >>confdefs.h <<\_ACEOF
8990 #define HAVE_ALLOCA 1
8991 _ACEOF
8993 else
8994 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8995 # that cause trouble. Some versions do not even contain alloca or
8996 # contain a buggy version. If you still want to use their alloca,
8997 # use ar to extract alloca.o from them instead of compiling alloca.c.
8999 ALLOCA=alloca.$ac_objext
9001 cat >>confdefs.h <<\_ACEOF
9002 #define C_ALLOCA 1
9003 _ACEOF
9006 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9007 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9008 if test "${ac_cv_os_cray+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 #if defined(CRAY) && ! defined(CRAY2)
9018 webecray
9019 #else
9020 wenotbecray
9021 #endif
9023 _ACEOF
9024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9025 $EGREP "webecray" >/dev/null 2>&1; then
9026 ac_cv_os_cray=yes
9027 else
9028 ac_cv_os_cray=no
9030 rm -f conftest*
9033 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9034 echo "${ECHO_T}$ac_cv_os_cray" >&6
9035 if test $ac_cv_os_cray = yes; then
9036 for ac_func in _getb67 GETB67 getb67; do
9037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9038 echo "$as_me:$LINENO: checking for $ac_func" >&5
9039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9040 if eval "test \"\${$as_ac_var+set}\" = set"; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h. */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9051 #define $ac_func innocuous_$ac_func
9053 /* System header to define __stub macros and hopefully few prototypes,
9054 which can conflict with char $ac_func (); below.
9055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9056 <limits.h> exists even on freestanding compilers. */
9058 #ifdef __STDC__
9059 # include <limits.h>
9060 #else
9061 # include <assert.h>
9062 #endif
9064 #undef $ac_func
9066 /* Override any gcc2 internal prototype to avoid an error. */
9067 #ifdef __cplusplus
9068 extern "C"
9070 #endif
9071 /* We use char because int might match the return type of a gcc2
9072 builtin and then its argument prototype would still apply. */
9073 char $ac_func ();
9074 /* The GNU C library defines this for functions which it implements
9075 to always fail with ENOSYS. Some functions are actually named
9076 something starting with __ and the normal name is an alias. */
9077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9078 choke me
9079 #else
9080 char (*f) () = $ac_func;
9081 #endif
9082 #ifdef __cplusplus
9084 #endif
9087 main ()
9089 return f != $ac_func;
9091 return 0;
9093 _ACEOF
9094 rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>conftest.er1
9097 ac_status=$?
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -z "$ac_c_werror_flag"
9104 || test ! -s conftest.err'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; } &&
9110 { ac_try='test -s conftest$ac_exeext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 eval "$as_ac_var=yes"
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 eval "$as_ac_var=no"
9123 rm -f conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9128 if test `eval echo '${'$as_ac_var'}'` = yes; then
9130 cat >>confdefs.h <<_ACEOF
9131 #define CRAY_STACKSEG_END $ac_func
9132 _ACEOF
9134 break
9137 done
9140 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9141 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9142 if test "${ac_cv_c_stack_direction+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145 if test "$cross_compiling" = yes; then
9146 ac_cv_c_stack_direction=0
9147 else
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9155 find_stack_direction ()
9157 static char *addr = 0;
9158 auto char dummy;
9159 if (addr == 0)
9161 addr = &dummy;
9162 return find_stack_direction ();
9164 else
9165 return (&dummy > addr) ? 1 : -1;
9169 main ()
9171 exit (find_stack_direction () < 0);
9173 _ACEOF
9174 rm -f conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_c_stack_direction=1
9186 else
9187 echo "$as_me: program exited with status $ac_status" >&5
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9191 ( exit $ac_status )
9192 ac_cv_c_stack_direction=-1
9194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9198 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9200 cat >>confdefs.h <<_ACEOF
9201 #define STACK_DIRECTION $ac_cv_c_stack_direction
9202 _ACEOF
9212 ac_header_dirent=no
9213 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9214 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9215 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9216 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h. */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 #include <sys/types.h>
9227 #include <$ac_hdr>
9230 main ()
9232 if ((DIR *) 0)
9233 return 0;
9235 return 0;
9237 _ACEOF
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest.$ac_objext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 eval "$as_ac_Header=yes"
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 eval "$as_ac_Header=no"
9267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9274 _ACEOF
9276 ac_header_dirent=$ac_hdr; break
9279 done
9280 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9281 if test $ac_header_dirent = dirent.h; then
9282 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9283 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9284 if test "${ac_cv_search_opendir+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287 ac_func_search_save_LIBS=$LIBS
9288 ac_cv_search_opendir=no
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 /* We use char because int might match the return type of a gcc2
9301 builtin and then its argument prototype would still apply. */
9302 char opendir ();
9304 main ()
9306 opendir ();
9308 return 0;
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_cv_search_opendir="none required"
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9339 rm -f conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 if test "$ac_cv_search_opendir" = no; then
9342 for ac_lib in dir; do
9343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9351 /* Override any gcc2 internal prototype to avoid an error. */
9352 #ifdef __cplusplus
9353 extern "C"
9354 #endif
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9357 char opendir ();
9359 main ()
9361 opendir ();
9363 return 0;
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_search_opendir="-l$ac_lib"
9389 break
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9395 rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 done
9399 LIBS=$ac_func_search_save_LIBS
9401 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9402 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9403 if test "$ac_cv_search_opendir" != no; then
9404 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9408 else
9409 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9410 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9411 if test "${ac_cv_search_opendir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414 ac_func_search_save_LIBS=$LIBS
9415 ac_cv_search_opendir=no
9416 cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h. */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9423 /* Override any gcc2 internal prototype to avoid an error. */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9429 char opendir ();
9431 main ()
9433 opendir ();
9435 return 0;
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440 (eval $ac_link) 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try='test -s conftest$ac_exeext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 ac_cv_search_opendir="none required"
9461 else
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9466 rm -f conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 if test "$ac_cv_search_opendir" = no; then
9469 for ac_lib in x; do
9470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h. */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 /* Override any gcc2 internal prototype to avoid an error. */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 /* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9484 char opendir ();
9486 main ()
9488 opendir ();
9490 return 0;
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -z "$ac_c_werror_flag"
9503 || test ! -s conftest.err'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest$ac_exeext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 ac_cv_search_opendir="-l$ac_lib"
9516 break
9517 else
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9522 rm -f conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524 done
9526 LIBS=$ac_func_search_save_LIBS
9528 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9529 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9530 if test "$ac_cv_search_opendir" != no; then
9531 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9539 if test "${ac_cv_header_stdc+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 cat >conftest.$ac_ext <<_ACEOF
9543 /* confdefs.h. */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9548 #include <stdlib.h>
9549 #include <stdarg.h>
9550 #include <string.h>
9551 #include <float.h>
9554 main ()
9558 return 0;
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -z "$ac_c_werror_flag"
9571 || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest.$ac_objext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 (eval $ac_try) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_header_stdc=yes
9584 else
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_header_stdc=no
9590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592 if test $ac_cv_header_stdc = yes; then
9593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <string.h>
9602 _ACEOF
9603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9604 $EGREP "memchr" >/dev/null 2>&1; then
9606 else
9607 ac_cv_header_stdc=no
9609 rm -f conftest*
9613 if test $ac_cv_header_stdc = yes; then
9614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 #include <stdlib.h>
9623 _ACEOF
9624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9625 $EGREP "free" >/dev/null 2>&1; then
9627 else
9628 ac_cv_header_stdc=no
9630 rm -f conftest*
9634 if test $ac_cv_header_stdc = yes; then
9635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9636 if test "$cross_compiling" = yes; then
9638 else
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h. */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 #include <ctype.h>
9646 #if ((' ' & 0x0FF) == 0x020)
9647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9649 #else
9650 # define ISLOWER(c) \
9651 (('a' <= (c) && (c) <= 'i') \
9652 || ('j' <= (c) && (c) <= 'r') \
9653 || ('s' <= (c) && (c) <= 'z'))
9654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9655 #endif
9657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9659 main ()
9661 int i;
9662 for (i = 0; i < 256; i++)
9663 if (XOR (islower (i), ISLOWER (i))
9664 || toupper (i) != TOUPPER (i))
9665 exit(2);
9666 exit (0);
9668 _ACEOF
9669 rm -f conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9681 else
9682 echo "$as_me: program exited with status $ac_status" >&5
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ( exit $ac_status )
9687 ac_cv_header_stdc=no
9689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9695 if test $ac_cv_header_stdc = yes; then
9697 cat >>confdefs.h <<\_ACEOF
9698 #define STDC_HEADERS 1
9699 _ACEOF
9737 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
9739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741 echo "$as_me:$LINENO: checking for $ac_header" >&5
9742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9748 else
9749 # Is the header compilable?
9750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 $ac_includes_default
9759 #include <$ac_header>
9760 _ACEOF
9761 rm -f conftest.$ac_objext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9763 (eval $ac_compile) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest.$ac_objext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_header_compiler=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 ac_header_compiler=no
9790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9792 echo "${ECHO_T}$ac_header_compiler" >&6
9794 # Is the header present?
9795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 #include <$ac_header>
9804 _ACEOF
9805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } >/dev/null; then
9813 if test -s conftest.err; then
9814 ac_cpp_err=$ac_c_preproc_warn_flag
9815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9816 else
9817 ac_cpp_err=
9819 else
9820 ac_cpp_err=yes
9822 if test -z "$ac_cpp_err"; then
9823 ac_header_preproc=yes
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_header_preproc=no
9830 rm -f conftest.err conftest.$ac_ext
9831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 echo "${ECHO_T}$ac_header_preproc" >&6
9834 # So? What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9836 yes:no: )
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841 ac_header_preproc=yes
9843 no:yes:* )
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9857 cat <<\_ASBOX
9858 ## ------------------------------ ##
9859 ## Report this to admin@amule.org ##
9860 ## ------------------------------ ##
9861 _ASBOX
9863 sed "s/^/$as_me: WARNING: /" >&2
9865 esac
9866 echo "$as_me:$LINENO: checking for $ac_header" >&5
9867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 eval "$as_ac_Header=\$ac_header_preproc"
9873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9878 cat >>confdefs.h <<_ACEOF
9879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9880 _ACEOF
9884 done
9886 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9887 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9888 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <sys/types.h>
9898 #include <sys/wait.h>
9899 #ifndef WEXITSTATUS
9900 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9901 #endif
9902 #ifndef WIFEXITED
9903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9904 #endif
9907 main ()
9909 int s;
9910 wait (&s);
9911 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9913 return 0;
9915 _ACEOF
9916 rm -f conftest.$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918 (eval $ac_compile) 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -z "$ac_c_werror_flag"
9926 || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest.$ac_objext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_header_sys_wait_h=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_header_sys_wait_h=no
9945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9947 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9948 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9949 if test $ac_cv_header_sys_wait_h = yes; then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_SYS_WAIT_H 1
9953 _ACEOF
9958 # Checks for typedefs, structures, and compiler characteristics.
9959 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9960 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9961 if test "${ac_cv_header_stdbool_h+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9971 #include <stdbool.h>
9972 #ifndef bool
9973 # error bool is not defined
9974 #endif
9975 #ifndef false
9976 # error false is not defined
9977 #endif
9978 #if false
9979 # error false is not 0
9980 #endif
9981 #ifndef true
9982 # error true is not defined
9983 #endif
9984 #if true != 1
9985 # error true is not 1
9986 #endif
9987 #ifndef __bool_true_false_are_defined
9988 # error __bool_true_false_are_defined is not defined
9989 #endif
9991 struct s { _Bool s: 1; _Bool t; } s;
9993 char a[true == 1 ? 1 : -1];
9994 char b[false == 0 ? 1 : -1];
9995 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9996 char d[(bool) -0.5 == true ? 1 : -1];
9997 bool e = &s;
9998 char f[(_Bool) -0.0 == false ? 1 : -1];
9999 char g[true];
10000 char h[sizeof (_Bool)];
10001 char i[sizeof s.t];
10004 main ()
10006 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10008 return 0;
10010 _ACEOF
10011 rm -f conftest.$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013 (eval $ac_compile) 2>conftest.er1
10014 ac_status=$?
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest.$ac_objext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_header_stdbool_h=yes
10034 else
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_header_stdbool_h=no
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10042 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10043 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10044 echo "$as_me:$LINENO: checking for _Bool" >&5
10045 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10046 if test "${ac_cv_type__Bool+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 $ac_includes_default
10057 main ()
10059 if ((_Bool *) 0)
10060 return 0;
10061 if (sizeof (_Bool))
10062 return 0;
10064 return 0;
10066 _ACEOF
10067 rm -f conftest.$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069 (eval $ac_compile) 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try='test -s conftest.$ac_objext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_type__Bool=yes
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ac_cv_type__Bool=no
10096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10099 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10100 if test $ac_cv_type__Bool = yes; then
10102 cat >>confdefs.h <<_ACEOF
10103 #define HAVE__BOOL 1
10104 _ACEOF
10109 if test $ac_cv_header_stdbool_h = yes; then
10111 cat >>confdefs.h <<\_ACEOF
10112 #define HAVE_STDBOOL_H 1
10113 _ACEOF
10117 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10118 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10119 if test "${ac_cv_c_const+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10130 main ()
10132 /* FIXME: Include the comments suggested by Paul. */
10133 #ifndef __cplusplus
10134 /* Ultrix mips cc rejects this. */
10135 typedef int charset[2];
10136 const charset x;
10137 /* SunOS 4.1.1 cc rejects this. */
10138 char const *const *ccp;
10139 char **p;
10140 /* NEC SVR4.0.2 mips cc rejects this. */
10141 struct point {int x, y;};
10142 static struct point const zero = {0,0};
10143 /* AIX XL C 1.02.0.0 rejects this.
10144 It does not let you subtract one const X* pointer from another in
10145 an arm of an if-expression whose if-part is not a constant
10146 expression */
10147 const char *g = "string";
10148 ccp = &g + (g ? g-g : 0);
10149 /* HPUX 7.0 cc rejects these. */
10150 ++ccp;
10151 p = (char**) ccp;
10152 ccp = (char const *const *) p;
10153 { /* SCO 3.2v4 cc rejects this. */
10154 char *t;
10155 char const *s = 0 ? (char *) 0 : (char const *) 0;
10157 *t++ = 0;
10159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10160 int x[] = {25, 17};
10161 const int *foo = &x[0];
10162 ++foo;
10164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10165 typedef const int *iptr;
10166 iptr p = 0;
10167 ++p;
10169 { /* AIX XL C 1.02.0.0 rejects this saying
10170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10171 struct s { int j; const int *ap[3]; };
10172 struct s *b; b->j = 5;
10174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10175 const int foo = 10;
10177 #endif
10180 return 0;
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_c_const=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_c_const=no
10212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10215 echo "${ECHO_T}$ac_cv_c_const" >&6
10216 if test $ac_cv_c_const = no; then
10218 cat >>confdefs.h <<\_ACEOF
10219 #define const
10220 _ACEOF
10224 echo "$as_me:$LINENO: checking for inline" >&5
10225 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10226 if test "${ac_cv_c_inline+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229 ac_cv_c_inline=no
10230 for ac_kw in inline __inline__ __inline; do
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #ifndef __cplusplus
10238 typedef int foo_t;
10239 static $ac_kw foo_t static_foo () {return 0; }
10240 $ac_kw foo_t foo () {return 0; }
10241 #endif
10243 _ACEOF
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246 (eval $ac_compile) 2>conftest.er1
10247 ac_status=$?
10248 grep -v '^ *+' conftest.er1 >conftest.err
10249 rm -f conftest.er1
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag"
10254 || test ! -s conftest.err'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_cv_c_inline=$ac_kw; break
10267 else
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10273 done
10276 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10277 echo "${ECHO_T}$ac_cv_c_inline" >&6
10280 case $ac_cv_c_inline in
10281 inline | yes) ;;
10283 case $ac_cv_c_inline in
10284 no) ac_val=;;
10285 *) ac_val=$ac_cv_c_inline;;
10286 esac
10287 cat >>confdefs.h <<_ACEOF
10288 #ifndef __cplusplus
10289 #define inline $ac_val
10290 #endif
10291 _ACEOF
10293 esac
10295 echo "$as_me:$LINENO: checking for mode_t" >&5
10296 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10297 if test "${ac_cv_type_mode_t+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10308 main ()
10310 if ((mode_t *) 0)
10311 return 0;
10312 if (sizeof (mode_t))
10313 return 0;
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_type_mode_t=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_type_mode_t=no
10347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10349 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10350 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10351 if test $ac_cv_type_mode_t = yes; then
10353 else
10355 cat >>confdefs.h <<_ACEOF
10356 #define mode_t int
10357 _ACEOF
10361 echo "$as_me:$LINENO: checking for off_t" >&5
10362 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10363 if test "${ac_cv_type_off_t+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h. */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 $ac_includes_default
10374 main ()
10376 if ((off_t *) 0)
10377 return 0;
10378 if (sizeof (off_t))
10379 return 0;
10381 return 0;
10383 _ACEOF
10384 rm -f conftest.$ac_objext
10385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10386 (eval $ac_compile) 2>conftest.er1
10387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag"
10394 || test ! -s conftest.err'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest.$ac_objext'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_type_off_t=yes
10407 else
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_cv_type_off_t=no
10413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10415 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10416 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10417 if test $ac_cv_type_off_t = yes; then
10419 else
10421 cat >>confdefs.h <<_ACEOF
10422 #define off_t long
10423 _ACEOF
10427 echo "$as_me:$LINENO: checking for size_t" >&5
10428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10429 if test "${ac_cv_type_size_t+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432 cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h. */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 $ac_includes_default
10440 main ()
10442 if ((size_t *) 0)
10443 return 0;
10444 if (sizeof (size_t))
10445 return 0;
10447 return 0;
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag"
10460 || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_type_size_t=yes
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_type_size_t=no
10479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10482 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10483 if test $ac_cv_type_size_t = yes; then
10485 else
10487 cat >>confdefs.h <<_ACEOF
10488 #define size_t unsigned
10489 _ACEOF
10493 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10494 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10495 if test "${ac_cv_header_time+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 #include <sys/types.h>
10505 #include <sys/time.h>
10506 #include <time.h>
10509 main ()
10511 if ((struct tm *) 0)
10512 return 0;
10514 return 0;
10516 _ACEOF
10517 rm -f conftest.$ac_objext
10518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -z "$ac_c_werror_flag"
10527 || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest.$ac_objext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_header_time=yes
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_cv_header_time=no
10546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10549 echo "${ECHO_T}$ac_cv_header_time" >&6
10550 if test $ac_cv_header_time = yes; then
10552 cat >>confdefs.h <<\_ACEOF
10553 #define TIME_WITH_SYS_TIME 1
10554 _ACEOF
10558 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10559 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10560 if test "${ac_cv_struct_tm+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 #include <sys/types.h>
10570 #include <time.h>
10573 main ()
10575 struct tm *tp; tp->tm_sec;
10577 return 0;
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest.$ac_objext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_cv_struct_tm=time.h
10603 else
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ac_cv_struct_tm=sys/time.h
10609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10612 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10613 if test $ac_cv_struct_tm = sys/time.h; then
10615 cat >>confdefs.h <<\_ACEOF
10616 #define TM_IN_SYS_TIME 1
10617 _ACEOF
10621 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10622 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10623 if test "${ac_cv_type_uid_t+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <sys/types.h>
10634 _ACEOF
10635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10636 $EGREP "uid_t" >/dev/null 2>&1; then
10637 ac_cv_type_uid_t=yes
10638 else
10639 ac_cv_type_uid_t=no
10641 rm -f conftest*
10644 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10645 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10646 if test $ac_cv_type_uid_t = no; then
10648 cat >>confdefs.h <<\_ACEOF
10649 #define uid_t int
10650 _ACEOF
10653 cat >>confdefs.h <<\_ACEOF
10654 #define gid_t int
10655 _ACEOF
10659 echo "$as_me:$LINENO: checking for working volatile" >&5
10660 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10661 if test "${ac_cv_c_volatile+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10672 main ()
10675 volatile int x;
10676 int * volatile y;
10678 return 0;
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_c_volatile=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_c_volatile=no
10710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10712 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10713 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10714 if test $ac_cv_c_volatile = no; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define volatile
10718 _ACEOF
10722 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10723 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10724 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10735 main ()
10737 if ((ptrdiff_t *) 0)
10738 return 0;
10739 if (sizeof (ptrdiff_t))
10740 return 0;
10742 return 0;
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -z "$ac_c_werror_flag"
10755 || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_type_ptrdiff_t=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_cv_type_ptrdiff_t=no
10774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10777 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10778 if test $ac_cv_type_ptrdiff_t = yes; then
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE_PTRDIFF_T 1
10782 _ACEOF
10788 # Checks for library functions.
10789 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10790 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10791 if test "${ac_cv_func_closedir_void+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794 if test "$cross_compiling" = yes; then
10795 ac_cv_func_closedir_void=yes
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 #include <$ac_header_dirent>
10805 #ifndef __cplusplus
10806 int closedir ();
10807 #endif
10810 main ()
10812 exit (closedir (opendir (".")) != 0);
10814 return 0;
10816 _ACEOF
10817 rm -f conftest$ac_exeext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819 (eval $ac_link) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_cv_func_closedir_void=no
10829 else
10830 echo "$as_me: program exited with status $ac_status" >&5
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 ( exit $ac_status )
10835 ac_cv_func_closedir_void=yes
10837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10840 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10841 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10842 if test $ac_cv_func_closedir_void = yes; then
10844 cat >>confdefs.h <<\_ACEOF
10845 #define CLOSEDIR_VOID 1
10846 _ACEOF
10850 if test $ac_cv_c_compiler_gnu = yes; then
10851 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10852 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10853 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856 ac_pattern="Autoconf.*'x'"
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 #include <sgtty.h>
10864 Autoconf TIOCGETP
10865 _ACEOF
10866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10867 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10868 ac_cv_prog_gcc_traditional=yes
10869 else
10870 ac_cv_prog_gcc_traditional=no
10872 rm -f conftest*
10875 if test $ac_cv_prog_gcc_traditional = no; then
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <termio.h>
10883 Autoconf TCGETA
10884 _ACEOF
10885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10886 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10887 ac_cv_prog_gcc_traditional=yes
10889 rm -f conftest*
10893 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10894 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10895 if test $ac_cv_prog_gcc_traditional = yes; then
10896 CC="$CC -traditional"
10900 echo "$as_me:$LINENO: checking for pid_t" >&5
10901 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10902 if test "${ac_cv_type_pid_t+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 $ac_includes_default
10913 main ()
10915 if ((pid_t *) 0)
10916 return 0;
10917 if (sizeof (pid_t))
10918 return 0;
10920 return 0;
10922 _ACEOF
10923 rm -f conftest.$ac_objext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest.$ac_objext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_type_pid_t=yes
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_type_pid_t=no
10952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10954 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10955 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10956 if test $ac_cv_type_pid_t = yes; then
10958 else
10960 cat >>confdefs.h <<_ACEOF
10961 #define pid_t int
10962 _ACEOF
10968 for ac_header in unistd.h vfork.h
10970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10972 echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10979 else
10980 # Is the header compilable?
10981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h. */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 $ac_includes_default
10990 #include <$ac_header>
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10994 (eval $ac_compile) 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag"
11002 || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest.$ac_objext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 ac_header_compiler=yes
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 ac_header_compiler=no
11021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11023 echo "${ECHO_T}$ac_header_compiler" >&6
11025 # Is the header present?
11026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h. */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 #include <$ac_header>
11035 _ACEOF
11036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } >/dev/null; then
11044 if test -s conftest.err; then
11045 ac_cpp_err=$ac_c_preproc_warn_flag
11046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11047 else
11048 ac_cpp_err=
11050 else
11051 ac_cpp_err=yes
11053 if test -z "$ac_cpp_err"; then
11054 ac_header_preproc=yes
11055 else
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_header_preproc=no
11061 rm -f conftest.err conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11063 echo "${ECHO_T}$ac_header_preproc" >&6
11065 # So? What about this header?
11066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11067 yes:no: )
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11072 ac_header_preproc=yes
11074 no:yes:* )
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11088 cat <<\_ASBOX
11089 ## ------------------------------ ##
11090 ## Report this to admin@amule.org ##
11091 ## ------------------------------ ##
11092 _ASBOX
11094 sed "s/^/$as_me: WARNING: /" >&2
11096 esac
11097 echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 eval "$as_ac_Header=\$ac_header_preproc"
11104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11111 _ACEOF
11115 done
11119 for ac_func in fork vfork
11121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11122 echo "$as_me:$LINENO: checking for $ac_func" >&5
11123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11124 if eval "test \"\${$as_ac_var+set}\" = set"; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11135 #define $ac_func innocuous_$ac_func
11137 /* System header to define __stub macros and hopefully few prototypes,
11138 which can conflict with char $ac_func (); below.
11139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11140 <limits.h> exists even on freestanding compilers. */
11142 #ifdef __STDC__
11143 # include <limits.h>
11144 #else
11145 # include <assert.h>
11146 #endif
11148 #undef $ac_func
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 #ifdef __cplusplus
11152 extern "C"
11154 #endif
11155 /* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11157 char $ac_func ();
11158 /* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11162 choke me
11163 #else
11164 char (*f) () = $ac_func;
11165 #endif
11166 #ifdef __cplusplus
11168 #endif
11171 main ()
11173 return f != $ac_func;
11175 return 0;
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag"
11188 || test ! -s conftest.err'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; } &&
11194 { ac_try='test -s conftest$ac_exeext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 eval "$as_ac_var=yes"
11201 else
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 eval "$as_ac_var=no"
11207 rm -f conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11212 if test `eval echo '${'$as_ac_var'}'` = yes; then
11213 cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11215 _ACEOF
11218 done
11220 if test "x$ac_cv_func_fork" = xyes; then
11221 echo "$as_me:$LINENO: checking for working fork" >&5
11222 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11223 if test "${ac_cv_func_fork_works+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 if test "$cross_compiling" = yes; then
11227 ac_cv_func_fork_works=cross
11228 else
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* By Ruediger Kuhlmann. */
11231 #include <sys/types.h>
11232 #if HAVE_UNISTD_H
11233 # include <unistd.h>
11234 #endif
11235 /* Some systems only have a dummy stub for fork() */
11236 int main ()
11238 if (fork() < 0)
11239 exit (1);
11240 exit (0);
11242 _ACEOF
11243 rm -f conftest$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_func_fork_works=yes
11255 else
11256 echo "$as_me: program exited with status $ac_status" >&5
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 ( exit $ac_status )
11261 ac_cv_func_fork_works=no
11263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11267 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11269 else
11270 ac_cv_func_fork_works=$ac_cv_func_fork
11272 if test "x$ac_cv_func_fork_works" = xcross; then
11273 case $host in
11274 *-*-amigaos* | *-*-msdosdjgpp*)
11275 # Override, as these systems have only a dummy fork() stub
11276 ac_cv_func_fork_works=no
11279 ac_cv_func_fork_works=yes
11281 esac
11282 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11283 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11285 ac_cv_func_vfork_works=$ac_cv_func_vfork
11286 if test "x$ac_cv_func_vfork" = xyes; then
11287 echo "$as_me:$LINENO: checking for working vfork" >&5
11288 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11289 if test "${ac_cv_func_vfork_works+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292 if test "$cross_compiling" = yes; then
11293 ac_cv_func_vfork_works=cross
11294 else
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h. */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 /* Thanks to Paul Eggert for this test. */
11302 #include <stdio.h>
11303 #include <stdlib.h>
11304 #include <sys/types.h>
11305 #include <sys/stat.h>
11306 #include <sys/wait.h>
11307 #if HAVE_UNISTD_H
11308 # include <unistd.h>
11309 #endif
11310 #if HAVE_VFORK_H
11311 # include <vfork.h>
11312 #endif
11313 /* On some sparc systems, changes by the child to local and incoming
11314 argument registers are propagated back to the parent. The compiler
11315 is told about this with #include <vfork.h>, but some compilers
11316 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11317 static variable whose address is put into a register that is
11318 clobbered by the vfork. */
11319 static void
11320 #ifdef __cplusplus
11321 sparc_address_test (int arg)
11322 # else
11323 sparc_address_test (arg) int arg;
11324 #endif
11326 static pid_t child;
11327 if (!child) {
11328 child = vfork ();
11329 if (child < 0) {
11330 perror ("vfork");
11331 _exit(2);
11333 if (!child) {
11334 arg = getpid();
11335 write(-1, "", 0);
11336 _exit (arg);
11342 main ()
11344 pid_t parent = getpid ();
11345 pid_t child;
11347 sparc_address_test (0);
11349 child = vfork ();
11351 if (child == 0) {
11352 /* Here is another test for sparc vfork register problems. This
11353 test uses lots of local variables, at least as many local
11354 variables as main has allocated so far including compiler
11355 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11356 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11357 reuse the register of parent for one of the local variables,
11358 since it will think that parent can't possibly be used any more
11359 in this routine. Assigning to the local variable will thus
11360 munge parent in the parent process. */
11361 pid_t
11362 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11363 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11364 /* Convince the compiler that p..p7 are live; otherwise, it might
11365 use the same hardware register for all 8 local variables. */
11366 if (p != p1 || p != p2 || p != p3 || p != p4
11367 || p != p5 || p != p6 || p != p7)
11368 _exit(1);
11370 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11371 from child file descriptors. If the child closes a descriptor
11372 before it execs or exits, this munges the parent's descriptor
11373 as well. Test for this by closing stdout in the child. */
11374 _exit(close(fileno(stdout)) != 0);
11375 } else {
11376 int status;
11377 struct stat st;
11379 while (wait(&status) != child)
11381 exit(
11382 /* Was there some problem with vforking? */
11383 child < 0
11385 /* Did the child fail? (This shouldn't happen.) */
11386 || status
11388 /* Did the vfork/compiler bug occur? */
11389 || parent != getpid()
11391 /* Did the file descriptor bug occur? */
11392 || fstat(fileno(stdout), &st) != 0
11396 _ACEOF
11397 rm -f conftest$ac_exeext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11399 (eval $ac_link) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; }; then
11408 ac_cv_func_vfork_works=yes
11409 else
11410 echo "$as_me: program exited with status $ac_status" >&5
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ( exit $ac_status )
11415 ac_cv_func_vfork_works=no
11417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11420 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11421 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11424 if test "x$ac_cv_func_fork_works" = xcross; then
11425 ac_cv_func_vfork_works=$ac_cv_func_vfork
11426 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11427 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11430 if test "x$ac_cv_func_vfork_works" = xyes; then
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_WORKING_VFORK 1
11434 _ACEOF
11436 else
11438 cat >>confdefs.h <<\_ACEOF
11439 #define vfork fork
11440 _ACEOF
11443 if test "x$ac_cv_func_fork_works" = xyes; then
11445 cat >>confdefs.h <<\_ACEOF
11446 #define HAVE_WORKING_FORK 1
11447 _ACEOF
11451 if test x$SYS != xwin32; then
11453 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11454 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11455 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11456 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459 ac_check_lib_save_LIBS=$LIBS
11460 LIBS="-lsun $LIBS"
11461 cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11468 /* Override any gcc2 internal prototype to avoid an error. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11474 char getmntent ();
11476 main ()
11478 getmntent ();
11480 return 0;
11482 _ACEOF
11483 rm -f conftest.$ac_objext conftest$ac_exeext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485 (eval $ac_link) 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -z "$ac_c_werror_flag"
11493 || test ! -s conftest.err'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest$ac_exeext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_lib_sun_getmntent=yes
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_cv_lib_sun_getmntent=no
11512 rm -f conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514 LIBS=$ac_check_lib_save_LIBS
11516 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11517 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11518 if test $ac_cv_lib_sun_getmntent = yes; then
11519 LIBS="-lsun $LIBS"
11520 else
11521 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11522 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11523 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526 ac_check_lib_save_LIBS=$LIBS
11527 LIBS="-lseq $LIBS"
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11535 /* Override any gcc2 internal prototype to avoid an error. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 /* We use char because int might match the return type of a gcc2
11540 builtin and then its argument prototype would still apply. */
11541 char getmntent ();
11543 main ()
11545 getmntent ();
11547 return 0;
11549 _ACEOF
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11552 (eval $ac_link) 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag"
11560 || test ! -s conftest.err'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_lib_seq_getmntent=yes
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_cv_lib_seq_getmntent=no
11579 rm -f conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11583 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11584 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11585 if test $ac_cv_lib_seq_getmntent = yes; then
11586 LIBS="-lseq $LIBS"
11587 else
11588 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11589 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11590 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593 ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-lgen $LIBS"
11595 cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h. */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11602 /* Override any gcc2 internal prototype to avoid an error. */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 /* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11608 char getmntent ();
11610 main ()
11612 getmntent ();
11614 return 0;
11616 _ACEOF
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619 (eval $ac_link) 2>conftest.er1
11620 ac_status=$?
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -z "$ac_c_werror_flag"
11627 || test ! -s conftest.err'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest$ac_exeext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 ac_cv_lib_gen_getmntent=yes
11640 else
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11644 ac_cv_lib_gen_getmntent=no
11646 rm -f conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11650 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11651 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11652 if test $ac_cv_lib_gen_getmntent = yes; then
11653 LIBS="-lgen $LIBS"
11661 for ac_func in getmntent
11663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11664 echo "$as_me:$LINENO: checking for $ac_func" >&5
11665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11666 if eval "test \"\${$as_ac_var+set}\" = set"; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11677 #define $ac_func innocuous_$ac_func
11679 /* System header to define __stub macros and hopefully few prototypes,
11680 which can conflict with char $ac_func (); below.
11681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11682 <limits.h> exists even on freestanding compilers. */
11684 #ifdef __STDC__
11685 # include <limits.h>
11686 #else
11687 # include <assert.h>
11688 #endif
11690 #undef $ac_func
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11696 #endif
11697 /* We use char because int might match the return type of a gcc2
11698 builtin and then its argument prototype would still apply. */
11699 char $ac_func ();
11700 /* The GNU C library defines this for functions which it implements
11701 to always fail with ENOSYS. Some functions are actually named
11702 something starting with __ and the normal name is an alias. */
11703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11704 choke me
11705 #else
11706 char (*f) () = $ac_func;
11707 #endif
11708 #ifdef __cplusplus
11710 #endif
11713 main ()
11715 return f != $ac_func;
11717 return 0;
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 eval "$as_ac_var=yes"
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 eval "$as_ac_var=no"
11749 rm -f conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11754 if test `eval echo '${'$as_ac_var'}'` = yes; then
11755 cat >>confdefs.h <<_ACEOF
11756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11757 _ACEOF
11760 done
11763 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11764 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11765 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768 rm -f conftest.sym conftest.file
11769 echo >conftest.file
11770 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11771 if test "$cross_compiling" = yes; then
11772 ac_cv_func_lstat_dereferences_slashed_symlink=no
11773 else
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11782 main ()
11784 struct stat sbuf;
11785 /* Linux will dereference the symlink and fail.
11786 That is better in the sense that it means we will not
11787 have to compile and use the lstat wrapper. */
11788 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11790 return 0;
11792 _ACEOF
11793 rm -f conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11805 else
11806 echo "$as_me: program exited with status $ac_status" >&5
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ( exit $ac_status )
11811 ac_cv_func_lstat_dereferences_slashed_symlink=no
11813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11815 else
11816 # If the `ln -s' command failed, then we probably don't even
11817 # have an lstat function.
11818 ac_cv_func_lstat_dereferences_slashed_symlink=no
11820 rm -f conftest.sym conftest.file
11823 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11824 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11826 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11828 cat >>confdefs.h <<_ACEOF
11829 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11830 _ACEOF
11833 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11834 case $LIBOBJS in
11835 "lstat.$ac_objext" | \
11836 *" lstat.$ac_objext" | \
11837 "lstat.$ac_objext "* | \
11838 *" lstat.$ac_objext "* ) ;;
11839 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11840 esac
11844 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11845 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11846 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 if test "$cross_compiling" = yes; then
11850 ac_cv_func_lstat_empty_string_bug=yes
11851 else
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 $ac_includes_default
11860 main ()
11862 struct stat sbuf;
11863 exit (lstat ("", &sbuf) ? 1 : 0);
11865 return 0;
11867 _ACEOF
11868 rm -f conftest$ac_exeext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870 (eval $ac_link) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 ac_cv_func_lstat_empty_string_bug=yes
11880 else
11881 echo "$as_me: program exited with status $ac_status" >&5
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ( exit $ac_status )
11886 ac_cv_func_lstat_empty_string_bug=no
11888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11892 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11893 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11894 case $LIBOBJS in
11895 "lstat.$ac_objext" | \
11896 *" lstat.$ac_objext" | \
11897 "lstat.$ac_objext "* | \
11898 *" lstat.$ac_objext "* ) ;;
11899 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11900 esac
11903 cat >>confdefs.h <<_ACEOF
11904 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11905 _ACEOF
11909 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11910 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11911 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914 rm -f conftest.sym conftest.file
11915 echo >conftest.file
11916 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11917 if test "$cross_compiling" = yes; then
11918 ac_cv_func_lstat_dereferences_slashed_symlink=no
11919 else
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h. */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 $ac_includes_default
11928 main ()
11930 struct stat sbuf;
11931 /* Linux will dereference the symlink and fail.
11932 That is better in the sense that it means we will not
11933 have to compile and use the lstat wrapper. */
11934 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11936 return 0;
11938 _ACEOF
11939 rm -f conftest$ac_exeext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11951 else
11952 echo "$as_me: program exited with status $ac_status" >&5
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ( exit $ac_status )
11957 ac_cv_func_lstat_dereferences_slashed_symlink=no
11959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11961 else
11962 # If the `ln -s' command failed, then we probably don't even
11963 # have an lstat function.
11964 ac_cv_func_lstat_dereferences_slashed_symlink=no
11966 rm -f conftest.sym conftest.file
11969 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11970 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11972 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11974 cat >>confdefs.h <<_ACEOF
11975 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11976 _ACEOF
11979 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11980 case $LIBOBJS in
11981 "lstat.$ac_objext" | \
11982 *" lstat.$ac_objext" | \
11983 "lstat.$ac_objext "* | \
11984 *" lstat.$ac_objext "* ) ;;
11985 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11986 esac
11993 echo "$as_me:$LINENO: checking for working memcmp" >&5
11994 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11995 if test "${ac_cv_func_memcmp_working+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998 if test "$cross_compiling" = yes; then
11999 ac_cv_func_memcmp_working=no
12000 else
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12009 main ()
12012 /* Some versions of memcmp are not 8-bit clean. */
12013 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12014 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12015 exit (1);
12017 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12018 or more and with at least one buffer not starting on a 4-byte boundary.
12019 William Lewis provided this test program. */
12021 char foo[21];
12022 char bar[21];
12023 int i;
12024 for (i = 0; i < 4; i++)
12026 char *a = foo + i;
12027 char *b = bar + i;
12028 strcpy (a, "--------01111111");
12029 strcpy (b, "--------10000000");
12030 if (memcmp (a, b, 16) >= 0)
12031 exit (1);
12033 exit (0);
12037 return 0;
12039 _ACEOF
12040 rm -f conftest$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 ac_cv_func_memcmp_working=yes
12052 else
12053 echo "$as_me: program exited with status $ac_status" >&5
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ( exit $ac_status )
12058 ac_cv_func_memcmp_working=no
12060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12063 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12064 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12065 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12066 "memcmp.$ac_objext" | \
12067 *" memcmp.$ac_objext" | \
12068 "memcmp.$ac_objext "* | \
12069 *" memcmp.$ac_objext "* ) ;;
12070 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12071 esac
12076 for ac_header in sys/select.h sys/socket.h
12078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12080 echo "$as_me:$LINENO: checking for $ac_header" >&5
12081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12087 else
12088 # Is the header compilable?
12089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h. */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 $ac_includes_default
12098 #include <$ac_header>
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_header_compiler=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_header_compiler=no
12129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12131 echo "${ECHO_T}$ac_header_compiler" >&6
12133 # Is the header present?
12134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <$ac_header>
12143 _ACEOF
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev/null; then
12152 if test -s conftest.err; then
12153 ac_cpp_err=$ac_c_preproc_warn_flag
12154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12155 else
12156 ac_cpp_err=
12158 else
12159 ac_cpp_err=yes
12161 if test -z "$ac_cpp_err"; then
12162 ac_header_preproc=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 ac_header_preproc=no
12169 rm -f conftest.err conftest.$ac_ext
12170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171 echo "${ECHO_T}$ac_header_preproc" >&6
12173 # So? What about this header?
12174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12175 yes:no: )
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180 ac_header_preproc=yes
12182 no:yes:* )
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12196 cat <<\_ASBOX
12197 ## ------------------------------ ##
12198 ## Report this to admin@amule.org ##
12199 ## ------------------------------ ##
12200 _ASBOX
12202 sed "s/^/$as_me: WARNING: /" >&2
12204 esac
12205 echo "$as_me:$LINENO: checking for $ac_header" >&5
12206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 eval "$as_ac_Header=\$ac_header_preproc"
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h <<_ACEOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12219 _ACEOF
12223 done
12225 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12226 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12227 if test "${ac_cv_func_select_args+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12231 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12232 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #if HAVE_SYS_SELECT_H
12241 # include <sys/select.h>
12242 #endif
12243 #if HAVE_SYS_SOCKET_H
12244 # include <sys/socket.h>
12245 #endif
12248 main ()
12250 extern int select ($ac_arg1,
12251 $ac_arg234, $ac_arg234, $ac_arg234,
12252 $ac_arg5);
12254 return 0;
12256 _ACEOF
12257 rm -f conftest.$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest.$ac_objext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12286 done
12287 done
12288 done
12289 # Provide a safe default value.
12290 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12293 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12294 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12295 ac_save_IFS=$IFS; IFS=','
12296 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12297 IFS=$ac_save_IFS
12298 shift
12300 cat >>confdefs.h <<_ACEOF
12301 #define SELECT_TYPE_ARG1 $1
12302 _ACEOF
12305 cat >>confdefs.h <<_ACEOF
12306 #define SELECT_TYPE_ARG234 ($2)
12307 _ACEOF
12310 cat >>confdefs.h <<_ACEOF
12311 #define SELECT_TYPE_ARG5 ($3)
12312 _ACEOF
12314 rm -f conftest*
12316 echo "$as_me:$LINENO: checking for function prototypes" >&5
12317 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12318 if test "$ac_cv_prog_cc_stdc" != no; then
12319 echo "$as_me:$LINENO: result: yes" >&5
12320 echo "${ECHO_T}yes" >&6
12322 cat >>confdefs.h <<\_ACEOF
12323 #define PROTOTYPES 1
12324 _ACEOF
12327 cat >>confdefs.h <<\_ACEOF
12328 #define __PROTOTYPES 1
12329 _ACEOF
12331 else
12332 echo "$as_me:$LINENO: result: no" >&5
12333 echo "${ECHO_T}no" >&6
12336 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12337 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12338 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341 ac_cv_func_setvbuf_reversed=no
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 #include <stdio.h>
12349 # if PROTOTYPES
12350 int (setvbuf) (FILE *, int, char *, size_t);
12351 # endif
12353 main ()
12355 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12357 return 0;
12359 _ACEOF
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362 (eval $ac_link) 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag"
12370 || test ! -s conftest.err'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest$ac_exeext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 #include <stdio.h>
12389 # if PROTOTYPES
12390 int (setvbuf) (FILE *, int, char *, size_t);
12391 # endif
12393 main ()
12395 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12397 return 0;
12399 _ACEOF
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 # It compiles and links either way, so it must not be declared
12423 # with a prototype and most likely this is a K&R C compiler.
12424 # Try running it.
12425 if test "$cross_compiling" = yes; then
12426 : # Assume setvbuf is not reversed when cross-compiling.
12427 else
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include <stdio.h>
12436 main ()
12438 /* This call has the arguments reversed.
12439 A reversed system may check and see that the address of buf
12440 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12441 char buf;
12442 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12443 exit (1);
12444 putchar ('\r');
12445 exit (0); /* Non-reversed systems SEGV here. */
12447 return 0;
12449 _ACEOF
12450 rm -f conftest$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452 (eval $ac_link) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_func_setvbuf_reversed=yes
12462 else
12463 echo "$as_me: program exited with status $ac_status" >&5
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ( exit $ac_status )
12468 rm -f core *.core
12470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12472 ac_cv_func_setvbuf_reversed=yes
12473 else
12474 echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.$ac_ext >&5
12478 rm -f conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12480 else
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12485 rm -f conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12488 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12489 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12490 if test $ac_cv_func_setvbuf_reversed = yes; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define SETVBUF_REVERSED 1
12494 _ACEOF
12498 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12499 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12500 if test "${ac_cv_type_signal+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 #include <sys/types.h>
12510 #include <signal.h>
12511 #ifdef signal
12512 # undef signal
12513 #endif
12514 #ifdef __cplusplus
12515 extern "C" void (*signal (int, void (*)(int)))(int);
12516 #else
12517 void (*signal ()) ();
12518 #endif
12521 main ()
12523 int i;
12525 return 0;
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_c_werror_flag"
12538 || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_type_signal=void
12551 else
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_cv_type_signal=int
12557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12559 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12560 echo "${ECHO_T}$ac_cv_type_signal" >&6
12562 cat >>confdefs.h <<_ACEOF
12563 #define RETSIGTYPE $ac_cv_type_signal
12564 _ACEOF
12567 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12568 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12569 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 if test "$cross_compiling" = yes; then
12573 ac_cv_func_stat_empty_string_bug=yes
12574 else
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 $ac_includes_default
12583 main ()
12585 struct stat sbuf;
12586 exit (stat ("", &sbuf) ? 1 : 0);
12588 return 0;
12590 _ACEOF
12591 rm -f conftest$ac_exeext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12593 (eval $ac_link) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_func_stat_empty_string_bug=yes
12603 else
12604 echo "$as_me: program exited with status $ac_status" >&5
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ( exit $ac_status )
12609 ac_cv_func_stat_empty_string_bug=no
12611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12614 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12615 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12616 if test $ac_cv_func_stat_empty_string_bug = yes; then
12617 case $LIBOBJS in
12618 "stat.$ac_objext" | \
12619 *" stat.$ac_objext" | \
12620 "stat.$ac_objext "* | \
12621 *" stat.$ac_objext "* ) ;;
12622 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12623 esac
12626 cat >>confdefs.h <<_ACEOF
12627 #define HAVE_STAT_EMPTY_STRING_BUG 1
12628 _ACEOF
12633 for ac_func in strftime
12635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12636 echo "$as_me:$LINENO: checking for $ac_func" >&5
12637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12638 if eval "test \"\${$as_ac_var+set}\" = set"; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12649 #define $ac_func innocuous_$ac_func
12651 /* System header to define __stub macros and hopefully few prototypes,
12652 which can conflict with char $ac_func (); below.
12653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12654 <limits.h> exists even on freestanding compilers. */
12656 #ifdef __STDC__
12657 # include <limits.h>
12658 #else
12659 # include <assert.h>
12660 #endif
12662 #undef $ac_func
12664 /* Override any gcc2 internal prototype to avoid an error. */
12665 #ifdef __cplusplus
12666 extern "C"
12668 #endif
12669 /* We use char because int might match the return type of a gcc2
12670 builtin and then its argument prototype would still apply. */
12671 char $ac_func ();
12672 /* The GNU C library defines this for functions which it implements
12673 to always fail with ENOSYS. Some functions are actually named
12674 something starting with __ and the normal name is an alias. */
12675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12676 choke me
12677 #else
12678 char (*f) () = $ac_func;
12679 #endif
12680 #ifdef __cplusplus
12682 #endif
12685 main ()
12687 return f != $ac_func;
12689 return 0;
12691 _ACEOF
12692 rm -f conftest.$ac_objext conftest$ac_exeext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12694 (eval $ac_link) 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 eval "$as_ac_var=yes"
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 eval "$as_ac_var=no"
12721 rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12726 if test `eval echo '${'$as_ac_var'}'` = yes; then
12727 cat >>confdefs.h <<_ACEOF
12728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12729 _ACEOF
12731 else
12732 # strftime is in -lintl on SCO UNIX.
12733 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12734 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12735 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738 ac_check_lib_save_LIBS=$LIBS
12739 LIBS="-lintl $LIBS"
12740 cat >conftest.$ac_ext <<_ACEOF
12741 /* confdefs.h. */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12747 /* Override any gcc2 internal prototype to avoid an error. */
12748 #ifdef __cplusplus
12749 extern "C"
12750 #endif
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12753 char strftime ();
12755 main ()
12757 strftime ();
12759 return 0;
12761 _ACEOF
12762 rm -f conftest.$ac_objext conftest$ac_exeext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764 (eval $ac_link) 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest$ac_exeext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_lib_intl_strftime=yes
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_cv_lib_intl_strftime=no
12791 rm -f conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12795 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12796 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12797 if test $ac_cv_lib_intl_strftime = yes; then
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_STRFTIME 1
12800 _ACEOF
12802 LIBS="-lintl $LIBS"
12806 done
12808 echo "$as_me:$LINENO: checking for working strtod" >&5
12809 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12810 if test "${ac_cv_func_strtod+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813 if test "$cross_compiling" = yes; then
12814 ac_cv_func_strtod=no
12815 else
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12823 double strtod ();
12825 main()
12828 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12829 char *string = " +69";
12830 char *term;
12831 double value;
12832 value = strtod (string, &term);
12833 if (value != 69 || term != (string + 4))
12834 exit (1);
12838 /* Under Solaris 2.4, strtod returns the wrong value for the
12839 terminating character under some conditions. */
12840 char *string = "NaN";
12841 char *term;
12842 strtod (string, &term);
12843 if (term != string && *(term - 1) == 0)
12844 exit (1);
12846 exit (0);
12849 _ACEOF
12850 rm -f conftest$ac_exeext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852 (eval $ac_link) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_func_strtod=yes
12862 else
12863 echo "$as_me: program exited with status $ac_status" >&5
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ( exit $ac_status )
12868 ac_cv_func_strtod=no
12870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12873 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12874 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12875 if test $ac_cv_func_strtod = no; then
12876 case $LIBOBJS in
12877 "strtod.$ac_objext" | \
12878 *" strtod.$ac_objext" | \
12879 "strtod.$ac_objext "* | \
12880 *" strtod.$ac_objext "* ) ;;
12881 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
12882 esac
12884 echo "$as_me:$LINENO: checking for pow" >&5
12885 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12886 if test "${ac_cv_func_pow+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12897 #define pow innocuous_pow
12899 /* System header to define __stub macros and hopefully few prototypes,
12900 which can conflict with char pow (); below.
12901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 <limits.h> exists even on freestanding compilers. */
12904 #ifdef __STDC__
12905 # include <limits.h>
12906 #else
12907 # include <assert.h>
12908 #endif
12910 #undef pow
12912 /* Override any gcc2 internal prototype to avoid an error. */
12913 #ifdef __cplusplus
12914 extern "C"
12916 #endif
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char pow ();
12920 /* The GNU C library defines this for functions which it implements
12921 to always fail with ENOSYS. Some functions are actually named
12922 something starting with __ and the normal name is an alias. */
12923 #if defined (__stub_pow) || defined (__stub___pow)
12924 choke me
12925 #else
12926 char (*f) () = pow;
12927 #endif
12928 #ifdef __cplusplus
12930 #endif
12933 main ()
12935 return f != pow;
12937 return 0;
12939 _ACEOF
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12942 (eval $ac_link) 2>conftest.er1
12943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try='test -z "$ac_c_werror_flag"
12950 || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_func_pow=yes
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 ac_cv_func_pow=no
12969 rm -f conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12972 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12973 echo "${ECHO_T}$ac_cv_func_pow" >&6
12975 if test $ac_cv_func_pow = no; then
12976 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12977 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12978 if test "${ac_cv_lib_m_pow+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lm $LIBS"
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 /* Override any gcc2 internal prototype to avoid an error. */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 /* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
12996 char pow ();
12998 main ()
13000 pow ();
13002 return 0;
13004 _ACEOF
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13007 (eval $ac_link) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_c_werror_flag"
13015 || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try='test -s conftest$ac_exeext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_cv_lib_m_pow=yes
13028 else
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 ac_cv_lib_m_pow=no
13034 rm -f conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext conftest.$ac_ext
13036 LIBS=$ac_check_lib_save_LIBS
13038 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13039 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13040 if test $ac_cv_lib_m_pow = yes; then
13041 POW_LIB=-lm
13042 else
13043 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13044 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13052 for ac_func in vprintf
13054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13055 echo "$as_me:$LINENO: checking for $ac_func" >&5
13056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13057 if eval "test \"\${$as_ac_var+set}\" = set"; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060 cat >conftest.$ac_ext <<_ACEOF
13061 /* confdefs.h. */
13062 _ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13068 #define $ac_func innocuous_$ac_func
13070 /* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char $ac_func (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13075 #ifdef __STDC__
13076 # include <limits.h>
13077 #else
13078 # include <assert.h>
13079 #endif
13081 #undef $ac_func
13083 /* Override any gcc2 internal prototype to avoid an error. */
13084 #ifdef __cplusplus
13085 extern "C"
13087 #endif
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13090 char $ac_func ();
13091 /* The GNU C library defines this for functions which it implements
13092 to always fail with ENOSYS. Some functions are actually named
13093 something starting with __ and the normal name is an alias. */
13094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13095 choke me
13096 #else
13097 char (*f) () = $ac_func;
13098 #endif
13099 #ifdef __cplusplus
13101 #endif
13104 main ()
13106 return f != $ac_func;
13108 return 0;
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag"
13121 || test ! -s conftest.err'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 eval "$as_ac_var=yes"
13134 else
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 eval "$as_ac_var=no"
13140 rm -f conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13145 if test `eval echo '${'$as_ac_var'}'` = yes; then
13146 cat >>confdefs.h <<_ACEOF
13147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13148 _ACEOF
13150 echo "$as_me:$LINENO: checking for _doprnt" >&5
13151 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13152 if test "${ac_cv_func__doprnt+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h. */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13163 #define _doprnt innocuous__doprnt
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char _doprnt (); below.
13167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13168 <limits.h> exists even on freestanding compilers. */
13170 #ifdef __STDC__
13171 # include <limits.h>
13172 #else
13173 # include <assert.h>
13174 #endif
13176 #undef _doprnt
13178 /* Override any gcc2 internal prototype to avoid an error. */
13179 #ifdef __cplusplus
13180 extern "C"
13182 #endif
13183 /* We use char because int might match the return type of a gcc2
13184 builtin and then its argument prototype would still apply. */
13185 char _doprnt ();
13186 /* The GNU C library defines this for functions which it implements
13187 to always fail with ENOSYS. Some functions are actually named
13188 something starting with __ and the normal name is an alias. */
13189 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13190 choke me
13191 #else
13192 char (*f) () = _doprnt;
13193 #endif
13194 #ifdef __cplusplus
13196 #endif
13199 main ()
13201 return f != _doprnt;
13203 return 0;
13205 _ACEOF
13206 rm -f conftest.$ac_objext conftest$ac_exeext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13208 (eval $ac_link) 2>conftest.er1
13209 ac_status=$?
13210 grep -v '^ *+' conftest.er1 >conftest.err
13211 rm -f conftest.er1
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -z "$ac_c_werror_flag"
13216 || test ! -s conftest.err'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_func__doprnt=yes
13229 else
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ac_cv_func__doprnt=no
13235 rm -f conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13238 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13239 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13240 if test $ac_cv_func__doprnt = yes; then
13242 cat >>confdefs.h <<\_ACEOF
13243 #define HAVE_DOPRNT 1
13244 _ACEOF
13249 done
13252 if test $cross_compiling = yes -a $gnumalloc = yes; then
13254 { echo "$as_me:$LINENO: WARNING:
13255 configure cannot check whether malloc() and realloc() are GNU libc
13256 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13257 run configure with the --without-gnu-malloc switch." >&5
13258 echo "$as_me: WARNING:
13259 configure cannot check whether malloc() and realloc() are GNU libc
13260 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13261 run configure with the --without-gnu-malloc switch." >&2;}
13262 _mule_warning_7=yes
13263 _mule_has_warnings=yes
13265 ac_cv_func_malloc_0_nonnull=yes
13266 ac_cv_func_realloc_0_nonnull=yes
13271 for ac_header in stdlib.h
13273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13275 echo "$as_me:$LINENO: checking for $ac_header" >&5
13276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13282 else
13283 # Is the header compilable?
13284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 $ac_includes_default
13293 #include <$ac_header>
13294 _ACEOF
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag"
13305 || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_header_compiler=yes
13318 else
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_header_compiler=no
13324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 echo "${ECHO_T}$ac_header_compiler" >&6
13328 # Is the header present?
13329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h. */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 #include <$ac_header>
13338 _ACEOF
13339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } >/dev/null; then
13347 if test -s conftest.err; then
13348 ac_cpp_err=$ac_c_preproc_warn_flag
13349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13350 else
13351 ac_cpp_err=
13353 else
13354 ac_cpp_err=yes
13356 if test -z "$ac_cpp_err"; then
13357 ac_header_preproc=yes
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_header_preproc=no
13364 rm -f conftest.err conftest.$ac_ext
13365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13366 echo "${ECHO_T}$ac_header_preproc" >&6
13368 # So? What about this header?
13369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13370 yes:no: )
13371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13375 ac_header_preproc=yes
13377 no:yes:* )
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13391 cat <<\_ASBOX
13392 ## ------------------------------ ##
13393 ## Report this to admin@amule.org ##
13394 ## ------------------------------ ##
13395 _ASBOX
13397 sed "s/^/$as_me: WARNING: /" >&2
13399 esac
13400 echo "$as_me:$LINENO: checking for $ac_header" >&5
13401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405 eval "$as_ac_Header=\$ac_header_preproc"
13407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13412 cat >>confdefs.h <<_ACEOF
13413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13414 _ACEOF
13418 done
13420 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13421 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13422 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425 if test "$cross_compiling" = yes; then
13426 ac_cv_func_malloc_0_nonnull=no
13427 else
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 #if STDC_HEADERS || HAVE_STDLIB_H
13435 # include <stdlib.h>
13436 #else
13437 char *malloc ();
13438 #endif
13441 main ()
13443 exit (malloc (0) ? 0 : 1);
13445 return 0;
13447 _ACEOF
13448 rm -f conftest$ac_exeext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13450 (eval $ac_link) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_func_malloc_0_nonnull=yes
13460 else
13461 echo "$as_me: program exited with status $ac_status" >&5
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 ( exit $ac_status )
13466 ac_cv_func_malloc_0_nonnull=no
13468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13471 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13472 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13473 if test $ac_cv_func_malloc_0_nonnull = yes; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_MALLOC 1
13477 _ACEOF
13479 else
13480 cat >>confdefs.h <<\_ACEOF
13481 #define HAVE_MALLOC 0
13482 _ACEOF
13484 case $LIBOBJS in
13485 "malloc.$ac_objext" | \
13486 *" malloc.$ac_objext" | \
13487 "malloc.$ac_objext "* | \
13488 *" malloc.$ac_objext "* ) ;;
13489 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13490 esac
13493 cat >>confdefs.h <<\_ACEOF
13494 #define malloc rpl_malloc
13495 _ACEOF
13502 for ac_header in stdlib.h
13504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13506 echo "$as_me:$LINENO: checking for $ac_header" >&5
13507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13513 else
13514 # Is the header compilable?
13515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13524 #include <$ac_header>
13525 _ACEOF
13526 rm -f conftest.$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; } &&
13542 { ac_try='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_header_compiler=yes
13549 else
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_header_compiler=no
13555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13557 echo "${ECHO_T}$ac_header_compiler" >&6
13559 # Is the header present?
13560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h. */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 #include <$ac_header>
13569 _ACEOF
13570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } >/dev/null; then
13578 if test -s conftest.err; then
13579 ac_cpp_err=$ac_c_preproc_warn_flag
13580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13581 else
13582 ac_cpp_err=
13584 else
13585 ac_cpp_err=yes
13587 if test -z "$ac_cpp_err"; then
13588 ac_header_preproc=yes
13589 else
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 ac_header_preproc=no
13595 rm -f conftest.err conftest.$ac_ext
13596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13597 echo "${ECHO_T}$ac_header_preproc" >&6
13599 # So? What about this header?
13600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13601 yes:no: )
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13606 ac_header_preproc=yes
13608 no:yes:* )
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13622 cat <<\_ASBOX
13623 ## ------------------------------ ##
13624 ## Report this to admin@amule.org ##
13625 ## ------------------------------ ##
13626 _ASBOX
13628 sed "s/^/$as_me: WARNING: /" >&2
13630 esac
13631 echo "$as_me:$LINENO: checking for $ac_header" >&5
13632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636 eval "$as_ac_Header=\$ac_header_preproc"
13638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13643 cat >>confdefs.h <<_ACEOF
13644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13645 _ACEOF
13649 done
13651 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13652 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13653 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656 if test "$cross_compiling" = yes; then
13657 ac_cv_func_realloc_0_nonnull=no
13658 else
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #if STDC_HEADERS || HAVE_STDLIB_H
13666 # include <stdlib.h>
13667 #else
13668 char *realloc ();
13669 #endif
13672 main ()
13674 exit (realloc (0, 0) ? 0 : 1);
13676 return 0;
13678 _ACEOF
13679 rm -f conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_func_realloc_0_nonnull=yes
13691 else
13692 echo "$as_me: program exited with status $ac_status" >&5
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ( exit $ac_status )
13697 ac_cv_func_realloc_0_nonnull=no
13699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13702 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13703 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13704 if test $ac_cv_func_realloc_0_nonnull = yes; then
13706 cat >>confdefs.h <<\_ACEOF
13707 #define HAVE_REALLOC 1
13708 _ACEOF
13710 else
13711 cat >>confdefs.h <<\_ACEOF
13712 #define HAVE_REALLOC 0
13713 _ACEOF
13715 case $LIBOBJS in
13716 "realloc.$ac_objext" | \
13717 *" realloc.$ac_objext" | \
13718 "realloc.$ac_objext "* | \
13719 *" realloc.$ac_objext "* ) ;;
13720 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13721 esac
13724 cat >>confdefs.h <<\_ACEOF
13725 #define realloc rpl_realloc
13726 _ACEOF
13765 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13768 echo "$as_me:$LINENO: checking for $ac_func" >&5
13769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13770 if eval "test \"\${$as_ac_var+set}\" = set"; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h. */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13781 #define $ac_func innocuous_$ac_func
13783 /* System header to define __stub macros and hopefully few prototypes,
13784 which can conflict with char $ac_func (); below.
13785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13786 <limits.h> exists even on freestanding compilers. */
13788 #ifdef __STDC__
13789 # include <limits.h>
13790 #else
13791 # include <assert.h>
13792 #endif
13794 #undef $ac_func
13796 /* Override any gcc2 internal prototype to avoid an error. */
13797 #ifdef __cplusplus
13798 extern "C"
13800 #endif
13801 /* We use char because int might match the return type of a gcc2
13802 builtin and then its argument prototype would still apply. */
13803 char $ac_func ();
13804 /* The GNU C library defines this for functions which it implements
13805 to always fail with ENOSYS. Some functions are actually named
13806 something starting with __ and the normal name is an alias. */
13807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13808 choke me
13809 #else
13810 char (*f) () = $ac_func;
13811 #endif
13812 #ifdef __cplusplus
13814 #endif
13817 main ()
13819 return f != $ac_func;
13821 return 0;
13823 _ACEOF
13824 rm -f conftest.$ac_objext conftest$ac_exeext
13825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
13833 { ac_try='test -z "$ac_c_werror_flag"
13834 || test ! -s conftest.err'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest$ac_exeext'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 eval "$as_ac_var=yes"
13847 else
13848 echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13851 eval "$as_ac_var=no"
13853 rm -f conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13858 if test `eval echo '${'$as_ac_var'}'` = yes; then
13859 cat >>confdefs.h <<_ACEOF
13860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13861 _ACEOF
13864 done
13866 #-------------------------------------------------------------------------------
13867 # End of autoscan stuff
13868 #-------------------------------------------------------------------------------
13874 for ac_func in mkdir getrlimit setrlimit getopt_long
13876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13877 echo "$as_me:$LINENO: checking for $ac_func" >&5
13878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13879 if eval "test \"\${$as_ac_var+set}\" = set"; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13890 #define $ac_func innocuous_$ac_func
13892 /* System header to define __stub macros and hopefully few prototypes,
13893 which can conflict with char $ac_func (); below.
13894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13895 <limits.h> exists even on freestanding compilers. */
13897 #ifdef __STDC__
13898 # include <limits.h>
13899 #else
13900 # include <assert.h>
13901 #endif
13903 #undef $ac_func
13905 /* Override any gcc2 internal prototype to avoid an error. */
13906 #ifdef __cplusplus
13907 extern "C"
13909 #endif
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912 char $ac_func ();
13913 /* The GNU C library defines this for functions which it implements
13914 to always fail with ENOSYS. Some functions are actually named
13915 something starting with __ and the normal name is an alias. */
13916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13917 choke me
13918 #else
13919 char (*f) () = $ac_func;
13920 #endif
13921 #ifdef __cplusplus
13923 #endif
13926 main ()
13928 return f != $ac_func;
13930 return 0;
13932 _ACEOF
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>conftest.er1
13936 ac_status=$?
13937 grep -v '^ *+' conftest.er1 >conftest.err
13938 rm -f conftest.er1
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag"
13943 || test ! -s conftest.err'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; } &&
13949 { ac_try='test -s conftest$ac_exeext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 eval "$as_ac_var=yes"
13956 else
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13960 eval "$as_ac_var=no"
13962 rm -f conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13967 if test `eval echo '${'$as_ac_var'}'` = yes; then
13968 cat >>confdefs.h <<_ACEOF
13969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13970 _ACEOF
13973 done
13976 # Check whether --enable-mmap or --disable-mmap was given.
13977 if test "${enable_mmap+set}" = set; then
13978 enableval="$enable_mmap"
13982 if test ${enable_mmap:-no} = yes; then
13985 for ac_header in sys/mman.h
13987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13989 echo "$as_me:$LINENO: checking for $ac_header" >&5
13990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13996 else
13997 # Is the header compilable?
13998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h. */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 $ac_includes_default
14007 #include <$ac_header>
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_header_compiler=yes
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_header_compiler=no
14038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14040 echo "${ECHO_T}$ac_header_compiler" >&6
14042 # Is the header present?
14043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include <$ac_header>
14052 _ACEOF
14053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } >/dev/null; then
14061 if test -s conftest.err; then
14062 ac_cpp_err=$ac_c_preproc_warn_flag
14063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14064 else
14065 ac_cpp_err=
14067 else
14068 ac_cpp_err=yes
14070 if test -z "$ac_cpp_err"; then
14071 ac_header_preproc=yes
14072 else
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_header_preproc=no
14078 rm -f conftest.err conftest.$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14080 echo "${ECHO_T}$ac_header_preproc" >&6
14082 # So? What about this header?
14083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14084 yes:no: )
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14089 ac_header_preproc=yes
14091 no:yes:* )
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14105 cat <<\_ASBOX
14106 ## ------------------------------ ##
14107 ## Report this to admin@amule.org ##
14108 ## ------------------------------ ##
14109 _ASBOX
14111 sed "s/^/$as_me: WARNING: /" >&2
14113 esac
14114 echo "$as_me:$LINENO: checking for $ac_header" >&5
14115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119 eval "$as_ac_Header=\$ac_header_preproc"
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14126 cat >>confdefs.h <<_ACEOF
14127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14128 _ACEOF
14132 done
14136 for ac_header in stdlib.h unistd.h
14138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140 echo "$as_me:$LINENO: checking for $ac_header" >&5
14141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14147 else
14148 # Is the header compilable?
14149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 $ac_includes_default
14158 #include <$ac_header>
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_header_compiler=yes
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_header_compiler=no
14189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14191 echo "${ECHO_T}$ac_header_compiler" >&6
14193 # Is the header present?
14194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14196 cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h. */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 #include <$ac_header>
14203 _ACEOF
14204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } >/dev/null; then
14212 if test -s conftest.err; then
14213 ac_cpp_err=$ac_c_preproc_warn_flag
14214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14215 else
14216 ac_cpp_err=
14218 else
14219 ac_cpp_err=yes
14221 if test -z "$ac_cpp_err"; then
14222 ac_header_preproc=yes
14223 else
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 ac_header_preproc=no
14229 rm -f conftest.err conftest.$ac_ext
14230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14231 echo "${ECHO_T}$ac_header_preproc" >&6
14233 # So? What about this header?
14234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14235 yes:no: )
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14240 ac_header_preproc=yes
14242 no:yes:* )
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14256 cat <<\_ASBOX
14257 ## ------------------------------ ##
14258 ## Report this to admin@amule.org ##
14259 ## ------------------------------ ##
14260 _ASBOX
14262 sed "s/^/$as_me: WARNING: /" >&2
14264 esac
14265 echo "$as_me:$LINENO: checking for $ac_header" >&5
14266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270 eval "$as_ac_Header=\$ac_header_preproc"
14272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14277 cat >>confdefs.h <<_ACEOF
14278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14279 _ACEOF
14283 done
14286 for ac_func in getpagesize
14288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14289 echo "$as_me:$LINENO: checking for $ac_func" >&5
14290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14291 if eval "test \"\${$as_ac_var+set}\" = set"; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14302 #define $ac_func innocuous_$ac_func
14304 /* System header to define __stub macros and hopefully few prototypes,
14305 which can conflict with char $ac_func (); below.
14306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14307 <limits.h> exists even on freestanding compilers. */
14309 #ifdef __STDC__
14310 # include <limits.h>
14311 #else
14312 # include <assert.h>
14313 #endif
14315 #undef $ac_func
14317 /* Override any gcc2 internal prototype to avoid an error. */
14318 #ifdef __cplusplus
14319 extern "C"
14321 #endif
14322 /* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14324 char $ac_func ();
14325 /* The GNU C library defines this for functions which it implements
14326 to always fail with ENOSYS. Some functions are actually named
14327 something starting with __ and the normal name is an alias. */
14328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14329 choke me
14330 #else
14331 char (*f) () = $ac_func;
14332 #endif
14333 #ifdef __cplusplus
14335 #endif
14338 main ()
14340 return f != $ac_func;
14342 return 0;
14344 _ACEOF
14345 rm -f conftest.$ac_objext conftest$ac_exeext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14347 (eval $ac_link) 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try='test -z "$ac_c_werror_flag"
14355 || test ! -s conftest.err'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest$ac_exeext'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 eval "$as_ac_var=yes"
14368 else
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 eval "$as_ac_var=no"
14374 rm -f conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14379 if test `eval echo '${'$as_ac_var'}'` = yes; then
14380 cat >>confdefs.h <<_ACEOF
14381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14382 _ACEOF
14385 done
14387 echo "$as_me:$LINENO: checking for working mmap" >&5
14388 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14389 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392 if test "$cross_compiling" = yes; then
14393 ac_cv_func_mmap_fixed_mapped=no
14394 else
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h. */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 $ac_includes_default
14402 /* malloc might have been renamed as rpl_malloc. */
14403 #undef malloc
14405 /* Thanks to Mike Haertel and Jim Avera for this test.
14406 Here is a matrix of mmap possibilities:
14407 mmap private not fixed
14408 mmap private fixed at somewhere currently unmapped
14409 mmap private fixed at somewhere already mapped
14410 mmap shared not fixed
14411 mmap shared fixed at somewhere currently unmapped
14412 mmap shared fixed at somewhere already mapped
14413 For private mappings, we should verify that changes cannot be read()
14414 back from the file, nor mmap's back from the file at a different
14415 address. (There have been systems where private was not correctly
14416 implemented like the infamous i386 svr4.0, and systems where the
14417 VM page cache was not coherent with the file system buffer cache
14418 like early versions of FreeBSD and possibly contemporary NetBSD.)
14419 For shared mappings, we should conversely verify that changes get
14420 propagated back to all the places they're supposed to be.
14422 Grep wants private fixed already mapped.
14423 The main things grep needs to know about mmap are:
14424 * does it exist and is it safe to write into the mmap'd area
14425 * how to use it (BSD variants) */
14427 #include <fcntl.h>
14428 #include <sys/mman.h>
14430 #if !STDC_HEADERS && !HAVE_STDLIB_H
14431 char *malloc ();
14432 #endif
14434 /* This mess was copied from the GNU getpagesize.h. */
14435 #if !HAVE_GETPAGESIZE
14436 /* Assume that all systems that can run configure have sys/param.h. */
14437 # if !HAVE_SYS_PARAM_H
14438 # define HAVE_SYS_PARAM_H 1
14439 # endif
14441 # ifdef _SC_PAGESIZE
14442 # define getpagesize() sysconf(_SC_PAGESIZE)
14443 # else /* no _SC_PAGESIZE */
14444 # if HAVE_SYS_PARAM_H
14445 # include <sys/param.h>
14446 # ifdef EXEC_PAGESIZE
14447 # define getpagesize() EXEC_PAGESIZE
14448 # else /* no EXEC_PAGESIZE */
14449 # ifdef NBPG
14450 # define getpagesize() NBPG * CLSIZE
14451 # ifndef CLSIZE
14452 # define CLSIZE 1
14453 # endif /* no CLSIZE */
14454 # else /* no NBPG */
14455 # ifdef NBPC
14456 # define getpagesize() NBPC
14457 # else /* no NBPC */
14458 # ifdef PAGESIZE
14459 # define getpagesize() PAGESIZE
14460 # endif /* PAGESIZE */
14461 # endif /* no NBPC */
14462 # endif /* no NBPG */
14463 # endif /* no EXEC_PAGESIZE */
14464 # else /* no HAVE_SYS_PARAM_H */
14465 # define getpagesize() 8192 /* punt totally */
14466 # endif /* no HAVE_SYS_PARAM_H */
14467 # endif /* no _SC_PAGESIZE */
14469 #endif /* no HAVE_GETPAGESIZE */
14472 main ()
14474 char *data, *data2, *data3;
14475 int i, pagesize;
14476 int fd;
14478 pagesize = getpagesize ();
14480 /* First, make a file with some known garbage in it. */
14481 data = (char *) malloc (pagesize);
14482 if (!data)
14483 exit (1);
14484 for (i = 0; i < pagesize; ++i)
14485 *(data + i) = rand ();
14486 umask (0);
14487 fd = creat ("conftest.mmap", 0600);
14488 if (fd < 0)
14489 exit (1);
14490 if (write (fd, data, pagesize) != pagesize)
14491 exit (1);
14492 close (fd);
14494 /* Next, try to mmap the file at a fixed address which already has
14495 something else allocated at it. If we can, also make sure that
14496 we see the same garbage. */
14497 fd = open ("conftest.mmap", O_RDWR);
14498 if (fd < 0)
14499 exit (1);
14500 data2 = (char *) malloc (2 * pagesize);
14501 if (!data2)
14502 exit (1);
14503 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14504 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14505 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14506 exit (1);
14507 for (i = 0; i < pagesize; ++i)
14508 if (*(data + i) != *(data2 + i))
14509 exit (1);
14511 /* Finally, make sure that changes to the mapped area do not
14512 percolate back to the file as seen by read(). (This is a bug on
14513 some variants of i386 svr4.0.) */
14514 for (i = 0; i < pagesize; ++i)
14515 *(data2 + i) = *(data2 + i) + 1;
14516 data3 = (char *) malloc (pagesize);
14517 if (!data3)
14518 exit (1);
14519 if (read (fd, data3, pagesize) != pagesize)
14520 exit (1);
14521 for (i = 0; i < pagesize; ++i)
14522 if (*(data + i) != *(data3 + i))
14523 exit (1);
14524 close (fd);
14525 exit (0);
14527 _ACEOF
14528 rm -f conftest$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530 (eval $ac_link) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_func_mmap_fixed_mapped=yes
14540 else
14541 echo "$as_me: program exited with status $ac_status" >&5
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ( exit $ac_status )
14546 ac_cv_func_mmap_fixed_mapped=no
14548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14551 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14552 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14553 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14555 cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_MMAP 1
14557 _ACEOF
14560 rm -f conftest.mmap
14563 for ac_func in munmap
14565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$as_ac_var+set}\" = set"; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14579 #define $ac_func innocuous_$ac_func
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below.
14583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584 <limits.h> exists even on freestanding compilers. */
14586 #ifdef __STDC__
14587 # include <limits.h>
14588 #else
14589 # include <assert.h>
14590 #endif
14592 #undef $ac_func
14594 /* Override any gcc2 internal prototype to avoid an error. */
14595 #ifdef __cplusplus
14596 extern "C"
14598 #endif
14599 /* We use char because int might match the return type of a gcc2
14600 builtin and then its argument prototype would still apply. */
14601 char $ac_func ();
14602 /* The GNU C library defines this for functions which it implements
14603 to always fail with ENOSYS. Some functions are actually named
14604 something starting with __ and the normal name is an alias. */
14605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14606 choke me
14607 #else
14608 char (*f) () = $ac_func;
14609 #endif
14610 #ifdef __cplusplus
14612 #endif
14615 main ()
14617 return f != $ac_func;
14619 return 0;
14621 _ACEOF
14622 rm -f conftest.$ac_objext conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>conftest.er1
14625 ac_status=$?
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 eval "$as_ac_var=yes"
14645 else
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 eval "$as_ac_var=no"
14651 rm -f conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14659 _ACEOF
14662 done
14665 else
14667 # fake the result of the test for munmap() for the gettext macros
14668 ac_cv_func_munmap=no
14674 mule_backup_CPPFLAGS="$CPPFLAGS"
14675 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14676 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14677 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14678 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h. */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14689 main ()
14691 #ifndef strerror_r
14692 char *p = (char *) strerror_r;
14693 #endif
14696 return 0;
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701 (eval $ac_compile) 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -z "$ac_c_werror_flag"
14709 || test ! -s conftest.err'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try='test -s conftest.$ac_objext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_cv_have_decl_strerror_r=yes
14722 else
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_cv_have_decl_strerror_r=no
14728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14730 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14731 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14732 if test $ac_cv_have_decl_strerror_r = yes; then
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_DECL_STRERROR_R 1
14736 _ACEOF
14739 else
14740 cat >>confdefs.h <<_ACEOF
14741 #define HAVE_DECL_STRERROR_R 0
14742 _ACEOF
14749 for ac_func in strerror_r
14751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14752 echo "$as_me:$LINENO: checking for $ac_func" >&5
14753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14754 if eval "test \"\${$as_ac_var+set}\" = set"; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14765 #define $ac_func innocuous_$ac_func
14767 /* System header to define __stub macros and hopefully few prototypes,
14768 which can conflict with char $ac_func (); below.
14769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14770 <limits.h> exists even on freestanding compilers. */
14772 #ifdef __STDC__
14773 # include <limits.h>
14774 #else
14775 # include <assert.h>
14776 #endif
14778 #undef $ac_func
14780 /* Override any gcc2 internal prototype to avoid an error. */
14781 #ifdef __cplusplus
14782 extern "C"
14784 #endif
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787 char $ac_func ();
14788 /* The GNU C library defines this for functions which it implements
14789 to always fail with ENOSYS. Some functions are actually named
14790 something starting with __ and the normal name is an alias. */
14791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14792 choke me
14793 #else
14794 char (*f) () = $ac_func;
14795 #endif
14796 #ifdef __cplusplus
14798 #endif
14801 main ()
14803 return f != $ac_func;
14805 return 0;
14807 _ACEOF
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -z "$ac_c_werror_flag"
14818 || test ! -s conftest.err'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; } &&
14824 { ac_try='test -s conftest$ac_exeext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 eval "$as_ac_var=yes"
14831 else
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 eval "$as_ac_var=no"
14837 rm -f conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14842 if test `eval echo '${'$as_ac_var'}'` = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14845 _ACEOF
14848 done
14850 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14851 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14852 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14856 ac_cv_func_strerror_r_char_p=no
14857 if test $ac_cv_have_decl_strerror_r = yes; then
14858 cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h. */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 $ac_includes_default
14866 main ()
14869 char buf[100];
14870 char x = *strerror_r (0, buf, sizeof buf);
14871 char *p = strerror_r (0, buf, sizeof buf);
14874 return 0;
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879 (eval $ac_compile) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag"
14887 || test ! -s conftest.err'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; } &&
14893 { ac_try='test -s conftest.$ac_objext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_func_strerror_r_char_p=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906 else
14907 # strerror_r is not declared. Choose between
14908 # systems that have relatively inaccessible declarations for the
14909 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14910 # former has a strerror_r that returns char*, while the latter
14911 # has a strerror_r that returns `int'.
14912 # This test should segfault on the DEC system.
14913 if test "$cross_compiling" = yes; then
14915 else
14916 cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h. */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14922 $ac_includes_default
14923 extern char *strerror_r ();
14925 main ()
14927 char buf[100];
14928 char x = *strerror_r (0, buf, sizeof buf);
14929 exit (!isalpha (x));
14931 return 0;
14933 _ACEOF
14934 rm -f conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_cv_func_strerror_r_char_p=yes
14946 else
14947 echo "$as_me: program exited with status $ac_status" >&5
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14957 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14958 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14959 if test $ac_cv_func_strerror_r_char_p = yes; then
14961 cat >>confdefs.h <<\_ACEOF
14962 #define STRERROR_R_CHAR_P 1
14963 _ACEOF
14967 CPPFLAGS="$mule_backup_CPPFLAGS"
14969 # Look for a way to preallocate disk space for files.
14971 echo "$as_me:$LINENO: checking for fallocate" >&5
14972 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14973 mule_backup_CPPFLAGS="$CPPFLAGS"
14974 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
14975 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14983 #define _GNU_SOURCE
14984 #ifdef HAVE_FCNTL_H
14985 # include <fcntl.h>
14986 #endif
14987 #include <linux/falloc.h>
14990 main ()
14993 fallocate(0, 0, 0, 0);
14996 return 0;
14999 _ACEOF
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002 (eval $ac_link) 2>conftest.er1
15003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try='test -z "$ac_c_werror_flag"
15010 || test ! -s conftest.err'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest$ac_exeext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15025 cat >>confdefs.h <<\_ACEOF
15026 #define HAVE_FALLOCATE 1
15027 _ACEOF
15029 echo "$as_me:$LINENO: result: yes" >&5
15030 echo "${ECHO_T}yes" >&6
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15037 echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15041 rm -f conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043 CPPFLAGS="$mule_backup_CPPFLAGS"
15046 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15047 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15048 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15056 #include <sys/syscall.h>
15057 #include <sys/types.h>
15058 #include <unistd.h>
15061 main ()
15064 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15067 return 0;
15070 _ACEOF
15071 rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15073 (eval $ac_link) 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag"
15081 || test ! -s conftest.err'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_SYS_FALLOCATE 1
15098 _ACEOF
15100 echo "$as_me:$LINENO: result: yes" >&5
15101 echo "${ECHO_T}yes" >&6
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15108 echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6
15112 rm -f conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15115 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15116 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15117 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h. */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 #define _XOPEN_SOURCE 600
15126 #include <stdlib.h>
15127 #ifdef HAVE_FCNTL_H
15128 # include <fcntl.h>
15129 #endif
15132 main ()
15135 posix_fallocate(0, 0, 0);
15138 return 0;
15141 _ACEOF
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15167 cat >>confdefs.h <<\_ACEOF
15168 #define HAVE_POSIX_FALLOCATE 1
15169 _ACEOF
15171 echo "$as_me:$LINENO: result: yes" >&5
15172 echo "${ECHO_T}yes" >&6
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15179 echo "$as_me:$LINENO: result: no" >&5
15180 echo "${ECHO_T}no" >&6
15183 rm -f conftest.err conftest.$ac_objext \
15184 conftest$ac_exeext conftest.$ac_ext
15187 # Checking Native Language Support
15190 MKINSTALLDIRS=
15191 if test -n "$ac_aux_dir"; then
15192 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15194 if test -z "$MKINSTALLDIRS"; then
15195 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15202 # Extract the first word of "msgfmt", so it can be a program name with args.
15203 set dummy msgfmt; ac_word=$2
15204 echo "$as_me:$LINENO: checking for $ac_word" >&5
15205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15206 if test "${ac_cv_path_MSGFMT+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 else
15209 case "$MSGFMT" in
15211 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15215 for ac_dir in $PATH; do
15216 test -z "$ac_dir" && ac_dir=.
15217 if test -f $ac_dir/$ac_word; then
15218 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15219 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15220 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15221 break
15224 done
15225 IFS="$ac_save_ifs"
15226 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15228 esac
15230 MSGFMT="$ac_cv_path_MSGFMT"
15231 if test "$MSGFMT" != ":"; then
15232 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15233 echo "${ECHO_T}$MSGFMT" >&6
15234 else
15235 echo "$as_me:$LINENO: result: no" >&5
15236 echo "${ECHO_T}no" >&6
15239 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15240 set dummy gmsgfmt; ac_word=$2
15241 echo "$as_me:$LINENO: checking for $ac_word" >&5
15242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15243 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246 case $GMSGFMT in
15247 [\\/]* | ?:[\\/]*)
15248 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $PATH
15254 IFS=$as_save_IFS
15255 test -z "$as_dir" && as_dir=.
15256 for ac_exec_ext in '' $ac_executable_extensions; do
15257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15260 break 2
15262 done
15263 done
15265 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15267 esac
15269 GMSGFMT=$ac_cv_path_GMSGFMT
15271 if test -n "$GMSGFMT"; then
15272 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15273 echo "${ECHO_T}$GMSGFMT" >&6
15274 else
15275 echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15280 # Extract the first word of "xgettext", so it can be a program name with args.
15281 set dummy xgettext; ac_word=$2
15282 echo "$as_me:$LINENO: checking for $ac_word" >&5
15283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15284 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 case "$XGETTEXT" in
15289 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15293 for ac_dir in $PATH; do
15294 test -z "$ac_dir" && ac_dir=.
15295 if test -f $ac_dir/$ac_word; then
15296 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15297 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15298 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15299 break
15302 done
15303 IFS="$ac_save_ifs"
15304 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15306 esac
15308 XGETTEXT="$ac_cv_path_XGETTEXT"
15309 if test "$XGETTEXT" != ":"; then
15310 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15311 echo "${ECHO_T}$XGETTEXT" >&6
15312 else
15313 echo "$as_me:$LINENO: result: no" >&5
15314 echo "${ECHO_T}no" >&6
15317 rm -f messages.po
15319 # Extract the first word of "msgmerge", so it can be a program name with args.
15320 set dummy msgmerge; ac_word=$2
15321 echo "$as_me:$LINENO: checking for $ac_word" >&5
15322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15323 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 case "$MSGMERGE" in
15328 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15332 for ac_dir in $PATH; do
15333 test -z "$ac_dir" && ac_dir=.
15334 if test -f $ac_dir/$ac_word; then
15335 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15336 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15337 break
15340 done
15341 IFS="$ac_save_ifs"
15342 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15344 esac
15346 MSGMERGE="$ac_cv_path_MSGMERGE"
15347 if test "$MSGMERGE" != ":"; then
15348 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15349 echo "${ECHO_T}$MSGMERGE" >&6
15350 else
15351 echo "$as_me:$LINENO: result: no" >&5
15352 echo "${ECHO_T}no" >&6
15356 if test "$GMSGFMT" != ":"; then
15357 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15358 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15360 else
15361 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15362 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15363 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15364 GMSGFMT=":"
15368 if test "$XGETTEXT" != ":"; then
15369 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15370 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15372 else
15373 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15374 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15375 XGETTEXT=":"
15377 rm -f messages.po
15380 ac_config_commands="$ac_config_commands default-1"
15383 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15384 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15385 if test "${ac_cv_search_strerror+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 ac_func_search_save_LIBS=$LIBS
15389 ac_cv_search_strerror=no
15390 cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h. */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15397 /* Override any gcc2 internal prototype to avoid an error. */
15398 #ifdef __cplusplus
15399 extern "C"
15400 #endif
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15403 char strerror ();
15405 main ()
15407 strerror ();
15409 return 0;
15411 _ACEOF
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15414 (eval $ac_link) 2>conftest.er1
15415 ac_status=$?
15416 grep -v '^ *+' conftest.er1 >conftest.err
15417 rm -f conftest.er1
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -z "$ac_c_werror_flag"
15422 || test ! -s conftest.err'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try='test -s conftest$ac_exeext'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_cv_search_strerror="none required"
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15440 rm -f conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 if test "$ac_cv_search_strerror" = no; then
15443 for ac_lib in cposix; do
15444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15452 /* Override any gcc2 internal prototype to avoid an error. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15458 char strerror ();
15460 main ()
15462 strerror ();
15464 return 0;
15466 _ACEOF
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15469 (eval $ac_link) 2>conftest.er1
15470 ac_status=$?
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try='test -z "$ac_c_werror_flag"
15477 || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_search_strerror="-l$ac_lib"
15490 break
15491 else
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15496 rm -f conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15498 done
15500 LIBS=$ac_func_search_save_LIBS
15502 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15503 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15504 if test "$ac_cv_search_strerror" != no; then
15505 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15510 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15511 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15512 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h. */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15522 #include <features.h>
15523 #ifdef __GNU_LIBRARY__
15524 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15525 Lucky GNU user
15526 #endif
15527 #endif
15529 _ACEOF
15530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15531 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15532 ac_cv_gnu_library_2_1=yes
15533 else
15534 ac_cv_gnu_library_2_1=no
15536 rm -f conftest*
15541 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15542 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15544 GLIBC21="$ac_cv_gnu_library_2_1"
15549 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15550 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15551 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15555 if test "$cross_compiling" = yes; then
15557 # Guess based on the CPU.
15558 case "$host_cpu" in
15559 alpha* | i3456786 | m68k | s390*)
15560 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15562 gt_cv_int_divbyzero_sigfpe="guessing no";;
15563 esac
15565 else
15566 cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h. */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15573 #include <stdlib.h>
15574 #include <signal.h>
15576 static void
15577 #ifdef __cplusplus
15578 sigfpe_handler (int sig)
15579 #else
15580 sigfpe_handler (sig) int sig;
15581 #endif
15583 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15584 exit (sig != SIGFPE);
15587 int x = 1;
15588 int y = 0;
15589 int z;
15590 int nan;
15592 int main ()
15594 signal (SIGFPE, sigfpe_handler);
15595 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15596 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15597 signal (SIGTRAP, sigfpe_handler);
15598 #endif
15599 /* Linux/SPARC yields signal SIGILL. */
15600 #if defined (__sparc__) && defined (__linux__)
15601 signal (SIGILL, sigfpe_handler);
15602 #endif
15604 z = x / y;
15605 nan = y / y;
15606 exit (1);
15609 _ACEOF
15610 rm -f conftest$ac_exeext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15612 (eval $ac_link) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621 gt_cv_int_divbyzero_sigfpe=yes
15622 else
15623 echo "$as_me: program exited with status $ac_status" >&5
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ( exit $ac_status )
15628 gt_cv_int_divbyzero_sigfpe=no
15630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15634 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15635 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15636 case "$gt_cv_int_divbyzero_sigfpe" in
15637 *yes) value=1;;
15638 *) value=0;;
15639 esac
15641 cat >>confdefs.h <<_ACEOF
15642 #define INTDIV0_RAISES_SIGFPE $value
15643 _ACEOF
15647 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15648 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15649 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h. */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 #include <sys/types.h>
15659 #include <inttypes.h>
15661 main ()
15663 uintmax_t i = (uintmax_t) -1;
15665 return 0;
15667 _ACEOF
15668 rm -f conftest.$ac_objext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15670 (eval $ac_compile) 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag"
15678 || test ! -s conftest.err'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest.$ac_objext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 jm_ac_cv_header_inttypes_h=yes
15691 else
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 jm_ac_cv_header_inttypes_h=no
15697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15699 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15700 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15701 if test $jm_ac_cv_header_inttypes_h = yes; then
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15705 _ACEOF
15710 echo "$as_me:$LINENO: checking for stdint.h" >&5
15711 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15712 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <sys/types.h>
15722 #include <stdint.h>
15724 main ()
15726 uintmax_t i = (uintmax_t) -1;
15728 return 0;
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733 (eval $ac_compile) 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -z "$ac_c_werror_flag"
15741 || test ! -s conftest.err'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 jm_ac_cv_header_stdint_h=yes
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 jm_ac_cv_header_stdint_h=no
15760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15763 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15764 if test $jm_ac_cv_header_stdint_h = yes; then
15766 cat >>confdefs.h <<_ACEOF
15767 #define HAVE_STDINT_H_WITH_UINTMAX 1
15768 _ACEOF
15773 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15774 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15775 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 unsigned long long ull = 1; int i = 63;
15786 main ()
15788 unsigned long long ullmax = (unsigned long long) -1;
15789 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15791 return 0;
15793 _ACEOF
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15796 (eval $ac_link) 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try='test -z "$ac_c_werror_flag"
15804 || test ! -s conftest.err'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try='test -s conftest$ac_exeext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_cv_type_unsigned_long_long=yes
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ac_cv_type_unsigned_long_long=no
15823 rm -f conftest.err conftest.$ac_objext \
15824 conftest$ac_exeext conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15827 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15828 if test $ac_cv_type_unsigned_long_long = yes; then
15830 cat >>confdefs.h <<\_ACEOF
15831 #define HAVE_UNSIGNED_LONG_LONG 1
15832 _ACEOF
15839 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15841 test $ac_cv_type_unsigned_long_long = yes \
15842 && ac_type='unsigned long long' \
15843 || ac_type='unsigned long'
15845 cat >>confdefs.h <<_ACEOF
15846 #define uintmax_t $ac_type
15847 _ACEOF
15852 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15853 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15854 if test "${gt_cv_header_inttypes_h+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15858 cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h. */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <sys/types.h>
15865 #include <inttypes.h>
15867 main ()
15871 return 0;
15873 _ACEOF
15874 rm -f conftest.$ac_objext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15876 (eval $ac_compile) 2>conftest.er1
15877 ac_status=$?
15878 grep -v '^ *+' conftest.er1 >conftest.err
15879 rm -f conftest.er1
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try='test -z "$ac_c_werror_flag"
15884 || test ! -s conftest.err'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest.$ac_objext'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 gt_cv_header_inttypes_h=yes
15897 else
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 gt_cv_header_inttypes_h=no
15903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15906 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15907 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15908 if test $gt_cv_header_inttypes_h = yes; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_INTTYPES_H 1
15912 _ACEOF
15918 if test $gt_cv_header_inttypes_h = yes; then
15919 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15920 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15921 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h. */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 #include <inttypes.h>
15932 #ifdef PRId32
15933 char *p = PRId32;
15934 #endif
15937 main ()
15941 return 0;
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15946 (eval $ac_compile) 2>conftest.er1
15947 ac_status=$?
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 gt_cv_inttypes_pri_broken=no
15967 else
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 gt_cv_inttypes_pri_broken=yes
15973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15976 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15977 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15979 if test "$gt_cv_inttypes_pri_broken" = yes; then
15981 cat >>confdefs.h <<_ACEOF
15982 #define PRI_MACROS_BROKEN 1
15983 _ACEOF
15988 if test "X$prefix" = "XNONE"; then
15989 acl_final_prefix="$ac_default_prefix"
15990 else
15991 acl_final_prefix="$prefix"
15993 if test "X$exec_prefix" = "XNONE"; then
15994 acl_final_exec_prefix='${prefix}'
15995 else
15996 acl_final_exec_prefix="$exec_prefix"
15998 acl_save_prefix="$prefix"
15999 prefix="$acl_final_prefix"
16000 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16001 prefix="$acl_save_prefix"
16004 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16005 if test "${with_gnu_ld+set}" = set; then
16006 withval="$with_gnu_ld"
16007 test "$withval" = no || with_gnu_ld=yes
16008 else
16009 with_gnu_ld=no
16011 ac_prog=ld
16012 if test "$GCC" = yes; then
16013 # Check if gcc -print-prog-name=ld gives a path.
16014 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16015 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16016 case $host in
16017 *-*-mingw*)
16018 # gcc leaves a trailing carriage return which upsets mingw
16019 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16021 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16022 esac
16023 case $ac_prog in
16024 # Accept absolute paths.
16025 [\\/]* | [A-Za-z]:[\\/]*)
16026 re_direlt='/[^/][^/]*/\.\./'
16027 # Canonicalize the path of ld
16028 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16029 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16030 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16031 done
16032 test -z "$LD" && LD="$ac_prog"
16035 # If it fails, then pretend we aren't using GCC.
16036 ac_prog=ld
16039 # If it is relative, then search for the first ld in PATH.
16040 with_gnu_ld=unknown
16042 esac
16043 elif test "$with_gnu_ld" = yes; then
16044 echo "$as_me:$LINENO: checking for GNU ld" >&5
16045 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16046 else
16047 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16048 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16050 if test "${acl_cv_path_LD+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053 if test -z "$LD"; then
16054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16055 for ac_dir in $PATH; do
16056 test -z "$ac_dir" && ac_dir=.
16057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16058 acl_cv_path_LD="$ac_dir/$ac_prog"
16059 # Check to see if the program is GNU ld. I'd rather use --version,
16060 # but apparently some GNU ld's only accept -v.
16061 # Break only if it was the GNU/non-GNU ld that we prefer.
16062 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16063 test "$with_gnu_ld" != no && break
16064 else
16065 test "$with_gnu_ld" != yes && break
16068 done
16069 IFS="$ac_save_ifs"
16070 else
16071 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16075 LD="$acl_cv_path_LD"
16076 if test -n "$LD"; then
16077 echo "$as_me:$LINENO: result: $LD" >&5
16078 echo "${ECHO_T}$LD" >&6
16079 else
16080 echo "$as_me:$LINENO: result: no" >&5
16081 echo "${ECHO_T}no" >&6
16083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16085 { (exit 1); exit 1; }; }
16086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16088 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16092 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16093 acl_cv_prog_gnu_ld=yes
16094 else
16095 acl_cv_prog_gnu_ld=no
16098 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16099 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16100 with_gnu_ld=$acl_cv_prog_gnu_ld
16104 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16105 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16106 if test "${acl_cv_rpath+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16110 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16111 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16112 . ./conftest.sh
16113 rm -f ./conftest.sh
16114 acl_cv_rpath=done
16117 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16118 echo "${ECHO_T}$acl_cv_rpath" >&6
16119 wl="$acl_cv_wl"
16120 libext="$acl_cv_libext"
16121 shlibext="$acl_cv_shlibext"
16122 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16123 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16124 hardcode_direct="$acl_cv_hardcode_direct"
16125 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16126 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16127 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16128 # Check whether --enable-rpath or --disable-rpath was given.
16129 if test "${enable_rpath+set}" = set; then
16130 enableval="$enable_rpath"
16132 else
16133 enable_rpath=yes
16142 use_additional=yes
16144 acl_save_prefix="$prefix"
16145 prefix="$acl_final_prefix"
16146 acl_save_exec_prefix="$exec_prefix"
16147 exec_prefix="$acl_final_exec_prefix"
16149 eval additional_includedir=\"$includedir\"
16150 eval additional_libdir=\"$libdir\"
16152 exec_prefix="$acl_save_exec_prefix"
16153 prefix="$acl_save_prefix"
16156 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16157 if test "${with_libiconv_prefix+set}" = set; then
16158 withval="$with_libiconv_prefix"
16160 if test "X$withval" = "Xno"; then
16161 use_additional=no
16162 else
16163 if test "X$withval" = "X"; then
16165 acl_save_prefix="$prefix"
16166 prefix="$acl_final_prefix"
16167 acl_save_exec_prefix="$exec_prefix"
16168 exec_prefix="$acl_final_exec_prefix"
16170 eval additional_includedir=\"$includedir\"
16171 eval additional_libdir=\"$libdir\"
16173 exec_prefix="$acl_save_exec_prefix"
16174 prefix="$acl_save_prefix"
16176 else
16177 additional_includedir="$withval/include"
16178 additional_libdir="$withval/lib"
16183 LIBICONV=
16184 LTLIBICONV=
16185 INCICONV=
16186 rpathdirs=
16187 ltrpathdirs=
16188 names_already_handled=
16189 names_next_round='iconv '
16190 while test -n "$names_next_round"; do
16191 names_this_round="$names_next_round"
16192 names_next_round=
16193 for name in $names_this_round; do
16194 already_handled=
16195 for n in $names_already_handled; do
16196 if test "$n" = "$name"; then
16197 already_handled=yes
16198 break
16200 done
16201 if test -z "$already_handled"; then
16202 names_already_handled="$names_already_handled $name"
16203 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16204 eval value=\"\$HAVE_LIB$uppername\"
16205 if test -n "$value"; then
16206 if test "$value" = yes; then
16207 eval value=\"\$LIB$uppername\"
16208 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16209 eval value=\"\$LTLIB$uppername\"
16210 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16211 else
16214 else
16215 found_dir=
16216 found_la=
16217 found_so=
16218 found_a=
16219 if test $use_additional = yes; then
16220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16221 found_dir="$additional_libdir"
16222 found_so="$additional_libdir/lib$name.$shlibext"
16223 if test -f "$additional_libdir/lib$name.la"; then
16224 found_la="$additional_libdir/lib$name.la"
16226 else
16227 if test -f "$additional_libdir/lib$name.$libext"; then
16228 found_dir="$additional_libdir"
16229 found_a="$additional_libdir/lib$name.$libext"
16230 if test -f "$additional_libdir/lib$name.la"; then
16231 found_la="$additional_libdir/lib$name.la"
16236 if test "X$found_dir" = "X"; then
16237 for x in $LDFLAGS $LTLIBICONV; do
16239 acl_save_prefix="$prefix"
16240 prefix="$acl_final_prefix"
16241 acl_save_exec_prefix="$exec_prefix"
16242 exec_prefix="$acl_final_exec_prefix"
16243 eval x=\"$x\"
16244 exec_prefix="$acl_save_exec_prefix"
16245 prefix="$acl_save_prefix"
16247 case "$x" in
16248 -L*)
16249 dir=`echo "X$x" | sed -e 's/^X-L//'`
16250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16251 found_dir="$dir"
16252 found_so="$dir/lib$name.$shlibext"
16253 if test -f "$dir/lib$name.la"; then
16254 found_la="$dir/lib$name.la"
16256 else
16257 if test -f "$dir/lib$name.$libext"; then
16258 found_dir="$dir"
16259 found_a="$dir/lib$name.$libext"
16260 if test -f "$dir/lib$name.la"; then
16261 found_la="$dir/lib$name.la"
16266 esac
16267 if test "X$found_dir" != "X"; then
16268 break
16270 done
16272 if test "X$found_dir" != "X"; then
16273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16274 if test "X$found_so" != "X"; then
16275 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16276 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16277 else
16278 haveit=
16279 for x in $ltrpathdirs; do
16280 if test "X$x" = "X$found_dir"; then
16281 haveit=yes
16282 break
16284 done
16285 if test -z "$haveit"; then
16286 ltrpathdirs="$ltrpathdirs $found_dir"
16288 if test "$hardcode_direct" = yes; then
16289 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16290 else
16291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16292 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16293 haveit=
16294 for x in $rpathdirs; do
16295 if test "X$x" = "X$found_dir"; then
16296 haveit=yes
16297 break
16299 done
16300 if test -z "$haveit"; then
16301 rpathdirs="$rpathdirs $found_dir"
16303 else
16304 haveit=
16305 for x in $LDFLAGS $LIBICONV; do
16307 acl_save_prefix="$prefix"
16308 prefix="$acl_final_prefix"
16309 acl_save_exec_prefix="$exec_prefix"
16310 exec_prefix="$acl_final_exec_prefix"
16311 eval x=\"$x\"
16312 exec_prefix="$acl_save_exec_prefix"
16313 prefix="$acl_save_prefix"
16315 if test "X$x" = "X-L$found_dir"; then
16316 haveit=yes
16317 break
16319 done
16320 if test -z "$haveit"; then
16321 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16323 if test "$hardcode_minus_L" != no; then
16324 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16325 else
16326 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16331 else
16332 if test "X$found_a" != "X"; then
16333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16334 else
16335 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16338 additional_includedir=
16339 case "$found_dir" in
16340 */lib | */lib/)
16341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16342 additional_includedir="$basedir/include"
16344 esac
16345 if test "X$additional_includedir" != "X"; then
16346 if test "X$additional_includedir" != "X/usr/include"; then
16347 haveit=
16348 if test "X$additional_includedir" = "X/usr/local/include"; then
16349 if test -n "$GCC"; then
16350 case $host_os in
16351 linux*) haveit=yes;;
16352 esac
16355 if test -z "$haveit"; then
16356 for x in $CPPFLAGS $INCICONV; do
16358 acl_save_prefix="$prefix"
16359 prefix="$acl_final_prefix"
16360 acl_save_exec_prefix="$exec_prefix"
16361 exec_prefix="$acl_final_exec_prefix"
16362 eval x=\"$x\"
16363 exec_prefix="$acl_save_exec_prefix"
16364 prefix="$acl_save_prefix"
16366 if test "X$x" = "X-I$additional_includedir"; then
16367 haveit=yes
16368 break
16370 done
16371 if test -z "$haveit"; then
16372 if test -d "$additional_includedir"; then
16373 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16379 if test -n "$found_la"; then
16380 save_libdir="$libdir"
16381 case "$found_la" in
16382 */* | *\\*) . "$found_la" ;;
16383 *) . "./$found_la" ;;
16384 esac
16385 libdir="$save_libdir"
16386 for dep in $dependency_libs; do
16387 case "$dep" in
16388 -L*)
16389 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16390 if test "X$additional_libdir" != "X/usr/lib"; then
16391 haveit=
16392 if test "X$additional_libdir" = "X/usr/local/lib"; then
16393 if test -n "$GCC"; then
16394 case $host_os in
16395 linux*) haveit=yes;;
16396 esac
16399 if test -z "$haveit"; then
16400 haveit=
16401 for x in $LDFLAGS $LIBICONV; do
16403 acl_save_prefix="$prefix"
16404 prefix="$acl_final_prefix"
16405 acl_save_exec_prefix="$exec_prefix"
16406 exec_prefix="$acl_final_exec_prefix"
16407 eval x=\"$x\"
16408 exec_prefix="$acl_save_exec_prefix"
16409 prefix="$acl_save_prefix"
16411 if test "X$x" = "X-L$additional_libdir"; then
16412 haveit=yes
16413 break
16415 done
16416 if test -z "$haveit"; then
16417 if test -d "$additional_libdir"; then
16418 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16421 haveit=
16422 for x in $LDFLAGS $LTLIBICONV; do
16424 acl_save_prefix="$prefix"
16425 prefix="$acl_final_prefix"
16426 acl_save_exec_prefix="$exec_prefix"
16427 exec_prefix="$acl_final_exec_prefix"
16428 eval x=\"$x\"
16429 exec_prefix="$acl_save_exec_prefix"
16430 prefix="$acl_save_prefix"
16432 if test "X$x" = "X-L$additional_libdir"; then
16433 haveit=yes
16434 break
16436 done
16437 if test -z "$haveit"; then
16438 if test -d "$additional_libdir"; then
16439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16445 -R*)
16446 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16447 if test "$enable_rpath" != no; then
16448 haveit=
16449 for x in $rpathdirs; do
16450 if test "X$x" = "X$dir"; then
16451 haveit=yes
16452 break
16454 done
16455 if test -z "$haveit"; then
16456 rpathdirs="$rpathdirs $dir"
16458 haveit=
16459 for x in $ltrpathdirs; do
16460 if test "X$x" = "X$dir"; then
16461 haveit=yes
16462 break
16464 done
16465 if test -z "$haveit"; then
16466 ltrpathdirs="$ltrpathdirs $dir"
16470 -l*)
16471 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16473 *.la)
16474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16477 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16478 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16480 esac
16481 done
16483 else
16484 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16489 done
16490 done
16491 if test "X$rpathdirs" != "X"; then
16492 if test -n "$hardcode_libdir_separator"; then
16493 alldirs=
16494 for found_dir in $rpathdirs; do
16495 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16496 done
16497 acl_save_libdir="$libdir"
16498 libdir="$alldirs"
16499 eval flag=\"$hardcode_libdir_flag_spec\"
16500 libdir="$acl_save_libdir"
16501 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16502 else
16503 for found_dir in $rpathdirs; do
16504 acl_save_libdir="$libdir"
16505 libdir="$found_dir"
16506 eval flag=\"$hardcode_libdir_flag_spec\"
16507 libdir="$acl_save_libdir"
16508 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16509 done
16512 if test "X$ltrpathdirs" != "X"; then
16513 for found_dir in $ltrpathdirs; do
16514 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16515 done
16531 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16532 stdlib.h string.h unistd.h sys/param.h
16534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16536 echo "$as_me:$LINENO: checking for $ac_header" >&5
16537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16543 else
16544 # Is the header compilable?
16545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 $ac_includes_default
16554 #include <$ac_header>
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558 (eval $ac_compile) 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest.$ac_objext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_header_compiler=yes
16579 else
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_header_compiler=no
16585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16587 echo "${ECHO_T}$ac_header_compiler" >&6
16589 # Is the header present?
16590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <$ac_header>
16599 _ACEOF
16600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16602 ac_status=$?
16603 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } >/dev/null; then
16608 if test -s conftest.err; then
16609 ac_cpp_err=$ac_c_preproc_warn_flag
16610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16611 else
16612 ac_cpp_err=
16614 else
16615 ac_cpp_err=yes
16617 if test -z "$ac_cpp_err"; then
16618 ac_header_preproc=yes
16619 else
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ac_header_preproc=no
16625 rm -f conftest.err conftest.$ac_ext
16626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16627 echo "${ECHO_T}$ac_header_preproc" >&6
16629 # So? What about this header?
16630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16631 yes:no: )
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16636 ac_header_preproc=yes
16638 no:yes:* )
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16652 cat <<\_ASBOX
16653 ## ------------------------------ ##
16654 ## Report this to admin@amule.org ##
16655 ## ------------------------------ ##
16656 _ASBOX
16658 sed "s/^/$as_me: WARNING: /" >&2
16660 esac
16661 echo "$as_me:$LINENO: checking for $ac_header" >&5
16662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666 eval "$as_ac_Header=\$ac_header_preproc"
16668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16673 cat >>confdefs.h <<_ACEOF
16674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16675 _ACEOF
16679 done
16702 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16703 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16704 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16707 echo "$as_me:$LINENO: checking for $ac_func" >&5
16708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16709 if eval "test \"\${$as_ac_var+set}\" = set"; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720 #define $ac_func innocuous_$ac_func
16722 /* System header to define __stub macros and hopefully few prototypes,
16723 which can conflict with char $ac_func (); below.
16724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 <limits.h> exists even on freestanding compilers. */
16727 #ifdef __STDC__
16728 # include <limits.h>
16729 #else
16730 # include <assert.h>
16731 #endif
16733 #undef $ac_func
16735 /* Override any gcc2 internal prototype to avoid an error. */
16736 #ifdef __cplusplus
16737 extern "C"
16739 #endif
16740 /* We use char because int might match the return type of a gcc2
16741 builtin and then its argument prototype would still apply. */
16742 char $ac_func ();
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16747 choke me
16748 #else
16749 char (*f) () = $ac_func;
16750 #endif
16751 #ifdef __cplusplus
16753 #endif
16756 main ()
16758 return f != $ac_func;
16760 return 0;
16762 _ACEOF
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 eval "$as_ac_var=yes"
16786 else
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 eval "$as_ac_var=no"
16792 rm -f conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16797 if test `eval echo '${'$as_ac_var'}'` = yes; then
16798 cat >>confdefs.h <<_ACEOF
16799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16800 _ACEOF
16803 done
16811 am_save_CPPFLAGS="$CPPFLAGS"
16813 for element in $INCICONV; do
16814 haveit=
16815 for x in $CPPFLAGS; do
16817 acl_save_prefix="$prefix"
16818 prefix="$acl_final_prefix"
16819 acl_save_exec_prefix="$exec_prefix"
16820 exec_prefix="$acl_final_exec_prefix"
16821 eval x=\"$x\"
16822 exec_prefix="$acl_save_exec_prefix"
16823 prefix="$acl_save_prefix"
16825 if test "X$x" = "X$element"; then
16826 haveit=yes
16827 break
16829 done
16830 if test -z "$haveit"; then
16831 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16833 done
16836 echo "$as_me:$LINENO: checking for iconv" >&5
16837 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16838 if test "${am_cv_func_iconv+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16842 am_cv_func_iconv="no, consider installing GNU libiconv"
16843 am_cv_lib_iconv=no
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 #include <stdlib.h>
16851 #include <iconv.h>
16853 main ()
16855 iconv_t cd = iconv_open("","");
16856 iconv(cd,NULL,NULL,NULL,NULL);
16857 iconv_close(cd);
16859 return 0;
16861 _ACEOF
16862 rm -f conftest.$ac_objext conftest$ac_exeext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864 (eval $ac_link) 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -z "$ac_c_werror_flag"
16872 || test ! -s conftest.err'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest$ac_exeext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
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 if test "$am_cv_func_iconv" != yes; then
16893 am_save_LIBS="$LIBS"
16894 LIBS="$LIBS $LIBICONV"
16895 cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h. */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901 #include <stdlib.h>
16902 #include <iconv.h>
16904 main ()
16906 iconv_t cd = iconv_open("","");
16907 iconv(cd,NULL,NULL,NULL,NULL);
16908 iconv_close(cd);
16910 return 0;
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -z "$ac_c_werror_flag"
16923 || test ! -s conftest.err'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest$ac_exeext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 am_cv_lib_iconv=yes
16936 am_cv_func_iconv=yes
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16942 rm -f conftest.err conftest.$ac_objext \
16943 conftest$ac_exeext conftest.$ac_ext
16944 LIBS="$am_save_LIBS"
16948 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16949 echo "${ECHO_T}$am_cv_func_iconv" >&6
16950 if test "$am_cv_func_iconv" = yes; then
16952 cat >>confdefs.h <<\_ACEOF
16953 #define HAVE_ICONV 1
16954 _ACEOF
16957 if test "$am_cv_lib_iconv" = yes; then
16958 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16959 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16960 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16961 echo "${ECHO_T}$LIBICONV" >&6
16962 else
16963 CPPFLAGS="$am_save_CPPFLAGS"
16964 LIBICONV=
16965 LTLIBICONV=
16970 if test "$am_cv_func_iconv" = yes; then
16971 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16972 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16973 if test "${am_cv_proto_iconv+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 else
16977 cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h. */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16984 #include <stdlib.h>
16985 #include <iconv.h>
16986 extern
16987 #ifdef __cplusplus
16989 #endif
16990 #if defined(__STDC__) || defined(__cplusplus)
16991 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16992 #else
16993 size_t iconv();
16994 #endif
16997 main ()
17001 return 0;
17003 _ACEOF
17004 rm -f conftest.$ac_objext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006 (eval $ac_compile) 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 am_cv_proto_iconv_arg1=""
17027 else
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 am_cv_proto_iconv_arg1="const"
17033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17034 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17037 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17038 echo "$as_me:$LINENO: result: ${ac_t:-
17039 }$am_cv_proto_iconv" >&5
17040 echo "${ECHO_T}${ac_t:-
17041 }$am_cv_proto_iconv" >&6
17043 cat >>confdefs.h <<_ACEOF
17044 #define ICONV_CONST $am_cv_proto_iconv_arg1
17045 _ACEOF
17050 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17051 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17052 if test "${am_cv_langinfo_codeset+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <langinfo.h>
17063 main ()
17065 char* cs = nl_langinfo(CODESET);
17067 return 0;
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17072 (eval $ac_link) 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -z "$ac_c_werror_flag"
17080 || test ! -s conftest.err'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 am_cv_langinfo_codeset=yes
17093 else
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 am_cv_langinfo_codeset=no
17099 rm -f conftest.err conftest.$ac_objext \
17100 conftest$ac_exeext conftest.$ac_ext
17103 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17104 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17105 if test $am_cv_langinfo_codeset = yes; then
17107 cat >>confdefs.h <<\_ACEOF
17108 #define HAVE_LANGINFO_CODESET 1
17109 _ACEOF
17113 if test $ac_cv_header_locale_h = yes; then
17115 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17116 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17117 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h. */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 #include <locale.h>
17128 main ()
17130 return LC_MESSAGES
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>conftest.er1
17138 ac_status=$?
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_c_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 am_cv_val_LC_MESSAGES=yes
17158 else
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 am_cv_val_LC_MESSAGES=no
17164 rm -f conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17167 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17168 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17169 if test $am_cv_val_LC_MESSAGES = yes; then
17171 cat >>confdefs.h <<\_ACEOF
17172 #define HAVE_LC_MESSAGES 1
17173 _ACEOF
17179 for ac_prog in bison
17181 # Extract the first word of "$ac_prog", so it can be a program name with args.
17182 set dummy $ac_prog; ac_word=$2
17183 echo "$as_me:$LINENO: checking for $ac_word" >&5
17184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17185 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188 if test -n "$INTLBISON"; then
17189 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17190 else
17191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17192 for as_dir in $PATH
17194 IFS=$as_save_IFS
17195 test -z "$as_dir" && as_dir=.
17196 for ac_exec_ext in '' $ac_executable_extensions; do
17197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17198 ac_cv_prog_INTLBISON="$ac_prog"
17199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17200 break 2
17202 done
17203 done
17207 INTLBISON=$ac_cv_prog_INTLBISON
17208 if test -n "$INTLBISON"; then
17209 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17210 echo "${ECHO_T}$INTLBISON" >&6
17211 else
17212 echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6
17216 test -n "$INTLBISON" && break
17217 done
17219 if test -z "$INTLBISON"; then
17220 ac_verc_fail=yes
17221 else
17222 echo "$as_me:$LINENO: checking version of bison" >&5
17223 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17224 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17225 case $ac_prog_version in
17226 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17227 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17228 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17229 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17230 esac
17231 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17232 echo "${ECHO_T}$ac_prog_version" >&6
17234 if test $ac_verc_fail = yes; then
17235 INTLBISON=:
17240 # Check whether --with-language or --without-language was given.
17241 if test "${with_language+set}" = set; then
17242 withval="$with_language"
17243 if test "$withval" != "all"; then
17244 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17263 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17264 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17265 # Check whether --enable-nls or --disable-nls was given.
17266 if test "${enable_nls+set}" = set; then
17267 enableval="$enable_nls"
17268 USE_NLS=$enableval
17269 else
17270 USE_NLS=yes
17272 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17273 echo "${ECHO_T}$USE_NLS" >&6
17277 BUILD_INCLUDED_LIBINTL=no
17278 USE_INCLUDED_LIBINTL=no
17280 LIBINTL=
17281 LTLIBINTL=
17282 POSUB=
17284 if test "$USE_NLS" = "yes"; then
17285 gt_use_preinstalled_gnugettext=no
17287 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17288 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17290 # Check whether --with-included-gettext or --without-included-gettext was given.
17291 if test "${with_included_gettext+set}" = set; then
17292 withval="$with_included_gettext"
17293 nls_cv_force_use_gnu_gettext=$withval
17294 else
17295 nls_cv_force_use_gnu_gettext=no
17297 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17298 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17300 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17301 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17308 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17309 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17310 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313 cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h. */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 #include <libintl.h>
17320 extern int _nl_msg_cat_cntr;
17321 extern int *_nl_domain_bindings;
17323 main ()
17325 bindtextdomain ("", "");
17326 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17328 return 0;
17330 _ACEOF
17331 rm -f conftest.$ac_objext conftest$ac_exeext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try='test -z "$ac_c_werror_flag"
17341 || test ! -s conftest.err'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } &&
17347 { ac_try='test -s conftest$ac_exeext'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 gt_cv_func_gnugettext2_libc=yes
17354 else
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 gt_cv_func_gnugettext2_libc=no
17360 rm -f conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17363 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17364 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17366 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17370 use_additional=yes
17372 acl_save_prefix="$prefix"
17373 prefix="$acl_final_prefix"
17374 acl_save_exec_prefix="$exec_prefix"
17375 exec_prefix="$acl_final_exec_prefix"
17377 eval additional_includedir=\"$includedir\"
17378 eval additional_libdir=\"$libdir\"
17380 exec_prefix="$acl_save_exec_prefix"
17381 prefix="$acl_save_prefix"
17384 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17385 if test "${with_libintl_prefix+set}" = set; then
17386 withval="$with_libintl_prefix"
17388 if test "X$withval" = "Xno"; then
17389 use_additional=no
17390 else
17391 if test "X$withval" = "X"; then
17393 acl_save_prefix="$prefix"
17394 prefix="$acl_final_prefix"
17395 acl_save_exec_prefix="$exec_prefix"
17396 exec_prefix="$acl_final_exec_prefix"
17398 eval additional_includedir=\"$includedir\"
17399 eval additional_libdir=\"$libdir\"
17401 exec_prefix="$acl_save_exec_prefix"
17402 prefix="$acl_save_prefix"
17404 else
17405 additional_includedir="$withval/include"
17406 additional_libdir="$withval/lib"
17411 LIBINTL=
17412 LTLIBINTL=
17413 INCINTL=
17414 rpathdirs=
17415 ltrpathdirs=
17416 names_already_handled=
17417 names_next_round='intl '
17418 while test -n "$names_next_round"; do
17419 names_this_round="$names_next_round"
17420 names_next_round=
17421 for name in $names_this_round; do
17422 already_handled=
17423 for n in $names_already_handled; do
17424 if test "$n" = "$name"; then
17425 already_handled=yes
17426 break
17428 done
17429 if test -z "$already_handled"; then
17430 names_already_handled="$names_already_handled $name"
17431 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17432 eval value=\"\$HAVE_LIB$uppername\"
17433 if test -n "$value"; then
17434 if test "$value" = yes; then
17435 eval value=\"\$LIB$uppername\"
17436 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17437 eval value=\"\$LTLIB$uppername\"
17438 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17439 else
17442 else
17443 found_dir=
17444 found_la=
17445 found_so=
17446 found_a=
17447 if test $use_additional = yes; then
17448 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17449 found_dir="$additional_libdir"
17450 found_so="$additional_libdir/lib$name.$shlibext"
17451 if test -f "$additional_libdir/lib$name.la"; then
17452 found_la="$additional_libdir/lib$name.la"
17454 else
17455 if test -f "$additional_libdir/lib$name.$libext"; then
17456 found_dir="$additional_libdir"
17457 found_a="$additional_libdir/lib$name.$libext"
17458 if test -f "$additional_libdir/lib$name.la"; then
17459 found_la="$additional_libdir/lib$name.la"
17464 if test "X$found_dir" = "X"; then
17465 for x in $LDFLAGS $LTLIBINTL; do
17467 acl_save_prefix="$prefix"
17468 prefix="$acl_final_prefix"
17469 acl_save_exec_prefix="$exec_prefix"
17470 exec_prefix="$acl_final_exec_prefix"
17471 eval x=\"$x\"
17472 exec_prefix="$acl_save_exec_prefix"
17473 prefix="$acl_save_prefix"
17475 case "$x" in
17476 -L*)
17477 dir=`echo "X$x" | sed -e 's/^X-L//'`
17478 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17479 found_dir="$dir"
17480 found_so="$dir/lib$name.$shlibext"
17481 if test -f "$dir/lib$name.la"; then
17482 found_la="$dir/lib$name.la"
17484 else
17485 if test -f "$dir/lib$name.$libext"; then
17486 found_dir="$dir"
17487 found_a="$dir/lib$name.$libext"
17488 if test -f "$dir/lib$name.la"; then
17489 found_la="$dir/lib$name.la"
17494 esac
17495 if test "X$found_dir" != "X"; then
17496 break
17498 done
17500 if test "X$found_dir" != "X"; then
17501 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17502 if test "X$found_so" != "X"; then
17503 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17504 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17505 else
17506 haveit=
17507 for x in $ltrpathdirs; do
17508 if test "X$x" = "X$found_dir"; then
17509 haveit=yes
17510 break
17512 done
17513 if test -z "$haveit"; then
17514 ltrpathdirs="$ltrpathdirs $found_dir"
17516 if test "$hardcode_direct" = yes; then
17517 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17518 else
17519 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17520 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17521 haveit=
17522 for x in $rpathdirs; do
17523 if test "X$x" = "X$found_dir"; then
17524 haveit=yes
17525 break
17527 done
17528 if test -z "$haveit"; then
17529 rpathdirs="$rpathdirs $found_dir"
17531 else
17532 haveit=
17533 for x in $LDFLAGS $LIBINTL; do
17535 acl_save_prefix="$prefix"
17536 prefix="$acl_final_prefix"
17537 acl_save_exec_prefix="$exec_prefix"
17538 exec_prefix="$acl_final_exec_prefix"
17539 eval x=\"$x\"
17540 exec_prefix="$acl_save_exec_prefix"
17541 prefix="$acl_save_prefix"
17543 if test "X$x" = "X-L$found_dir"; then
17544 haveit=yes
17545 break
17547 done
17548 if test -z "$haveit"; then
17549 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17551 if test "$hardcode_minus_L" != no; then
17552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17553 else
17554 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17559 else
17560 if test "X$found_a" != "X"; then
17561 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17562 else
17563 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17566 additional_includedir=
17567 case "$found_dir" in
17568 */lib | */lib/)
17569 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17570 additional_includedir="$basedir/include"
17572 esac
17573 if test "X$additional_includedir" != "X"; then
17574 if test "X$additional_includedir" != "X/usr/include"; then
17575 haveit=
17576 if test "X$additional_includedir" = "X/usr/local/include"; then
17577 if test -n "$GCC"; then
17578 case $host_os in
17579 linux*) haveit=yes;;
17580 esac
17583 if test -z "$haveit"; then
17584 for x in $CPPFLAGS $INCINTL; do
17586 acl_save_prefix="$prefix"
17587 prefix="$acl_final_prefix"
17588 acl_save_exec_prefix="$exec_prefix"
17589 exec_prefix="$acl_final_exec_prefix"
17590 eval x=\"$x\"
17591 exec_prefix="$acl_save_exec_prefix"
17592 prefix="$acl_save_prefix"
17594 if test "X$x" = "X-I$additional_includedir"; then
17595 haveit=yes
17596 break
17598 done
17599 if test -z "$haveit"; then
17600 if test -d "$additional_includedir"; then
17601 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17607 if test -n "$found_la"; then
17608 save_libdir="$libdir"
17609 case "$found_la" in
17610 */* | *\\*) . "$found_la" ;;
17611 *) . "./$found_la" ;;
17612 esac
17613 libdir="$save_libdir"
17614 for dep in $dependency_libs; do
17615 case "$dep" in
17616 -L*)
17617 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17618 if test "X$additional_libdir" != "X/usr/lib"; then
17619 haveit=
17620 if test "X$additional_libdir" = "X/usr/local/lib"; then
17621 if test -n "$GCC"; then
17622 case $host_os in
17623 linux*) haveit=yes;;
17624 esac
17627 if test -z "$haveit"; then
17628 haveit=
17629 for x in $LDFLAGS $LIBINTL; do
17631 acl_save_prefix="$prefix"
17632 prefix="$acl_final_prefix"
17633 acl_save_exec_prefix="$exec_prefix"
17634 exec_prefix="$acl_final_exec_prefix"
17635 eval x=\"$x\"
17636 exec_prefix="$acl_save_exec_prefix"
17637 prefix="$acl_save_prefix"
17639 if test "X$x" = "X-L$additional_libdir"; then
17640 haveit=yes
17641 break
17643 done
17644 if test -z "$haveit"; then
17645 if test -d "$additional_libdir"; then
17646 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17649 haveit=
17650 for x in $LDFLAGS $LTLIBINTL; do
17652 acl_save_prefix="$prefix"
17653 prefix="$acl_final_prefix"
17654 acl_save_exec_prefix="$exec_prefix"
17655 exec_prefix="$acl_final_exec_prefix"
17656 eval x=\"$x\"
17657 exec_prefix="$acl_save_exec_prefix"
17658 prefix="$acl_save_prefix"
17660 if test "X$x" = "X-L$additional_libdir"; then
17661 haveit=yes
17662 break
17664 done
17665 if test -z "$haveit"; then
17666 if test -d "$additional_libdir"; then
17667 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17673 -R*)
17674 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17675 if test "$enable_rpath" != no; then
17676 haveit=
17677 for x in $rpathdirs; do
17678 if test "X$x" = "X$dir"; then
17679 haveit=yes
17680 break
17682 done
17683 if test -z "$haveit"; then
17684 rpathdirs="$rpathdirs $dir"
17686 haveit=
17687 for x in $ltrpathdirs; do
17688 if test "X$x" = "X$dir"; then
17689 haveit=yes
17690 break
17692 done
17693 if test -z "$haveit"; then
17694 ltrpathdirs="$ltrpathdirs $dir"
17698 -l*)
17699 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17701 *.la)
17702 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17705 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17706 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17708 esac
17709 done
17711 else
17712 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17713 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17717 done
17718 done
17719 if test "X$rpathdirs" != "X"; then
17720 if test -n "$hardcode_libdir_separator"; then
17721 alldirs=
17722 for found_dir in $rpathdirs; do
17723 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17724 done
17725 acl_save_libdir="$libdir"
17726 libdir="$alldirs"
17727 eval flag=\"$hardcode_libdir_flag_spec\"
17728 libdir="$acl_save_libdir"
17729 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17730 else
17731 for found_dir in $rpathdirs; do
17732 acl_save_libdir="$libdir"
17733 libdir="$found_dir"
17734 eval flag=\"$hardcode_libdir_flag_spec\"
17735 libdir="$acl_save_libdir"
17736 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17737 done
17740 if test "X$ltrpathdirs" != "X"; then
17741 for found_dir in $ltrpathdirs; do
17742 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17743 done
17746 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17747 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17748 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751 gt_save_CPPFLAGS="$CPPFLAGS"
17752 CPPFLAGS="$CPPFLAGS $INCINTL"
17753 gt_save_LIBS="$LIBS"
17754 LIBS="$LIBS $LIBINTL"
17755 cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h. */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 #include <libintl.h>
17762 extern int _nl_msg_cat_cntr;
17763 extern
17764 #ifdef __cplusplus
17766 #endif
17767 const char *_nl_expand_alias ();
17769 main ()
17771 bindtextdomain ("", "");
17772 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17774 return 0;
17776 _ACEOF
17777 rm -f conftest.$ac_objext conftest$ac_exeext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17779 (eval $ac_link) 2>conftest.er1
17780 ac_status=$?
17781 grep -v '^ *+' conftest.er1 >conftest.err
17782 rm -f conftest.er1
17783 cat conftest.err >&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } &&
17786 { ac_try='test -z "$ac_c_werror_flag"
17787 || test ! -s conftest.err'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest$ac_exeext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 gt_cv_func_gnugettext2_libintl=yes
17800 else
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 gt_cv_func_gnugettext2_libintl=no
17806 rm -f conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17808 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17809 LIBS="$LIBS $LIBICONV"
17810 cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h. */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 #include <libintl.h>
17817 extern int _nl_msg_cat_cntr;
17818 extern
17819 #ifdef __cplusplus
17821 #endif
17822 const char *_nl_expand_alias ();
17824 main ()
17826 bindtextdomain ("", "");
17827 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17829 return 0;
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17834 (eval $ac_link) 2>conftest.er1
17835 ac_status=$?
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest$ac_exeext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 LIBINTL="$LIBINTL $LIBICONV"
17855 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17856 gt_cv_func_gnugettext2_libintl=yes
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17863 rm -f conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17866 CPPFLAGS="$gt_save_CPPFLAGS"
17867 LIBS="$gt_save_LIBS"
17869 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17870 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17873 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17874 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17875 && test "$PACKAGE" != gettext; }; then
17876 gt_use_preinstalled_gnugettext=yes
17877 else
17878 LIBINTL=
17879 LTLIBINTL=
17880 INCINTL=
17884 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17885 nls_cv_use_gnu_gettext=yes
17889 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17890 INTLOBJS="\$(GETTOBJS)"
17891 BUILD_INCLUDED_LIBINTL=yes
17892 USE_INCLUDED_LIBINTL=yes
17893 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17894 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17895 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17898 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17899 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17900 CATOBJEXT=.gmo
17904 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17905 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17907 cat >>confdefs.h <<\_ACEOF
17908 #define ENABLE_NLS 1
17909 _ACEOF
17911 else
17912 USE_NLS=no
17916 if test "$USE_NLS" = "yes"; then
17918 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17919 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17920 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17921 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17922 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17923 echo "${ECHO_T}$LIBINTL" >&6
17925 for element in $INCINTL; do
17926 haveit=
17927 for x in $CPPFLAGS; do
17929 acl_save_prefix="$prefix"
17930 prefix="$acl_final_prefix"
17931 acl_save_exec_prefix="$exec_prefix"
17932 exec_prefix="$acl_final_exec_prefix"
17933 eval x=\"$x\"
17934 exec_prefix="$acl_save_exec_prefix"
17935 prefix="$acl_save_prefix"
17937 if test "X$x" = "X$element"; then
17938 haveit=yes
17939 break
17941 done
17942 if test -z "$haveit"; then
17943 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17945 done
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_GETTEXT 1
17952 _ACEOF
17955 cat >>confdefs.h <<\_ACEOF
17956 #define HAVE_DCGETTEXT 1
17957 _ACEOF
17961 POSUB=po
17965 if test "$PACKAGE" = gettext; then
17966 BUILD_INCLUDED_LIBINTL=yes
17974 nls_cv_header_intl=
17975 nls_cv_header_libgt=
17977 DATADIRNAME=share
17980 INSTOBJEXT=.mo
17983 GENCAT=gencat
17986 INTL_LIBTOOL_SUFFIX_PREFIX=
17990 INTLLIBS="$LIBINTL"
17997 if test $USE_INCLUDED_LIBINTL = yes; then
17998 INCINTL=-I\${top_builddir}/intl
18002 if test x$USE_NLS = xyes; then
18004 echo "$as_me:$LINENO: checking for autopoint" >&5
18005 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18006 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18007 if test -n "$autopoint_version"; then
18009 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18010 echo "${ECHO_T}yes ($autopoint_version)" >&6
18013 else
18015 echo "$as_me:$LINENO: result: no" >&5
18016 echo "${ECHO_T}no" >&6
18017 USE_NLS=no
18024 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18025 { echo "$as_me:$LINENO: WARNING:
18026 You need to install GNU gettext/gettext-tools to compile aMule with
18027 i18n support." >&5
18028 echo "$as_me: WARNING:
18029 You need to install GNU gettext/gettext-tools to compile aMule with
18030 i18n support." >&2;}
18031 _mule_warning_8=yes
18032 _mule_has_warnings=yes
18037 if test ${USE_NLS:-no} = yes; then
18039 echo "$as_me:$LINENO: checking for requested languages" >&5
18040 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18041 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18043 if test "$AMULE_DAEMON" = "yes"; then
18045 if test -z "$LINGUAS"; then
18046 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18047 else
18049 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18050 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18054 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18056 else
18057 AMULE_DAEMON_MANPAGES=
18063 if test "$AMULECMD" = "yes"; then
18065 if test -z "$LINGUAS"; then
18066 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18067 else
18069 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18070 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18074 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18076 else
18077 AMULECMD_MANPAGES=
18083 if test "$WEB" = "yes"; then
18085 if test -z "$LINGUAS"; then
18086 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18087 else
18089 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18090 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18094 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18096 else
18097 WEB_MANPAGES=
18103 if test "$AMULE_GUI" = "yes"; then
18105 if test -z "$LINGUAS"; then
18106 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18107 else
18109 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18110 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18114 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18116 else
18117 AMULE_GUI_MANPAGES=
18123 if test "$CAS" = "yes"; then
18125 if test -z "$LINGUAS"; then
18126 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18127 else
18129 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18130 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18134 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18136 else
18137 CAS_MANPAGES=
18143 if test "$WXCAS" = "yes"; then
18145 if test -z "$LINGUAS"; then
18146 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18147 else
18149 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18150 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18154 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18156 else
18157 WXCAS_MANPAGES=
18163 if test "$ED2K" = "yes"; then
18165 if test -z "$LINGUAS"; then
18166 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18167 else
18169 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18170 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18174 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18176 else
18177 ED2K_MANPAGES=
18183 if test "$ALC" = "yes"; then
18185 if test -z "$LINGUAS"; then
18186 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18187 else
18189 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18190 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18194 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18196 else
18197 ALC_MANPAGES=
18203 if test "$ALCC" = "yes"; then
18205 if test -z "$LINGUAS"; then
18206 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18207 else
18209 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18210 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18214 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18216 else
18217 ALCC_MANPAGES=
18223 if test "$MONOLITHIC" = "yes"; then
18225 if test -z "$LINGUAS"; then
18226 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18227 else
18229 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18230 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18234 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18236 else
18237 MONOLITHIC_MANPAGES=
18242 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18243 echo "${ECHO_T}${LINGUAS:-all}" >&6
18250 # Check for bfd.h (to have proper backtraces without using wxExecute)
18252 echo "$as_me:$LINENO: checking for bfd" >&5
18253 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18254 result=no
18255 for bfd_ldadd in "" "${LIBINTL}"; do
18256 mule_backup_LIBS="$LIBS"
18257 mule_backup_LDFLAGS="$LDFLAGS"
18258 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18259 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18260 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h. */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18268 #include <ansidecl.h>
18269 #include <bfd.h>
18272 main ()
18275 char *dummy = bfd_errmsg(bfd_get_error());
18278 return 0;
18281 _ACEOF
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18284 (eval $ac_link) 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest$ac_exeext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18305 result=yes
18306 BFD_CPPFLAGS="-DHAVE_BFD"
18307 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18308 LIBS="$mule_backup_LIBS"
18309 LDFLAGS="$mule_backup_LDFLAGS"
18310 break
18312 else
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18317 rm -f conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319 LIBS="$mule_backup_LIBS"
18320 LDFLAGS="$mule_backup_LDFLAGS"
18321 done
18323 echo "$as_me:$LINENO: result: $result" >&5
18324 echo "${ECHO_T}$result" >&6
18326 if test $result = no; then
18327 { echo "$as_me:$LINENO: WARNING:
18328 bfd.h not found or unusable, please install binutils development
18329 package if you are a developer or want to help testing aMule" >&5
18330 echo "$as_me: WARNING:
18331 bfd.h not found or unusable, please install binutils development
18332 package if you are a developer or want to help testing aMule" >&2;}
18333 _mule_warning_9=yes
18334 _mule_has_warnings=yes
18341 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18342 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18343 cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h. */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18351 #include <execinfo.h>
18354 main ()
18357 void *bt[1];
18358 int n = backtrace(&bt, 1);
18359 const char **bt_syms = backtrace_symbols(bt, n);
18362 return 0;
18365 _ACEOF
18366 rm -f conftest.$ac_objext conftest$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368 (eval $ac_link) 2>conftest.er1
18369 ac_status=$?
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try='test -z "$ac_c_werror_flag"
18376 || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest$ac_exeext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18391 cat >>confdefs.h <<\_ACEOF
18392 #define HAVE_EXECINFO 1
18393 _ACEOF
18395 echo "$as_me:$LINENO: result: yes" >&5
18396 echo "${ECHO_T}yes" >&6
18398 else
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18403 echo "$as_me:$LINENO: result: no" >&5
18404 echo "${ECHO_T}no" >&6
18407 rm -f conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18411 # Flush standard test results for speeding cache
18412 cat >confcache <<\_ACEOF
18413 # This file is a shell script that caches the results of configure
18414 # tests run on this system so they can be shared between configure
18415 # scripts and configure runs, see configure's option --config-cache.
18416 # It is not useful on other systems. If it contains results you don't
18417 # want to keep, you may remove or edit it.
18419 # config.status only pays attention to the cache file if you give it
18420 # the --recheck option to rerun configure.
18422 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18423 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18424 # following values.
18426 _ACEOF
18428 # The following way of writing the cache mishandles newlines in values,
18429 # but we know of no workaround that is simple, portable, and efficient.
18430 # So, don't put newlines in cache variables' values.
18431 # Ultrix sh set writes to stderr and can't be redirected directly,
18432 # and sets the high bit in the cache file unless we assign to the vars.
18434 (set) 2>&1 |
18435 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18436 *ac_space=\ *)
18437 # `set' does not quote correctly, so add quotes (double-quote
18438 # substitution turns \\\\ into \\, and sed turns \\ into \).
18439 sed -n \
18440 "s/'/'\\\\''/g;
18441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18444 # `set' quotes correctly as required by POSIX, so do not add quotes.
18445 sed -n \
18446 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18448 esac;
18450 sed '
18451 t clear
18452 : clear
18453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18454 t end
18455 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18456 : end' >>confcache
18457 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18458 if test -w $cache_file; then
18459 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18460 cat confcache >$cache_file
18461 else
18462 echo "not updating unwritable cache $cache_file"
18465 rm -f confcache
18467 # Other tests
18468 # aMule options
18471 # Check whether --enable-debug or --disable-debug was given.
18472 if test "${enable_debug+set}" = set; then
18473 enableval="$enable_debug"
18474 USE_DEBUG=${enableval:-yes}
18475 else
18476 USE_DEBUG=yes
18479 if test $USE_DEBUG = yes; then
18481 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18483 MULECFLAGS="$MULECFLAGS -g"
18484 MULECXXFLAGS="$MULECXXFLAGS -g"
18486 if test ${GLIBCXX:-no} = yes; then
18487 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18490 if test ${GCC:-no} = yes; then
18492 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18493 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18497 if test ${SYS:-unknown} = win32; then
18498 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18502 else
18504 if test ${GCC:-no} = yes; then
18506 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18507 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18516 # Check whether --enable-optimize or --disable-optimize was given.
18517 if test "${enable_optimize+set}" = set; then
18518 enableval="$enable_optimize"
18519 USE_OPTIMIZE=${enableval:-no}
18520 else
18521 USE_OPTIMIZE=no
18524 if test $USE_OPTIMIZE = yes; then
18526 MULECFLAGS="$MULECFLAGS -O2"
18527 MULECXXFLAGS="$MULECXXFLAGS -O2"
18533 # Check whether --enable-profile or --disable-profile was given.
18534 if test "${enable_profile+set}" = set; then
18535 enableval="$enable_profile"
18536 USE_PROFILE=${enableval:-no}
18537 else
18538 USE_PROFILE=no
18541 if test $USE_PROFILE = yes; then
18544 MULECFLAGS="$MULECFLAGS -pg"
18545 MULECXXFLAGS="$MULECXXFLAGS -pg"
18547 MULELDFLAGS="$MULELDFLAGS -pg"
18553 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18554 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18555 # Check whether --enable-static or --disable-static was given.
18556 if test "${enable_static+set}" = set; then
18557 enableval="$enable_static"
18558 if test ${enableval:-no} = yes; then
18559 MULELDFLAGS="$MULELDFLAGS -static"
18563 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18564 echo "${ECHO_T}${enableval:-no}" >&6
18566 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18569 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18570 echo "$as_me:$LINENO: checking for docdir" >&5
18571 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18572 if test -z "$docdir"; then
18573 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18576 echo "$as_me:$LINENO: result: $docdir" >&5
18577 echo "${ECHO_T}$docdir" >&6
18579 # Try to set the SVN checkout-date
18580 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18581 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18582 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18583 then
18584 svndate="rev. `cat $srcdir/.svn-revision`"
18585 elif test -d $srcdir/.svn # SVNDATE for svn
18586 then
18587 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18589 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18590 echo "${ECHO_T}${svndate:-None required}" >&6
18591 if test -n "$svndate"; then
18594 cat >>confdefs.h <<_ACEOF
18595 #define SVNDATE "$svndate"
18596 _ACEOF
18598 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18602 SVNDATE=$svndate
18606 # Check whether --with-denoise-level or --without-denoise-level was given.
18607 if test "${with_denoise_level+set}" = set; then
18608 withval="$with_denoise_level"
18612 echo "$as_me:$LINENO: checking denoising level" >&5
18613 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18614 if test ${with_denoise_level:-5} = yes; then
18615 with_denoise_level=5
18618 if test ${with_denoise_level:-5} = no; then
18619 with_denoise_level=0
18622 if test ${with_denoise_level:-5} -gt 4; then
18623 if test "${svndate:+set}" = "set"; then
18624 with_denoise_level=0
18625 else
18626 with_denoise_level=4
18631 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18632 echo "${ECHO_T}$with_denoise_level" >&6
18634 ac_config_commands="$ac_config_commands denoiser"
18640 if test x$WEB = xyes; then
18641 WEB_TRUE=
18642 WEB_FALSE='#'
18643 else
18644 WEB_TRUE='#'
18645 WEB_FALSE=
18650 if test x$ED2K = xyes; then
18651 ED2K_TRUE=
18652 ED2K_FALSE='#'
18653 else
18654 ED2K_TRUE='#'
18655 ED2K_FALSE=
18660 if test x$CAS = xyes; then
18661 CAS_TRUE=
18662 CAS_FALSE='#'
18663 else
18664 CAS_TRUE='#'
18665 CAS_FALSE=
18670 if test x$WXCAS = xyes; then
18671 WXCAS_TRUE=
18672 WXCAS_FALSE='#'
18673 else
18674 WXCAS_TRUE='#'
18675 WXCAS_FALSE=
18680 if test x$ALC = xyes; then
18681 ALC_TRUE=
18682 ALC_FALSE='#'
18683 else
18684 ALC_TRUE='#'
18685 ALC_FALSE=
18690 if test x$ALCC = xyes; then
18691 ALCC_TRUE=
18692 ALCC_FALSE='#'
18693 else
18694 ALCC_TRUE='#'
18695 ALCC_FALSE=
18700 if test x$AMULE_GUI = xyes; then
18701 AMULE_GUI_TRUE=
18702 AMULE_GUI_FALSE='#'
18703 else
18704 AMULE_GUI_TRUE='#'
18705 AMULE_GUI_FALSE=
18710 if test x$AMULE_DAEMON = xyes; then
18711 AMULE_DAEMON_TRUE=
18712 AMULE_DAEMON_FALSE='#'
18713 else
18714 AMULE_DAEMON_TRUE='#'
18715 AMULE_DAEMON_FALSE=
18720 if test x$AMULECMD = xyes; then
18721 COMPILE_CMD_TRUE=
18722 COMPILE_CMD_FALSE='#'
18723 else
18724 COMPILE_CMD_TRUE='#'
18725 COMPILE_CMD_FALSE=
18730 if test x$MONOLITHIC = xyes; then
18731 MONOLITHIC_TRUE=
18732 MONOLITHIC_FALSE='#'
18733 else
18734 MONOLITHIC_TRUE='#'
18735 MONOLITHIC_FALSE=
18740 if test x$XAS = xyes; then
18741 XAS_TRUE=
18742 XAS_FALSE='#'
18743 else
18744 XAS_TRUE='#'
18745 XAS_FALSE=
18750 if test x$ENABLE_UPNP = xyes; then
18751 ENABLE_UPNP_TRUE=
18752 ENABLE_UPNP_FALSE='#'
18753 else
18754 ENABLE_UPNP_TRUE='#'
18755 ENABLE_UPNP_FALSE=
18760 if test x$ENABLE_IP2COUNTRY = xyes; then
18761 ENABLE_IP2COUNTRY_TRUE=
18762 ENABLE_IP2COUNTRY_FALSE='#'
18763 else
18764 ENABLE_IP2COUNTRY_TRUE='#'
18765 ENABLE_IP2COUNTRY_FALSE=
18770 if test x$SYS = xwin32; then
18771 SYS_WIN32_TRUE=
18772 SYS_WIN32_FALSE='#'
18773 else
18774 SYS_WIN32_TRUE='#'
18775 SYS_WIN32_FALSE=
18780 if test x$SYS = xwin32 -a "$RC" != ":"; then
18781 NEED_RC_TRUE=
18782 NEED_RC_FALSE='#'
18783 else
18784 NEED_RC_TRUE='#'
18785 NEED_RC_FALSE=
18790 if test x$SYS = xdarwin; then
18791 NEED_CORESERVICES_TRUE=
18792 NEED_CORESERVICES_FALSE='#'
18793 else
18794 NEED_CORESERVICES_TRUE='#'
18795 NEED_CORESERVICES_FALSE=
18800 if test x$USE_NLS = xyes; then
18801 COMPILE_NLS_TRUE=
18802 COMPILE_NLS_FALSE='#'
18803 else
18804 COMPILE_NLS_TRUE='#'
18805 COMPILE_NLS_FALSE=
18810 if test x$HAVE_FLEX_EXTENDED = xyes; then
18811 GENERATE_FLEX_HEADER_TRUE=
18812 GENERATE_FLEX_HEADER_FALSE='#'
18813 else
18814 GENERATE_FLEX_HEADER_TRUE='#'
18815 GENERATE_FLEX_HEADER_FALSE=
18820 if test x$INSTALL_SKINS = xyes; then
18821 INSTALL_SKINS_TRUE=
18822 INSTALL_SKINS_FALSE='#'
18823 else
18824 INSTALL_SKINS_TRUE='#'
18825 INSTALL_SKINS_FALSE=
18829 # Check for readline library
18830 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18832 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18833 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18834 if test "${vl_cv_lib_readline+set}" = set; then
18835 echo $ECHO_N "(cached) $ECHO_C" >&6
18836 else
18838 ORIG_LIBS="$LIBS"
18839 for readline_lib in readline edit editline; do
18840 for termcap_lib in "" termcap curses ncurses; do
18841 if test -z "$termcap_lib"; then
18842 TRY_LIB="-l$readline_lib"
18843 else
18844 TRY_LIB="-l$readline_lib -l$termcap_lib"
18846 LIBS="$ORIG_LIBS $TRY_LIB"
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h. */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18854 /* Override any gcc2 internal prototype to avoid an error. */
18855 #ifdef __cplusplus
18856 extern "C"
18857 #endif
18858 /* We use char because int might match the return type of a gcc2
18859 builtin and then its argument prototype would still apply. */
18860 char readline ();
18862 main ()
18864 readline ();
18866 return 0;
18868 _ACEOF
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18871 (eval $ac_link) 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest$ac_exeext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 vl_cv_lib_readline="$TRY_LIB"
18892 else
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18897 rm -f conftest.err conftest.$ac_objext \
18898 conftest$ac_exeext conftest.$ac_ext
18899 if test -n "$vl_cv_lib_readline"; then
18900 break
18902 done
18903 if test -n "$vl_cv_lib_readline"; then
18904 break
18906 done
18907 if test -z "$vl_cv_lib_readline"; then
18908 vl_cv_lib_readline="no"
18909 LIBS="$ORIG_LIBS"
18910 READLINE_LIBS=""
18911 else
18912 READLINE_LIBS="$vl_cv_lib_readline"
18916 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18917 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18919 if test "$vl_cv_lib_readline" != "no"; then
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_LIBREADLINE 1
18923 _ACEOF
18927 for ac_header in readline.h readline/readline.h
18929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18931 echo "$as_me:$LINENO: checking for $ac_header" >&5
18932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18938 else
18939 # Is the header compilable?
18940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18942 cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h. */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 $ac_includes_default
18949 #include <$ac_header>
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>conftest.er1
18954 ac_status=$?
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -z "$ac_c_werror_flag"
18961 || test ! -s conftest.err'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_header_compiler=yes
18974 else
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_header_compiler=no
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18982 echo "${ECHO_T}$ac_header_compiler" >&6
18984 # Is the header present?
18985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h. */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 #include <$ac_header>
18994 _ACEOF
18995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } >/dev/null; then
19003 if test -s conftest.err; then
19004 ac_cpp_err=$ac_c_preproc_warn_flag
19005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19006 else
19007 ac_cpp_err=
19009 else
19010 ac_cpp_err=yes
19012 if test -z "$ac_cpp_err"; then
19013 ac_header_preproc=yes
19014 else
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_header_preproc=no
19020 rm -f conftest.err conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19022 echo "${ECHO_T}$ac_header_preproc" >&6
19024 # So? What about this header?
19025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19026 yes:no: )
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19031 ac_header_preproc=yes
19033 no:yes:* )
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19047 cat <<\_ASBOX
19048 ## ------------------------------ ##
19049 ## Report this to admin@amule.org ##
19050 ## ------------------------------ ##
19051 _ASBOX
19053 sed "s/^/$as_me: WARNING: /" >&2
19055 esac
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061 eval "$as_ac_Header=\$ac_header_preproc"
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19070 _ACEOF
19074 done
19076 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19077 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19078 if test "${vl_cv_lib_readline_history+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 else
19082 vl_cv_lib_readline_history="no"
19083 cat >conftest.$ac_ext <<_ACEOF
19084 /* confdefs.h. */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19090 /* Override any gcc2 internal prototype to avoid an error. */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 /* We use char because int might match the return type of a gcc2
19095 builtin and then its argument prototype would still apply. */
19096 char add_history ();
19098 main ()
19100 add_history ();
19102 return 0;
19104 _ACEOF
19105 rm -f conftest.$ac_objext conftest$ac_exeext
19106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19107 (eval $ac_link) 2>conftest.er1
19108 ac_status=$?
19109 grep -v '^ *+' conftest.er1 >conftest.err
19110 rm -f conftest.er1
19111 cat conftest.err >&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -z "$ac_c_werror_flag"
19115 || test ! -s conftest.err'
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; } &&
19121 { ac_try='test -s conftest$ac_exeext'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 vl_cv_lib_readline_history="yes"
19128 else
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19133 rm -f conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19137 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19138 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19139 if test "$vl_cv_lib_readline_history" = "yes"; then
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_READLINE_HISTORY 1
19143 _ACEOF
19147 for ac_header in history.h readline/history.h
19149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19151 echo "$as_me:$LINENO: checking for $ac_header" >&5
19152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19158 else
19159 # Is the header compilable?
19160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h. */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 $ac_includes_default
19169 #include <$ac_header>
19170 _ACEOF
19171 rm -f conftest.$ac_objext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19173 (eval $ac_compile) 2>conftest.er1
19174 ac_status=$?
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try='test -z "$ac_c_werror_flag"
19181 || test ! -s conftest.err'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 ac_header_compiler=yes
19194 else
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_header_compiler=no
19200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19202 echo "${ECHO_T}$ac_header_compiler" >&6
19204 # Is the header present?
19205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19207 cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h. */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 #include <$ac_header>
19214 _ACEOF
19215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } >/dev/null; then
19223 if test -s conftest.err; then
19224 ac_cpp_err=$ac_c_preproc_warn_flag
19225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19226 else
19227 ac_cpp_err=
19229 else
19230 ac_cpp_err=yes
19232 if test -z "$ac_cpp_err"; then
19233 ac_header_preproc=yes
19234 else
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19238 ac_header_preproc=no
19240 rm -f conftest.err conftest.$ac_ext
19241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19242 echo "${ECHO_T}$ac_header_preproc" >&6
19244 # So? What about this header?
19245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19246 yes:no: )
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19251 ac_header_preproc=yes
19253 no:yes:* )
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19267 cat <<\_ASBOX
19268 ## ------------------------------ ##
19269 ## Report this to admin@amule.org ##
19270 ## ------------------------------ ##
19271 _ASBOX
19273 sed "s/^/$as_me: WARNING: /" >&2
19275 esac
19276 echo "$as_me:$LINENO: checking for $ac_header" >&5
19277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281 eval "$as_ac_Header=\$ac_header_preproc"
19283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19288 cat >>confdefs.h <<_ACEOF
19289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19290 _ACEOF
19294 done
19299 LIBS="$ORIG_LIBS"
19303 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19306 # Check whether --enable-ccache or --disable-ccache was given.
19307 if test "${enable_ccache+set}" = set; then
19308 enableval="$enable_ccache"
19313 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19314 if test "${with_ccache_prefix+set}" = set; then
19315 withval="$with_ccache_prefix"
19319 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19320 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19321 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19322 echo "${ECHO_T}${enable_ccache:-no}" >&6
19324 if test ${enable_ccache:-no} = yes; then
19326 echo "$as_me:$LINENO: checking for ccache presence" >&5
19327 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19328 if test -z "$with_ccache_prefix"; then
19330 ccache_full=`which ccache`
19331 with_ccache_prefix=`dirname ${ccache_full}`
19335 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19337 echo "$as_me:$LINENO: result: yes" >&5
19338 echo "${ECHO_T}yes" >&6
19339 CC="$with_ccache_prefix/ccache $CC"
19340 CXX="$with_ccache_prefix/ccache $CXX"
19341 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19343 else
19345 enable_ccache=no
19346 echo "$as_me:$LINENO: result: no" >&5
19347 echo "${ECHO_T}no" >&6
19356 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19358 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19360 if test x$SYS = xwin32; then
19361 ac_config_files="$ac_config_files version.rc"
19365 cat >confcache <<\_ACEOF
19366 # This file is a shell script that caches the results of configure
19367 # tests run on this system so they can be shared between configure
19368 # scripts and configure runs, see configure's option --config-cache.
19369 # It is not useful on other systems. If it contains results you don't
19370 # want to keep, you may remove or edit it.
19372 # config.status only pays attention to the cache file if you give it
19373 # the --recheck option to rerun configure.
19375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19377 # following values.
19379 _ACEOF
19381 # The following way of writing the cache mishandles newlines in values,
19382 # but we know of no workaround that is simple, portable, and efficient.
19383 # So, don't put newlines in cache variables' values.
19384 # Ultrix sh set writes to stderr and can't be redirected directly,
19385 # and sets the high bit in the cache file unless we assign to the vars.
19387 (set) 2>&1 |
19388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19389 *ac_space=\ *)
19390 # `set' does not quote correctly, so add quotes (double-quote
19391 # substitution turns \\\\ into \\, and sed turns \\ into \).
19392 sed -n \
19393 "s/'/'\\\\''/g;
19394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19397 # `set' quotes correctly as required by POSIX, so do not add quotes.
19398 sed -n \
19399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19401 esac;
19403 sed '
19404 t clear
19405 : clear
19406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19407 t end
19408 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19409 : end' >>confcache
19410 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19411 if test -w $cache_file; then
19412 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19413 cat confcache >$cache_file
19414 else
19415 echo "not updating unwritable cache $cache_file"
19418 rm -f confcache
19420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19421 # Let make expand exec_prefix.
19422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19424 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19425 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19426 # trailing colons and then remove the whole line if VPATH becomes empty
19427 # (actually we leave an empty line to preserve line numbers).
19428 if test "x$srcdir" = x.; then
19429 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19430 s/:*\$(srcdir):*/:/;
19431 s/:*\${srcdir}:*/:/;
19432 s/:*@srcdir@:*/:/;
19433 s/^\([^=]*=[ ]*\):*/\1/;
19434 s/:*$//;
19435 s/^[^=]*=[ ]*$//;
19439 DEFS=-DHAVE_CONFIG_H
19441 ac_libobjs=
19442 ac_ltlibobjs=
19443 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19444 # 1. Remove the extension, and $U if already installed.
19445 ac_i=`echo "$ac_i" |
19446 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19447 # 2. Add them.
19448 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19449 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19450 done
19451 LIBOBJS=$ac_libobjs
19453 LTLIBOBJS=$ac_ltlibobjs
19456 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19457 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19458 Usually this means the macro was only invoked conditionally." >&5
19459 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19460 Usually this means the macro was only invoked conditionally." >&2;}
19461 { (exit 1); exit 1; }; }
19463 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19464 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19465 Usually this means the macro was only invoked conditionally." >&5
19466 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19467 Usually this means the macro was only invoked conditionally." >&2;}
19468 { (exit 1); exit 1; }; }
19470 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19471 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19472 Usually this means the macro was only invoked conditionally." >&5
19473 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19474 Usually this means the macro was only invoked conditionally." >&2;}
19475 { (exit 1); exit 1; }; }
19477 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19478 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19479 Usually this means the macro was only invoked conditionally." >&5
19480 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19481 Usually this means the macro was only invoked conditionally." >&2;}
19482 { (exit 1); exit 1; }; }
19484 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19485 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19486 Usually this means the macro was only invoked conditionally." >&5
19487 echo "$as_me: error: conditional \"WEB\" was never defined.
19488 Usually this means the macro was only invoked conditionally." >&2;}
19489 { (exit 1); exit 1; }; }
19491 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19492 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19493 Usually this means the macro was only invoked conditionally." >&5
19494 echo "$as_me: error: conditional \"ED2K\" was never defined.
19495 Usually this means the macro was only invoked conditionally." >&2;}
19496 { (exit 1); exit 1; }; }
19498 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19499 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19500 Usually this means the macro was only invoked conditionally." >&5
19501 echo "$as_me: error: conditional \"CAS\" was never defined.
19502 Usually this means the macro was only invoked conditionally." >&2;}
19503 { (exit 1); exit 1; }; }
19505 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19506 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19507 Usually this means the macro was only invoked conditionally." >&5
19508 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19509 Usually this means the macro was only invoked conditionally." >&2;}
19510 { (exit 1); exit 1; }; }
19512 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19513 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19514 Usually this means the macro was only invoked conditionally." >&5
19515 echo "$as_me: error: conditional \"ALC\" was never defined.
19516 Usually this means the macro was only invoked conditionally." >&2;}
19517 { (exit 1); exit 1; }; }
19519 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19520 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19521 Usually this means the macro was only invoked conditionally." >&5
19522 echo "$as_me: error: conditional \"ALCC\" was never defined.
19523 Usually this means the macro was only invoked conditionally." >&2;}
19524 { (exit 1); exit 1; }; }
19526 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19527 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&5
19529 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19530 Usually this means the macro was only invoked conditionally." >&2;}
19531 { (exit 1); exit 1; }; }
19533 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19534 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&5
19536 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19537 Usually this means the macro was only invoked conditionally." >&2;}
19538 { (exit 1); exit 1; }; }
19540 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19541 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19542 Usually this means the macro was only invoked conditionally." >&5
19543 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19544 Usually this means the macro was only invoked conditionally." >&2;}
19545 { (exit 1); exit 1; }; }
19547 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19548 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19549 Usually this means the macro was only invoked conditionally." >&5
19550 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19551 Usually this means the macro was only invoked conditionally." >&2;}
19552 { (exit 1); exit 1; }; }
19554 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19555 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19556 Usually this means the macro was only invoked conditionally." >&5
19557 echo "$as_me: error: conditional \"XAS\" was never defined.
19558 Usually this means the macro was only invoked conditionally." >&2;}
19559 { (exit 1); exit 1; }; }
19561 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19562 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19563 Usually this means the macro was only invoked conditionally." >&5
19564 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19565 Usually this means the macro was only invoked conditionally." >&2;}
19566 { (exit 1); exit 1; }; }
19568 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19569 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19570 Usually this means the macro was only invoked conditionally." >&5
19571 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19572 Usually this means the macro was only invoked conditionally." >&2;}
19573 { (exit 1); exit 1; }; }
19575 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19576 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19577 Usually this means the macro was only invoked conditionally." >&5
19578 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19579 Usually this means the macro was only invoked conditionally." >&2;}
19580 { (exit 1); exit 1; }; }
19582 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19583 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19584 Usually this means the macro was only invoked conditionally." >&5
19585 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19586 Usually this means the macro was only invoked conditionally." >&2;}
19587 { (exit 1); exit 1; }; }
19589 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19590 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19591 Usually this means the macro was only invoked conditionally." >&5
19592 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19593 Usually this means the macro was only invoked conditionally." >&2;}
19594 { (exit 1); exit 1; }; }
19596 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19597 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19598 Usually this means the macro was only invoked conditionally." >&5
19599 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19600 Usually this means the macro was only invoked conditionally." >&2;}
19601 { (exit 1); exit 1; }; }
19603 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19604 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19605 Usually this means the macro was only invoked conditionally." >&5
19606 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19607 Usually this means the macro was only invoked conditionally." >&2;}
19608 { (exit 1); exit 1; }; }
19610 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19611 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19612 Usually this means the macro was only invoked conditionally." >&5
19613 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19614 Usually this means the macro was only invoked conditionally." >&2;}
19615 { (exit 1); exit 1; }; }
19618 : ${CONFIG_STATUS=./config.status}
19619 ac_clean_files_save=$ac_clean_files
19620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19623 cat >$CONFIG_STATUS <<_ACEOF
19624 #! $SHELL
19625 # Generated by $as_me.
19626 # Run this file to recreate the current configuration.
19627 # Compiler output produced by configure, useful for debugging
19628 # configure, is in config.log if it exists.
19630 debug=false
19631 ac_cs_recheck=false
19632 ac_cs_silent=false
19633 SHELL=\${CONFIG_SHELL-$SHELL}
19634 _ACEOF
19636 cat >>$CONFIG_STATUS <<\_ACEOF
19637 ## --------------------- ##
19638 ## M4sh Initialization. ##
19639 ## --------------------- ##
19641 # Be Bourne compatible
19642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19643 emulate sh
19644 NULLCMD=:
19645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19646 # is contrary to our usage. Disable this feature.
19647 alias -g '${1+"$@"}'='"$@"'
19648 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19649 set -o posix
19651 DUALCASE=1; export DUALCASE # for MKS sh
19653 # Support unset when possible.
19654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19655 as_unset=unset
19656 else
19657 as_unset=false
19661 # Work around bugs in pre-3.0 UWIN ksh.
19662 $as_unset ENV MAIL MAILPATH
19663 PS1='$ '
19664 PS2='> '
19665 PS4='+ '
19667 # NLS nuisances.
19668 for as_var in \
19669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19671 LC_TELEPHONE LC_TIME
19673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19674 eval $as_var=C; export $as_var
19675 else
19676 $as_unset $as_var
19678 done
19680 # Required to use basename.
19681 if expr a : '\(a\)' >/dev/null 2>&1; then
19682 as_expr=expr
19683 else
19684 as_expr=false
19687 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19688 as_basename=basename
19689 else
19690 as_basename=false
19694 # Name of the executable.
19695 as_me=`$as_basename "$0" ||
19696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19697 X"$0" : 'X\(//\)$' \| \
19698 X"$0" : 'X\(/\)$' \| \
19699 . : '\(.\)' 2>/dev/null ||
19700 echo X/"$0" |
19701 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19702 /^X\/\(\/\/\)$/{ s//\1/; q; }
19703 /^X\/\(\/\).*/{ s//\1/; q; }
19704 s/.*/./; q'`
19707 # PATH needs CR, and LINENO needs CR and PATH.
19708 # Avoid depending upon Character Ranges.
19709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19712 as_cr_digits='0123456789'
19713 as_cr_alnum=$as_cr_Letters$as_cr_digits
19715 # The user is always right.
19716 if test "${PATH_SEPARATOR+set}" != set; then
19717 echo "#! /bin/sh" >conf$$.sh
19718 echo "exit 0" >>conf$$.sh
19719 chmod +x conf$$.sh
19720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19721 PATH_SEPARATOR=';'
19722 else
19723 PATH_SEPARATOR=:
19725 rm -f conf$$.sh
19729 as_lineno_1=$LINENO
19730 as_lineno_2=$LINENO
19731 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19732 test "x$as_lineno_1" != "x$as_lineno_2" &&
19733 test "x$as_lineno_3" = "x$as_lineno_2" || {
19734 # Find who we are. Look in the path if we contain no path at all
19735 # relative or not.
19736 case $0 in
19737 *[\\/]* ) as_myself=$0 ;;
19738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19739 for as_dir in $PATH
19741 IFS=$as_save_IFS
19742 test -z "$as_dir" && as_dir=.
19743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19744 done
19747 esac
19748 # We did not find ourselves, most probably we were run as `sh COMMAND'
19749 # in which case we are not to be found in the path.
19750 if test "x$as_myself" = x; then
19751 as_myself=$0
19753 if test ! -f "$as_myself"; then
19754 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19755 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19756 { (exit 1); exit 1; }; }
19758 case $CONFIG_SHELL in
19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19763 IFS=$as_save_IFS
19764 test -z "$as_dir" && as_dir=.
19765 for as_base in sh bash ksh sh5; do
19766 case $as_dir in
19768 if ("$as_dir/$as_base" -c '
19769 as_lineno_1=$LINENO
19770 as_lineno_2=$LINENO
19771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19772 test "x$as_lineno_1" != "x$as_lineno_2" &&
19773 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19774 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19775 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19776 CONFIG_SHELL=$as_dir/$as_base
19777 export CONFIG_SHELL
19778 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19779 fi;;
19780 esac
19781 done
19782 done
19784 esac
19786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19787 # uniformly replaced by the line number. The first 'sed' inserts a
19788 # line-number line before each line; the second 'sed' does the real
19789 # work. The second script uses 'N' to pair each line-number line
19790 # with the numbered line, and appends trailing '-' during
19791 # substitution so that $LINENO is not a special case at line end.
19792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19793 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19794 sed '=' <$as_myself |
19795 sed '
19797 s,$,-,
19798 : loop
19799 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19800 t loop
19801 s,-$,,
19802 s,^['$as_cr_digits']*\n,,
19803 ' >$as_me.lineno &&
19804 chmod +x $as_me.lineno ||
19805 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19806 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19807 { (exit 1); exit 1; }; }
19809 # Don't try to exec as it changes $[0], causing all sort of problems
19810 # (the dirname of $[0] is not the place where we might find the
19811 # original and so on. Autoconf is especially sensible to this).
19812 . ./$as_me.lineno
19813 # Exit status is that of the last command.
19814 exit
19818 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19819 *c*,-n*) ECHO_N= ECHO_C='
19820 ' ECHO_T=' ' ;;
19821 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19822 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19823 esac
19825 if expr a : '\(a\)' >/dev/null 2>&1; then
19826 as_expr=expr
19827 else
19828 as_expr=false
19831 rm -f conf$$ conf$$.exe conf$$.file
19832 echo >conf$$.file
19833 if ln -s conf$$.file conf$$ 2>/dev/null; then
19834 # We could just check for DJGPP; but this test a) works b) is more generic
19835 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19836 if test -f conf$$.exe; then
19837 # Don't use ln at all; we don't have any links
19838 as_ln_s='cp -p'
19839 else
19840 as_ln_s='ln -s'
19842 elif ln conf$$.file conf$$ 2>/dev/null; then
19843 as_ln_s=ln
19844 else
19845 as_ln_s='cp -p'
19847 rm -f conf$$ conf$$.exe conf$$.file
19849 if mkdir -p . 2>/dev/null; then
19850 as_mkdir_p=:
19851 else
19852 test -d ./-p && rmdir ./-p
19853 as_mkdir_p=false
19856 as_executable_p="test -f"
19858 # Sed expression to map a string onto a valid CPP name.
19859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19861 # Sed expression to map a string onto a valid variable name.
19862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19865 # IFS
19866 # We need space, tab and new line, in precisely that order.
19867 as_nl='
19869 IFS=" $as_nl"
19871 # CDPATH.
19872 $as_unset CDPATH
19874 exec 6>&1
19876 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19877 # report actual input values of CONFIG_FILES etc. instead of their
19878 # values after options handling. Logging --version etc. is OK.
19879 exec 5>>config.log
19881 echo
19882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19883 ## Running $as_me. ##
19884 _ASBOX
19885 } >&5
19886 cat >&5 <<_CSEOF
19888 This file was extended by aMule $as_me SVN, which was
19889 generated by GNU Autoconf 2.59. Invocation command line was
19891 CONFIG_FILES = $CONFIG_FILES
19892 CONFIG_HEADERS = $CONFIG_HEADERS
19893 CONFIG_LINKS = $CONFIG_LINKS
19894 CONFIG_COMMANDS = $CONFIG_COMMANDS
19895 $ $0 $@
19897 _CSEOF
19898 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19899 echo >&5
19900 _ACEOF
19902 # Files that config.status was made for.
19903 if test -n "$ac_config_files"; then
19904 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19907 if test -n "$ac_config_headers"; then
19908 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19911 if test -n "$ac_config_links"; then
19912 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19915 if test -n "$ac_config_commands"; then
19916 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19919 cat >>$CONFIG_STATUS <<\_ACEOF
19921 ac_cs_usage="\
19922 \`$as_me' instantiates files from templates according to the
19923 current configuration.
19925 Usage: $0 [OPTIONS] [FILE]...
19927 -h, --help print this help, then exit
19928 -V, --version print version number, then exit
19929 -q, --quiet do not print progress messages
19930 -d, --debug don't remove temporary files
19931 --recheck update $as_me by reconfiguring in the same conditions
19932 --file=FILE[:TEMPLATE]
19933 instantiate the configuration file FILE
19934 --header=FILE[:TEMPLATE]
19935 instantiate the configuration header FILE
19937 Configuration files:
19938 $config_files
19940 Configuration headers:
19941 $config_headers
19943 Configuration commands:
19944 $config_commands
19946 Report bugs to <bug-autoconf@gnu.org>."
19947 _ACEOF
19949 cat >>$CONFIG_STATUS <<_ACEOF
19950 ac_cs_version="\\
19951 aMule config.status SVN
19952 configured by $0, generated by GNU Autoconf 2.59,
19953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19955 Copyright (C) 2003 Free Software Foundation, Inc.
19956 This config.status script is free software; the Free Software Foundation
19957 gives unlimited permission to copy, distribute and modify it."
19958 srcdir=$srcdir
19959 INSTALL="$INSTALL"
19960 _ACEOF
19962 cat >>$CONFIG_STATUS <<\_ACEOF
19963 # If no file are specified by the user, then we need to provide default
19964 # value. By we need to know if files were specified by the user.
19965 ac_need_defaults=:
19966 while test $# != 0
19968 case $1 in
19969 --*=*)
19970 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19971 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19972 ac_shift=:
19975 ac_option=$1
19976 ac_optarg=$2
19977 ac_shift=shift
19979 *) # This is not an option, so the user has probably given explicit
19980 # arguments.
19981 ac_option=$1
19982 ac_need_defaults=false;;
19983 esac
19985 case $ac_option in
19986 # Handling of the options.
19987 _ACEOF
19988 cat >>$CONFIG_STATUS <<\_ACEOF
19989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19990 ac_cs_recheck=: ;;
19991 --version | --vers* | -V )
19992 echo "$ac_cs_version"; exit 0 ;;
19993 --he | --h)
19994 # Conflict between --help and --header
19995 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19996 Try \`$0 --help' for more information." >&5
19997 echo "$as_me: error: ambiguous option: $1
19998 Try \`$0 --help' for more information." >&2;}
19999 { (exit 1); exit 1; }; };;
20000 --help | --hel | -h )
20001 echo "$ac_cs_usage"; exit 0 ;;
20002 --debug | --d* | -d )
20003 debug=: ;;
20004 --file | --fil | --fi | --f )
20005 $ac_shift
20006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20007 ac_need_defaults=false;;
20008 --header | --heade | --head | --hea )
20009 $ac_shift
20010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20011 ac_need_defaults=false;;
20012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20014 ac_cs_silent=: ;;
20016 # This is an error.
20017 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20018 Try \`$0 --help' for more information." >&5
20019 echo "$as_me: error: unrecognized option: $1
20020 Try \`$0 --help' for more information." >&2;}
20021 { (exit 1); exit 1; }; } ;;
20023 *) ac_config_targets="$ac_config_targets $1" ;;
20025 esac
20026 shift
20027 done
20029 ac_configure_extra_args=
20031 if $ac_cs_silent; then
20032 exec 6>/dev/null
20033 ac_configure_extra_args="$ac_configure_extra_args --silent"
20036 _ACEOF
20037 cat >>$CONFIG_STATUS <<_ACEOF
20038 if \$ac_cs_recheck; then
20039 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20040 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20043 _ACEOF
20045 cat >>$CONFIG_STATUS <<_ACEOF
20047 # INIT-COMMANDS section.
20050 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20051 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20052 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20053 # from automake.
20054 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20055 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20056 LINGUAS="${LINGUAS-%UNSET%}"
20058 denoiserlevel=$with_denoise_level
20060 _ACEOF
20064 cat >>$CONFIG_STATUS <<\_ACEOF
20065 for ac_config_target in $ac_config_targets
20067 case "$ac_config_target" in
20068 # Handling of arguments.
20069 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20070 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20071 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20072 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20073 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20074 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20075 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20076 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20077 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20078 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20079 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20080 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20081 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20082 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20083 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20084 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20085 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20086 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20087 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20088 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20089 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20090 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20091 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20092 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20093 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20094 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20095 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20096 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20097 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20098 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20099 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20100 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20101 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20102 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20103 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20104 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20105 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20106 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20107 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20108 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20109 { (exit 1); exit 1; }; };;
20110 esac
20111 done
20113 # If the user did not use the arguments to specify the items to instantiate,
20114 # then the envvar interface is used. Set only those that are not.
20115 # We use the long form for the default assignment because of an extremely
20116 # bizarre bug on SunOS 4.1.3.
20117 if $ac_need_defaults; then
20118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20123 # Have a temporary directory for convenience. Make it in the build tree
20124 # simply because there is no reason to put it here, and in addition,
20125 # creating and moving files from /tmp can sometimes cause problems.
20126 # Create a temporary directory, and hook for its removal unless debugging.
20127 $debug ||
20129 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20130 trap '{ (exit 1); exit 1; }' 1 2 13 15
20133 # Create a (secure) tmp directory for tmp files.
20136 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20137 test -n "$tmp" && test -d "$tmp"
20138 } ||
20140 tmp=./confstat$$-$RANDOM
20141 (umask 077 && mkdir $tmp)
20142 } ||
20144 echo "$me: cannot create a temporary directory in ." >&2
20145 { (exit 1); exit 1; }
20148 _ACEOF
20150 cat >>$CONFIG_STATUS <<_ACEOF
20153 # CONFIG_FILES section.
20156 # No need to generate the scripts if there are no CONFIG_FILES.
20157 # This happens for instance when ./config.status config.h
20158 if test -n "\$CONFIG_FILES"; then
20159 # Protect against being on the right side of a sed subst in config.status.
20160 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20161 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20162 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20163 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20164 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20165 s,@SHELL@,$SHELL,;t t
20166 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20167 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20168 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20169 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20170 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20171 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20172 s,@exec_prefix@,$exec_prefix,;t t
20173 s,@prefix@,$prefix,;t t
20174 s,@program_transform_name@,$program_transform_name,;t t
20175 s,@bindir@,$bindir,;t t
20176 s,@sbindir@,$sbindir,;t t
20177 s,@libexecdir@,$libexecdir,;t t
20178 s,@datadir@,$datadir,;t t
20179 s,@sysconfdir@,$sysconfdir,;t t
20180 s,@sharedstatedir@,$sharedstatedir,;t t
20181 s,@localstatedir@,$localstatedir,;t t
20182 s,@libdir@,$libdir,;t t
20183 s,@includedir@,$includedir,;t t
20184 s,@oldincludedir@,$oldincludedir,;t t
20185 s,@infodir@,$infodir,;t t
20186 s,@mandir@,$mandir,;t t
20187 s,@build_alias@,$build_alias,;t t
20188 s,@host_alias@,$host_alias,;t t
20189 s,@target_alias@,$target_alias,;t t
20190 s,@DEFS@,$DEFS,;t t
20191 s,@ECHO_C@,$ECHO_C,;t t
20192 s,@ECHO_N@,$ECHO_N,;t t
20193 s,@ECHO_T@,$ECHO_T,;t t
20194 s,@LIBS@,$LIBS,;t t
20195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20198 s,@CYGPATH_W@,$CYGPATH_W,;t t
20199 s,@PACKAGE@,$PACKAGE,;t t
20200 s,@VERSION@,$VERSION,;t t
20201 s,@ACLOCAL@,$ACLOCAL,;t t
20202 s,@AUTOCONF@,$AUTOCONF,;t t
20203 s,@AUTOMAKE@,$AUTOMAKE,;t t
20204 s,@AUTOHEADER@,$AUTOHEADER,;t t
20205 s,@MAKEINFO@,$MAKEINFO,;t t
20206 s,@install_sh@,$install_sh,;t t
20207 s,@STRIP@,$STRIP,;t t
20208 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20209 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20210 s,@mkdir_p@,$mkdir_p,;t t
20211 s,@AWK@,$AWK,;t t
20212 s,@SET_MAKE@,$SET_MAKE,;t t
20213 s,@am__leading_dot@,$am__leading_dot,;t t
20214 s,@AMTAR@,$AMTAR,;t t
20215 s,@am__tar@,$am__tar,;t t
20216 s,@am__untar@,$am__untar,;t t
20217 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20218 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20219 s,@MAINT@,$MAINT,;t t
20220 s,@build@,$build,;t t
20221 s,@build_cpu@,$build_cpu,;t t
20222 s,@build_vendor@,$build_vendor,;t t
20223 s,@build_os@,$build_os,;t t
20224 s,@host@,$host,;t t
20225 s,@host_cpu@,$host_cpu,;t t
20226 s,@host_vendor@,$host_vendor,;t t
20227 s,@host_os@,$host_os,;t t
20228 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20229 s,@X11LIBS@,$X11LIBS,;t t
20230 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20231 s,@MULECFLAGS@,$MULECFLAGS,;t t
20232 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20233 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20234 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20235 s,@CXX@,$CXX,;t t
20236 s,@CXXFLAGS@,$CXXFLAGS,;t t
20237 s,@LDFLAGS@,$LDFLAGS,;t t
20238 s,@CPPFLAGS@,$CPPFLAGS,;t t
20239 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20240 s,@EXEEXT@,$EXEEXT,;t t
20241 s,@OBJEXT@,$OBJEXT,;t t
20242 s,@DEPDIR@,$DEPDIR,;t t
20243 s,@am__include@,$am__include,;t t
20244 s,@am__quote@,$am__quote,;t t
20245 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20246 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20247 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20248 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20249 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20250 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20251 s,@CXXCPP@,$CXXCPP,;t t
20252 s,@CC@,$CC,;t t
20253 s,@CFLAGS@,$CFLAGS,;t t
20254 s,@ac_ct_CC@,$ac_ct_CC,;t t
20255 s,@CCDEPMODE@,$CCDEPMODE,;t t
20256 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20257 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20258 s,@CPP@,$CPP,;t t
20259 s,@BUILD_CC@,$BUILD_CC,;t t
20260 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20261 s,@EXEEXT@,$EXEEXT,;t t
20262 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20263 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20264 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20265 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20266 s,@EGREP@,$EGREP,;t t
20267 s,@LEX@,$LEX,;t t
20268 s,@LEXLIB@,$LEXLIB,;t t
20269 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20270 s,@RANLIB@,$RANLIB,;t t
20271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20272 s,@YACC@,$YACC,;t t
20273 s,@AR@,$AR,;t t
20274 s,@ac_ct_AR@,$ac_ct_AR,;t t
20275 s,@LD@,$LD,;t t
20276 s,@ac_ct_LD@,$ac_ct_LD,;t t
20277 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20278 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20279 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20280 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20281 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20282 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20283 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20284 s,@CAS_DEFS@,$CAS_DEFS,;t t
20285 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20286 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20287 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20288 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20289 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20290 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20291 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20292 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20293 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20294 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20295 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20296 s,@WX_LIBS@,$WX_LIBS,;t t
20297 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20298 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20299 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20300 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20301 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20302 s,@WX_UNICODE@,$WX_UNICODE,;t t
20303 s,@WX_DEBUG@,$WX_DEBUG,;t t
20304 s,@WX_SHARED@,$WX_SHARED,;t t
20305 s,@WX_PORT@,$WX_PORT,;t t
20306 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20307 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20308 s,@RC@,$RC,;t t
20309 s,@RCFLAGS@,$RCFLAGS,;t t
20310 s,@ac_ct_RC@,$ac_ct_RC,;t t
20311 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20312 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20313 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20314 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20315 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20316 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20317 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20318 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20319 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20320 s,@ALLOCA@,$ALLOCA,;t t
20321 s,@LIBOBJS@,$LIBOBJS,;t t
20322 s,@POW_LIB@,$POW_LIB,;t t
20323 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20324 s,@MSGFMT@,$MSGFMT,;t t
20325 s,@GMSGFMT@,$GMSGFMT,;t t
20326 s,@XGETTEXT@,$XGETTEXT,;t t
20327 s,@MSGMERGE@,$MSGMERGE,;t t
20328 s,@GLIBC21@,$GLIBC21,;t t
20329 s,@LIBICONV@,$LIBICONV,;t t
20330 s,@LTLIBICONV@,$LTLIBICONV,;t t
20331 s,@INTLBISON@,$INTLBISON,;t t
20332 s,@USE_NLS@,$USE_NLS,;t t
20333 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20334 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20335 s,@CATOBJEXT@,$CATOBJEXT,;t t
20336 s,@INTLOBJS@,$INTLOBJS,;t t
20337 s,@DATADIRNAME@,$DATADIRNAME,;t t
20338 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20339 s,@GENCAT@,$GENCAT,;t t
20340 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20341 s,@INTLLIBS@,$INTLLIBS,;t t
20342 s,@LIBINTL@,$LIBINTL,;t t
20343 s,@LTLIBINTL@,$LTLIBINTL,;t t
20344 s,@POSUB@,$POSUB,;t t
20345 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20346 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20347 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20348 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20349 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20350 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20351 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20352 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20353 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20354 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20355 s,@INCINTL@,$INCINTL,;t t
20356 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20357 s,@BFD_LIBS@,$BFD_LIBS,;t t
20358 s,@docdir@,$docdir,;t t
20359 s,@SVNDATE@,$SVNDATE,;t t
20360 s,@WEB_TRUE@,$WEB_TRUE,;t t
20361 s,@WEB_FALSE@,$WEB_FALSE,;t t
20362 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20363 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20364 s,@CAS_TRUE@,$CAS_TRUE,;t t
20365 s,@CAS_FALSE@,$CAS_FALSE,;t t
20366 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20367 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20368 s,@ALC_TRUE@,$ALC_TRUE,;t t
20369 s,@ALC_FALSE@,$ALC_FALSE,;t t
20370 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20371 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20372 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20373 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20374 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20375 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20376 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20377 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20378 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20379 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20380 s,@XAS_TRUE@,$XAS_TRUE,;t t
20381 s,@XAS_FALSE@,$XAS_FALSE,;t t
20382 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20383 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20384 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20385 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20386 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20387 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20388 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20389 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20390 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20391 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20392 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20393 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20394 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20395 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20396 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20397 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20398 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20399 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20400 CEOF
20402 _ACEOF
20404 cat >>$CONFIG_STATUS <<\_ACEOF
20405 # Split the substitutions into bite-sized pieces for seds with
20406 # small command number limits, like on Digital OSF/1 and HP-UX.
20407 ac_max_sed_lines=48
20408 ac_sed_frag=1 # Number of current file.
20409 ac_beg=1 # First line for current file.
20410 ac_end=$ac_max_sed_lines # Line after last line for current file.
20411 ac_more_lines=:
20412 ac_sed_cmds=
20413 while $ac_more_lines; do
20414 if test $ac_beg -gt 1; then
20415 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20416 else
20417 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20419 if test ! -s $tmp/subs.frag; then
20420 ac_more_lines=false
20421 else
20422 # The purpose of the label and of the branching condition is to
20423 # speed up the sed processing (if there are no `@' at all, there
20424 # is no need to browse any of the substitutions).
20425 # These are the two extra sed commands mentioned above.
20426 (echo ':t
20427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20428 if test -z "$ac_sed_cmds"; then
20429 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20430 else
20431 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20433 ac_sed_frag=`expr $ac_sed_frag + 1`
20434 ac_beg=$ac_end
20435 ac_end=`expr $ac_end + $ac_max_sed_lines`
20437 done
20438 if test -z "$ac_sed_cmds"; then
20439 ac_sed_cmds=cat
20441 fi # test -n "$CONFIG_FILES"
20443 _ACEOF
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20445 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20446 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20447 case $ac_file in
20448 - | *:- | *:-:* ) # input from stdin
20449 cat >$tmp/stdin
20450 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20452 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20454 * ) ac_file_in=$ac_file.in ;;
20455 esac
20457 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20458 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20460 X"$ac_file" : 'X\(//\)[^/]' \| \
20461 X"$ac_file" : 'X\(//\)$' \| \
20462 X"$ac_file" : 'X\(/\)' \| \
20463 . : '\(.\)' 2>/dev/null ||
20464 echo X"$ac_file" |
20465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20467 /^X\(\/\/\)$/{ s//\1/; q; }
20468 /^X\(\/\).*/{ s//\1/; q; }
20469 s/.*/./; q'`
20470 { if $as_mkdir_p; then
20471 mkdir -p "$ac_dir"
20472 else
20473 as_dir="$ac_dir"
20474 as_dirs=
20475 while test ! -d "$as_dir"; do
20476 as_dirs="$as_dir $as_dirs"
20477 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20479 X"$as_dir" : 'X\(//\)[^/]' \| \
20480 X"$as_dir" : 'X\(//\)$' \| \
20481 X"$as_dir" : 'X\(/\)' \| \
20482 . : '\(.\)' 2>/dev/null ||
20483 echo X"$as_dir" |
20484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20486 /^X\(\/\/\)$/{ s//\1/; q; }
20487 /^X\(\/\).*/{ s//\1/; q; }
20488 s/.*/./; q'`
20489 done
20490 test ! -n "$as_dirs" || mkdir $as_dirs
20491 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20493 { (exit 1); exit 1; }; }; }
20495 ac_builddir=.
20497 if test "$ac_dir" != .; then
20498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20499 # A "../" for each directory in $ac_dir_suffix.
20500 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20501 else
20502 ac_dir_suffix= ac_top_builddir=
20505 case $srcdir in
20506 .) # No --srcdir option. We are building in place.
20507 ac_srcdir=.
20508 if test -z "$ac_top_builddir"; then
20509 ac_top_srcdir=.
20510 else
20511 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20512 fi ;;
20513 [\\/]* | ?:[\\/]* ) # Absolute path.
20514 ac_srcdir=$srcdir$ac_dir_suffix;
20515 ac_top_srcdir=$srcdir ;;
20516 *) # Relative path.
20517 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20518 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20519 esac
20521 # Do not use `cd foo && pwd` to compute absolute paths, because
20522 # the directories may not exist.
20523 case `pwd` in
20524 .) ac_abs_builddir="$ac_dir";;
20526 case "$ac_dir" in
20527 .) ac_abs_builddir=`pwd`;;
20528 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20529 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20530 esac;;
20531 esac
20532 case $ac_abs_builddir in
20533 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20535 case ${ac_top_builddir}. in
20536 .) ac_abs_top_builddir=$ac_abs_builddir;;
20537 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20538 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20539 esac;;
20540 esac
20541 case $ac_abs_builddir in
20542 .) ac_abs_srcdir=$ac_srcdir;;
20544 case $ac_srcdir in
20545 .) ac_abs_srcdir=$ac_abs_builddir;;
20546 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20547 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20548 esac;;
20549 esac
20550 case $ac_abs_builddir in
20551 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20553 case $ac_top_srcdir in
20554 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20555 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20556 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20557 esac;;
20558 esac
20561 case $INSTALL in
20562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20563 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20564 esac
20566 if test x"$ac_file" != x-; then
20567 { echo "$as_me:$LINENO: creating $ac_file" >&5
20568 echo "$as_me: creating $ac_file" >&6;}
20569 rm -f "$ac_file"
20571 # Let's still pretend it is `configure' which instantiates (i.e., don't
20572 # use $as_me), people would be surprised to read:
20573 # /* config.h. Generated by config.status. */
20574 if test x"$ac_file" = x-; then
20575 configure_input=
20576 else
20577 configure_input="$ac_file. "
20579 configure_input=$configure_input"Generated from `echo $ac_file_in |
20580 sed 's,.*/,,'` by configure."
20582 # First look for the input files in the build tree, otherwise in the
20583 # src tree.
20584 ac_file_inputs=`IFS=:
20585 for f in $ac_file_in; do
20586 case $f in
20587 -) echo $tmp/stdin ;;
20588 [\\/$]*)
20589 # Absolute (can't be DOS-style, as IFS=:)
20590 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20591 echo "$as_me: error: cannot find input file: $f" >&2;}
20592 { (exit 1); exit 1; }; }
20593 echo "$f";;
20594 *) # Relative
20595 if test -f "$f"; then
20596 # Build tree
20597 echo "$f"
20598 elif test -f "$srcdir/$f"; then
20599 # Source tree
20600 echo "$srcdir/$f"
20601 else
20602 # /dev/null tree
20603 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20604 echo "$as_me: error: cannot find input file: $f" >&2;}
20605 { (exit 1); exit 1; }; }
20606 fi;;
20607 esac
20608 done` || { (exit 1); exit 1; }
20609 _ACEOF
20610 cat >>$CONFIG_STATUS <<_ACEOF
20611 sed "$ac_vpsub
20612 $extrasub
20613 _ACEOF
20614 cat >>$CONFIG_STATUS <<\_ACEOF
20616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20617 s,@configure_input@,$configure_input,;t t
20618 s,@srcdir@,$ac_srcdir,;t t
20619 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20620 s,@top_srcdir@,$ac_top_srcdir,;t t
20621 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20622 s,@builddir@,$ac_builddir,;t t
20623 s,@abs_builddir@,$ac_abs_builddir,;t t
20624 s,@top_builddir@,$ac_top_builddir,;t t
20625 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20626 s,@INSTALL@,$ac_INSTALL,;t t
20627 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20628 rm -f $tmp/stdin
20629 if test x"$ac_file" != x-; then
20630 mv $tmp/out $ac_file
20631 else
20632 cat $tmp/out
20633 rm -f $tmp/out
20636 done
20637 _ACEOF
20638 cat >>$CONFIG_STATUS <<\_ACEOF
20641 # CONFIG_HEADER section.
20644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20647 # ac_d sets the value in "#define NAME VALUE" lines.
20648 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20649 ac_dB='[ ].*$,\1#\2'
20650 ac_dC=' '
20651 ac_dD=',;t'
20652 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20653 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20654 ac_uB='$,\1#\2define\3'
20655 ac_uC=' '
20656 ac_uD=',;t'
20658 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20660 case $ac_file in
20661 - | *:- | *:-:* ) # input from stdin
20662 cat >$tmp/stdin
20663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20667 * ) ac_file_in=$ac_file.in ;;
20668 esac
20670 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20671 echo "$as_me: creating $ac_file" >&6;}
20673 # First look for the input files in the build tree, otherwise in the
20674 # src tree.
20675 ac_file_inputs=`IFS=:
20676 for f in $ac_file_in; do
20677 case $f in
20678 -) echo $tmp/stdin ;;
20679 [\\/$]*)
20680 # Absolute (can't be DOS-style, as IFS=:)
20681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20682 echo "$as_me: error: cannot find input file: $f" >&2;}
20683 { (exit 1); exit 1; }; }
20684 # Do quote $f, to prevent DOS paths from being IFS'd.
20685 echo "$f";;
20686 *) # Relative
20687 if test -f "$f"; then
20688 # Build tree
20689 echo "$f"
20690 elif test -f "$srcdir/$f"; then
20691 # Source tree
20692 echo "$srcdir/$f"
20693 else
20694 # /dev/null tree
20695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20696 echo "$as_me: error: cannot find input file: $f" >&2;}
20697 { (exit 1); exit 1; }; }
20698 fi;;
20699 esac
20700 done` || { (exit 1); exit 1; }
20701 # Remove the trailing spaces.
20702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20704 _ACEOF
20706 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20707 # `conftest.undefs', that substitutes the proper values into
20708 # config.h.in to produce config.h. The first handles `#define'
20709 # templates, and the second `#undef' templates.
20710 # And first: Protect against being on the right side of a sed subst in
20711 # config.status. Protect against being in an unquoted here document
20712 # in config.status.
20713 rm -f conftest.defines conftest.undefs
20714 # Using a here document instead of a string reduces the quoting nightmare.
20715 # Putting comments in sed scripts is not portable.
20717 # `end' is used to avoid that the second main sed command (meant for
20718 # 0-ary CPP macros) applies to n-ary macro definitions.
20719 # See the Autoconf documentation for `clear'.
20720 cat >confdef2sed.sed <<\_ACEOF
20721 s/[\\&,]/\\&/g
20722 s,[\\$`],\\&,g
20723 t clear
20724 : clear
20725 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20726 t end
20727 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20728 : end
20729 _ACEOF
20730 # If some macros were called several times there might be several times
20731 # the same #defines, which is useless. Nevertheless, we may not want to
20732 # sort them, since we want the *last* AC-DEFINE to be honored.
20733 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20734 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20735 rm -f confdef2sed.sed
20737 # This sed command replaces #undef with comments. This is necessary, for
20738 # example, in the case of _POSIX_SOURCE, which is predefined and required
20739 # on some systems where configure will not decide to define it.
20740 cat >>conftest.undefs <<\_ACEOF
20741 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20742 _ACEOF
20744 # Break up conftest.defines because some shells have a limit on the size
20745 # of here documents, and old seds have small limits too (100 cmds).
20746 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20747 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20748 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20749 echo ' :' >>$CONFIG_STATUS
20750 rm -f conftest.tail
20751 while grep . conftest.defines >/dev/null
20753 # Write a limited-size here document to $tmp/defines.sed.
20754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20755 # Speed up: don't consider the non `#define' lines.
20756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20757 # Work around the forget-to-reset-the-flag bug.
20758 echo 't clr' >>$CONFIG_STATUS
20759 echo ': clr' >>$CONFIG_STATUS
20760 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20761 echo 'CEOF
20762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20763 rm -f $tmp/in
20764 mv $tmp/out $tmp/in
20765 ' >>$CONFIG_STATUS
20766 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20767 rm -f conftest.defines
20768 mv conftest.tail conftest.defines
20769 done
20770 rm -f conftest.defines
20771 echo ' fi # grep' >>$CONFIG_STATUS
20772 echo >>$CONFIG_STATUS
20774 # Break up conftest.undefs because some shells have a limit on the size
20775 # of here documents, and old seds have small limits too (100 cmds).
20776 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20777 rm -f conftest.tail
20778 while grep . conftest.undefs >/dev/null
20780 # Write a limited-size here document to $tmp/undefs.sed.
20781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20782 # Speed up: don't consider the non `#undef'
20783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20784 # Work around the forget-to-reset-the-flag bug.
20785 echo 't clr' >>$CONFIG_STATUS
20786 echo ': clr' >>$CONFIG_STATUS
20787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20788 echo 'CEOF
20789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20790 rm -f $tmp/in
20791 mv $tmp/out $tmp/in
20792 ' >>$CONFIG_STATUS
20793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20794 rm -f conftest.undefs
20795 mv conftest.tail conftest.undefs
20796 done
20797 rm -f conftest.undefs
20799 cat >>$CONFIG_STATUS <<\_ACEOF
20800 # Let's still pretend it is `configure' which instantiates (i.e., don't
20801 # use $as_me), people would be surprised to read:
20802 # /* config.h. Generated by config.status. */
20803 if test x"$ac_file" = x-; then
20804 echo "/* Generated by configure. */" >$tmp/config.h
20805 else
20806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20808 cat $tmp/in >>$tmp/config.h
20809 rm -f $tmp/in
20810 if test x"$ac_file" != x-; then
20811 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20813 echo "$as_me: $ac_file is unchanged" >&6;}
20814 else
20815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20817 X"$ac_file" : 'X\(//\)[^/]' \| \
20818 X"$ac_file" : 'X\(//\)$' \| \
20819 X"$ac_file" : 'X\(/\)' \| \
20820 . : '\(.\)' 2>/dev/null ||
20821 echo X"$ac_file" |
20822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20824 /^X\(\/\/\)$/{ s//\1/; q; }
20825 /^X\(\/\).*/{ s//\1/; q; }
20826 s/.*/./; q'`
20827 { if $as_mkdir_p; then
20828 mkdir -p "$ac_dir"
20829 else
20830 as_dir="$ac_dir"
20831 as_dirs=
20832 while test ! -d "$as_dir"; do
20833 as_dirs="$as_dir $as_dirs"
20834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20836 X"$as_dir" : 'X\(//\)[^/]' \| \
20837 X"$as_dir" : 'X\(//\)$' \| \
20838 X"$as_dir" : 'X\(/\)' \| \
20839 . : '\(.\)' 2>/dev/null ||
20840 echo X"$as_dir" |
20841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20843 /^X\(\/\/\)$/{ s//\1/; q; }
20844 /^X\(\/\).*/{ s//\1/; q; }
20845 s/.*/./; q'`
20846 done
20847 test ! -n "$as_dirs" || mkdir $as_dirs
20848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20850 { (exit 1); exit 1; }; }; }
20852 rm -f $ac_file
20853 mv $tmp/config.h $ac_file
20855 else
20856 cat $tmp/config.h
20857 rm -f $tmp/config.h
20859 # Compute $ac_file's index in $config_headers.
20860 _am_stamp_count=1
20861 for _am_header in $config_headers :; do
20862 case $_am_header in
20863 $ac_file | $ac_file:* )
20864 break ;;
20866 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20867 esac
20868 done
20869 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20870 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20871 X$ac_file : 'X\(//\)[^/]' \| \
20872 X$ac_file : 'X\(//\)$' \| \
20873 X$ac_file : 'X\(/\)' \| \
20874 . : '\(.\)' 2>/dev/null ||
20875 echo X$ac_file |
20876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20878 /^X\(\/\/\)$/{ s//\1/; q; }
20879 /^X\(\/\).*/{ s//\1/; q; }
20880 s/.*/./; q'`/stamp-h$_am_stamp_count
20881 done
20882 _ACEOF
20883 cat >>$CONFIG_STATUS <<\_ACEOF
20886 # CONFIG_COMMANDS section.
20888 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20889 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20890 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20891 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20893 X"$ac_dest" : 'X\(//\)[^/]' \| \
20894 X"$ac_dest" : 'X\(//\)$' \| \
20895 X"$ac_dest" : 'X\(/\)' \| \
20896 . : '\(.\)' 2>/dev/null ||
20897 echo X"$ac_dest" |
20898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20900 /^X\(\/\/\)$/{ s//\1/; q; }
20901 /^X\(\/\).*/{ s//\1/; q; }
20902 s/.*/./; q'`
20903 { if $as_mkdir_p; then
20904 mkdir -p "$ac_dir"
20905 else
20906 as_dir="$ac_dir"
20907 as_dirs=
20908 while test ! -d "$as_dir"; do
20909 as_dirs="$as_dir $as_dirs"
20910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20912 X"$as_dir" : 'X\(//\)[^/]' \| \
20913 X"$as_dir" : 'X\(//\)$' \| \
20914 X"$as_dir" : 'X\(/\)' \| \
20915 . : '\(.\)' 2>/dev/null ||
20916 echo X"$as_dir" |
20917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20919 /^X\(\/\/\)$/{ s//\1/; q; }
20920 /^X\(\/\).*/{ s//\1/; q; }
20921 s/.*/./; q'`
20922 done
20923 test ! -n "$as_dirs" || mkdir $as_dirs
20924 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20926 { (exit 1); exit 1; }; }; }
20928 ac_builddir=.
20930 if test "$ac_dir" != .; then
20931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20932 # A "../" for each directory in $ac_dir_suffix.
20933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20934 else
20935 ac_dir_suffix= ac_top_builddir=
20938 case $srcdir in
20939 .) # No --srcdir option. We are building in place.
20940 ac_srcdir=.
20941 if test -z "$ac_top_builddir"; then
20942 ac_top_srcdir=.
20943 else
20944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20945 fi ;;
20946 [\\/]* | ?:[\\/]* ) # Absolute path.
20947 ac_srcdir=$srcdir$ac_dir_suffix;
20948 ac_top_srcdir=$srcdir ;;
20949 *) # Relative path.
20950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20952 esac
20954 # Do not use `cd foo && pwd` to compute absolute paths, because
20955 # the directories may not exist.
20956 case `pwd` in
20957 .) ac_abs_builddir="$ac_dir";;
20959 case "$ac_dir" in
20960 .) ac_abs_builddir=`pwd`;;
20961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20963 esac;;
20964 esac
20965 case $ac_abs_builddir in
20966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20968 case ${ac_top_builddir}. in
20969 .) ac_abs_top_builddir=$ac_abs_builddir;;
20970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20972 esac;;
20973 esac
20974 case $ac_abs_builddir in
20975 .) ac_abs_srcdir=$ac_srcdir;;
20977 case $ac_srcdir in
20978 .) ac_abs_srcdir=$ac_abs_builddir;;
20979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20981 esac;;
20982 esac
20983 case $ac_abs_builddir in
20984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20986 case $ac_top_srcdir in
20987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20990 esac;;
20991 esac
20994 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20995 echo "$as_me: executing $ac_dest commands" >&6;}
20996 case $ac_dest in
20997 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20998 # Strip MF so we end up with the name of the file.
20999 mf=`echo "$mf" | sed -e 's/:.*$//'`
21000 # Check whether this is an Automake generated Makefile or not.
21001 # We used to match only the files named `Makefile.in', but
21002 # some people rename them; so instead we look at the file content.
21003 # Grep'ing the first line is not enough: some people post-process
21004 # each Makefile.in and add a new line on top of each file to say so.
21005 # So let's grep whole file.
21006 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21007 dirpart=`(dirname "$mf") 2>/dev/null ||
21008 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21009 X"$mf" : 'X\(//\)[^/]' \| \
21010 X"$mf" : 'X\(//\)$' \| \
21011 X"$mf" : 'X\(/\)' \| \
21012 . : '\(.\)' 2>/dev/null ||
21013 echo X"$mf" |
21014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21016 /^X\(\/\/\)$/{ s//\1/; q; }
21017 /^X\(\/\).*/{ s//\1/; q; }
21018 s/.*/./; q'`
21019 else
21020 continue
21022 # Extract the definition of DEPDIR, am__include, and am__quote
21023 # from the Makefile without running `make'.
21024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21025 test -z "$DEPDIR" && continue
21026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21027 test -z "am__include" && continue
21028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21029 # When using ansi2knr, U may be empty or an underscore; expand it
21030 U=`sed -n 's/^U = //p' < "$mf"`
21031 # Find all dependency output files, they are included files with
21032 # $(DEPDIR) in their names. We invoke sed twice because it is the
21033 # simplest approach to changing $(DEPDIR) to its actual value in the
21034 # expansion.
21035 for file in `sed -n "
21036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21038 # Make sure the directory exists.
21039 test -f "$dirpart/$file" && continue
21040 fdir=`(dirname "$file") 2>/dev/null ||
21041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21042 X"$file" : 'X\(//\)[^/]' \| \
21043 X"$file" : 'X\(//\)$' \| \
21044 X"$file" : 'X\(/\)' \| \
21045 . : '\(.\)' 2>/dev/null ||
21046 echo X"$file" |
21047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21049 /^X\(\/\/\)$/{ s//\1/; q; }
21050 /^X\(\/\).*/{ s//\1/; q; }
21051 s/.*/./; q'`
21052 { if $as_mkdir_p; then
21053 mkdir -p $dirpart/$fdir
21054 else
21055 as_dir=$dirpart/$fdir
21056 as_dirs=
21057 while test ! -d "$as_dir"; do
21058 as_dirs="$as_dir $as_dirs"
21059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21061 X"$as_dir" : 'X\(//\)[^/]' \| \
21062 X"$as_dir" : 'X\(//\)$' \| \
21063 X"$as_dir" : 'X\(/\)' \| \
21064 . : '\(.\)' 2>/dev/null ||
21065 echo X"$as_dir" |
21066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21068 /^X\(\/\/\)$/{ s//\1/; q; }
21069 /^X\(\/\).*/{ s//\1/; q; }
21070 s/.*/./; q'`
21071 done
21072 test ! -n "$as_dirs" || mkdir $as_dirs
21073 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21074 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21075 { (exit 1); exit 1; }; }; }
21077 # echo "creating $dirpart/$file"
21078 echo '# dummy' > "$dirpart/$file"
21079 done
21080 done
21082 default-1 )
21083 for ac_file in $CONFIG_FILES; do
21084 # Support "outfile[:infile[:infile...]]"
21085 case "$ac_file" in
21086 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21087 esac
21088 # PO directories have a Makefile.in generated from Makefile.in.in.
21089 case "$ac_file" in */Makefile.in)
21090 # Adjust a relative srcdir.
21091 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21092 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21093 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21094 # In autoconf-2.13 it is called $ac_given_srcdir.
21095 # In autoconf-2.50 it is called $srcdir.
21096 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21097 case "$ac_given_srcdir" in
21098 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21099 /*) top_srcdir="$ac_given_srcdir" ;;
21100 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21101 esac
21102 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21103 rm -f "$ac_dir/POTFILES"
21104 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21105 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21106 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21107 # on $ac_dir but don't depend on user-specified configuration
21108 # parameters.
21109 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21110 # The LINGUAS file contains the set of available languages.
21111 if test -n "$ALL_LINGUAS"; then
21112 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21114 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21115 # Hide the ALL_LINGUAS assigment from automake.
21116 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21118 case "$ac_given_srcdir" in
21119 .) srcdirpre= ;;
21120 *) srcdirpre='$(srcdir)/' ;;
21121 esac
21122 POFILES=
21123 GMOFILES=
21124 UPDATEPOFILES=
21125 DUMMYPOFILES=
21126 for lang in $ALL_LINGUAS; do
21127 POFILES="$POFILES $srcdirpre$lang.po"
21128 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21129 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21130 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21131 done
21132 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21133 # environment variable.
21134 INST_LINGUAS=
21135 if test -n "$ALL_LINGUAS"; then
21136 for presentlang in $ALL_LINGUAS; do
21137 useit=no
21138 if test "%UNSET%" != "$LINGUAS"; then
21139 desiredlanguages="$LINGUAS"
21140 else
21141 desiredlanguages="$ALL_LINGUAS"
21143 for desiredlang in $desiredlanguages; do
21144 # Use the presentlang catalog if desiredlang is
21145 # a. equal to presentlang, or
21146 # b. a variant of presentlang (because in this case,
21147 # presentlang can be used as a fallback for messages
21148 # which are not translated in the desiredlang catalog).
21149 case "$desiredlang" in
21150 "$presentlang"*) useit=yes;;
21151 esac
21152 done
21153 if test $useit = yes; then
21154 INST_LINGUAS="$INST_LINGUAS $presentlang"
21156 done
21158 CATALOGS=
21159 if test -n "$INST_LINGUAS"; then
21160 for lang in $INST_LINGUAS; do
21161 CATALOGS="$CATALOGS $lang.gmo"
21162 done
21164 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21165 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21166 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21167 if test -f "$f"; then
21168 case "$f" in
21169 *.orig | *.bak | *~) ;;
21170 *) cat "$f" >> "$ac_dir/Makefile" ;;
21171 esac
21173 done
21176 esac
21177 done ;;
21178 denoiser ) if test $denoiserlevel -gt 0; then
21179 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21180 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
21181 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21182 for i in `find . -name 'Makefile' -print`; do
21183 if test -n "`head -n 1 $i | grep '^#'`"; then
21184 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21186 done
21187 fi ;;
21188 esac
21189 done
21190 _ACEOF
21192 cat >>$CONFIG_STATUS <<\_ACEOF
21194 { (exit 0); exit 0; }
21195 _ACEOF
21196 chmod +x $CONFIG_STATUS
21197 ac_clean_files=$ac_clean_files_save
21200 # configure is writing to config.log, and then calls config.status.
21201 # config.status does its own redirection, appending to config.log.
21202 # Unfortunately, on DOS this fails, as config.log is still kept open
21203 # by configure, so config.status won't be able to write to it; its
21204 # output is simply discarded. So we exec the FD to /dev/null,
21205 # effectively closing config.log, so it can be properly (re)opened and
21206 # appended to by config.status. When coming back to configure, we
21207 # need to make the FD available again.
21208 if test "$no_create" != yes; then
21209 ac_cs_success=:
21210 ac_config_status_args=
21211 test "$silent" = yes &&
21212 ac_config_status_args="$ac_config_status_args --quiet"
21213 exec 5>/dev/null
21214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21215 exec 5>>config.log
21216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21217 # would make configure fail if this is the last instruction.
21218 $ac_cs_success || { (exit 1); exit 1; }
21222 if test -n "$svndate"; then
21223 SVN_REVISION=" ($svndate)"
21224 else
21225 SVN_REVISION=
21229 echo
21230 echo
21231 echo " Configure script has finished system check."
21232 echo
21233 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21234 echo
21235 echo " aMule enabled options:"
21236 echo
21237 echo " **** aMule Core ****"
21238 echo " Prefix where aMule should be installed? ${prefix:-none}"
21239 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21240 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21241 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21242 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21243 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21244 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21245 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21246 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21247 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21248 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21250 echo
21251 echo " **** aMule TextClient ****"
21252 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21253 echo
21254 echo " **** aMule WebServer ****"
21255 echo " Should aMule WebServer be built? ${WEB:-no}"
21256 echo
21257 echo " **** aMule ED2K Links Handler ****"
21258 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21259 echo
21260 echo " **** aMuleLinkCreator ****"
21261 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21262 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21263 echo
21264 echo " **** aMule Statistics ****"
21265 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21266 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21267 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21269 echo
21270 echo " **** General Libraries and Tools ****"
21271 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21272 echo " Libraries aMule will use to build:"
21273 wxinfo="$WX_PORT"
21274 if test $WX_DEBUG -eq 1; then
21275 wxinfo="$wxinfo,debug"
21278 if test $WX_SHARED -eq 1; then
21279 wxinfo="$wxinfo,shared"
21280 else
21281 wxinfo="$wxinfo,static"
21284 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21285 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21286 if test -n "$with_libupnp_prefix"; then
21287 libupnp_place=" (in $with_libupnp_prefix)"
21290 if test x${ENABLE_UPNP} = xyes; then
21291 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21294 if test ${enable_nls:-yes} = yes; then
21295 if test x$USE_NLS = xno; then
21296 libintl_found="Not detected"
21297 else
21298 if test x$USE_INCLUDED_LIBINTL = xyes; then
21299 libintl_found="included"
21300 else
21301 libintl_found="system"
21306 echo " libintl $libintl_found"
21308 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21309 geoip_style=system
21310 else
21311 geoip_style=user
21314 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21315 echo " libGeoIP ${geoip_style}"
21318 if test x$LIBPNG_VERSION != xnot_needed; then
21319 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21321 if test x$GDLIB_VERSION != xnot_needed; then
21322 echo " libgd ${GDLIB_VERSION:-Not detected}"
21324 echo " zlib ${ZLIB_VERSION:-Not detected}"
21325 if test ${_mule_has_warnings:-no} = yes; then
21326 echo ""
21327 echo ""
21328 echo " *** Warnings during configuration ***"
21330 if test ${_mule_warning_0:-no} = yes; then
21331 cat <<_MULEEOT
21333 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21334 Please check that gdlib-config is in your default path, check out
21335 LD_LIBRARY_PATH or equivalent variable.
21336 Or this might also be that your gdlib-config has other name.
21337 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21338 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21339 If you use compiled packages check if you have devel pack installed.
21340 To download the latest version check http://www.boutell.com/gd for sources.
21341 _MULEEOT
21343 if test ${_mule_warning_1:-no} = yes; then
21344 cat <<_MULEEOT
21346 * libpng >= 1.2.0 not found.
21347 amuleweb will be compiled but file download progress bar images will NOT be
21348 generated.
21349 _MULEEOT
21351 if test ${_mule_warning_2:-no} = yes; then
21352 cat <<_MULEEOT
21354 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21355 _MULEEOT
21357 if test ${_mule_warning_3:-no} = yes; then
21358 cat <<_MULEEOT
21360 * GeoIP support has been disabled because the GeoIP libraries were not found
21361 _MULEEOT
21363 if test ${_mule_warning_4:-no} = yes; then
21364 cat <<_MULEEOT
21366 * GeoIP support has been disabled because the GeoIP header files were not
21367 found
21368 _MULEEOT
21370 if test ${_mule_warning_5:-no} = yes; then
21371 cat <<_MULEEOT
21373 * UPnP code has been disabled because ${libupnp_error}.
21374 _MULEEOT
21376 if test ${_mule_warning_6:-no} = yes; then
21377 cat <<_MULEEOT
21379 * Cross-compilation detected, so exception handling cannot be tested.
21380 Note that broken exception handling in your compiler may lead to unexpected
21381 crashes.
21382 _MULEEOT
21384 if test ${_mule_warning_7:-no} = yes; then
21385 cat <<_MULEEOT
21387 * configure cannot check whether malloc() and realloc() are GNU libc
21388 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21389 configure with the --without-gnu-malloc switch.
21390 _MULEEOT
21392 if test ${_mule_warning_8:-no} = yes; then
21393 cat <<_MULEEOT
21395 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21396 support.
21397 _MULEEOT
21399 if test ${_mule_warning_9:-no} = yes; then
21400 cat <<_MULEEOT
21402 * bfd.h not found or unusable, please install binutils development package if
21403 you are a developer or want to help testing aMule
21404 _MULEEOT