Upstream tarball 9744
[amule.git] / configure
blobe3fea42d20307f38c171bd779f1a3c22d4b89a63
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"; then
7098 { { echo "$as_me:$LINENO: error:
7099 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7100 " >&5
7101 echo "$as_me: error:
7102 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7103 " >&2;}
7104 { (exit 1); exit 1; }; }
7107 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7108 echo "${ECHO_T}$TOOLKIT" >&6
7115 # Check whether --with-wxshared or --without-wxshared was given.
7116 if test "${with_wxshared+set}" = set; then
7117 withval="$with_wxshared"
7119 else
7120 withval="auto"
7123 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7124 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7125 if test "$withval" = "yes" ; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127 echo "${ECHO_T}yes" >&6
7128 WX_SHARED=1
7130 elif test "1" = "1" -a "$withval" = "no" ; then
7131 echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7133 WX_SHARED=0
7134 elif test "$withval" = "auto" ; then
7135 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7136 echo "${ECHO_T}will be automatically detected" >&6
7137 WX_SHARED="auto"
7138 else
7139 { { echo "$as_me:$LINENO: error:
7140 Unrecognized option value (allowed values: yes, auto)
7141 " >&5
7142 echo "$as_me: error:
7143 Unrecognized option value (allowed values: yes, auto)
7144 " >&2;}
7145 { (exit 1); exit 1; }; }
7152 # Check whether --with-wxdebug or --without-wxdebug was given.
7153 if test "${with_wxdebug+set}" = set; then
7154 withval="$with_wxdebug"
7156 else
7157 withval="auto"
7160 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7161 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7162 if test "$withval" = "yes" ; then
7163 echo "$as_me:$LINENO: result: yes" >&5
7164 echo "${ECHO_T}yes" >&6
7165 WX_DEBUG=1
7167 elif test "1" = "1" -a "$withval" = "no" ; then
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7170 WX_DEBUG=0
7171 elif test "$withval" = "auto" ; then
7172 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7173 echo "${ECHO_T}will be automatically detected" >&6
7174 WX_DEBUG="auto"
7175 else
7176 { { echo "$as_me:$LINENO: error:
7177 Unrecognized option value (allowed values: yes, auto)
7178 " >&5
7179 echo "$as_me: error:
7180 Unrecognized option value (allowed values: yes, auto)
7181 " >&2;}
7182 { (exit 1); exit 1; }; }
7189 # Check whether --with-wxversion or --without-wxversion was given.
7190 if test "${with_wxversion+set}" = set; then
7191 withval="$with_wxversion"
7193 else
7194 withval="auto"
7197 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7198 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7199 if test "$withval" = "auto" ; then
7200 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7201 echo "${ECHO_T}will be automatically detected" >&6
7202 WX_VERSION="auto"
7203 else
7205 wx_requested_major_version=`echo $withval | \
7206 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7207 wx_requested_minor_version=`echo $withval | \
7208 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7210 if test "${#wx_requested_major_version}" != "1" -o \
7211 "${#wx_requested_minor_version}" != "1" ; then
7212 { { echo "$as_me:$LINENO: error:
7213 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7214 " >&5
7215 echo "$as_me: error:
7216 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7217 " >&2;}
7218 { (exit 1); exit 1; }; }
7221 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7222 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7223 echo "${ECHO_T}$WX_VERSION" >&6
7227 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7228 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7229 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7230 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7231 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7232 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7235 # Force using a static wxWidgets library if the executable is to be linked statically.
7236 if test ${enable_static:-no} = yes; then
7237 WX_SHARED=0
7240 # Force using a unicode build of the library
7241 WX_UNICODE=1
7242 DEBUG=$WX_DEBUG
7244 if test "$WX_SHARED" = "1" ; then
7245 WXCONFIG_FLAGS="--static=no "
7246 elif test "$WX_SHARED" = "0" ; then
7247 WXCONFIG_FLAGS="--static=yes "
7250 if test "$WX_DEBUG" = "1" ; then
7251 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7252 elif test "$WX_DEBUG" = "0" ; then
7253 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7256 if test "$WX_UNICODE" = "1" ; then
7257 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7258 elif test "$WX_UNICODE" = "0" ; then
7259 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7262 if test "$TOOLKIT" != "auto" ; then
7263 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7266 if test "$WX_VERSION" != "auto" ; then
7267 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7270 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7272 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7273 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7277 if test x${WX_CONFIG_NAME+set} != xset ; then
7278 WX_CONFIG_NAME=wx-config
7281 if test "x$wx_config_name" != x ; then
7282 WX_CONFIG_NAME="$wx_config_name"
7285 if test x$wx_config_exec_prefix != x ; then
7286 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7287 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7289 if test x$wx_config_prefix != x ; then
7290 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7291 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7293 if test "$cross_compiling" = "yes"; then
7294 wx_config_args="$wx_config_args --host=$host_alias"
7297 if test -x "$WX_CONFIG_NAME" ; then
7298 echo "$as_me:$LINENO: checking for wx-config" >&5
7299 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7300 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7301 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7302 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7303 else
7304 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7305 set dummy $WX_CONFIG_NAME; ac_word=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 case $WX_CONFIG_PATH in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7318 for as_dir in $as_dummy
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7331 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7333 esac
7335 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7337 if test -n "$WX_CONFIG_PATH"; then
7338 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7339 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7340 else
7341 echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6
7347 if test "$WX_CONFIG_PATH" != "no" ; then
7348 WX_VERSION_FULL=""
7350 min_wx_version=2.8.0
7351 if test -z "$WXCONFIG_FLAGS" ; then
7352 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7353 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7354 else
7355 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7356 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7359 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7361 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7362 wx_config_major_version=`echo $WX_VERSION_FULL | \
7363 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7364 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7365 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7366 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7367 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7369 wx_requested_major_version=`echo $min_wx_version | \
7370 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7371 wx_requested_minor_version=`echo $min_wx_version | \
7372 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7373 wx_requested_micro_version=`echo $min_wx_version | \
7374 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7377 wx_ver_ok=""
7378 if test "x$WX_VERSION_FULL" != x ; then
7379 if test $wx_config_major_version -gt $wx_requested_major_version; then
7380 wx_ver_ok=yes
7381 else
7382 if test $wx_config_major_version -eq $wx_requested_major_version; then
7383 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7384 wx_ver_ok=yes
7385 else
7386 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7387 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7388 wx_ver_ok=yes
7397 if test -n "$wx_ver_ok"; then
7399 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7400 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7401 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7403 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7404 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7405 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7406 if test "x$WX_LIBS_STATIC" = "x"; then
7407 echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6
7409 else
7410 echo "$as_me:$LINENO: result: yes" >&5
7411 echo "${ECHO_T}yes" >&6
7414 wx_has_cppflags=""
7415 if test $wx_config_major_version -gt 2; then
7416 wx_has_cppflags=yes
7417 else
7418 if test $wx_config_major_version -eq 2; then
7419 if test $wx_config_minor_version -gt 2; then
7420 wx_has_cppflags=yes
7421 else
7422 if test $wx_config_minor_version -eq 2; then
7423 if test $wx_config_micro_version -ge 6; then
7424 wx_has_cppflags=yes
7431 wx_has_rescomp=""
7432 if test $wx_config_major_version -gt 2; then
7433 wx_has_rescomp=yes
7434 else
7435 if test $wx_config_major_version -eq 2; then
7436 if test $wx_config_minor_version -ge 7; then
7437 wx_has_rescomp=yes
7441 if test "x$wx_has_rescomp" = x ; then
7442 WX_RESCOMP=
7443 else
7444 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7447 if test "x$wx_has_cppflags" = x ; then
7448 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7449 WX_CPPFLAGS=$WX_CFLAGS
7450 WX_CXXFLAGS=$WX_CFLAGS
7452 WX_CFLAGS_ONLY=$WX_CFLAGS
7453 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7454 else
7455 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7456 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7457 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7459 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7460 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7463 wxWin=1
7465 else
7467 if test "x$WX_VERSION_FULL" = x; then
7468 echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7470 else
7471 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7472 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7475 WX_CFLAGS=""
7476 WX_CPPFLAGS=""
7477 WX_CXXFLAGS=""
7478 WX_LIBS=""
7479 WX_LIBS_STATIC=""
7480 WX_RESCOMP=""
7482 if test ! -z "$WXCONFIG_FLAGS"; then
7484 wx_error_message="
7485 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7486 build with the following settings:
7487 $WXCONFIG_FLAGS
7488 but such build is not available.
7490 To see the wxWidgets builds available on this system, please use
7491 'wx-config --list' command. To use the default build, returned by
7492 'wx-config --selected-config', use the options with their 'auto'
7493 default values."
7497 wx_error_message="
7498 The requested wxWidgets build couldn't be found.
7499 $wx_error_message
7501 If you still get this error, then check that 'wx-config' is
7502 in path, the directory where wxWidgets libraries are installed
7503 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7504 or equivalent variable and wxWidgets version is 2.8.0 or above."
7506 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7507 echo "$as_me: error: $wx_error_message" >&2;}
7508 { (exit 1); exit 1; }; }
7511 else
7513 WX_CFLAGS=""
7514 WX_CPPFLAGS=""
7515 WX_CXXFLAGS=""
7516 WX_LIBS=""
7517 WX_LIBS_STATIC=""
7518 WX_RESCOMP=""
7534 WX_VERSION_MAJOR="$wx_config_major_version"
7535 WX_VERSION_MINOR="$wx_config_minor_version"
7539 if test "$wxWin" != 1; then
7540 { { echo "$as_me:$LINENO: error:
7541 wxWidgets must be installed on your system but wx-config
7542 script couldn't be found. Please check that wx-config is
7543 in path or specified by --with-wx-config=path flag, the
7544 directory where wxWidgets libraries are installed (returned
7545 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7546 equivalent variable and wxWidgets version is 2.8.0 or above.
7547 " >&5
7548 echo "$as_me: error:
7549 wxWidgets must be installed on your system but wx-config
7550 script couldn't be found. Please check that wx-config is
7551 in path or specified by --with-wx-config=path flag, the
7552 directory where wxWidgets libraries are installed (returned
7553 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7554 equivalent variable and wxWidgets version is 2.8.0 or above.
7555 " >&2;}
7556 { (exit 1); exit 1; }; }
7559 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7560 if test $WX_VERSION -lt 26 ; then
7562 { { echo "$as_me:$LINENO: error:
7563 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7564 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7565 version of wxWidgets.
7566 " >&5
7567 echo "$as_me: error:
7568 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7569 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7570 version of wxWidgets.
7571 " >&2;}
7572 { (exit 1); exit 1; }; }
7575 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7577 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7578 echo "[dbg] Using wx-config --selected-config"
7579 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7583 if test $WX_SHARED = "1"; then
7584 STATIC=0
7585 elif test $WX_SHARED = "0"; then
7586 STATIC=1
7587 elif test $WX_SHARED = "auto"; then
7588 STATIC="auto"
7592 if test "$UNICODE" = "auto" ; then
7594 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7595 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7597 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7599 if test "$WX_UNICODE" != "0"; then
7600 WX_UNICODE=1
7601 echo "$as_me:$LINENO: result: yes" >&5
7602 echo "${ECHO_T}yes" >&6
7604 else
7605 WX_UNICODE=0
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7610 else
7612 WX_UNICODE=$UNICODE
7616 if test "$DEBUG" = "auto" ; then
7618 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7619 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7621 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7623 if test "$WX_DEBUG" != "0"; then
7624 WX_DEBUG=1
7625 echo "$as_me:$LINENO: result: yes" >&5
7626 echo "${ECHO_T}yes" >&6
7628 else
7629 WX_DEBUG=0
7630 echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6
7634 else
7636 WX_DEBUG=$DEBUG
7640 if test "$STATIC" = "auto" ; then
7642 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7643 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7645 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7647 if test "$WX_STATIC" != "0"; then
7648 WX_STATIC=1
7649 echo "$as_me:$LINENO: result: yes" >&5
7650 echo "${ECHO_T}yes" >&6
7652 else
7653 WX_STATIC=0
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7658 else
7660 WX_STATIC=$STATIC
7664 if test "$WX_STATIC" != "0"; then
7665 WX_SHARED=0
7666 else
7667 WX_SHARED=1
7674 if test "$TOOLKIT" = "auto" ; then
7676 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7677 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7679 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7680 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7681 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7682 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7683 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7684 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7685 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7686 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7687 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7688 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7690 WX_PORT="unknown"
7691 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7692 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7693 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7694 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7695 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7696 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7697 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7698 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7699 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7700 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7703 if test "$WX_PORT" = "unknown" ; then
7704 { { echo "$as_me:$LINENO: error:
7705 Cannot detect the currently installed wxWidgets port !
7706 Please check your 'wx-config --cxxflags'...
7707 " >&5
7708 echo "$as_me: error:
7709 Cannot detect the currently installed wxWidgets port !
7710 Please check your 'wx-config --cxxflags'...
7711 " >&2;}
7712 { (exit 1); exit 1; }; }
7715 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7716 echo "${ECHO_T}$WX_PORT" >&6
7717 else
7719 if test -z "$TOOLKIT" ; then
7720 WX_PORT=$TOOLKIT
7721 else
7722 WX_PORT=$PORT
7728 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7729 echo "[dbg] Values of all WX_* options after final detection:"
7730 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7731 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7732 echo "[dbg] WX_SHARED: $WX_SHARED"
7733 echo "[dbg] WX_VERSION: $WX_VERSION"
7734 echo "[dbg] WX_PORT: $WX_PORT"
7737 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7738 { { echo "$as_me:$LINENO: error:
7739 Cannot build shared library against a static build of wxWidgets !
7740 This error happens because the wxWidgets build which was selected
7741 has been detected as static while you asked to build $PACKAGE_NAME
7742 as shared library and this is not possible.
7743 Use the '--disable-shared' option to build $PACKAGE_NAME
7744 as static library or '--with-wxshared' to use wxWidgets as shared library.
7745 " >&5
7746 echo "$as_me: error:
7747 Cannot build shared library against a static build of wxWidgets !
7748 This error happens because the wxWidgets build which was selected
7749 has been detected as static while you asked to build $PACKAGE_NAME
7750 as shared library and this is not possible.
7751 Use the '--disable-shared' option to build $PACKAGE_NAME
7752 as static library or '--with-wxshared' to use wxWidgets as shared library.
7753 " >&2;}
7754 { (exit 1); exit 1; }; }
7757 if test "$DEBUG" = "auto"; then
7758 DEBUG=$WX_DEBUG
7760 if test "$DEBUG" = "1"; then
7761 BUILD="debug"
7762 elif test "$DEBUG" = ""; then
7763 BUILD="release"
7766 if test "$UNICODE" = "auto"; then
7767 UNICODE=$WX_UNICODE
7769 if test "$SHARED" = "auto"; then
7770 SHARED=$WX_SHARED
7772 if test "$TOOLKIT" = "auto"; then
7773 TOOLKIT=$WX_PORT
7778 # We also need wxBase
7779 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7780 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7781 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7785 if test ${SYS:-unknown} = win32; then
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}windres; ac_word=$2
7790 echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792 if test "${ac_cv_prog_RC+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795 if test -n "$RC"; then
7796 ac_cv_prog_RC="$RC" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_RC="${ac_tool_prefix}windres"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7814 RC=$ac_cv_prog_RC
7815 if test -n "$RC"; then
7816 echo "$as_me:$LINENO: result: $RC" >&5
7817 echo "${ECHO_T}$RC" >&6
7818 else
7819 echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6
7824 if test -z "$ac_cv_prog_RC"; then
7825 ac_ct_RC=$RC
7826 # Extract the first word of "windres", so it can be a program name with args.
7827 set dummy windres; ac_word=$2
7828 echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7830 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 if test -n "$ac_ct_RC"; then
7834 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_ac_ct_RC="windres"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7850 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7853 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7854 if test -n "$ac_ct_RC"; then
7855 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7856 echo "${ECHO_T}$ac_ct_RC" >&6
7857 else
7858 echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6
7862 RC=$ac_ct_RC
7863 else
7864 RC="$ac_cv_prog_RC"
7867 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7873 # Check for libupnp
7874 if test "${ENABLE_UPNP:-yes}" = yes; then
7878 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7879 if test -n "$ac_tool_prefix"; then
7880 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7881 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7882 echo "$as_me:$LINENO: checking for $ac_word" >&5
7883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7884 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 case $PKG_CONFIG in
7888 [\\/]* | ?:[\\/]*)
7889 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7903 done
7904 done
7907 esac
7909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7911 if test -n "$PKG_CONFIG"; then
7912 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7913 echo "${ECHO_T}$PKG_CONFIG" >&6
7914 else
7915 echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6
7920 if test -z "$ac_cv_path_PKG_CONFIG"; then
7921 ac_pt_PKG_CONFIG=$PKG_CONFIG
7922 # Extract the first word of "pkg-config", so it can be a program name with args.
7923 set dummy pkg-config; ac_word=$2
7924 echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7926 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 case $ac_pt_PKG_CONFIG in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7949 esac
7951 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7953 if test -n "$ac_pt_PKG_CONFIG"; then
7954 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7955 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7956 else
7957 echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6
7961 PKG_CONFIG=$ac_pt_PKG_CONFIG
7962 else
7963 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7967 if test -n "$PKG_CONFIG"; then
7968 _pkg_min_version=0.9.0
7969 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7970 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7971 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7972 echo "$as_me:$LINENO: result: yes" >&5
7973 echo "${ECHO_T}yes" >&6
7974 else
7975 echo "$as_me:$LINENO: result: no" >&5
7976 echo "${ECHO_T}no" >&6
7977 PKG_CONFIG=""
7983 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
7984 if test "${with_libupnp_prefix+set}" = set; then
7985 withval="$with_libupnp_prefix"
7986 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
7989 if test $cross_compiling = no; then
7990 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
7991 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
7992 if test -n "$PKG_CONFIG"; then
7993 if $PKG_CONFIG libupnp --exists; then
7994 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
7995 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
7996 result=yes
7997 resultstr=" (version $LIBUPNP_VERSION)"
7998 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
7999 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8000 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8001 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8002 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8004 else
8005 result=no
8006 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8010 else
8011 result=no
8012 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8016 else
8017 result=no
8018 resultstr=" (pkg-config not found)"
8021 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8022 echo "${ECHO_T}$result$resultstr" >&6
8023 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8025 else
8026 result=no
8027 libupnp_error="cross compiling"
8031 if test ${result:-no} = yes; then
8032 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8033 else
8034 ENABLE_UPNP=disabled
8035 { echo "$as_me:$LINENO: WARNING:
8036 UPnP code has been disabled because ${libupnp_error}." >&5
8037 echo "$as_me: WARNING:
8038 UPnP code has been disabled because ${libupnp_error}." >&2;}
8039 _mule_warning_5=yes
8040 _mule_has_warnings=yes
8051 # Check for Crypto++
8054 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8055 if test "${with_crypto_prefix+set}" = set; then
8056 withval="$with_crypto_prefix"
8060 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8061 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8063 cryptopp_file_with_version="cryptlib.h"
8065 CRYPTOPP_STYLE="unknown"
8066 CRYPTOPP_LIB_NAME="unknown"
8067 cryptopp_includedir="unknown"
8068 CRYPTOPP_INCLUDE_PREFIX="unknown"
8069 cryptopp_libdir="unknown"
8071 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8072 if test -z "$CRYPTOPP_PREFIX"; then
8073 continue
8077 # Find the Cryptopp header
8078 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8080 CRYPTOPP_STYLE="sources"
8081 CRYPTOPP_LIB_NAME="cryptopp"
8082 cryptopp_includedir=
8083 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8084 cryptopp_libdir=
8085 break
8087 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8089 CRYPTOPP_STYLE="installed"
8090 CRYPTOPP_LIB_NAME="cryptopp"
8091 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8092 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8093 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8094 break
8096 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8098 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8099 CRYPTOPP_STYLE="gentoo_debian"
8100 CRYPTOPP_LIB_NAME="crypto++"
8101 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8102 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8103 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8104 break
8108 done
8110 if test $CRYPTOPP_STYLE = "unknown"; then
8111 result=no; resultstr=""
8112 else
8114 # Find out the crypto++ version and check against the minimum required
8115 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8116 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8117 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8118 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8120 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8122 result=yes
8123 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8124 if test -n "$cryptopp_includedir"; then
8125 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8126 else
8127 CRYPTOPP_CPPFLAGS=
8130 if test -n "$cryptopp_libdir"; then
8132 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8133 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8135 else
8137 CRYPTOPP_LDFLAGS=
8138 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8144 cat >>confdefs.h <<_ACEOF
8145 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8146 _ACEOF
8149 else
8151 result=no
8152 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8160 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8161 echo "${ECHO_T}$result$resultstr" >&6
8163 if test ${result:-no} = yes; then
8165 # Check for CryptoPP >= 5.5
8166 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8167 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8171 else
8173 { { echo "$as_me:$LINENO: error:
8174 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8175 Please try again with --with-crypto-prefix=/my_crypto_prefix
8176 (replace /my_crypto_prefix with a valid path to your crypto++
8177 installation directory)." >&5
8178 echo "$as_me: error:
8179 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8180 Please try again with --with-crypto-prefix=/my_crypto_prefix
8181 (replace /my_crypto_prefix with a valid path to your crypto++
8182 installation directory)." >&2;}
8183 { (exit 1); exit 1; }; }
8190 ac_ext=cc
8191 ac_cpp='$CXXCPP $CPPFLAGS'
8192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8199 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8200 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8201 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8209 #include <string>
8210 #ifndef __GLIBCXX__
8211 #error Non-GNU C++ library found.
8212 #endif
8215 _ACEOF
8216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } >/dev/null; then
8224 if test -s conftest.err; then
8225 ac_cpp_err=$ac_cxx_preproc_warn_flag
8226 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8227 else
8228 ac_cpp_err=
8230 else
8231 ac_cpp_err=yes
8233 if test -z "$ac_cpp_err"; then
8234 GLIBCXX=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 GLIBCXX=no
8241 rm -f conftest.err conftest.$ac_ext
8242 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8243 echo "${ECHO_T}$GLIBCXX" >&6
8246 mule_backup_CPPFLAGS="$CPPFLAGS"
8247 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8249 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8250 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8259 #include <wx/wx.h>
8260 #include <wx/filefn.h>
8261 #ifndef wxHAS_LARGE_FILES
8262 #error No LargeFile support!
8263 #endif
8266 _ACEOF
8267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } >/dev/null; then
8275 if test -s conftest.err; then
8276 ac_cpp_err=$ac_cxx_preproc_warn_flag
8277 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8278 else
8279 ac_cpp_err=
8281 else
8282 ac_cpp_err=yes
8284 if test -z "$ac_cpp_err"; then
8286 echo "$as_me:$LINENO: result: yes" >&5
8287 echo "${ECHO_T}yes" >&6
8289 else
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8294 echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8296 { { echo "$as_me:$LINENO: error:
8297 Support for large files in wxWidgets is required by aMule.
8298 To continue you must recompile wxWidgets with support for
8299 large files enabled." >&5
8300 echo "$as_me: error:
8301 Support for large files in wxWidgets is required by aMule.
8302 To continue you must recompile wxWidgets with support for
8303 large files enabled." >&2;}
8304 { (exit 1); exit 1; }; }
8307 rm -f conftest.err conftest.$ac_ext
8309 CPPFLAGS="$mule_backup_CPPFLAGS"
8312 # Check if the compiler is broken, wrt. exceptions.
8314 echo "$as_me:$LINENO: checking for exception-handling" >&5
8315 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8316 if test "$cross_compiling" = yes; then
8318 echo "$as_me:$LINENO: result: undeterminable" >&5
8319 echo "${ECHO_T}undeterminable" >&6
8320 { echo "$as_me:$LINENO: WARNING:
8321 Cross-compilation detected, so exception handling cannot be tested.
8322 Note that broken exception handling in your compiler may lead to
8323 unexpected crashes." >&5
8324 echo "$as_me: WARNING:
8325 Cross-compilation detected, so exception handling cannot be tested.
8326 Note that broken exception handling in your compiler may lead to
8327 unexpected crashes." >&2;}
8328 _mule_warning_6=yes
8329 _mule_has_warnings=yes
8332 else
8333 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h. */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8342 main ()
8345 try {
8346 throw 1;
8347 } catch (int) {
8348 return 0;
8350 return 1;
8353 return 0;
8356 _ACEOF
8357 rm -f conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8369 echo "$as_me:$LINENO: result: yes" >&5
8370 echo "${ECHO_T}yes" >&6
8372 else
8373 echo "$as_me: program exited with status $ac_status" >&5
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 ( exit $ac_status )
8379 echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6
8381 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8382 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8383 { (exit 1); exit 1; }; }
8386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8391 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8392 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8393 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h. */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8401 #include <cxxabi.h>
8404 main ()
8407 int status;
8408 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8409 std::type_info *ti = abi::__cxa_current_exception_type();
8412 return 0;
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_cxx_werror_flag"
8426 || test ! -s conftest.err'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8441 cat >>confdefs.h <<\_ACEOF
8442 #define HAVE_CXXABI 1
8443 _ACEOF
8445 echo "$as_me:$LINENO: result: yes" >&5
8446 echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8457 rm -f conftest.err conftest.$ac_objext \
8458 conftest$ac_exeext conftest.$ac_ext
8460 ac_ext=c
8461 ac_cpp='$CPP $CPPFLAGS'
8462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8467 # Ok, we have all needed libs, now checking for other stuff
8468 if test "$LEX" = "flex"; then
8470 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8471 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8473 extended_flex=`flex --help | grep header-file`
8474 if test -n "$extended_flex"; then
8475 HAVE_FLEX_EXTENDED=yes
8476 else
8477 HAVE_FLEX_EXTENDED=no
8480 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8481 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8483 if test $HAVE_FLEX_EXTENDED = no; then
8484 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8485 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8489 else
8490 HAVE_FLEX_EXTENDED=no
8494 # Flush standard test results for speeding cache
8495 cat >confcache <<\_ACEOF
8496 # This file is a shell script that caches the results of configure
8497 # tests run on this system so they can be shared between configure
8498 # scripts and configure runs, see configure's option --config-cache.
8499 # It is not useful on other systems. If it contains results you don't
8500 # want to keep, you may remove or edit it.
8502 # config.status only pays attention to the cache file if you give it
8503 # the --recheck option to rerun configure.
8505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8507 # following values.
8509 _ACEOF
8511 # The following way of writing the cache mishandles newlines in values,
8512 # but we know of no workaround that is simple, portable, and efficient.
8513 # So, don't put newlines in cache variables' values.
8514 # Ultrix sh set writes to stderr and can't be redirected directly,
8515 # and sets the high bit in the cache file unless we assign to the vars.
8517 (set) 2>&1 |
8518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8519 *ac_space=\ *)
8520 # `set' does not quote correctly, so add quotes (double-quote
8521 # substitution turns \\\\ into \\, and sed turns \\ into \).
8522 sed -n \
8523 "s/'/'\\\\''/g;
8524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8527 # `set' quotes correctly as required by POSIX, so do not add quotes.
8528 sed -n \
8529 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8531 esac;
8533 sed '
8534 t clear
8535 : clear
8536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8537 t end
8538 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8539 : end' >>confcache
8540 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8541 if test -w $cache_file; then
8542 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8543 cat confcache >$cache_file
8544 else
8545 echo "not updating unwritable cache $cache_file"
8548 rm -f confcache
8550 # Checks for header files.
8551 echo "$as_me:$LINENO: checking for X" >&5
8552 echo $ECHO_N "checking for X... $ECHO_C" >&6
8555 # Check whether --with-x or --without-x was given.
8556 if test "${with_x+set}" = set; then
8557 withval="$with_x"
8560 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8561 if test "x$with_x" = xno; then
8562 # The user explicitly disabled X.
8563 have_x=disabled
8564 else
8565 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8566 # Both variables are already set.
8567 have_x=yes
8568 else
8569 if test "${ac_cv_have_x+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 # One or both of the vars are not set, and there is no cached value.
8573 ac_x_includes=no ac_x_libraries=no
8574 rm -fr conftest.dir
8575 if mkdir conftest.dir; then
8576 cd conftest.dir
8577 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8578 cat >Imakefile <<'_ACEOF'
8579 acfindx:
8580 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8581 _ACEOF
8582 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8584 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8585 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8586 for ac_extension in a so sl; do
8587 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8588 test -f $ac_im_libdir/libX11.$ac_extension; then
8589 ac_im_usrlibdir=$ac_im_libdir; break
8591 done
8592 # Screen out bogus values from the imake configuration. They are
8593 # bogus both because they are the default anyway, and because
8594 # using them would break gcc on systems where it needs fixed includes.
8595 case $ac_im_incroot in
8596 /usr/include) ;;
8597 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8598 esac
8599 case $ac_im_usrlibdir in
8600 /usr/lib | /lib) ;;
8601 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8602 esac
8604 cd ..
8605 rm -fr conftest.dir
8608 # Standard set of common directories for X headers.
8609 # Check X11 before X11Rn because it is often a symlink to the current release.
8610 ac_x_header_dirs='
8611 /usr/X11/include
8612 /usr/X11R6/include
8613 /usr/X11R5/include
8614 /usr/X11R4/include
8616 /usr/include/X11
8617 /usr/include/X11R6
8618 /usr/include/X11R5
8619 /usr/include/X11R4
8621 /usr/local/X11/include
8622 /usr/local/X11R6/include
8623 /usr/local/X11R5/include
8624 /usr/local/X11R4/include
8626 /usr/local/include/X11
8627 /usr/local/include/X11R6
8628 /usr/local/include/X11R5
8629 /usr/local/include/X11R4
8631 /usr/X386/include
8632 /usr/x386/include
8633 /usr/XFree86/include/X11
8635 /usr/include
8636 /usr/local/include
8637 /usr/unsupported/include
8638 /usr/athena/include
8639 /usr/local/x11r5/include
8640 /usr/lpp/Xamples/include
8642 /usr/openwin/include
8643 /usr/openwin/share/include'
8645 if test "$ac_x_includes" = no; then
8646 # Guess where to find include files, by looking for Intrinsic.h.
8647 # First, try using that file with no special directory specified.
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 #include <X11/Intrinsic.h>
8655 _ACEOF
8656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } >/dev/null; then
8664 if test -s conftest.err; then
8665 ac_cpp_err=$ac_c_preproc_warn_flag
8666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8667 else
8668 ac_cpp_err=
8670 else
8671 ac_cpp_err=yes
8673 if test -z "$ac_cpp_err"; then
8674 # We can compile using X headers with no special include directory.
8675 ac_x_includes=
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 for ac_dir in $ac_x_header_dirs; do
8681 if test -r "$ac_dir/X11/Intrinsic.h"; then
8682 ac_x_includes=$ac_dir
8683 break
8685 done
8687 rm -f conftest.err conftest.$ac_ext
8688 fi # $ac_x_includes = no
8690 if test "$ac_x_libraries" = no; then
8691 # Check for the libraries.
8692 # See if we find them without any special options.
8693 # Don't add to $LIBS permanently.
8694 ac_save_LIBS=$LIBS
8695 LIBS="-lXt $LIBS"
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 #include <X11/Intrinsic.h>
8704 main ()
8706 XtMalloc (0)
8708 return 0;
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 LIBS=$ac_save_LIBS
8734 # We can link X programs with no special library path.
8735 ac_x_libraries=
8736 else
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 LIBS=$ac_save_LIBS
8741 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8743 # Don't even attempt the hair of trying to link an X program!
8744 for ac_extension in a so sl; do
8745 if test -r $ac_dir/libXt.$ac_extension; then
8746 ac_x_libraries=$ac_dir
8747 break 2
8749 done
8750 done
8752 rm -f conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext conftest.$ac_ext
8754 fi # $ac_x_libraries = no
8756 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8757 # Didn't find X anywhere. Cache the known absence of X.
8758 ac_cv_have_x="have_x=no"
8759 else
8760 # Record where we found X for the cache.
8761 ac_cv_have_x="have_x=yes \
8762 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8767 eval "$ac_cv_have_x"
8768 fi # $with_x != no
8770 if test "$have_x" != yes; then
8771 echo "$as_me:$LINENO: result: $have_x" >&5
8772 echo "${ECHO_T}$have_x" >&6
8773 no_x=yes
8774 else
8775 # If each of the values was on the command line, it overrides each guess.
8776 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8777 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8778 # Update the cache value to reflect the command line values.
8779 ac_cv_have_x="have_x=yes \
8780 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8781 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8782 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8785 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8786 # for constant arguments. Useless!
8787 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8788 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8789 if test "${ac_cv_working_alloca_h+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 #include <alloca.h>
8800 main ()
8802 char *p = (char *) alloca (2 * sizeof (int));
8804 return 0;
8806 _ACEOF
8807 rm -f conftest.$ac_objext conftest$ac_exeext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809 (eval $ac_link) 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -z "$ac_c_werror_flag"
8817 || test ! -s conftest.err'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try='test -s conftest$ac_exeext'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 (eval $ac_try) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 ac_cv_working_alloca_h=yes
8830 else
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8834 ac_cv_working_alloca_h=no
8836 rm -f conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8839 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8840 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8841 if test $ac_cv_working_alloca_h = yes; then
8843 cat >>confdefs.h <<\_ACEOF
8844 #define HAVE_ALLOCA_H 1
8845 _ACEOF
8849 echo "$as_me:$LINENO: checking for alloca" >&5
8850 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8851 if test "${ac_cv_func_alloca_works+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 #ifdef __GNUC__
8861 # define alloca __builtin_alloca
8862 #else
8863 # ifdef _MSC_VER
8864 # include <malloc.h>
8865 # define alloca _alloca
8866 # else
8867 # if HAVE_ALLOCA_H
8868 # include <alloca.h>
8869 # else
8870 # ifdef _AIX
8871 #pragma alloca
8872 # else
8873 # ifndef alloca /* predefined by HP cc +Olibcalls */
8874 char *alloca ();
8875 # endif
8876 # endif
8877 # endif
8878 # endif
8879 #endif
8882 main ()
8884 char *p = (char *) alloca (1);
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag"
8899 || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_func_alloca_works=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_func_alloca_works=no
8918 rm -f conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8921 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8922 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8924 if test $ac_cv_func_alloca_works = yes; then
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_ALLOCA 1
8928 _ACEOF
8930 else
8931 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8932 # that cause trouble. Some versions do not even contain alloca or
8933 # contain a buggy version. If you still want to use their alloca,
8934 # use ar to extract alloca.o from them instead of compiling alloca.c.
8936 ALLOCA=alloca.$ac_objext
8938 cat >>confdefs.h <<\_ACEOF
8939 #define C_ALLOCA 1
8940 _ACEOF
8943 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8944 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8945 if test "${ac_cv_os_cray+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #if defined(CRAY) && ! defined(CRAY2)
8955 webecray
8956 #else
8957 wenotbecray
8958 #endif
8960 _ACEOF
8961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8962 $EGREP "webecray" >/dev/null 2>&1; then
8963 ac_cv_os_cray=yes
8964 else
8965 ac_cv_os_cray=no
8967 rm -f conftest*
8970 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8971 echo "${ECHO_T}$ac_cv_os_cray" >&6
8972 if test $ac_cv_os_cray = yes; then
8973 for ac_func in _getb67 GETB67 getb67; do
8974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8975 echo "$as_me:$LINENO: checking for $ac_func" >&5
8976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8977 if eval "test \"\${$as_ac_var+set}\" = set"; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8988 #define $ac_func innocuous_$ac_func
8990 /* System header to define __stub macros and hopefully few prototypes,
8991 which can conflict with char $ac_func (); below.
8992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8993 <limits.h> exists even on freestanding compilers. */
8995 #ifdef __STDC__
8996 # include <limits.h>
8997 #else
8998 # include <assert.h>
8999 #endif
9001 #undef $ac_func
9003 /* Override any gcc2 internal prototype to avoid an error. */
9004 #ifdef __cplusplus
9005 extern "C"
9007 #endif
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9010 char $ac_func ();
9011 /* The GNU C library defines this for functions which it implements
9012 to always fail with ENOSYS. Some functions are actually named
9013 something starting with __ and the normal name is an alias. */
9014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9015 choke me
9016 #else
9017 char (*f) () = $ac_func;
9018 #endif
9019 #ifdef __cplusplus
9021 #endif
9024 main ()
9026 return f != $ac_func;
9028 return 0;
9030 _ACEOF
9031 rm -f conftest.$ac_objext conftest$ac_exeext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try='test -z "$ac_c_werror_flag"
9041 || test ! -s conftest.err'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; } &&
9047 { ac_try='test -s conftest$ac_exeext'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 eval "$as_ac_var=yes"
9054 else
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9058 eval "$as_ac_var=no"
9060 rm -f conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9065 if test `eval echo '${'$as_ac_var'}'` = yes; then
9067 cat >>confdefs.h <<_ACEOF
9068 #define CRAY_STACKSEG_END $ac_func
9069 _ACEOF
9071 break
9074 done
9077 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9078 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9079 if test "${ac_cv_c_stack_direction+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082 if test "$cross_compiling" = yes; then
9083 ac_cv_c_stack_direction=0
9084 else
9085 cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h. */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9092 find_stack_direction ()
9094 static char *addr = 0;
9095 auto char dummy;
9096 if (addr == 0)
9098 addr = &dummy;
9099 return find_stack_direction ();
9101 else
9102 return (&dummy > addr) ? 1 : -1;
9106 main ()
9108 exit (find_stack_direction () < 0);
9110 _ACEOF
9111 rm -f conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_c_stack_direction=1
9123 else
9124 echo "$as_me: program exited with status $ac_status" >&5
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ( exit $ac_status )
9129 ac_cv_c_stack_direction=-1
9131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9135 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9137 cat >>confdefs.h <<_ACEOF
9138 #define STACK_DIRECTION $ac_cv_c_stack_direction
9139 _ACEOF
9149 ac_header_dirent=no
9150 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9151 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9152 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9153 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #include <sys/types.h>
9164 #include <$ac_hdr>
9167 main ()
9169 if ((DIR *) 0)
9170 return 0;
9172 return 0;
9174 _ACEOF
9175 rm -f conftest.$ac_objext
9176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177 (eval $ac_compile) 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } &&
9184 { ac_try='test -z "$ac_c_werror_flag"
9185 || test ! -s conftest.err'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try='test -s conftest.$ac_objext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 eval "$as_ac_Header=yes"
9198 else
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 eval "$as_ac_Header=no"
9204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9209 cat >>confdefs.h <<_ACEOF
9210 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9211 _ACEOF
9213 ac_header_dirent=$ac_hdr; break
9216 done
9217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9218 if test $ac_header_dirent = dirent.h; then
9219 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9220 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9221 if test "${ac_cv_search_opendir+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224 ac_func_search_save_LIBS=$LIBS
9225 ac_cv_search_opendir=no
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9233 /* Override any gcc2 internal prototype to avoid an error. */
9234 #ifdef __cplusplus
9235 extern "C"
9236 #endif
9237 /* We use char because int might match the return type of a gcc2
9238 builtin and then its argument prototype would still apply. */
9239 char opendir ();
9241 main ()
9243 opendir ();
9245 return 0;
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_search_opendir="none required"
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9276 rm -f conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9278 if test "$ac_cv_search_opendir" = no; then
9279 for ac_lib in dir; do
9280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 /* Override any gcc2 internal prototype to avoid an error. */
9289 #ifdef __cplusplus
9290 extern "C"
9291 #endif
9292 /* We use char because int might match the return type of a gcc2
9293 builtin and then its argument prototype would still apply. */
9294 char opendir ();
9296 main ()
9298 opendir ();
9300 return 0;
9302 _ACEOF
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305 (eval $ac_link) 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try='test -z "$ac_c_werror_flag"
9313 || test ! -s conftest.err'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_search_opendir="-l$ac_lib"
9326 break
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9332 rm -f conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 done
9336 LIBS=$ac_func_search_save_LIBS
9338 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9339 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9340 if test "$ac_cv_search_opendir" != no; then
9341 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9345 else
9346 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9348 if test "${ac_cv_search_opendir+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 ac_func_search_save_LIBS=$LIBS
9352 ac_cv_search_opendir=no
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9360 /* Override any gcc2 internal prototype to avoid an error. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9366 char opendir ();
9368 main ()
9370 opendir ();
9372 return 0;
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 ac_cv_search_opendir="none required"
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9403 rm -f conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 if test "$ac_cv_search_opendir" = no; then
9406 for ac_lib in x; do
9407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9415 /* Override any gcc2 internal prototype to avoid an error. */
9416 #ifdef __cplusplus
9417 extern "C"
9418 #endif
9419 /* We use char because int might match the return type of a gcc2
9420 builtin and then its argument prototype would still apply. */
9421 char opendir ();
9423 main ()
9425 opendir ();
9427 return 0;
9429 _ACEOF
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432 (eval $ac_link) 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_c_werror_flag"
9440 || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try='test -s conftest$ac_exeext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_cv_search_opendir="-l$ac_lib"
9453 break
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9459 rm -f conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 done
9463 LIBS=$ac_func_search_save_LIBS
9465 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9466 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9467 if test "$ac_cv_search_opendir" != no; then
9468 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9474 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9476 if test "${ac_cv_header_stdc+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 #include <stdlib.h>
9486 #include <stdarg.h>
9487 #include <string.h>
9488 #include <float.h>
9491 main ()
9495 return 0;
9497 _ACEOF
9498 rm -f conftest.$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500 (eval $ac_compile) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_header_stdc=yes
9521 else
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 ac_cv_header_stdc=no
9527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 if test $ac_cv_header_stdc = yes; then
9530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 #include <string.h>
9539 _ACEOF
9540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9541 $EGREP "memchr" >/dev/null 2>&1; then
9543 else
9544 ac_cv_header_stdc=no
9546 rm -f conftest*
9550 if test $ac_cv_header_stdc = yes; then
9551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9552 cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h. */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 #include <stdlib.h>
9560 _ACEOF
9561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9562 $EGREP "free" >/dev/null 2>&1; then
9564 else
9565 ac_cv_header_stdc=no
9567 rm -f conftest*
9571 if test $ac_cv_header_stdc = yes; then
9572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9573 if test "$cross_compiling" = yes; then
9575 else
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 #include <ctype.h>
9583 #if ((' ' & 0x0FF) == 0x020)
9584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9586 #else
9587 # define ISLOWER(c) \
9588 (('a' <= (c) && (c) <= 'i') \
9589 || ('j' <= (c) && (c) <= 'r') \
9590 || ('s' <= (c) && (c) <= 'z'))
9591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9592 #endif
9594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9596 main ()
9598 int i;
9599 for (i = 0; i < 256; i++)
9600 if (XOR (islower (i), ISLOWER (i))
9601 || toupper (i) != TOUPPER (i))
9602 exit(2);
9603 exit (0);
9605 _ACEOF
9606 rm -f conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9618 else
9619 echo "$as_me: program exited with status $ac_status" >&5
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ( exit $ac_status )
9624 ac_cv_header_stdc=no
9626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9630 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9631 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9632 if test $ac_cv_header_stdc = yes; then
9634 cat >>confdefs.h <<\_ACEOF
9635 #define STDC_HEADERS 1
9636 _ACEOF
9674 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
9676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9678 echo "$as_me:$LINENO: checking for $ac_header" >&5
9679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9685 else
9686 # Is the header compilable?
9687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 $ac_includes_default
9696 #include <$ac_header>
9697 _ACEOF
9698 rm -f conftest.$ac_objext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9700 (eval $ac_compile) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest.$ac_objext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_header_compiler=yes
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_header_compiler=no
9727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9729 echo "${ECHO_T}$ac_header_compiler" >&6
9731 # Is the header present?
9732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 #include <$ac_header>
9741 _ACEOF
9742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } >/dev/null; then
9750 if test -s conftest.err; then
9751 ac_cpp_err=$ac_c_preproc_warn_flag
9752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9753 else
9754 ac_cpp_err=
9756 else
9757 ac_cpp_err=yes
9759 if test -z "$ac_cpp_err"; then
9760 ac_header_preproc=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_header_preproc=no
9767 rm -f conftest.err conftest.$ac_ext
9768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9769 echo "${ECHO_T}$ac_header_preproc" >&6
9771 # So? What about this header?
9772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9773 yes:no: )
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9778 ac_header_preproc=yes
9780 no:yes:* )
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9794 cat <<\_ASBOX
9795 ## ------------------------------ ##
9796 ## Report this to admin@amule.org ##
9797 ## ------------------------------ ##
9798 _ASBOX
9800 sed "s/^/$as_me: WARNING: /" >&2
9802 esac
9803 echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 eval "$as_ac_Header=\$ac_header_preproc"
9810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9815 cat >>confdefs.h <<_ACEOF
9816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9817 _ACEOF
9821 done
9823 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9824 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9825 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <sys/types.h>
9835 #include <sys/wait.h>
9836 #ifndef WEXITSTATUS
9837 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9838 #endif
9839 #ifndef WIFEXITED
9840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9841 #endif
9844 main ()
9846 int s;
9847 wait (&s);
9848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9850 return 0;
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest.$ac_objext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_header_sys_wait_h=yes
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_header_sys_wait_h=no
9882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9885 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9886 if test $ac_cv_header_sys_wait_h = yes; then
9888 cat >>confdefs.h <<\_ACEOF
9889 #define HAVE_SYS_WAIT_H 1
9890 _ACEOF
9895 # Checks for typedefs, structures, and compiler characteristics.
9896 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9897 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9898 if test "${ac_cv_header_stdbool_h+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 #include <stdbool.h>
9909 #ifndef bool
9910 # error bool is not defined
9911 #endif
9912 #ifndef false
9913 # error false is not defined
9914 #endif
9915 #if false
9916 # error false is not 0
9917 #endif
9918 #ifndef true
9919 # error true is not defined
9920 #endif
9921 #if true != 1
9922 # error true is not 1
9923 #endif
9924 #ifndef __bool_true_false_are_defined
9925 # error __bool_true_false_are_defined is not defined
9926 #endif
9928 struct s { _Bool s: 1; _Bool t; } s;
9930 char a[true == 1 ? 1 : -1];
9931 char b[false == 0 ? 1 : -1];
9932 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9933 char d[(bool) -0.5 == true ? 1 : -1];
9934 bool e = &s;
9935 char f[(_Bool) -0.0 == false ? 1 : -1];
9936 char g[true];
9937 char h[sizeof (_Bool)];
9938 char i[sizeof s.t];
9941 main ()
9943 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9945 return 0;
9947 _ACEOF
9948 rm -f conftest.$ac_objext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9950 (eval $ac_compile) 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest.$ac_objext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_cv_header_stdbool_h=yes
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_header_stdbool_h=no
9977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9979 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9980 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9981 echo "$as_me:$LINENO: checking for _Bool" >&5
9982 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9983 if test "${ac_cv_type__Bool+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9994 main ()
9996 if ((_Bool *) 0)
9997 return 0;
9998 if (sizeof (_Bool))
9999 return 0;
10001 return 0;
10003 _ACEOF
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag"
10014 || test ! -s conftest.err'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest.$ac_objext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_cv_type__Bool=yes
10027 else
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_cv_type__Bool=no
10033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10035 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10036 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10037 if test $ac_cv_type__Bool = yes; then
10039 cat >>confdefs.h <<_ACEOF
10040 #define HAVE__BOOL 1
10041 _ACEOF
10046 if test $ac_cv_header_stdbool_h = yes; then
10048 cat >>confdefs.h <<\_ACEOF
10049 #define HAVE_STDBOOL_H 1
10050 _ACEOF
10054 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10055 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10056 if test "${ac_cv_c_const+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10067 main ()
10069 /* FIXME: Include the comments suggested by Paul. */
10070 #ifndef __cplusplus
10071 /* Ultrix mips cc rejects this. */
10072 typedef int charset[2];
10073 const charset x;
10074 /* SunOS 4.1.1 cc rejects this. */
10075 char const *const *ccp;
10076 char **p;
10077 /* NEC SVR4.0.2 mips cc rejects this. */
10078 struct point {int x, y;};
10079 static struct point const zero = {0,0};
10080 /* AIX XL C 1.02.0.0 rejects this.
10081 It does not let you subtract one const X* pointer from another in
10082 an arm of an if-expression whose if-part is not a constant
10083 expression */
10084 const char *g = "string";
10085 ccp = &g + (g ? g-g : 0);
10086 /* HPUX 7.0 cc rejects these. */
10087 ++ccp;
10088 p = (char**) ccp;
10089 ccp = (char const *const *) p;
10090 { /* SCO 3.2v4 cc rejects this. */
10091 char *t;
10092 char const *s = 0 ? (char *) 0 : (char const *) 0;
10094 *t++ = 0;
10096 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10097 int x[] = {25, 17};
10098 const int *foo = &x[0];
10099 ++foo;
10101 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10102 typedef const int *iptr;
10103 iptr p = 0;
10104 ++p;
10106 { /* AIX XL C 1.02.0.0 rejects this saying
10107 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10108 struct s { int j; const int *ap[3]; };
10109 struct s *b; b->j = 5;
10111 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10112 const int foo = 10;
10114 #endif
10117 return 0;
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest.$ac_objext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_c_const=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_cv_c_const=no
10149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10152 echo "${ECHO_T}$ac_cv_c_const" >&6
10153 if test $ac_cv_c_const = no; then
10155 cat >>confdefs.h <<\_ACEOF
10156 #define const
10157 _ACEOF
10161 echo "$as_me:$LINENO: checking for inline" >&5
10162 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10163 if test "${ac_cv_c_inline+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 ac_cv_c_inline=no
10167 for ac_kw in inline __inline__ __inline; do
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 #ifndef __cplusplus
10175 typedef int foo_t;
10176 static $ac_kw foo_t static_foo () {return 0; }
10177 $ac_kw foo_t foo () {return 0; }
10178 #endif
10180 _ACEOF
10181 rm -f conftest.$ac_objext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>conftest.er1
10184 ac_status=$?
10185 grep -v '^ *+' conftest.er1 >conftest.err
10186 rm -f conftest.er1
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try='test -z "$ac_c_werror_flag"
10191 || test ! -s conftest.err'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; } &&
10197 { ac_try='test -s conftest.$ac_objext'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_c_inline=$ac_kw; break
10204 else
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210 done
10213 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10214 echo "${ECHO_T}$ac_cv_c_inline" >&6
10217 case $ac_cv_c_inline in
10218 inline | yes) ;;
10220 case $ac_cv_c_inline in
10221 no) ac_val=;;
10222 *) ac_val=$ac_cv_c_inline;;
10223 esac
10224 cat >>confdefs.h <<_ACEOF
10225 #ifndef __cplusplus
10226 #define inline $ac_val
10227 #endif
10228 _ACEOF
10230 esac
10232 echo "$as_me:$LINENO: checking for mode_t" >&5
10233 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10234 if test "${ac_cv_type_mode_t+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 $ac_includes_default
10245 main ()
10247 if ((mode_t *) 0)
10248 return 0;
10249 if (sizeof (mode_t))
10250 return 0;
10252 return 0;
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag"
10265 || test ! -s conftest.err'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest.$ac_objext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_type_mode_t=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_type_mode_t=no
10284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10286 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10287 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10288 if test $ac_cv_type_mode_t = yes; then
10290 else
10292 cat >>confdefs.h <<_ACEOF
10293 #define mode_t int
10294 _ACEOF
10298 echo "$as_me:$LINENO: checking for off_t" >&5
10299 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10300 if test "${ac_cv_type_off_t+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 $ac_includes_default
10311 main ()
10313 if ((off_t *) 0)
10314 return 0;
10315 if (sizeof (off_t))
10316 return 0;
10318 return 0;
10320 _ACEOF
10321 rm -f conftest.$ac_objext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10323 (eval $ac_compile) 2>conftest.er1
10324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try='test -z "$ac_c_werror_flag"
10331 || test ! -s conftest.err'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_cv_type_off_t=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ac_cv_type_off_t=no
10350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10352 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10353 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10354 if test $ac_cv_type_off_t = yes; then
10356 else
10358 cat >>confdefs.h <<_ACEOF
10359 #define off_t long
10360 _ACEOF
10364 echo "$as_me:$LINENO: checking for size_t" >&5
10365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10366 if test "${ac_cv_type_size_t+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10377 main ()
10379 if ((size_t *) 0)
10380 return 0;
10381 if (sizeof (size_t))
10382 return 0;
10384 return 0;
10386 _ACEOF
10387 rm -f conftest.$ac_objext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try='test -z "$ac_c_werror_flag"
10397 || test ! -s conftest.err'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_type_size_t=yes
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_type_size_t=no
10416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10419 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10420 if test $ac_cv_type_size_t = yes; then
10422 else
10424 cat >>confdefs.h <<_ACEOF
10425 #define size_t unsigned
10426 _ACEOF
10430 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10431 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10432 if test "${ac_cv_header_time+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/types.h>
10442 #include <sys/time.h>
10443 #include <time.h>
10446 main ()
10448 if ((struct tm *) 0)
10449 return 0;
10451 return 0;
10453 _ACEOF
10454 rm -f conftest.$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>conftest.er1
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest.$ac_objext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_header_time=yes
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_cv_header_time=no
10483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10485 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10486 echo "${ECHO_T}$ac_cv_header_time" >&6
10487 if test $ac_cv_header_time = yes; then
10489 cat >>confdefs.h <<\_ACEOF
10490 #define TIME_WITH_SYS_TIME 1
10491 _ACEOF
10495 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10496 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10497 if test "${ac_cv_struct_tm+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 #include <sys/types.h>
10507 #include <time.h>
10510 main ()
10512 struct tm *tp; tp->tm_sec;
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_struct_tm=time.h
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_cv_struct_tm=sys/time.h
10546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10549 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10550 if test $ac_cv_struct_tm = sys/time.h; then
10552 cat >>confdefs.h <<\_ACEOF
10553 #define TM_IN_SYS_TIME 1
10554 _ACEOF
10558 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10559 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10560 if test "${ac_cv_type_uid_t+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>
10571 _ACEOF
10572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10573 $EGREP "uid_t" >/dev/null 2>&1; then
10574 ac_cv_type_uid_t=yes
10575 else
10576 ac_cv_type_uid_t=no
10578 rm -f conftest*
10581 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10582 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10583 if test $ac_cv_type_uid_t = no; then
10585 cat >>confdefs.h <<\_ACEOF
10586 #define uid_t int
10587 _ACEOF
10590 cat >>confdefs.h <<\_ACEOF
10591 #define gid_t int
10592 _ACEOF
10596 echo "$as_me:$LINENO: checking for working volatile" >&5
10597 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10598 if test "${ac_cv_c_volatile+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10609 main ()
10612 volatile int x;
10613 int * volatile y;
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag"
10628 || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_c_volatile=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_c_volatile=no
10647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10649 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10650 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10651 if test $ac_cv_c_volatile = no; then
10653 cat >>confdefs.h <<\_ACEOF
10654 #define volatile
10655 _ACEOF
10659 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10660 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10661 if test "${ac_cv_type_ptrdiff_t+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. */
10670 $ac_includes_default
10672 main ()
10674 if ((ptrdiff_t *) 0)
10675 return 0;
10676 if (sizeof (ptrdiff_t))
10677 return 0;
10679 return 0;
10681 _ACEOF
10682 rm -f conftest.$ac_objext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_type_ptrdiff_t=yes
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_cv_type_ptrdiff_t=no
10711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10713 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10714 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10715 if test $ac_cv_type_ptrdiff_t = yes; then
10717 cat >>confdefs.h <<_ACEOF
10718 #define HAVE_PTRDIFF_T 1
10719 _ACEOF
10725 # Checks for library functions.
10726 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10727 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10728 if test "${ac_cv_func_closedir_void+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 if test "$cross_compiling" = yes; then
10732 ac_cv_func_closedir_void=yes
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 $ac_includes_default
10741 #include <$ac_header_dirent>
10742 #ifndef __cplusplus
10743 int closedir ();
10744 #endif
10747 main ()
10749 exit (closedir (opendir (".")) != 0);
10751 return 0;
10753 _ACEOF
10754 rm -f conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_func_closedir_void=no
10766 else
10767 echo "$as_me: program exited with status $ac_status" >&5
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ( exit $ac_status )
10772 ac_cv_func_closedir_void=yes
10774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10777 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10778 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10779 if test $ac_cv_func_closedir_void = yes; then
10781 cat >>confdefs.h <<\_ACEOF
10782 #define CLOSEDIR_VOID 1
10783 _ACEOF
10787 if test $ac_cv_c_compiler_gnu = yes; then
10788 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10789 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10790 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 ac_pattern="Autoconf.*'x'"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <sgtty.h>
10801 Autoconf TIOCGETP
10802 _ACEOF
10803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10804 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10805 ac_cv_prog_gcc_traditional=yes
10806 else
10807 ac_cv_prog_gcc_traditional=no
10809 rm -f conftest*
10812 if test $ac_cv_prog_gcc_traditional = no; then
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <termio.h>
10820 Autoconf TCGETA
10821 _ACEOF
10822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10823 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10824 ac_cv_prog_gcc_traditional=yes
10826 rm -f conftest*
10830 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10831 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10832 if test $ac_cv_prog_gcc_traditional = yes; then
10833 CC="$CC -traditional"
10837 echo "$as_me:$LINENO: checking for pid_t" >&5
10838 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10839 if test "${ac_cv_type_pid_t+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 $ac_includes_default
10850 main ()
10852 if ((pid_t *) 0)
10853 return 0;
10854 if (sizeof (pid_t))
10855 return 0;
10857 return 0;
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag"
10870 || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_cv_type_pid_t=yes
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 ac_cv_type_pid_t=no
10889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10891 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10892 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10893 if test $ac_cv_type_pid_t = yes; then
10895 else
10897 cat >>confdefs.h <<_ACEOF
10898 #define pid_t int
10899 _ACEOF
10905 for ac_header in unistd.h vfork.h
10907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10909 echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10916 else
10917 # Is the header compilable?
10918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 #include <$ac_header>
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
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); }; } &&
10945 { ac_try='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_header_compiler=yes
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_header_compiler=no
10958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960 echo "${ECHO_T}$ac_header_compiler" >&6
10962 # Is the header present?
10963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 #include <$ac_header>
10972 _ACEOF
10973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev/null; then
10981 if test -s conftest.err; then
10982 ac_cpp_err=$ac_c_preproc_warn_flag
10983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10984 else
10985 ac_cpp_err=
10987 else
10988 ac_cpp_err=yes
10990 if test -z "$ac_cpp_err"; then
10991 ac_header_preproc=yes
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_header_preproc=no
10998 rm -f conftest.err conftest.$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11000 echo "${ECHO_T}$ac_header_preproc" >&6
11002 # So? What about this header?
11003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11004 yes:no: )
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11009 ac_header_preproc=yes
11011 no:yes:* )
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11025 cat <<\_ASBOX
11026 ## ------------------------------ ##
11027 ## Report this to admin@amule.org ##
11028 ## ------------------------------ ##
11029 _ASBOX
11031 sed "s/^/$as_me: WARNING: /" >&2
11033 esac
11034 echo "$as_me:$LINENO: checking for $ac_header" >&5
11035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 eval "$as_ac_Header=\$ac_header_preproc"
11041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11046 cat >>confdefs.h <<_ACEOF
11047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11048 _ACEOF
11052 done
11056 for ac_func in fork vfork
11058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11059 echo "$as_me:$LINENO: checking for $ac_func" >&5
11060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11061 if eval "test \"\${$as_ac_var+set}\" = set"; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11072 #define $ac_func innocuous_$ac_func
11074 /* System header to define __stub macros and hopefully few prototypes,
11075 which can conflict with char $ac_func (); below.
11076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11077 <limits.h> exists even on freestanding compilers. */
11079 #ifdef __STDC__
11080 # include <limits.h>
11081 #else
11082 # include <assert.h>
11083 #endif
11085 #undef $ac_func
11087 /* Override any gcc2 internal prototype to avoid an error. */
11088 #ifdef __cplusplus
11089 extern "C"
11091 #endif
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11094 char $ac_func ();
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11099 choke me
11100 #else
11101 char (*f) () = $ac_func;
11102 #endif
11103 #ifdef __cplusplus
11105 #endif
11108 main ()
11110 return f != $ac_func;
11112 return 0;
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag"
11125 || test ! -s conftest.err'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; } &&
11131 { ac_try='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 eval "$as_ac_var=yes"
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 eval "$as_ac_var=no"
11144 rm -f conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11149 if test `eval echo '${'$as_ac_var'}'` = yes; then
11150 cat >>confdefs.h <<_ACEOF
11151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11152 _ACEOF
11155 done
11157 if test "x$ac_cv_func_fork" = xyes; then
11158 echo "$as_me:$LINENO: checking for working fork" >&5
11159 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11160 if test "${ac_cv_func_fork_works+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163 if test "$cross_compiling" = yes; then
11164 ac_cv_func_fork_works=cross
11165 else
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* By Ruediger Kuhlmann. */
11168 #include <sys/types.h>
11169 #if HAVE_UNISTD_H
11170 # include <unistd.h>
11171 #endif
11172 /* Some systems only have a dummy stub for fork() */
11173 int main ()
11175 if (fork() < 0)
11176 exit (1);
11177 exit (0);
11179 _ACEOF
11180 rm -f conftest$ac_exeext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182 (eval $ac_link) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_func_fork_works=yes
11192 else
11193 echo "$as_me: program exited with status $ac_status" >&5
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ( exit $ac_status )
11198 ac_cv_func_fork_works=no
11200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11204 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11206 else
11207 ac_cv_func_fork_works=$ac_cv_func_fork
11209 if test "x$ac_cv_func_fork_works" = xcross; then
11210 case $host in
11211 *-*-amigaos* | *-*-msdosdjgpp*)
11212 # Override, as these systems have only a dummy fork() stub
11213 ac_cv_func_fork_works=no
11216 ac_cv_func_fork_works=yes
11218 esac
11219 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11220 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11222 ac_cv_func_vfork_works=$ac_cv_func_vfork
11223 if test "x$ac_cv_func_vfork" = xyes; then
11224 echo "$as_me:$LINENO: checking for working vfork" >&5
11225 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11226 if test "${ac_cv_func_vfork_works+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 if test "$cross_compiling" = yes; then
11230 ac_cv_func_vfork_works=cross
11231 else
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 /* Thanks to Paul Eggert for this test. */
11239 #include <stdio.h>
11240 #include <stdlib.h>
11241 #include <sys/types.h>
11242 #include <sys/stat.h>
11243 #include <sys/wait.h>
11244 #if HAVE_UNISTD_H
11245 # include <unistd.h>
11246 #endif
11247 #if HAVE_VFORK_H
11248 # include <vfork.h>
11249 #endif
11250 /* On some sparc systems, changes by the child to local and incoming
11251 argument registers are propagated back to the parent. The compiler
11252 is told about this with #include <vfork.h>, but some compilers
11253 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11254 static variable whose address is put into a register that is
11255 clobbered by the vfork. */
11256 static void
11257 #ifdef __cplusplus
11258 sparc_address_test (int arg)
11259 # else
11260 sparc_address_test (arg) int arg;
11261 #endif
11263 static pid_t child;
11264 if (!child) {
11265 child = vfork ();
11266 if (child < 0) {
11267 perror ("vfork");
11268 _exit(2);
11270 if (!child) {
11271 arg = getpid();
11272 write(-1, "", 0);
11273 _exit (arg);
11279 main ()
11281 pid_t parent = getpid ();
11282 pid_t child;
11284 sparc_address_test (0);
11286 child = vfork ();
11288 if (child == 0) {
11289 /* Here is another test for sparc vfork register problems. This
11290 test uses lots of local variables, at least as many local
11291 variables as main has allocated so far including compiler
11292 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11293 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11294 reuse the register of parent for one of the local variables,
11295 since it will think that parent can't possibly be used any more
11296 in this routine. Assigning to the local variable will thus
11297 munge parent in the parent process. */
11298 pid_t
11299 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11300 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11301 /* Convince the compiler that p..p7 are live; otherwise, it might
11302 use the same hardware register for all 8 local variables. */
11303 if (p != p1 || p != p2 || p != p3 || p != p4
11304 || p != p5 || p != p6 || p != p7)
11305 _exit(1);
11307 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11308 from child file descriptors. If the child closes a descriptor
11309 before it execs or exits, this munges the parent's descriptor
11310 as well. Test for this by closing stdout in the child. */
11311 _exit(close(fileno(stdout)) != 0);
11312 } else {
11313 int status;
11314 struct stat st;
11316 while (wait(&status) != child)
11318 exit(
11319 /* Was there some problem with vforking? */
11320 child < 0
11322 /* Did the child fail? (This shouldn't happen.) */
11323 || status
11325 /* Did the vfork/compiler bug occur? */
11326 || parent != getpid()
11328 /* Did the file descriptor bug occur? */
11329 || fstat(fileno(stdout), &st) != 0
11333 _ACEOF
11334 rm -f conftest$ac_exeext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11336 (eval $ac_link) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_func_vfork_works=yes
11346 else
11347 echo "$as_me: program exited with status $ac_status" >&5
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ( exit $ac_status )
11352 ac_cv_func_vfork_works=no
11354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11357 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11358 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11361 if test "x$ac_cv_func_fork_works" = xcross; then
11362 ac_cv_func_vfork_works=$ac_cv_func_vfork
11363 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11364 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11367 if test "x$ac_cv_func_vfork_works" = xyes; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_WORKING_VFORK 1
11371 _ACEOF
11373 else
11375 cat >>confdefs.h <<\_ACEOF
11376 #define vfork fork
11377 _ACEOF
11380 if test "x$ac_cv_func_fork_works" = xyes; then
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_WORKING_FORK 1
11384 _ACEOF
11388 if test x$SYS != xwin32; then
11390 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11391 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11392 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11393 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396 ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-lsun $LIBS"
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h. */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11405 /* Override any gcc2 internal prototype to avoid an error. */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 /* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11411 char getmntent ();
11413 main ()
11415 getmntent ();
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_lib_sun_getmntent=yes
11443 else
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 ac_cv_lib_sun_getmntent=no
11449 rm -f conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_lib_save_LIBS
11453 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11454 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11455 if test $ac_cv_lib_sun_getmntent = yes; then
11456 LIBS="-lsun $LIBS"
11457 else
11458 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11459 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11460 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-lseq $LIBS"
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11472 /* Override any gcc2 internal prototype to avoid an error. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 /* We use char because int might match the return type of a gcc2
11477 builtin and then its argument prototype would still apply. */
11478 char getmntent ();
11480 main ()
11482 getmntent ();
11484 return 0;
11486 _ACEOF
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11489 (eval $ac_link) 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_lib_seq_getmntent=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_cv_lib_seq_getmntent=no
11516 rm -f conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_lib_save_LIBS
11520 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11521 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11522 if test $ac_cv_lib_seq_getmntent = yes; then
11523 LIBS="-lseq $LIBS"
11524 else
11525 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11526 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11527 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-lgen $LIBS"
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 /* Override any gcc2 internal prototype to avoid an error. */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 /* We use char because int might match the return type of a gcc2
11544 builtin and then its argument prototype would still apply. */
11545 char getmntent ();
11547 main ()
11549 getmntent ();
11551 return 0;
11553 _ACEOF
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_lib_gen_getmntent=yes
11577 else
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_cv_lib_gen_getmntent=no
11583 rm -f conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11587 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11588 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11589 if test $ac_cv_lib_gen_getmntent = yes; then
11590 LIBS="-lgen $LIBS"
11598 for ac_func in getmntent
11600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601 echo "$as_me:$LINENO: checking for $ac_func" >&5
11602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11603 if eval "test \"\${$as_ac_var+set}\" = set"; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11614 #define $ac_func innocuous_$ac_func
11616 /* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func (); below.
11618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 <limits.h> exists even on freestanding compilers. */
11621 #ifdef __STDC__
11622 # include <limits.h>
11623 #else
11624 # include <assert.h>
11625 #endif
11627 #undef $ac_func
11629 /* Override any gcc2 internal prototype to avoid an error. */
11630 #ifdef __cplusplus
11631 extern "C"
11633 #endif
11634 /* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11636 char $ac_func ();
11637 /* The GNU C library defines this for functions which it implements
11638 to always fail with ENOSYS. Some functions are actually named
11639 something starting with __ and the normal name is an alias. */
11640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11641 choke me
11642 #else
11643 char (*f) () = $ac_func;
11644 #endif
11645 #ifdef __cplusplus
11647 #endif
11650 main ()
11652 return f != $ac_func;
11654 return 0;
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11680 else
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 eval "$as_ac_var=no"
11686 rm -f conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11691 if test `eval echo '${'$as_ac_var'}'` = yes; then
11692 cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11694 _ACEOF
11697 done
11700 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11701 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11702 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705 rm -f conftest.sym conftest.file
11706 echo >conftest.file
11707 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11708 if test "$cross_compiling" = yes; then
11709 ac_cv_func_lstat_dereferences_slashed_symlink=no
11710 else
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h. */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11719 main ()
11721 struct stat sbuf;
11722 /* Linux will dereference the symlink and fail.
11723 That is better in the sense that it means we will not
11724 have to compile and use the lstat wrapper. */
11725 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11727 return 0;
11729 _ACEOF
11730 rm -f conftest$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11742 else
11743 echo "$as_me: program exited with status $ac_status" >&5
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ( exit $ac_status )
11748 ac_cv_func_lstat_dereferences_slashed_symlink=no
11750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11752 else
11753 # If the `ln -s' command failed, then we probably don't even
11754 # have an lstat function.
11755 ac_cv_func_lstat_dereferences_slashed_symlink=no
11757 rm -f conftest.sym conftest.file
11760 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11761 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11763 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11765 cat >>confdefs.h <<_ACEOF
11766 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11767 _ACEOF
11770 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11771 case $LIBOBJS in
11772 "lstat.$ac_objext" | \
11773 *" lstat.$ac_objext" | \
11774 "lstat.$ac_objext "* | \
11775 *" lstat.$ac_objext "* ) ;;
11776 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11777 esac
11781 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11782 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11783 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786 if test "$cross_compiling" = yes; then
11787 ac_cv_func_lstat_empty_string_bug=yes
11788 else
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h. */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11797 main ()
11799 struct stat sbuf;
11800 exit (lstat ("", &sbuf) ? 1 : 0);
11802 return 0;
11804 _ACEOF
11805 rm -f conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_func_lstat_empty_string_bug=yes
11817 else
11818 echo "$as_me: program exited with status $ac_status" >&5
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 ( exit $ac_status )
11823 ac_cv_func_lstat_empty_string_bug=no
11825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11828 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11829 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11830 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11831 case $LIBOBJS in
11832 "lstat.$ac_objext" | \
11833 *" lstat.$ac_objext" | \
11834 "lstat.$ac_objext "* | \
11835 *" lstat.$ac_objext "* ) ;;
11836 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11837 esac
11840 cat >>confdefs.h <<_ACEOF
11841 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11842 _ACEOF
11846 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11847 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11848 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851 rm -f conftest.sym conftest.file
11852 echo >conftest.file
11853 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11854 if test "$cross_compiling" = yes; then
11855 ac_cv_func_lstat_dereferences_slashed_symlink=no
11856 else
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11865 main ()
11867 struct stat sbuf;
11868 /* Linux will dereference the symlink and fail.
11869 That is better in the sense that it means we will not
11870 have to compile and use the lstat wrapper. */
11871 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11873 return 0;
11875 _ACEOF
11876 rm -f conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11888 else
11889 echo "$as_me: program exited with status $ac_status" >&5
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ( exit $ac_status )
11894 ac_cv_func_lstat_dereferences_slashed_symlink=no
11896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11898 else
11899 # If the `ln -s' command failed, then we probably don't even
11900 # have an lstat function.
11901 ac_cv_func_lstat_dereferences_slashed_symlink=no
11903 rm -f conftest.sym conftest.file
11906 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11907 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11909 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11911 cat >>confdefs.h <<_ACEOF
11912 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11913 _ACEOF
11916 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11917 case $LIBOBJS in
11918 "lstat.$ac_objext" | \
11919 *" lstat.$ac_objext" | \
11920 "lstat.$ac_objext "* | \
11921 *" lstat.$ac_objext "* ) ;;
11922 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11923 esac
11930 echo "$as_me:$LINENO: checking for working memcmp" >&5
11931 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11932 if test "${ac_cv_func_memcmp_working+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 if test "$cross_compiling" = yes; then
11936 ac_cv_func_memcmp_working=no
11937 else
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11946 main ()
11949 /* Some versions of memcmp are not 8-bit clean. */
11950 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11951 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11952 exit (1);
11954 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11955 or more and with at least one buffer not starting on a 4-byte boundary.
11956 William Lewis provided this test program. */
11958 char foo[21];
11959 char bar[21];
11960 int i;
11961 for (i = 0; i < 4; i++)
11963 char *a = foo + i;
11964 char *b = bar + i;
11965 strcpy (a, "--------01111111");
11966 strcpy (b, "--------10000000");
11967 if (memcmp (a, b, 16) >= 0)
11968 exit (1);
11970 exit (0);
11974 return 0;
11976 _ACEOF
11977 rm -f conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_cv_func_memcmp_working=yes
11989 else
11990 echo "$as_me: program exited with status $ac_status" >&5
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ( exit $ac_status )
11995 ac_cv_func_memcmp_working=no
11997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12000 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12001 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12002 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12003 "memcmp.$ac_objext" | \
12004 *" memcmp.$ac_objext" | \
12005 "memcmp.$ac_objext "* | \
12006 *" memcmp.$ac_objext "* ) ;;
12007 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12008 esac
12013 for ac_header in sys/select.h sys/socket.h
12015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12017 echo "$as_me:$LINENO: checking for $ac_header" >&5
12018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12024 else
12025 # Is the header compilable?
12026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12028 cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h. */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12035 #include <$ac_header>
12036 _ACEOF
12037 rm -f conftest.$ac_objext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_header_compiler=yes
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ac_header_compiler=no
12066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12068 echo "${ECHO_T}$ac_header_compiler" >&6
12070 # Is the header present?
12071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h. */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 #include <$ac_header>
12080 _ACEOF
12081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } >/dev/null; then
12089 if test -s conftest.err; then
12090 ac_cpp_err=$ac_c_preproc_warn_flag
12091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12092 else
12093 ac_cpp_err=
12095 else
12096 ac_cpp_err=yes
12098 if test -z "$ac_cpp_err"; then
12099 ac_header_preproc=yes
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_header_preproc=no
12106 rm -f conftest.err conftest.$ac_ext
12107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12108 echo "${ECHO_T}$ac_header_preproc" >&6
12110 # So? What about this header?
12111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12112 yes:no: )
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12117 ac_header_preproc=yes
12119 no:yes:* )
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12133 cat <<\_ASBOX
12134 ## ------------------------------ ##
12135 ## Report this to admin@amule.org ##
12136 ## ------------------------------ ##
12137 _ASBOX
12139 sed "s/^/$as_me: WARNING: /" >&2
12141 esac
12142 echo "$as_me:$LINENO: checking for $ac_header" >&5
12143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 eval "$as_ac_Header=\$ac_header_preproc"
12149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12156 _ACEOF
12160 done
12162 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12163 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12164 if test "${ac_cv_func_select_args+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12168 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12169 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 $ac_includes_default
12177 #if HAVE_SYS_SELECT_H
12178 # include <sys/select.h>
12179 #endif
12180 #if HAVE_SYS_SOCKET_H
12181 # include <sys/socket.h>
12182 #endif
12185 main ()
12187 extern int select ($ac_arg1,
12188 $ac_arg234, $ac_arg234, $ac_arg234,
12189 $ac_arg5);
12191 return 0;
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag"
12204 || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12223 done
12224 done
12225 done
12226 # Provide a safe default value.
12227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12230 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12231 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12232 ac_save_IFS=$IFS; IFS=','
12233 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12234 IFS=$ac_save_IFS
12235 shift
12237 cat >>confdefs.h <<_ACEOF
12238 #define SELECT_TYPE_ARG1 $1
12239 _ACEOF
12242 cat >>confdefs.h <<_ACEOF
12243 #define SELECT_TYPE_ARG234 ($2)
12244 _ACEOF
12247 cat >>confdefs.h <<_ACEOF
12248 #define SELECT_TYPE_ARG5 ($3)
12249 _ACEOF
12251 rm -f conftest*
12253 echo "$as_me:$LINENO: checking for function prototypes" >&5
12254 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12255 if test "$ac_cv_prog_cc_stdc" != no; then
12256 echo "$as_me:$LINENO: result: yes" >&5
12257 echo "${ECHO_T}yes" >&6
12259 cat >>confdefs.h <<\_ACEOF
12260 #define PROTOTYPES 1
12261 _ACEOF
12264 cat >>confdefs.h <<\_ACEOF
12265 #define __PROTOTYPES 1
12266 _ACEOF
12268 else
12269 echo "$as_me:$LINENO: result: no" >&5
12270 echo "${ECHO_T}no" >&6
12273 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12274 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12275 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 ac_cv_func_setvbuf_reversed=no
12279 cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h. */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12285 #include <stdio.h>
12286 # if PROTOTYPES
12287 int (setvbuf) (FILE *, int, char *, size_t);
12288 # endif
12290 main ()
12292 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12294 return 0;
12296 _ACEOF
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h. */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12325 #include <stdio.h>
12326 # if PROTOTYPES
12327 int (setvbuf) (FILE *, int, char *, size_t);
12328 # endif
12330 main ()
12332 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12334 return 0;
12336 _ACEOF
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_c_werror_flag"
12347 || test ! -s conftest.err'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try='test -s conftest$ac_exeext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 # It compiles and links either way, so it must not be declared
12360 # with a prototype and most likely this is a K&R C compiler.
12361 # Try running it.
12362 if test "$cross_compiling" = yes; then
12363 : # Assume setvbuf is not reversed when cross-compiling.
12364 else
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h. */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <stdio.h>
12373 main ()
12375 /* This call has the arguments reversed.
12376 A reversed system may check and see that the address of buf
12377 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12378 char buf;
12379 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12380 exit (1);
12381 putchar ('\r');
12382 exit (0); /* Non-reversed systems SEGV here. */
12384 return 0;
12386 _ACEOF
12387 rm -f conftest$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389 (eval $ac_link) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_func_setvbuf_reversed=yes
12399 else
12400 echo "$as_me: program exited with status $ac_status" >&5
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ( exit $ac_status )
12405 rm -f core *.core
12407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12409 ac_cv_func_setvbuf_reversed=yes
12410 else
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12415 rm -f conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12422 rm -f conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12425 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12426 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12427 if test $ac_cv_func_setvbuf_reversed = yes; then
12429 cat >>confdefs.h <<\_ACEOF
12430 #define SETVBUF_REVERSED 1
12431 _ACEOF
12435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12437 if test "${ac_cv_type_signal+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #include <sys/types.h>
12447 #include <signal.h>
12448 #ifdef signal
12449 # undef signal
12450 #endif
12451 #ifdef __cplusplus
12452 extern "C" void (*signal (int, void (*)(int)))(int);
12453 #else
12454 void (*signal ()) ();
12455 #endif
12458 main ()
12460 int i;
12462 return 0;
12464 _ACEOF
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>conftest.er1
12468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_cv_type_signal=void
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_cv_type_signal=int
12494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12497 echo "${ECHO_T}$ac_cv_type_signal" >&6
12499 cat >>confdefs.h <<_ACEOF
12500 #define RETSIGTYPE $ac_cv_type_signal
12501 _ACEOF
12504 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12505 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12506 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509 if test "$cross_compiling" = yes; then
12510 ac_cv_func_stat_empty_string_bug=yes
12511 else
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12520 main ()
12522 struct stat sbuf;
12523 exit (stat ("", &sbuf) ? 1 : 0);
12525 return 0;
12527 _ACEOF
12528 rm -f conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_func_stat_empty_string_bug=yes
12540 else
12541 echo "$as_me: program exited with status $ac_status" >&5
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ( exit $ac_status )
12546 ac_cv_func_stat_empty_string_bug=no
12548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12551 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12552 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12553 if test $ac_cv_func_stat_empty_string_bug = yes; then
12554 case $LIBOBJS in
12555 "stat.$ac_objext" | \
12556 *" stat.$ac_objext" | \
12557 "stat.$ac_objext "* | \
12558 *" stat.$ac_objext "* ) ;;
12559 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12560 esac
12563 cat >>confdefs.h <<_ACEOF
12564 #define HAVE_STAT_EMPTY_STRING_BUG 1
12565 _ACEOF
12570 for ac_func in strftime
12572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12575 if eval "test \"\${$as_ac_var+set}\" = set"; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586 #define $ac_func innocuous_$ac_func
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12599 #undef $ac_func
12601 /* Override any gcc2 internal prototype to avoid an error. */
12602 #ifdef __cplusplus
12603 extern "C"
12605 #endif
12606 /* We use char because int might match the return type of a gcc2
12607 builtin and then its argument prototype would still apply. */
12608 char $ac_func ();
12609 /* The GNU C library defines this for functions which it implements
12610 to always fail with ENOSYS. Some functions are actually named
12611 something starting with __ and the normal name is an alias. */
12612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12613 choke me
12614 #else
12615 char (*f) () = $ac_func;
12616 #endif
12617 #ifdef __cplusplus
12619 #endif
12622 main ()
12624 return f != $ac_func;
12626 return 0;
12628 _ACEOF
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag"
12639 || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 eval "$as_ac_var=yes"
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 eval "$as_ac_var=no"
12658 rm -f conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12663 if test `eval echo '${'$as_ac_var'}'` = yes; then
12664 cat >>confdefs.h <<_ACEOF
12665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12666 _ACEOF
12668 else
12669 # strftime is in -lintl on SCO UNIX.
12670 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12671 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12672 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675 ac_check_lib_save_LIBS=$LIBS
12676 LIBS="-lintl $LIBS"
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12684 /* Override any gcc2 internal prototype to avoid an error. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 /* We use char because int might match the return type of a gcc2
12689 builtin and then its argument prototype would still apply. */
12690 char strftime ();
12692 main ()
12694 strftime ();
12696 return 0;
12698 _ACEOF
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag"
12709 || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest$ac_exeext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_lib_intl_strftime=yes
12722 else
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 ac_cv_lib_intl_strftime=no
12728 rm -f conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12732 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12733 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12734 if test $ac_cv_lib_intl_strftime = yes; then
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_STRFTIME 1
12737 _ACEOF
12739 LIBS="-lintl $LIBS"
12743 done
12745 echo "$as_me:$LINENO: checking for working strtod" >&5
12746 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12747 if test "${ac_cv_func_strtod+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 if test "$cross_compiling" = yes; then
12751 ac_cv_func_strtod=no
12752 else
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12760 double strtod ();
12762 main()
12765 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12766 char *string = " +69";
12767 char *term;
12768 double value;
12769 value = strtod (string, &term);
12770 if (value != 69 || term != (string + 4))
12771 exit (1);
12775 /* Under Solaris 2.4, strtod returns the wrong value for the
12776 terminating character under some conditions. */
12777 char *string = "NaN";
12778 char *term;
12779 strtod (string, &term);
12780 if (term != string && *(term - 1) == 0)
12781 exit (1);
12783 exit (0);
12786 _ACEOF
12787 rm -f conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_func_strtod=yes
12799 else
12800 echo "$as_me: program exited with status $ac_status" >&5
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ( exit $ac_status )
12805 ac_cv_func_strtod=no
12807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12810 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12811 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12812 if test $ac_cv_func_strtod = no; then
12813 case $LIBOBJS in
12814 "strtod.$ac_objext" | \
12815 *" strtod.$ac_objext" | \
12816 "strtod.$ac_objext "* | \
12817 *" strtod.$ac_objext "* ) ;;
12818 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
12819 esac
12821 echo "$as_me:$LINENO: checking for pow" >&5
12822 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12823 if test "${ac_cv_func_pow+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826 cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12834 #define pow innocuous_pow
12836 /* System header to define __stub macros and hopefully few prototypes,
12837 which can conflict with char pow (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12841 #ifdef __STDC__
12842 # include <limits.h>
12843 #else
12844 # include <assert.h>
12845 #endif
12847 #undef pow
12849 /* Override any gcc2 internal prototype to avoid an error. */
12850 #ifdef __cplusplus
12851 extern "C"
12853 #endif
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char pow ();
12857 /* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined (__stub_pow) || defined (__stub___pow)
12861 choke me
12862 #else
12863 char (*f) () = pow;
12864 #endif
12865 #ifdef __cplusplus
12867 #endif
12870 main ()
12872 return f != pow;
12874 return 0;
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_func_pow=yes
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 ac_cv_func_pow=no
12906 rm -f conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12909 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12910 echo "${ECHO_T}$ac_cv_func_pow" >&6
12912 if test $ac_cv_func_pow = no; then
12913 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12914 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12915 if test "${ac_cv_lib_m_pow+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918 ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lm $LIBS"
12920 cat >conftest.$ac_ext <<_ACEOF
12921 /* confdefs.h. */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12927 /* Override any gcc2 internal prototype to avoid an error. */
12928 #ifdef __cplusplus
12929 extern "C"
12930 #endif
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12933 char pow ();
12935 main ()
12937 pow ();
12939 return 0;
12941 _ACEOF
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12944 (eval $ac_link) 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -z "$ac_c_werror_flag"
12952 || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try='test -s conftest$ac_exeext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_cv_lib_m_pow=yes
12965 else
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ac_cv_lib_m_pow=no
12971 rm -f conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12973 LIBS=$ac_check_lib_save_LIBS
12975 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12976 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
12977 if test $ac_cv_lib_m_pow = yes; then
12978 POW_LIB=-lm
12979 else
12980 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12981 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12989 for ac_func in vprintf
12991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12992 echo "$as_me:$LINENO: checking for $ac_func" >&5
12993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12994 if eval "test \"\${$as_ac_var+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13005 #define $ac_func innocuous_$ac_func
13007 /* System header to define __stub macros and hopefully few prototypes,
13008 which can conflict with char $ac_func (); below.
13009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13010 <limits.h> exists even on freestanding compilers. */
13012 #ifdef __STDC__
13013 # include <limits.h>
13014 #else
13015 # include <assert.h>
13016 #endif
13018 #undef $ac_func
13020 /* Override any gcc2 internal prototype to avoid an error. */
13021 #ifdef __cplusplus
13022 extern "C"
13024 #endif
13025 /* We use char because int might match the return type of a gcc2
13026 builtin and then its argument prototype would still apply. */
13027 char $ac_func ();
13028 /* The GNU C library defines this for functions which it implements
13029 to always fail with ENOSYS. Some functions are actually named
13030 something starting with __ and the normal name is an alias. */
13031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13032 choke me
13033 #else
13034 char (*f) () = $ac_func;
13035 #endif
13036 #ifdef __cplusplus
13038 #endif
13041 main ()
13043 return f != $ac_func;
13045 return 0;
13047 _ACEOF
13048 rm -f conftest.$ac_objext conftest$ac_exeext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 eval "$as_ac_var=yes"
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 eval "$as_ac_var=no"
13077 rm -f conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13082 if test `eval echo '${'$as_ac_var'}'` = yes; then
13083 cat >>confdefs.h <<_ACEOF
13084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13085 _ACEOF
13087 echo "$as_me:$LINENO: checking for _doprnt" >&5
13088 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13089 if test "${ac_cv_func__doprnt+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13100 #define _doprnt innocuous__doprnt
13102 /* System header to define __stub macros and hopefully few prototypes,
13103 which can conflict with char _doprnt (); below.
13104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13105 <limits.h> exists even on freestanding compilers. */
13107 #ifdef __STDC__
13108 # include <limits.h>
13109 #else
13110 # include <assert.h>
13111 #endif
13113 #undef _doprnt
13115 /* Override any gcc2 internal prototype to avoid an error. */
13116 #ifdef __cplusplus
13117 extern "C"
13119 #endif
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13122 char _doprnt ();
13123 /* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13127 choke me
13128 #else
13129 char (*f) () = _doprnt;
13130 #endif
13131 #ifdef __cplusplus
13133 #endif
13136 main ()
13138 return f != _doprnt;
13140 return 0;
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145 (eval $ac_link) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest$ac_exeext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_cv_func__doprnt=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_cv_func__doprnt=no
13172 rm -f conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13176 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13177 if test $ac_cv_func__doprnt = yes; then
13179 cat >>confdefs.h <<\_ACEOF
13180 #define HAVE_DOPRNT 1
13181 _ACEOF
13186 done
13189 if test $cross_compiling = yes -a $gnumalloc = yes; then
13191 { echo "$as_me:$LINENO: WARNING:
13192 configure cannot check whether malloc() and realloc() are GNU libc
13193 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13194 run configure with the --without-gnu-malloc switch." >&5
13195 echo "$as_me: WARNING:
13196 configure cannot check whether malloc() and realloc() are GNU libc
13197 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13198 run configure with the --without-gnu-malloc switch." >&2;}
13199 _mule_warning_7=yes
13200 _mule_has_warnings=yes
13202 ac_cv_func_malloc_0_nonnull=yes
13203 ac_cv_func_realloc_0_nonnull=yes
13208 for ac_header in stdlib.h
13210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo "$as_me:$LINENO: checking for $ac_header" >&5
13213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219 else
13220 # Is the header compilable?
13221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h. */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 $ac_includes_default
13230 #include <$ac_header>
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_header_compiler=yes
13255 else
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_header_compiler=no
13261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263 echo "${ECHO_T}$ac_header_compiler" >&6
13265 # Is the header present?
13266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <$ac_header>
13275 _ACEOF
13276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } >/dev/null; then
13284 if test -s conftest.err; then
13285 ac_cpp_err=$ac_c_preproc_warn_flag
13286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13287 else
13288 ac_cpp_err=
13290 else
13291 ac_cpp_err=yes
13293 if test -z "$ac_cpp_err"; then
13294 ac_header_preproc=yes
13295 else
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ac_header_preproc=no
13301 rm -f conftest.err conftest.$ac_ext
13302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303 echo "${ECHO_T}$ac_header_preproc" >&6
13305 # So? What about this header?
13306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13307 yes:no: )
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13312 ac_header_preproc=yes
13314 no:yes:* )
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13328 cat <<\_ASBOX
13329 ## ------------------------------ ##
13330 ## Report this to admin@amule.org ##
13331 ## ------------------------------ ##
13332 _ASBOX
13334 sed "s/^/$as_me: WARNING: /" >&2
13336 esac
13337 echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 eval "$as_ac_Header=\$ac_header_preproc"
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13349 cat >>confdefs.h <<_ACEOF
13350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13351 _ACEOF
13355 done
13357 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13358 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13359 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 if test "$cross_compiling" = yes; then
13363 ac_cv_func_malloc_0_nonnull=no
13364 else
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #if STDC_HEADERS || HAVE_STDLIB_H
13372 # include <stdlib.h>
13373 #else
13374 char *malloc ();
13375 #endif
13378 main ()
13380 exit (malloc (0) ? 0 : 1);
13382 return 0;
13384 _ACEOF
13385 rm -f conftest$ac_exeext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_func_malloc_0_nonnull=yes
13397 else
13398 echo "$as_me: program exited with status $ac_status" >&5
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 ( exit $ac_status )
13403 ac_cv_func_malloc_0_nonnull=no
13405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13408 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13409 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13410 if test $ac_cv_func_malloc_0_nonnull = yes; then
13412 cat >>confdefs.h <<\_ACEOF
13413 #define HAVE_MALLOC 1
13414 _ACEOF
13416 else
13417 cat >>confdefs.h <<\_ACEOF
13418 #define HAVE_MALLOC 0
13419 _ACEOF
13421 case $LIBOBJS in
13422 "malloc.$ac_objext" | \
13423 *" malloc.$ac_objext" | \
13424 "malloc.$ac_objext "* | \
13425 *" malloc.$ac_objext "* ) ;;
13426 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13427 esac
13430 cat >>confdefs.h <<\_ACEOF
13431 #define malloc rpl_malloc
13432 _ACEOF
13439 for ac_header in stdlib.h
13441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13443 echo "$as_me:$LINENO: checking for $ac_header" >&5
13444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13450 else
13451 # Is the header compilable?
13452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h. */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13461 #include <$ac_header>
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest.$ac_objext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_header_compiler=yes
13486 else
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_header_compiler=no
13492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13494 echo "${ECHO_T}$ac_header_compiler" >&6
13496 # Is the header present?
13497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 #include <$ac_header>
13506 _ACEOF
13507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } >/dev/null; then
13515 if test -s conftest.err; then
13516 ac_cpp_err=$ac_c_preproc_warn_flag
13517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13518 else
13519 ac_cpp_err=
13521 else
13522 ac_cpp_err=yes
13524 if test -z "$ac_cpp_err"; then
13525 ac_header_preproc=yes
13526 else
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 ac_header_preproc=no
13532 rm -f conftest.err conftest.$ac_ext
13533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13534 echo "${ECHO_T}$ac_header_preproc" >&6
13536 # So? What about this header?
13537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13538 yes:no: )
13539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13543 ac_header_preproc=yes
13545 no:yes:* )
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13559 cat <<\_ASBOX
13560 ## ------------------------------ ##
13561 ## Report this to admin@amule.org ##
13562 ## ------------------------------ ##
13563 _ASBOX
13565 sed "s/^/$as_me: WARNING: /" >&2
13567 esac
13568 echo "$as_me:$LINENO: checking for $ac_header" >&5
13569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573 eval "$as_ac_Header=\$ac_header_preproc"
13575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13580 cat >>confdefs.h <<_ACEOF
13581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13582 _ACEOF
13586 done
13588 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13589 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13590 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593 if test "$cross_compiling" = yes; then
13594 ac_cv_func_realloc_0_nonnull=no
13595 else
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #if STDC_HEADERS || HAVE_STDLIB_H
13603 # include <stdlib.h>
13604 #else
13605 char *realloc ();
13606 #endif
13609 main ()
13611 exit (realloc (0, 0) ? 0 : 1);
13613 return 0;
13615 _ACEOF
13616 rm -f conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_func_realloc_0_nonnull=yes
13628 else
13629 echo "$as_me: program exited with status $ac_status" >&5
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ( exit $ac_status )
13634 ac_cv_func_realloc_0_nonnull=no
13636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13639 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13640 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13641 if test $ac_cv_func_realloc_0_nonnull = yes; then
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_REALLOC 1
13645 _ACEOF
13647 else
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_REALLOC 0
13650 _ACEOF
13652 case $LIBOBJS in
13653 "realloc.$ac_objext" | \
13654 *" realloc.$ac_objext" | \
13655 "realloc.$ac_objext "* | \
13656 *" realloc.$ac_objext "* ) ;;
13657 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13658 esac
13661 cat >>confdefs.h <<\_ACEOF
13662 #define realloc rpl_realloc
13663 _ACEOF
13702 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
13704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13705 echo "$as_me:$LINENO: checking for $ac_func" >&5
13706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13707 if eval "test \"\${$as_ac_var+set}\" = set"; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13718 #define $ac_func innocuous_$ac_func
13720 /* System header to define __stub macros and hopefully few prototypes,
13721 which can conflict with char $ac_func (); below.
13722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13723 <limits.h> exists even on freestanding compilers. */
13725 #ifdef __STDC__
13726 # include <limits.h>
13727 #else
13728 # include <assert.h>
13729 #endif
13731 #undef $ac_func
13733 /* Override any gcc2 internal prototype to avoid an error. */
13734 #ifdef __cplusplus
13735 extern "C"
13737 #endif
13738 /* We use char because int might match the return type of a gcc2
13739 builtin and then its argument prototype would still apply. */
13740 char $ac_func ();
13741 /* The GNU C library defines this for functions which it implements
13742 to always fail with ENOSYS. Some functions are actually named
13743 something starting with __ and the normal name is an alias. */
13744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13745 choke me
13746 #else
13747 char (*f) () = $ac_func;
13748 #endif
13749 #ifdef __cplusplus
13751 #endif
13754 main ()
13756 return f != $ac_func;
13758 return 0;
13760 _ACEOF
13761 rm -f conftest.$ac_objext conftest$ac_exeext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13763 (eval $ac_link) 2>conftest.er1
13764 ac_status=$?
13765 grep -v '^ *+' conftest.er1 >conftest.err
13766 rm -f conftest.er1
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag"
13771 || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest$ac_exeext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 eval "$as_ac_var=yes"
13784 else
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 eval "$as_ac_var=no"
13790 rm -f conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
13793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13795 if test `eval echo '${'$as_ac_var'}'` = yes; then
13796 cat >>confdefs.h <<_ACEOF
13797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13798 _ACEOF
13801 done
13803 #-------------------------------------------------------------------------------
13804 # End of autoscan stuff
13805 #-------------------------------------------------------------------------------
13811 for ac_func in mkdir getrlimit setrlimit getopt_long
13813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814 echo "$as_me:$LINENO: checking for $ac_func" >&5
13815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13816 if eval "test \"\${$as_ac_var+set}\" = set"; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h. */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13827 #define $ac_func innocuous_$ac_func
13829 /* System header to define __stub macros and hopefully few prototypes,
13830 which can conflict with char $ac_func (); below.
13831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13832 <limits.h> exists even on freestanding compilers. */
13834 #ifdef __STDC__
13835 # include <limits.h>
13836 #else
13837 # include <assert.h>
13838 #endif
13840 #undef $ac_func
13842 /* Override any gcc2 internal prototype to avoid an error. */
13843 #ifdef __cplusplus
13844 extern "C"
13846 #endif
13847 /* We use char because int might match the return type of a gcc2
13848 builtin and then its argument prototype would still apply. */
13849 char $ac_func ();
13850 /* The GNU C library defines this for functions which it implements
13851 to always fail with ENOSYS. Some functions are actually named
13852 something starting with __ and the normal name is an alias. */
13853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13854 choke me
13855 #else
13856 char (*f) () = $ac_func;
13857 #endif
13858 #ifdef __cplusplus
13860 #endif
13863 main ()
13865 return f != $ac_func;
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 eval "$as_ac_var=yes"
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 eval "$as_ac_var=no"
13899 rm -f conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
13902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13904 if test `eval echo '${'$as_ac_var'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13907 _ACEOF
13910 done
13913 # Check whether --enable-mmap or --disable-mmap was given.
13914 if test "${enable_mmap+set}" = set; then
13915 enableval="$enable_mmap"
13919 if test ${enable_mmap:-no} = yes; then
13922 for ac_header in sys/mman.h
13924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926 echo "$as_me:$LINENO: checking for $ac_header" >&5
13927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13933 else
13934 # Is the header compilable?
13935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <$ac_header>
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_header_compiler=yes
13969 else
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_header_compiler=no
13975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13977 echo "${ECHO_T}$ac_header_compiler" >&6
13979 # Is the header present?
13980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <$ac_header>
13989 _ACEOF
13990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13992 ac_status=$?
13993 grep -v '^ *+' conftest.er1 >conftest.err
13994 rm -f conftest.er1
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } >/dev/null; then
13998 if test -s conftest.err; then
13999 ac_cpp_err=$ac_c_preproc_warn_flag
14000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14001 else
14002 ac_cpp_err=
14004 else
14005 ac_cpp_err=yes
14007 if test -z "$ac_cpp_err"; then
14008 ac_header_preproc=yes
14009 else
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_preproc=no
14015 rm -f conftest.err conftest.$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14017 echo "${ECHO_T}$ac_header_preproc" >&6
14019 # So? What about this header?
14020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14021 yes:no: )
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14026 ac_header_preproc=yes
14028 no:yes:* )
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14042 cat <<\_ASBOX
14043 ## ------------------------------ ##
14044 ## Report this to admin@amule.org ##
14045 ## ------------------------------ ##
14046 _ASBOX
14048 sed "s/^/$as_me: WARNING: /" >&2
14050 esac
14051 echo "$as_me:$LINENO: checking for $ac_header" >&5
14052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056 eval "$as_ac_Header=\$ac_header_preproc"
14058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14063 cat >>confdefs.h <<_ACEOF
14064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14065 _ACEOF
14069 done
14073 for ac_header in stdlib.h unistd.h
14075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14077 echo "$as_me:$LINENO: checking for $ac_header" >&5
14078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14084 else
14085 # Is the header compilable?
14086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h. */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 $ac_includes_default
14095 #include <$ac_header>
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_header_compiler=yes
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_header_compiler=no
14126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14128 echo "${ECHO_T}$ac_header_compiler" >&6
14130 # Is the header present?
14131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <$ac_header>
14140 _ACEOF
14141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } >/dev/null; then
14149 if test -s conftest.err; then
14150 ac_cpp_err=$ac_c_preproc_warn_flag
14151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14152 else
14153 ac_cpp_err=
14155 else
14156 ac_cpp_err=yes
14158 if test -z "$ac_cpp_err"; then
14159 ac_header_preproc=yes
14160 else
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_header_preproc=no
14166 rm -f conftest.err conftest.$ac_ext
14167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14168 echo "${ECHO_T}$ac_header_preproc" >&6
14170 # So? What about this header?
14171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14172 yes:no: )
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14177 ac_header_preproc=yes
14179 no:yes:* )
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14193 cat <<\_ASBOX
14194 ## ------------------------------ ##
14195 ## Report this to admin@amule.org ##
14196 ## ------------------------------ ##
14197 _ASBOX
14199 sed "s/^/$as_me: WARNING: /" >&2
14201 esac
14202 echo "$as_me:$LINENO: checking for $ac_header" >&5
14203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207 eval "$as_ac_Header=\$ac_header_preproc"
14209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14216 _ACEOF
14220 done
14223 for ac_func in getpagesize
14225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14226 echo "$as_me:$LINENO: checking for $ac_func" >&5
14227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14228 if eval "test \"\${$as_ac_var+set}\" = set"; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14239 #define $ac_func innocuous_$ac_func
14241 /* System header to define __stub macros and hopefully few prototypes,
14242 which can conflict with char $ac_func (); below.
14243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14244 <limits.h> exists even on freestanding compilers. */
14246 #ifdef __STDC__
14247 # include <limits.h>
14248 #else
14249 # include <assert.h>
14250 #endif
14252 #undef $ac_func
14254 /* Override any gcc2 internal prototype to avoid an error. */
14255 #ifdef __cplusplus
14256 extern "C"
14258 #endif
14259 /* We use char because int might match the return type of a gcc2
14260 builtin and then its argument prototype would still apply. */
14261 char $ac_func ();
14262 /* The GNU C library defines this for functions which it implements
14263 to always fail with ENOSYS. Some functions are actually named
14264 something starting with __ and the normal name is an alias. */
14265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14266 choke me
14267 #else
14268 char (*f) () = $ac_func;
14269 #endif
14270 #ifdef __cplusplus
14272 #endif
14275 main ()
14277 return f != $ac_func;
14279 return 0;
14281 _ACEOF
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284 (eval $ac_link) 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -z "$ac_c_werror_flag"
14292 || test ! -s conftest.err'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest$ac_exeext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 eval "$as_ac_var=yes"
14305 else
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 eval "$as_ac_var=no"
14311 rm -f conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14316 if test `eval echo '${'$as_ac_var'}'` = yes; then
14317 cat >>confdefs.h <<_ACEOF
14318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14319 _ACEOF
14322 done
14324 echo "$as_me:$LINENO: checking for working mmap" >&5
14325 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14326 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 else
14329 if test "$cross_compiling" = yes; then
14330 ac_cv_func_mmap_fixed_mapped=no
14331 else
14332 cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h. */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 $ac_includes_default
14339 /* malloc might have been renamed as rpl_malloc. */
14340 #undef malloc
14342 /* Thanks to Mike Haertel and Jim Avera for this test.
14343 Here is a matrix of mmap possibilities:
14344 mmap private not fixed
14345 mmap private fixed at somewhere currently unmapped
14346 mmap private fixed at somewhere already mapped
14347 mmap shared not fixed
14348 mmap shared fixed at somewhere currently unmapped
14349 mmap shared fixed at somewhere already mapped
14350 For private mappings, we should verify that changes cannot be read()
14351 back from the file, nor mmap's back from the file at a different
14352 address. (There have been systems where private was not correctly
14353 implemented like the infamous i386 svr4.0, and systems where the
14354 VM page cache was not coherent with the file system buffer cache
14355 like early versions of FreeBSD and possibly contemporary NetBSD.)
14356 For shared mappings, we should conversely verify that changes get
14357 propagated back to all the places they're supposed to be.
14359 Grep wants private fixed already mapped.
14360 The main things grep needs to know about mmap are:
14361 * does it exist and is it safe to write into the mmap'd area
14362 * how to use it (BSD variants) */
14364 #include <fcntl.h>
14365 #include <sys/mman.h>
14367 #if !STDC_HEADERS && !HAVE_STDLIB_H
14368 char *malloc ();
14369 #endif
14371 /* This mess was copied from the GNU getpagesize.h. */
14372 #if !HAVE_GETPAGESIZE
14373 /* Assume that all systems that can run configure have sys/param.h. */
14374 # if !HAVE_SYS_PARAM_H
14375 # define HAVE_SYS_PARAM_H 1
14376 # endif
14378 # ifdef _SC_PAGESIZE
14379 # define getpagesize() sysconf(_SC_PAGESIZE)
14380 # else /* no _SC_PAGESIZE */
14381 # if HAVE_SYS_PARAM_H
14382 # include <sys/param.h>
14383 # ifdef EXEC_PAGESIZE
14384 # define getpagesize() EXEC_PAGESIZE
14385 # else /* no EXEC_PAGESIZE */
14386 # ifdef NBPG
14387 # define getpagesize() NBPG * CLSIZE
14388 # ifndef CLSIZE
14389 # define CLSIZE 1
14390 # endif /* no CLSIZE */
14391 # else /* no NBPG */
14392 # ifdef NBPC
14393 # define getpagesize() NBPC
14394 # else /* no NBPC */
14395 # ifdef PAGESIZE
14396 # define getpagesize() PAGESIZE
14397 # endif /* PAGESIZE */
14398 # endif /* no NBPC */
14399 # endif /* no NBPG */
14400 # endif /* no EXEC_PAGESIZE */
14401 # else /* no HAVE_SYS_PARAM_H */
14402 # define getpagesize() 8192 /* punt totally */
14403 # endif /* no HAVE_SYS_PARAM_H */
14404 # endif /* no _SC_PAGESIZE */
14406 #endif /* no HAVE_GETPAGESIZE */
14409 main ()
14411 char *data, *data2, *data3;
14412 int i, pagesize;
14413 int fd;
14415 pagesize = getpagesize ();
14417 /* First, make a file with some known garbage in it. */
14418 data = (char *) malloc (pagesize);
14419 if (!data)
14420 exit (1);
14421 for (i = 0; i < pagesize; ++i)
14422 *(data + i) = rand ();
14423 umask (0);
14424 fd = creat ("conftest.mmap", 0600);
14425 if (fd < 0)
14426 exit (1);
14427 if (write (fd, data, pagesize) != pagesize)
14428 exit (1);
14429 close (fd);
14431 /* Next, try to mmap the file at a fixed address which already has
14432 something else allocated at it. If we can, also make sure that
14433 we see the same garbage. */
14434 fd = open ("conftest.mmap", O_RDWR);
14435 if (fd < 0)
14436 exit (1);
14437 data2 = (char *) malloc (2 * pagesize);
14438 if (!data2)
14439 exit (1);
14440 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14441 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14442 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14443 exit (1);
14444 for (i = 0; i < pagesize; ++i)
14445 if (*(data + i) != *(data2 + i))
14446 exit (1);
14448 /* Finally, make sure that changes to the mapped area do not
14449 percolate back to the file as seen by read(). (This is a bug on
14450 some variants of i386 svr4.0.) */
14451 for (i = 0; i < pagesize; ++i)
14452 *(data2 + i) = *(data2 + i) + 1;
14453 data3 = (char *) malloc (pagesize);
14454 if (!data3)
14455 exit (1);
14456 if (read (fd, data3, pagesize) != pagesize)
14457 exit (1);
14458 for (i = 0; i < pagesize; ++i)
14459 if (*(data + i) != *(data3 + i))
14460 exit (1);
14461 close (fd);
14462 exit (0);
14464 _ACEOF
14465 rm -f conftest$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_func_mmap_fixed_mapped=yes
14477 else
14478 echo "$as_me: program exited with status $ac_status" >&5
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ( exit $ac_status )
14483 ac_cv_func_mmap_fixed_mapped=no
14485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14488 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14489 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14490 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14492 cat >>confdefs.h <<\_ACEOF
14493 #define HAVE_MMAP 1
14494 _ACEOF
14497 rm -f conftest.mmap
14500 for ac_func in munmap
14502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14503 echo "$as_me:$LINENO: checking for $ac_func" >&5
14504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14505 if eval "test \"\${$as_ac_var+set}\" = set"; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508 cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h. */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14516 #define $ac_func innocuous_$ac_func
14518 /* System header to define __stub macros and hopefully few prototypes,
14519 which can conflict with char $ac_func (); below.
14520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521 <limits.h> exists even on freestanding compilers. */
14523 #ifdef __STDC__
14524 # include <limits.h>
14525 #else
14526 # include <assert.h>
14527 #endif
14529 #undef $ac_func
14531 /* Override any gcc2 internal prototype to avoid an error. */
14532 #ifdef __cplusplus
14533 extern "C"
14535 #endif
14536 /* We use char because int might match the return type of a gcc2
14537 builtin and then its argument prototype would still apply. */
14538 char $ac_func ();
14539 /* The GNU C library defines this for functions which it implements
14540 to always fail with ENOSYS. Some functions are actually named
14541 something starting with __ and the normal name is an alias. */
14542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14543 choke me
14544 #else
14545 char (*f) () = $ac_func;
14546 #endif
14547 #ifdef __cplusplus
14549 #endif
14552 main ()
14554 return f != $ac_func;
14556 return 0;
14558 _ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 eval "$as_ac_var=yes"
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 eval "$as_ac_var=no"
14588 rm -f conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14593 if test `eval echo '${'$as_ac_var'}'` = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14596 _ACEOF
14599 done
14602 else
14604 # fake the result of the test for munmap() for the gettext macros
14605 ac_cv_func_munmap=no
14611 mule_backup_CPPFLAGS="$CPPFLAGS"
14612 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14613 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14614 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14615 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14626 main ()
14628 #ifndef strerror_r
14629 char *p = (char *) strerror_r;
14630 #endif
14633 return 0;
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_c_werror_flag"
14646 || test ! -s conftest.err'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest.$ac_objext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_cv_have_decl_strerror_r=yes
14659 else
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_have_decl_strerror_r=no
14665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14667 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14668 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14669 if test $ac_cv_have_decl_strerror_r = yes; then
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_DECL_STRERROR_R 1
14673 _ACEOF
14676 else
14677 cat >>confdefs.h <<_ACEOF
14678 #define HAVE_DECL_STRERROR_R 0
14679 _ACEOF
14686 for ac_func in strerror_r
14688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14689 echo "$as_me:$LINENO: checking for $ac_func" >&5
14690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14691 if eval "test \"\${$as_ac_var+set}\" = set"; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 else
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14702 #define $ac_func innocuous_$ac_func
14704 /* System header to define __stub macros and hopefully few prototypes,
14705 which can conflict with char $ac_func (); below.
14706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14707 <limits.h> exists even on freestanding compilers. */
14709 #ifdef __STDC__
14710 # include <limits.h>
14711 #else
14712 # include <assert.h>
14713 #endif
14715 #undef $ac_func
14717 /* Override any gcc2 internal prototype to avoid an error. */
14718 #ifdef __cplusplus
14719 extern "C"
14721 #endif
14722 /* We use char because int might match the return type of a gcc2
14723 builtin and then its argument prototype would still apply. */
14724 char $ac_func ();
14725 /* The GNU C library defines this for functions which it implements
14726 to always fail with ENOSYS. Some functions are actually named
14727 something starting with __ and the normal name is an alias. */
14728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14729 choke me
14730 #else
14731 char (*f) () = $ac_func;
14732 #endif
14733 #ifdef __cplusplus
14735 #endif
14738 main ()
14740 return f != $ac_func;
14742 return 0;
14744 _ACEOF
14745 rm -f conftest.$ac_objext conftest$ac_exeext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14747 (eval $ac_link) 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try='test -z "$ac_c_werror_flag"
14755 || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 eval "$as_ac_var=yes"
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 eval "$as_ac_var=no"
14774 rm -f conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14779 if test `eval echo '${'$as_ac_var'}'` = yes; then
14780 cat >>confdefs.h <<_ACEOF
14781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14782 _ACEOF
14785 done
14787 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14788 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14789 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14793 ac_cv_func_strerror_r_char_p=no
14794 if test $ac_cv_have_decl_strerror_r = yes; then
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 $ac_includes_default
14803 main ()
14806 char buf[100];
14807 char x = *strerror_r (0, buf, sizeof buf);
14808 char *p = strerror_r (0, buf, sizeof buf);
14811 return 0;
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
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); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_func_strerror_r_char_p=yes
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14843 else
14844 # strerror_r is not declared. Choose between
14845 # systems that have relatively inaccessible declarations for the
14846 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14847 # former has a strerror_r that returns char*, while the latter
14848 # has a strerror_r that returns `int'.
14849 # This test should segfault on the DEC system.
14850 if test "$cross_compiling" = yes; then
14852 else
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 $ac_includes_default
14860 extern char *strerror_r ();
14862 main ()
14864 char buf[100];
14865 char x = *strerror_r (0, buf, sizeof buf);
14866 exit (!isalpha (x));
14868 return 0;
14870 _ACEOF
14871 rm -f conftest$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873 (eval $ac_link) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_func_strerror_r_char_p=yes
14883 else
14884 echo "$as_me: program exited with status $ac_status" >&5
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14894 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14895 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14896 if test $ac_cv_func_strerror_r_char_p = yes; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define STRERROR_R_CHAR_P 1
14900 _ACEOF
14904 CPPFLAGS="$mule_backup_CPPFLAGS"
14906 # Look for a way to preallocate disk space for files.
14908 echo "$as_me:$LINENO: checking for fallocate" >&5
14909 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14910 mule_backup_CPPFLAGS="$CPPFLAGS"
14911 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
14912 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 #define _GNU_SOURCE
14921 #ifdef HAVE_FCNTL_H
14922 # include <fcntl.h>
14923 #endif
14924 #include <linux/falloc.h>
14927 main ()
14930 fallocate(0, 0, 0, 0);
14933 return 0;
14936 _ACEOF
14937 rm -f conftest.$ac_objext conftest$ac_exeext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>conftest.er1
14940 ac_status=$?
14941 grep -v '^ *+' conftest.er1 >conftest.err
14942 rm -f conftest.er1
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -z "$ac_c_werror_flag"
14947 || test ! -s conftest.err'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; } &&
14953 { ac_try='test -s conftest$ac_exeext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14962 cat >>confdefs.h <<\_ACEOF
14963 #define HAVE_FALLOCATE 1
14964 _ACEOF
14966 echo "$as_me:$LINENO: result: yes" >&5
14967 echo "${ECHO_T}yes" >&6
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14974 echo "$as_me:$LINENO: result: no" >&5
14975 echo "${ECHO_T}no" >&6
14978 rm -f conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 CPPFLAGS="$mule_backup_CPPFLAGS"
14983 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14984 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14985 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14993 #include <sys/syscall.h>
14994 #include <sys/types.h>
14995 #include <unistd.h>
14998 main ()
15001 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15004 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try='test -s conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define HAVE_SYS_FALLOCATE 1
15035 _ACEOF
15037 echo "$as_me:$LINENO: result: yes" >&5
15038 echo "${ECHO_T}yes" >&6
15040 else
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15045 echo "$as_me:$LINENO: result: no" >&5
15046 echo "${ECHO_T}no" >&6
15049 rm -f conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15052 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15053 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15054 cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h. */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15062 #define _XOPEN_SOURCE 600
15063 #include <stdlib.h>
15064 #ifdef HAVE_FCNTL_H
15065 # include <fcntl.h>
15066 #endif
15069 main ()
15072 posix_fallocate(0, 0, 0);
15075 return 0;
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -z "$ac_c_werror_flag"
15089 || test ! -s conftest.err'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_POSIX_FALLOCATE 1
15106 _ACEOF
15108 echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15116 echo "$as_me:$LINENO: result: no" >&5
15117 echo "${ECHO_T}no" >&6
15120 rm -f conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
15124 # Checking Native Language Support
15127 MKINSTALLDIRS=
15128 if test -n "$ac_aux_dir"; then
15129 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15131 if test -z "$MKINSTALLDIRS"; then
15132 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15139 # Extract the first word of "msgfmt", so it can be a program name with args.
15140 set dummy msgfmt; ac_word=$2
15141 echo "$as_me:$LINENO: checking for $ac_word" >&5
15142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15143 if test "${ac_cv_path_MSGFMT+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 else
15146 case "$MSGFMT" in
15148 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15152 for ac_dir in $PATH; do
15153 test -z "$ac_dir" && ac_dir=.
15154 if test -f $ac_dir/$ac_word; then
15155 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15156 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15157 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15158 break
15161 done
15162 IFS="$ac_save_ifs"
15163 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15165 esac
15167 MSGFMT="$ac_cv_path_MSGFMT"
15168 if test "$MSGFMT" != ":"; then
15169 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15170 echo "${ECHO_T}$MSGFMT" >&6
15171 else
15172 echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6
15176 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15177 set dummy gmsgfmt; ac_word=$2
15178 echo "$as_me:$LINENO: checking for $ac_word" >&5
15179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15180 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 else
15183 case $GMSGFMT in
15184 [\\/]* | ?:[\\/]*)
15185 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15197 break 2
15199 done
15200 done
15202 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15204 esac
15206 GMSGFMT=$ac_cv_path_GMSGFMT
15208 if test -n "$GMSGFMT"; then
15209 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15210 echo "${ECHO_T}$GMSGFMT" >&6
15211 else
15212 echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15217 # Extract the first word of "xgettext", so it can be a program name with args.
15218 set dummy xgettext; ac_word=$2
15219 echo "$as_me:$LINENO: checking for $ac_word" >&5
15220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15221 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224 case "$XGETTEXT" in
15226 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15230 for ac_dir in $PATH; do
15231 test -z "$ac_dir" && ac_dir=.
15232 if test -f $ac_dir/$ac_word; then
15233 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15234 (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
15235 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15236 break
15239 done
15240 IFS="$ac_save_ifs"
15241 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15243 esac
15245 XGETTEXT="$ac_cv_path_XGETTEXT"
15246 if test "$XGETTEXT" != ":"; then
15247 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15248 echo "${ECHO_T}$XGETTEXT" >&6
15249 else
15250 echo "$as_me:$LINENO: result: no" >&5
15251 echo "${ECHO_T}no" >&6
15254 rm -f messages.po
15256 # Extract the first word of "msgmerge", so it can be a program name with args.
15257 set dummy msgmerge; ac_word=$2
15258 echo "$as_me:$LINENO: checking for $ac_word" >&5
15259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15260 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263 case "$MSGMERGE" in
15265 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15269 for ac_dir in $PATH; do
15270 test -z "$ac_dir" && ac_dir=.
15271 if test -f $ac_dir/$ac_word; then
15272 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15273 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15274 break
15277 done
15278 IFS="$ac_save_ifs"
15279 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15281 esac
15283 MSGMERGE="$ac_cv_path_MSGMERGE"
15284 if test "$MSGMERGE" != ":"; then
15285 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15286 echo "${ECHO_T}$MSGMERGE" >&6
15287 else
15288 echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6
15293 if test "$GMSGFMT" != ":"; then
15294 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15295 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15297 else
15298 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15299 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15300 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15301 GMSGFMT=":"
15305 if test "$XGETTEXT" != ":"; then
15306 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15307 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15309 else
15310 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15311 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15312 XGETTEXT=":"
15314 rm -f messages.po
15317 ac_config_commands="$ac_config_commands default-1"
15320 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15321 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15322 if test "${ac_cv_search_strerror+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325 ac_func_search_save_LIBS=$LIBS
15326 ac_cv_search_strerror=no
15327 cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h. */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15334 /* Override any gcc2 internal prototype to avoid an error. */
15335 #ifdef __cplusplus
15336 extern "C"
15337 #endif
15338 /* We use char because int might match the return type of a gcc2
15339 builtin and then its argument prototype would still apply. */
15340 char strerror ();
15342 main ()
15344 strerror ();
15346 return 0;
15348 _ACEOF
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351 (eval $ac_link) 2>conftest.er1
15352 ac_status=$?
15353 grep -v '^ *+' conftest.er1 >conftest.err
15354 rm -f conftest.er1
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -z "$ac_c_werror_flag"
15359 || test ! -s conftest.err'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try='test -s conftest$ac_exeext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_search_strerror="none required"
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15377 rm -f conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15379 if test "$ac_cv_search_strerror" = no; then
15380 for ac_lib in cposix; do
15381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15382 cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h. */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15389 /* Override any gcc2 internal prototype to avoid an error. */
15390 #ifdef __cplusplus
15391 extern "C"
15392 #endif
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15395 char strerror ();
15397 main ()
15399 strerror ();
15401 return 0;
15403 _ACEOF
15404 rm -f conftest.$ac_objext conftest$ac_exeext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406 (eval $ac_link) 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest$ac_exeext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_cv_search_strerror="-l$ac_lib"
15427 break
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15433 rm -f conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15435 done
15437 LIBS=$ac_func_search_save_LIBS
15439 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15440 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15441 if test "$ac_cv_search_strerror" != no; then
15442 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15447 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15448 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15449 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452 cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h. */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15459 #include <features.h>
15460 #ifdef __GNU_LIBRARY__
15461 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15462 Lucky GNU user
15463 #endif
15464 #endif
15466 _ACEOF
15467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15468 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15469 ac_cv_gnu_library_2_1=yes
15470 else
15471 ac_cv_gnu_library_2_1=no
15473 rm -f conftest*
15478 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15479 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15481 GLIBC21="$ac_cv_gnu_library_2_1"
15486 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15487 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15488 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15492 if test "$cross_compiling" = yes; then
15494 # Guess based on the CPU.
15495 case "$host_cpu" in
15496 alpha* | i3456786 | m68k | s390*)
15497 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15499 gt_cv_int_divbyzero_sigfpe="guessing no";;
15500 esac
15502 else
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15510 #include <stdlib.h>
15511 #include <signal.h>
15513 static void
15514 #ifdef __cplusplus
15515 sigfpe_handler (int sig)
15516 #else
15517 sigfpe_handler (sig) int sig;
15518 #endif
15520 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15521 exit (sig != SIGFPE);
15524 int x = 1;
15525 int y = 0;
15526 int z;
15527 int nan;
15529 int main ()
15531 signal (SIGFPE, sigfpe_handler);
15532 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15533 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15534 signal (SIGTRAP, sigfpe_handler);
15535 #endif
15536 /* Linux/SPARC yields signal SIGILL. */
15537 #if defined (__sparc__) && defined (__linux__)
15538 signal (SIGILL, sigfpe_handler);
15539 #endif
15541 z = x / y;
15542 nan = y / y;
15543 exit (1);
15546 _ACEOF
15547 rm -f conftest$ac_exeext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549 (eval $ac_link) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 gt_cv_int_divbyzero_sigfpe=yes
15559 else
15560 echo "$as_me: program exited with status $ac_status" >&5
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ( exit $ac_status )
15565 gt_cv_int_divbyzero_sigfpe=no
15567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15571 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15572 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15573 case "$gt_cv_int_divbyzero_sigfpe" in
15574 *yes) value=1;;
15575 *) value=0;;
15576 esac
15578 cat >>confdefs.h <<_ACEOF
15579 #define INTDIV0_RAISES_SIGFPE $value
15580 _ACEOF
15584 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15585 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15586 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h. */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15595 #include <sys/types.h>
15596 #include <inttypes.h>
15598 main ()
15600 uintmax_t i = (uintmax_t) -1;
15602 return 0;
15604 _ACEOF
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
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); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 jm_ac_cv_header_inttypes_h=yes
15628 else
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 jm_ac_cv_header_inttypes_h=no
15634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15637 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15638 if test $jm_ac_cv_header_inttypes_h = yes; then
15640 cat >>confdefs.h <<_ACEOF
15641 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15642 _ACEOF
15647 echo "$as_me:$LINENO: checking for stdint.h" >&5
15648 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15649 if test "${jm_ac_cv_header_stdint_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 <stdint.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_stdint_h=yes
15691 else
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 jm_ac_cv_header_stdint_h=no
15697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15699 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15700 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15701 if test $jm_ac_cv_header_stdint_h = yes; then
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_STDINT_H_WITH_UINTMAX 1
15705 _ACEOF
15710 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15711 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15712 if test "${ac_cv_type_unsigned_long_long+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 unsigned long long ull = 1; int i = 63;
15723 main ()
15725 unsigned long long ullmax = (unsigned long long) -1;
15726 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15728 return 0;
15730 _ACEOF
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 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_exeext'
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 ac_cv_type_unsigned_long_long=yes
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_cv_type_unsigned_long_long=no
15760 rm -f conftest.err conftest.$ac_objext \
15761 conftest$ac_exeext conftest.$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15764 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15765 if test $ac_cv_type_unsigned_long_long = yes; then
15767 cat >>confdefs.h <<\_ACEOF
15768 #define HAVE_UNSIGNED_LONG_LONG 1
15769 _ACEOF
15776 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15778 test $ac_cv_type_unsigned_long_long = yes \
15779 && ac_type='unsigned long long' \
15780 || ac_type='unsigned long'
15782 cat >>confdefs.h <<_ACEOF
15783 #define uintmax_t $ac_type
15784 _ACEOF
15789 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15790 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15791 if test "${gt_cv_header_inttypes_h+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h. */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #include <sys/types.h>
15802 #include <inttypes.h>
15804 main ()
15808 return 0;
15810 _ACEOF
15811 rm -f conftest.$ac_objext
15812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15813 (eval $ac_compile) 2>conftest.er1
15814 ac_status=$?
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
15820 { ac_try='test -z "$ac_c_werror_flag"
15821 || test ! -s conftest.err'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; } &&
15827 { ac_try='test -s conftest.$ac_objext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 gt_cv_header_inttypes_h=yes
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 gt_cv_header_inttypes_h=no
15840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15843 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15844 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15845 if test $gt_cv_header_inttypes_h = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_INTTYPES_H 1
15849 _ACEOF
15855 if test $gt_cv_header_inttypes_h = yes; then
15856 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15857 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15858 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h. */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 #include <inttypes.h>
15869 #ifdef PRId32
15870 char *p = PRId32;
15871 #endif
15874 main ()
15878 return 0;
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 gt_cv_inttypes_pri_broken=no
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 gt_cv_inttypes_pri_broken=yes
15910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15914 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15916 if test "$gt_cv_inttypes_pri_broken" = yes; then
15918 cat >>confdefs.h <<_ACEOF
15919 #define PRI_MACROS_BROKEN 1
15920 _ACEOF
15925 if test "X$prefix" = "XNONE"; then
15926 acl_final_prefix="$ac_default_prefix"
15927 else
15928 acl_final_prefix="$prefix"
15930 if test "X$exec_prefix" = "XNONE"; then
15931 acl_final_exec_prefix='${prefix}'
15932 else
15933 acl_final_exec_prefix="$exec_prefix"
15935 acl_save_prefix="$prefix"
15936 prefix="$acl_final_prefix"
15937 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15938 prefix="$acl_save_prefix"
15941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15942 if test "${with_gnu_ld+set}" = set; then
15943 withval="$with_gnu_ld"
15944 test "$withval" = no || with_gnu_ld=yes
15945 else
15946 with_gnu_ld=no
15948 ac_prog=ld
15949 if test "$GCC" = yes; then
15950 # Check if gcc -print-prog-name=ld gives a path.
15951 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15952 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15953 case $host in
15954 *-*-mingw*)
15955 # gcc leaves a trailing carriage return which upsets mingw
15956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15959 esac
15960 case $ac_prog in
15961 # Accept absolute paths.
15962 [\\/]* | [A-Za-z]:[\\/]*)
15963 re_direlt='/[^/][^/]*/\.\./'
15964 # Canonicalize the path of ld
15965 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15966 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15967 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15968 done
15969 test -z "$LD" && LD="$ac_prog"
15972 # If it fails, then pretend we aren't using GCC.
15973 ac_prog=ld
15976 # If it is relative, then search for the first ld in PATH.
15977 with_gnu_ld=unknown
15979 esac
15980 elif test "$with_gnu_ld" = yes; then
15981 echo "$as_me:$LINENO: checking for GNU ld" >&5
15982 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15983 else
15984 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15985 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15987 if test "${acl_cv_path_LD+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 if test -z "$LD"; then
15991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15992 for ac_dir in $PATH; do
15993 test -z "$ac_dir" && ac_dir=.
15994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15995 acl_cv_path_LD="$ac_dir/$ac_prog"
15996 # Check to see if the program is GNU ld. I'd rather use --version,
15997 # but apparently some GNU ld's only accept -v.
15998 # Break only if it was the GNU/non-GNU ld that we prefer.
15999 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16000 test "$with_gnu_ld" != no && break
16001 else
16002 test "$with_gnu_ld" != yes && break
16005 done
16006 IFS="$ac_save_ifs"
16007 else
16008 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16012 LD="$acl_cv_path_LD"
16013 if test -n "$LD"; then
16014 echo "$as_me:$LINENO: result: $LD" >&5
16015 echo "${ECHO_T}$LD" >&6
16016 else
16017 echo "$as_me:$LINENO: result: no" >&5
16018 echo "${ECHO_T}no" >&6
16020 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16021 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16022 { (exit 1); exit 1; }; }
16023 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16024 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16025 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16029 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16030 acl_cv_prog_gnu_ld=yes
16031 else
16032 acl_cv_prog_gnu_ld=no
16035 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16036 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16037 with_gnu_ld=$acl_cv_prog_gnu_ld
16041 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16042 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16043 if test "${acl_cv_rpath+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16047 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16048 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16049 . ./conftest.sh
16050 rm -f ./conftest.sh
16051 acl_cv_rpath=done
16054 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16055 echo "${ECHO_T}$acl_cv_rpath" >&6
16056 wl="$acl_cv_wl"
16057 libext="$acl_cv_libext"
16058 shlibext="$acl_cv_shlibext"
16059 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16060 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16061 hardcode_direct="$acl_cv_hardcode_direct"
16062 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16063 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16064 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16065 # Check whether --enable-rpath or --disable-rpath was given.
16066 if test "${enable_rpath+set}" = set; then
16067 enableval="$enable_rpath"
16069 else
16070 enable_rpath=yes
16079 use_additional=yes
16081 acl_save_prefix="$prefix"
16082 prefix="$acl_final_prefix"
16083 acl_save_exec_prefix="$exec_prefix"
16084 exec_prefix="$acl_final_exec_prefix"
16086 eval additional_includedir=\"$includedir\"
16087 eval additional_libdir=\"$libdir\"
16089 exec_prefix="$acl_save_exec_prefix"
16090 prefix="$acl_save_prefix"
16093 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16094 if test "${with_libiconv_prefix+set}" = set; then
16095 withval="$with_libiconv_prefix"
16097 if test "X$withval" = "Xno"; then
16098 use_additional=no
16099 else
16100 if test "X$withval" = "X"; then
16102 acl_save_prefix="$prefix"
16103 prefix="$acl_final_prefix"
16104 acl_save_exec_prefix="$exec_prefix"
16105 exec_prefix="$acl_final_exec_prefix"
16107 eval additional_includedir=\"$includedir\"
16108 eval additional_libdir=\"$libdir\"
16110 exec_prefix="$acl_save_exec_prefix"
16111 prefix="$acl_save_prefix"
16113 else
16114 additional_includedir="$withval/include"
16115 additional_libdir="$withval/lib"
16120 LIBICONV=
16121 LTLIBICONV=
16122 INCICONV=
16123 rpathdirs=
16124 ltrpathdirs=
16125 names_already_handled=
16126 names_next_round='iconv '
16127 while test -n "$names_next_round"; do
16128 names_this_round="$names_next_round"
16129 names_next_round=
16130 for name in $names_this_round; do
16131 already_handled=
16132 for n in $names_already_handled; do
16133 if test "$n" = "$name"; then
16134 already_handled=yes
16135 break
16137 done
16138 if test -z "$already_handled"; then
16139 names_already_handled="$names_already_handled $name"
16140 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16141 eval value=\"\$HAVE_LIB$uppername\"
16142 if test -n "$value"; then
16143 if test "$value" = yes; then
16144 eval value=\"\$LIB$uppername\"
16145 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16146 eval value=\"\$LTLIB$uppername\"
16147 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16148 else
16151 else
16152 found_dir=
16153 found_la=
16154 found_so=
16155 found_a=
16156 if test $use_additional = yes; then
16157 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16158 found_dir="$additional_libdir"
16159 found_so="$additional_libdir/lib$name.$shlibext"
16160 if test -f "$additional_libdir/lib$name.la"; then
16161 found_la="$additional_libdir/lib$name.la"
16163 else
16164 if test -f "$additional_libdir/lib$name.$libext"; then
16165 found_dir="$additional_libdir"
16166 found_a="$additional_libdir/lib$name.$libext"
16167 if test -f "$additional_libdir/lib$name.la"; then
16168 found_la="$additional_libdir/lib$name.la"
16173 if test "X$found_dir" = "X"; then
16174 for x in $LDFLAGS $LTLIBICONV; do
16176 acl_save_prefix="$prefix"
16177 prefix="$acl_final_prefix"
16178 acl_save_exec_prefix="$exec_prefix"
16179 exec_prefix="$acl_final_exec_prefix"
16180 eval x=\"$x\"
16181 exec_prefix="$acl_save_exec_prefix"
16182 prefix="$acl_save_prefix"
16184 case "$x" in
16185 -L*)
16186 dir=`echo "X$x" | sed -e 's/^X-L//'`
16187 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16188 found_dir="$dir"
16189 found_so="$dir/lib$name.$shlibext"
16190 if test -f "$dir/lib$name.la"; then
16191 found_la="$dir/lib$name.la"
16193 else
16194 if test -f "$dir/lib$name.$libext"; then
16195 found_dir="$dir"
16196 found_a="$dir/lib$name.$libext"
16197 if test -f "$dir/lib$name.la"; then
16198 found_la="$dir/lib$name.la"
16203 esac
16204 if test "X$found_dir" != "X"; then
16205 break
16207 done
16209 if test "X$found_dir" != "X"; then
16210 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16211 if test "X$found_so" != "X"; then
16212 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16213 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16214 else
16215 haveit=
16216 for x in $ltrpathdirs; do
16217 if test "X$x" = "X$found_dir"; then
16218 haveit=yes
16219 break
16221 done
16222 if test -z "$haveit"; then
16223 ltrpathdirs="$ltrpathdirs $found_dir"
16225 if test "$hardcode_direct" = yes; then
16226 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16227 else
16228 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16229 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16230 haveit=
16231 for x in $rpathdirs; do
16232 if test "X$x" = "X$found_dir"; then
16233 haveit=yes
16234 break
16236 done
16237 if test -z "$haveit"; then
16238 rpathdirs="$rpathdirs $found_dir"
16240 else
16241 haveit=
16242 for x in $LDFLAGS $LIBICONV; do
16244 acl_save_prefix="$prefix"
16245 prefix="$acl_final_prefix"
16246 acl_save_exec_prefix="$exec_prefix"
16247 exec_prefix="$acl_final_exec_prefix"
16248 eval x=\"$x\"
16249 exec_prefix="$acl_save_exec_prefix"
16250 prefix="$acl_save_prefix"
16252 if test "X$x" = "X-L$found_dir"; then
16253 haveit=yes
16254 break
16256 done
16257 if test -z "$haveit"; then
16258 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16260 if test "$hardcode_minus_L" != no; then
16261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16262 else
16263 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16268 else
16269 if test "X$found_a" != "X"; then
16270 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16271 else
16272 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16275 additional_includedir=
16276 case "$found_dir" in
16277 */lib | */lib/)
16278 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16279 additional_includedir="$basedir/include"
16281 esac
16282 if test "X$additional_includedir" != "X"; then
16283 if test "X$additional_includedir" != "X/usr/include"; then
16284 haveit=
16285 if test "X$additional_includedir" = "X/usr/local/include"; then
16286 if test -n "$GCC"; then
16287 case $host_os in
16288 linux*) haveit=yes;;
16289 esac
16292 if test -z "$haveit"; then
16293 for x in $CPPFLAGS $INCICONV; do
16295 acl_save_prefix="$prefix"
16296 prefix="$acl_final_prefix"
16297 acl_save_exec_prefix="$exec_prefix"
16298 exec_prefix="$acl_final_exec_prefix"
16299 eval x=\"$x\"
16300 exec_prefix="$acl_save_exec_prefix"
16301 prefix="$acl_save_prefix"
16303 if test "X$x" = "X-I$additional_includedir"; then
16304 haveit=yes
16305 break
16307 done
16308 if test -z "$haveit"; then
16309 if test -d "$additional_includedir"; then
16310 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16316 if test -n "$found_la"; then
16317 save_libdir="$libdir"
16318 case "$found_la" in
16319 */* | *\\*) . "$found_la" ;;
16320 *) . "./$found_la" ;;
16321 esac
16322 libdir="$save_libdir"
16323 for dep in $dependency_libs; do
16324 case "$dep" in
16325 -L*)
16326 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16327 if test "X$additional_libdir" != "X/usr/lib"; then
16328 haveit=
16329 if test "X$additional_libdir" = "X/usr/local/lib"; then
16330 if test -n "$GCC"; then
16331 case $host_os in
16332 linux*) haveit=yes;;
16333 esac
16336 if test -z "$haveit"; then
16337 haveit=
16338 for x in $LDFLAGS $LIBICONV; do
16340 acl_save_prefix="$prefix"
16341 prefix="$acl_final_prefix"
16342 acl_save_exec_prefix="$exec_prefix"
16343 exec_prefix="$acl_final_exec_prefix"
16344 eval x=\"$x\"
16345 exec_prefix="$acl_save_exec_prefix"
16346 prefix="$acl_save_prefix"
16348 if test "X$x" = "X-L$additional_libdir"; then
16349 haveit=yes
16350 break
16352 done
16353 if test -z "$haveit"; then
16354 if test -d "$additional_libdir"; then
16355 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16358 haveit=
16359 for x in $LDFLAGS $LTLIBICONV; do
16361 acl_save_prefix="$prefix"
16362 prefix="$acl_final_prefix"
16363 acl_save_exec_prefix="$exec_prefix"
16364 exec_prefix="$acl_final_exec_prefix"
16365 eval x=\"$x\"
16366 exec_prefix="$acl_save_exec_prefix"
16367 prefix="$acl_save_prefix"
16369 if test "X$x" = "X-L$additional_libdir"; then
16370 haveit=yes
16371 break
16373 done
16374 if test -z "$haveit"; then
16375 if test -d "$additional_libdir"; then
16376 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16382 -R*)
16383 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16384 if test "$enable_rpath" != no; then
16385 haveit=
16386 for x in $rpathdirs; do
16387 if test "X$x" = "X$dir"; then
16388 haveit=yes
16389 break
16391 done
16392 if test -z "$haveit"; then
16393 rpathdirs="$rpathdirs $dir"
16395 haveit=
16396 for x in $ltrpathdirs; do
16397 if test "X$x" = "X$dir"; then
16398 haveit=yes
16399 break
16401 done
16402 if test -z "$haveit"; then
16403 ltrpathdirs="$ltrpathdirs $dir"
16407 -l*)
16408 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16410 *.la)
16411 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16414 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16415 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16417 esac
16418 done
16420 else
16421 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16426 done
16427 done
16428 if test "X$rpathdirs" != "X"; then
16429 if test -n "$hardcode_libdir_separator"; then
16430 alldirs=
16431 for found_dir in $rpathdirs; do
16432 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16433 done
16434 acl_save_libdir="$libdir"
16435 libdir="$alldirs"
16436 eval flag=\"$hardcode_libdir_flag_spec\"
16437 libdir="$acl_save_libdir"
16438 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16439 else
16440 for found_dir in $rpathdirs; do
16441 acl_save_libdir="$libdir"
16442 libdir="$found_dir"
16443 eval flag=\"$hardcode_libdir_flag_spec\"
16444 libdir="$acl_save_libdir"
16445 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16446 done
16449 if test "X$ltrpathdirs" != "X"; then
16450 for found_dir in $ltrpathdirs; do
16451 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16452 done
16468 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16469 stdlib.h string.h unistd.h sys/param.h
16471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16473 echo "$as_me:$LINENO: checking for $ac_header" >&5
16474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16480 else
16481 # Is the header compilable?
16482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h. */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 $ac_includes_default
16491 #include <$ac_header>
16492 _ACEOF
16493 rm -f conftest.$ac_objext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16495 (eval $ac_compile) 2>conftest.er1
16496 ac_status=$?
16497 grep -v '^ *+' conftest.er1 >conftest.err
16498 rm -f conftest.er1
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try='test -z "$ac_c_werror_flag"
16503 || test ! -s conftest.err'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 ac_header_compiler=yes
16516 else
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16520 ac_header_compiler=no
16522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16524 echo "${ECHO_T}$ac_header_compiler" >&6
16526 # Is the header present?
16527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h. */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 #include <$ac_header>
16536 _ACEOF
16537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16539 ac_status=$?
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } >/dev/null; then
16545 if test -s conftest.err; then
16546 ac_cpp_err=$ac_c_preproc_warn_flag
16547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16548 else
16549 ac_cpp_err=
16551 else
16552 ac_cpp_err=yes
16554 if test -z "$ac_cpp_err"; then
16555 ac_header_preproc=yes
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_header_preproc=no
16562 rm -f conftest.err conftest.$ac_ext
16563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16564 echo "${ECHO_T}$ac_header_preproc" >&6
16566 # So? What about this header?
16567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16568 yes:no: )
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16573 ac_header_preproc=yes
16575 no:yes:* )
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16589 cat <<\_ASBOX
16590 ## ------------------------------ ##
16591 ## Report this to admin@amule.org ##
16592 ## ------------------------------ ##
16593 _ASBOX
16595 sed "s/^/$as_me: WARNING: /" >&2
16597 esac
16598 echo "$as_me:$LINENO: checking for $ac_header" >&5
16599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603 eval "$as_ac_Header=\$ac_header_preproc"
16605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16610 cat >>confdefs.h <<_ACEOF
16611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16612 _ACEOF
16616 done
16639 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16640 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16641 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16644 echo "$as_me:$LINENO: checking for $ac_func" >&5
16645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16646 if eval "test \"\${$as_ac_var+set}\" = set"; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649 cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h. */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16657 #define $ac_func innocuous_$ac_func
16659 /* System header to define __stub macros and hopefully few prototypes,
16660 which can conflict with char $ac_func (); below.
16661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16662 <limits.h> exists even on freestanding compilers. */
16664 #ifdef __STDC__
16665 # include <limits.h>
16666 #else
16667 # include <assert.h>
16668 #endif
16670 #undef $ac_func
16672 /* Override any gcc2 internal prototype to avoid an error. */
16673 #ifdef __cplusplus
16674 extern "C"
16676 #endif
16677 /* We use char because int might match the return type of a gcc2
16678 builtin and then its argument prototype would still apply. */
16679 char $ac_func ();
16680 /* The GNU C library defines this for functions which it implements
16681 to always fail with ENOSYS. Some functions are actually named
16682 something starting with __ and the normal name is an alias. */
16683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16684 choke me
16685 #else
16686 char (*f) () = $ac_func;
16687 #endif
16688 #ifdef __cplusplus
16690 #endif
16693 main ()
16695 return f != $ac_func;
16697 return 0;
16699 _ACEOF
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16702 (eval $ac_link) 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 eval "$as_ac_var=yes"
16723 else
16724 echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16727 eval "$as_ac_var=no"
16729 rm -f conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16734 if test `eval echo '${'$as_ac_var'}'` = yes; then
16735 cat >>confdefs.h <<_ACEOF
16736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16737 _ACEOF
16740 done
16748 am_save_CPPFLAGS="$CPPFLAGS"
16750 for element in $INCICONV; do
16751 haveit=
16752 for x in $CPPFLAGS; do
16754 acl_save_prefix="$prefix"
16755 prefix="$acl_final_prefix"
16756 acl_save_exec_prefix="$exec_prefix"
16757 exec_prefix="$acl_final_exec_prefix"
16758 eval x=\"$x\"
16759 exec_prefix="$acl_save_exec_prefix"
16760 prefix="$acl_save_prefix"
16762 if test "X$x" = "X$element"; then
16763 haveit=yes
16764 break
16766 done
16767 if test -z "$haveit"; then
16768 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16770 done
16773 echo "$as_me:$LINENO: checking for iconv" >&5
16774 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16775 if test "${am_cv_func_iconv+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16779 am_cv_func_iconv="no, consider installing GNU libiconv"
16780 am_cv_lib_iconv=no
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h. */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <stdlib.h>
16788 #include <iconv.h>
16790 main ()
16792 iconv_t cd = iconv_open("","");
16793 iconv(cd,NULL,NULL,NULL,NULL);
16794 iconv_close(cd);
16796 return 0;
16798 _ACEOF
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>conftest.er1
16802 ac_status=$?
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -z "$ac_c_werror_flag"
16809 || test ! -s conftest.err'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; } &&
16815 { ac_try='test -s conftest$ac_exeext'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 am_cv_func_iconv=yes
16822 else
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16827 rm -f conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829 if test "$am_cv_func_iconv" != yes; then
16830 am_save_LIBS="$LIBS"
16831 LIBS="$LIBS $LIBICONV"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h. */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 #include <stdlib.h>
16839 #include <iconv.h>
16841 main ()
16843 iconv_t cd = iconv_open("","");
16844 iconv(cd,NULL,NULL,NULL,NULL);
16845 iconv_close(cd);
16847 return 0;
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852 (eval $ac_link) 2>conftest.er1
16853 ac_status=$?
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag"
16860 || test ! -s conftest.err'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 am_cv_lib_iconv=yes
16873 am_cv_func_iconv=yes
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16879 rm -f conftest.err conftest.$ac_objext \
16880 conftest$ac_exeext conftest.$ac_ext
16881 LIBS="$am_save_LIBS"
16885 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16886 echo "${ECHO_T}$am_cv_func_iconv" >&6
16887 if test "$am_cv_func_iconv" = yes; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_ICONV 1
16891 _ACEOF
16894 if test "$am_cv_lib_iconv" = yes; then
16895 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16896 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16897 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16898 echo "${ECHO_T}$LIBICONV" >&6
16899 else
16900 CPPFLAGS="$am_save_CPPFLAGS"
16901 LIBICONV=
16902 LTLIBICONV=
16907 if test "$am_cv_func_iconv" = yes; then
16908 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16909 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16910 if test "${am_cv_proto_iconv+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16914 cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h. */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16921 #include <stdlib.h>
16922 #include <iconv.h>
16923 extern
16924 #ifdef __cplusplus
16926 #endif
16927 #if defined(__STDC__) || defined(__cplusplus)
16928 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16929 #else
16930 size_t iconv();
16931 #endif
16934 main ()
16938 return 0;
16940 _ACEOF
16941 rm -f conftest.$ac_objext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16943 (eval $ac_compile) 2>conftest.er1
16944 ac_status=$?
16945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest.$ac_objext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 am_cv_proto_iconv_arg1=""
16964 else
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 am_cv_proto_iconv_arg1="const"
16970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16971 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);"
16974 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16975 echo "$as_me:$LINENO: result: ${ac_t:-
16976 }$am_cv_proto_iconv" >&5
16977 echo "${ECHO_T}${ac_t:-
16978 }$am_cv_proto_iconv" >&6
16980 cat >>confdefs.h <<_ACEOF
16981 #define ICONV_CONST $am_cv_proto_iconv_arg1
16982 _ACEOF
16987 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16988 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16989 if test "${am_cv_langinfo_codeset+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h. */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #include <langinfo.h>
17000 main ()
17002 char* cs = nl_langinfo(CODESET);
17004 return 0;
17006 _ACEOF
17007 rm -f conftest.$ac_objext conftest$ac_exeext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17009 (eval $ac_link) 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 am_cv_langinfo_codeset=yes
17030 else
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 am_cv_langinfo_codeset=no
17036 rm -f conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
17040 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17041 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17042 if test $am_cv_langinfo_codeset = yes; then
17044 cat >>confdefs.h <<\_ACEOF
17045 #define HAVE_LANGINFO_CODESET 1
17046 _ACEOF
17050 if test $ac_cv_header_locale_h = yes; then
17052 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17053 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17054 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <locale.h>
17065 main ()
17067 return LC_MESSAGES
17069 return 0;
17071 _ACEOF
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 am_cv_val_LC_MESSAGES=yes
17095 else
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 am_cv_val_LC_MESSAGES=no
17101 rm -f conftest.err conftest.$ac_objext \
17102 conftest$ac_exeext conftest.$ac_ext
17104 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17105 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17106 if test $am_cv_val_LC_MESSAGES = yes; then
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_LC_MESSAGES 1
17110 _ACEOF
17116 for ac_prog in bison
17118 # Extract the first word of "$ac_prog", so it can be a program name with args.
17119 set dummy $ac_prog; ac_word=$2
17120 echo "$as_me:$LINENO: checking for $ac_word" >&5
17121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17122 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125 if test -n "$INTLBISON"; then
17126 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17127 else
17128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17129 for as_dir in $PATH
17131 IFS=$as_save_IFS
17132 test -z "$as_dir" && as_dir=.
17133 for ac_exec_ext in '' $ac_executable_extensions; do
17134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17135 ac_cv_prog_INTLBISON="$ac_prog"
17136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17137 break 2
17139 done
17140 done
17144 INTLBISON=$ac_cv_prog_INTLBISON
17145 if test -n "$INTLBISON"; then
17146 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17147 echo "${ECHO_T}$INTLBISON" >&6
17148 else
17149 echo "$as_me:$LINENO: result: no" >&5
17150 echo "${ECHO_T}no" >&6
17153 test -n "$INTLBISON" && break
17154 done
17156 if test -z "$INTLBISON"; then
17157 ac_verc_fail=yes
17158 else
17159 echo "$as_me:$LINENO: checking version of bison" >&5
17160 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17161 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17162 case $ac_prog_version in
17163 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17164 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17165 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17166 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17167 esac
17168 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17169 echo "${ECHO_T}$ac_prog_version" >&6
17171 if test $ac_verc_fail = yes; then
17172 INTLBISON=:
17177 # Check whether --with-language or --without-language was given.
17178 if test "${with_language+set}" = set; then
17179 withval="$with_language"
17180 if test "$withval" != "all"; then
17181 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17200 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17201 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17202 # Check whether --enable-nls or --disable-nls was given.
17203 if test "${enable_nls+set}" = set; then
17204 enableval="$enable_nls"
17205 USE_NLS=$enableval
17206 else
17207 USE_NLS=yes
17209 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17210 echo "${ECHO_T}$USE_NLS" >&6
17214 BUILD_INCLUDED_LIBINTL=no
17215 USE_INCLUDED_LIBINTL=no
17217 LIBINTL=
17218 LTLIBINTL=
17219 POSUB=
17221 if test "$USE_NLS" = "yes"; then
17222 gt_use_preinstalled_gnugettext=no
17224 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17225 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17227 # Check whether --with-included-gettext or --without-included-gettext was given.
17228 if test "${with_included_gettext+set}" = set; then
17229 withval="$with_included_gettext"
17230 nls_cv_force_use_gnu_gettext=$withval
17231 else
17232 nls_cv_force_use_gnu_gettext=no
17234 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17235 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17237 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17238 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17245 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17246 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17247 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #include <libintl.h>
17257 extern int _nl_msg_cat_cntr;
17258 extern int *_nl_domain_bindings;
17260 main ()
17262 bindtextdomain ("", "");
17263 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17265 return 0;
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17270 (eval $ac_link) 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag"
17278 || test ! -s conftest.err'
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 gt_cv_func_gnugettext2_libc=yes
17291 else
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 gt_cv_func_gnugettext2_libc=no
17297 rm -f conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17300 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17301 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17303 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17307 use_additional=yes
17309 acl_save_prefix="$prefix"
17310 prefix="$acl_final_prefix"
17311 acl_save_exec_prefix="$exec_prefix"
17312 exec_prefix="$acl_final_exec_prefix"
17314 eval additional_includedir=\"$includedir\"
17315 eval additional_libdir=\"$libdir\"
17317 exec_prefix="$acl_save_exec_prefix"
17318 prefix="$acl_save_prefix"
17321 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17322 if test "${with_libintl_prefix+set}" = set; then
17323 withval="$with_libintl_prefix"
17325 if test "X$withval" = "Xno"; then
17326 use_additional=no
17327 else
17328 if test "X$withval" = "X"; then
17330 acl_save_prefix="$prefix"
17331 prefix="$acl_final_prefix"
17332 acl_save_exec_prefix="$exec_prefix"
17333 exec_prefix="$acl_final_exec_prefix"
17335 eval additional_includedir=\"$includedir\"
17336 eval additional_libdir=\"$libdir\"
17338 exec_prefix="$acl_save_exec_prefix"
17339 prefix="$acl_save_prefix"
17341 else
17342 additional_includedir="$withval/include"
17343 additional_libdir="$withval/lib"
17348 LIBINTL=
17349 LTLIBINTL=
17350 INCINTL=
17351 rpathdirs=
17352 ltrpathdirs=
17353 names_already_handled=
17354 names_next_round='intl '
17355 while test -n "$names_next_round"; do
17356 names_this_round="$names_next_round"
17357 names_next_round=
17358 for name in $names_this_round; do
17359 already_handled=
17360 for n in $names_already_handled; do
17361 if test "$n" = "$name"; then
17362 already_handled=yes
17363 break
17365 done
17366 if test -z "$already_handled"; then
17367 names_already_handled="$names_already_handled $name"
17368 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17369 eval value=\"\$HAVE_LIB$uppername\"
17370 if test -n "$value"; then
17371 if test "$value" = yes; then
17372 eval value=\"\$LIB$uppername\"
17373 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17374 eval value=\"\$LTLIB$uppername\"
17375 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17376 else
17379 else
17380 found_dir=
17381 found_la=
17382 found_so=
17383 found_a=
17384 if test $use_additional = yes; then
17385 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17386 found_dir="$additional_libdir"
17387 found_so="$additional_libdir/lib$name.$shlibext"
17388 if test -f "$additional_libdir/lib$name.la"; then
17389 found_la="$additional_libdir/lib$name.la"
17391 else
17392 if test -f "$additional_libdir/lib$name.$libext"; then
17393 found_dir="$additional_libdir"
17394 found_a="$additional_libdir/lib$name.$libext"
17395 if test -f "$additional_libdir/lib$name.la"; then
17396 found_la="$additional_libdir/lib$name.la"
17401 if test "X$found_dir" = "X"; then
17402 for x in $LDFLAGS $LTLIBINTL; do
17404 acl_save_prefix="$prefix"
17405 prefix="$acl_final_prefix"
17406 acl_save_exec_prefix="$exec_prefix"
17407 exec_prefix="$acl_final_exec_prefix"
17408 eval x=\"$x\"
17409 exec_prefix="$acl_save_exec_prefix"
17410 prefix="$acl_save_prefix"
17412 case "$x" in
17413 -L*)
17414 dir=`echo "X$x" | sed -e 's/^X-L//'`
17415 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17416 found_dir="$dir"
17417 found_so="$dir/lib$name.$shlibext"
17418 if test -f "$dir/lib$name.la"; then
17419 found_la="$dir/lib$name.la"
17421 else
17422 if test -f "$dir/lib$name.$libext"; then
17423 found_dir="$dir"
17424 found_a="$dir/lib$name.$libext"
17425 if test -f "$dir/lib$name.la"; then
17426 found_la="$dir/lib$name.la"
17431 esac
17432 if test "X$found_dir" != "X"; then
17433 break
17435 done
17437 if test "X$found_dir" != "X"; then
17438 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17439 if test "X$found_so" != "X"; then
17440 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17441 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17442 else
17443 haveit=
17444 for x in $ltrpathdirs; do
17445 if test "X$x" = "X$found_dir"; then
17446 haveit=yes
17447 break
17449 done
17450 if test -z "$haveit"; then
17451 ltrpathdirs="$ltrpathdirs $found_dir"
17453 if test "$hardcode_direct" = yes; then
17454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17455 else
17456 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17457 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17458 haveit=
17459 for x in $rpathdirs; do
17460 if test "X$x" = "X$found_dir"; then
17461 haveit=yes
17462 break
17464 done
17465 if test -z "$haveit"; then
17466 rpathdirs="$rpathdirs $found_dir"
17468 else
17469 haveit=
17470 for x in $LDFLAGS $LIBINTL; do
17472 acl_save_prefix="$prefix"
17473 prefix="$acl_final_prefix"
17474 acl_save_exec_prefix="$exec_prefix"
17475 exec_prefix="$acl_final_exec_prefix"
17476 eval x=\"$x\"
17477 exec_prefix="$acl_save_exec_prefix"
17478 prefix="$acl_save_prefix"
17480 if test "X$x" = "X-L$found_dir"; then
17481 haveit=yes
17482 break
17484 done
17485 if test -z "$haveit"; then
17486 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17488 if test "$hardcode_minus_L" != no; then
17489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17490 else
17491 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17496 else
17497 if test "X$found_a" != "X"; then
17498 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17499 else
17500 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17503 additional_includedir=
17504 case "$found_dir" in
17505 */lib | */lib/)
17506 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17507 additional_includedir="$basedir/include"
17509 esac
17510 if test "X$additional_includedir" != "X"; then
17511 if test "X$additional_includedir" != "X/usr/include"; then
17512 haveit=
17513 if test "X$additional_includedir" = "X/usr/local/include"; then
17514 if test -n "$GCC"; then
17515 case $host_os in
17516 linux*) haveit=yes;;
17517 esac
17520 if test -z "$haveit"; then
17521 for x in $CPPFLAGS $INCINTL; do
17523 acl_save_prefix="$prefix"
17524 prefix="$acl_final_prefix"
17525 acl_save_exec_prefix="$exec_prefix"
17526 exec_prefix="$acl_final_exec_prefix"
17527 eval x=\"$x\"
17528 exec_prefix="$acl_save_exec_prefix"
17529 prefix="$acl_save_prefix"
17531 if test "X$x" = "X-I$additional_includedir"; then
17532 haveit=yes
17533 break
17535 done
17536 if test -z "$haveit"; then
17537 if test -d "$additional_includedir"; then
17538 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17544 if test -n "$found_la"; then
17545 save_libdir="$libdir"
17546 case "$found_la" in
17547 */* | *\\*) . "$found_la" ;;
17548 *) . "./$found_la" ;;
17549 esac
17550 libdir="$save_libdir"
17551 for dep in $dependency_libs; do
17552 case "$dep" in
17553 -L*)
17554 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17555 if test "X$additional_libdir" != "X/usr/lib"; then
17556 haveit=
17557 if test "X$additional_libdir" = "X/usr/local/lib"; then
17558 if test -n "$GCC"; then
17559 case $host_os in
17560 linux*) haveit=yes;;
17561 esac
17564 if test -z "$haveit"; then
17565 haveit=
17566 for x in $LDFLAGS $LIBINTL; do
17568 acl_save_prefix="$prefix"
17569 prefix="$acl_final_prefix"
17570 acl_save_exec_prefix="$exec_prefix"
17571 exec_prefix="$acl_final_exec_prefix"
17572 eval x=\"$x\"
17573 exec_prefix="$acl_save_exec_prefix"
17574 prefix="$acl_save_prefix"
17576 if test "X$x" = "X-L$additional_libdir"; then
17577 haveit=yes
17578 break
17580 done
17581 if test -z "$haveit"; then
17582 if test -d "$additional_libdir"; then
17583 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17586 haveit=
17587 for x in $LDFLAGS $LTLIBINTL; do
17589 acl_save_prefix="$prefix"
17590 prefix="$acl_final_prefix"
17591 acl_save_exec_prefix="$exec_prefix"
17592 exec_prefix="$acl_final_exec_prefix"
17593 eval x=\"$x\"
17594 exec_prefix="$acl_save_exec_prefix"
17595 prefix="$acl_save_prefix"
17597 if test "X$x" = "X-L$additional_libdir"; then
17598 haveit=yes
17599 break
17601 done
17602 if test -z "$haveit"; then
17603 if test -d "$additional_libdir"; then
17604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17610 -R*)
17611 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17612 if test "$enable_rpath" != no; then
17613 haveit=
17614 for x in $rpathdirs; do
17615 if test "X$x" = "X$dir"; then
17616 haveit=yes
17617 break
17619 done
17620 if test -z "$haveit"; then
17621 rpathdirs="$rpathdirs $dir"
17623 haveit=
17624 for x in $ltrpathdirs; do
17625 if test "X$x" = "X$dir"; then
17626 haveit=yes
17627 break
17629 done
17630 if test -z "$haveit"; then
17631 ltrpathdirs="$ltrpathdirs $dir"
17635 -l*)
17636 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17638 *.la)
17639 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17642 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17643 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17645 esac
17646 done
17648 else
17649 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17650 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17654 done
17655 done
17656 if test "X$rpathdirs" != "X"; then
17657 if test -n "$hardcode_libdir_separator"; then
17658 alldirs=
17659 for found_dir in $rpathdirs; do
17660 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17661 done
17662 acl_save_libdir="$libdir"
17663 libdir="$alldirs"
17664 eval flag=\"$hardcode_libdir_flag_spec\"
17665 libdir="$acl_save_libdir"
17666 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17667 else
17668 for found_dir in $rpathdirs; do
17669 acl_save_libdir="$libdir"
17670 libdir="$found_dir"
17671 eval flag=\"$hardcode_libdir_flag_spec\"
17672 libdir="$acl_save_libdir"
17673 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17674 done
17677 if test "X$ltrpathdirs" != "X"; then
17678 for found_dir in $ltrpathdirs; do
17679 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17680 done
17683 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17684 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17685 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688 gt_save_CPPFLAGS="$CPPFLAGS"
17689 CPPFLAGS="$CPPFLAGS $INCINTL"
17690 gt_save_LIBS="$LIBS"
17691 LIBS="$LIBS $LIBINTL"
17692 cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h. */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 #include <libintl.h>
17699 extern int _nl_msg_cat_cntr;
17700 extern
17701 #ifdef __cplusplus
17703 #endif
17704 const char *_nl_expand_alias ();
17706 main ()
17708 bindtextdomain ("", "");
17709 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17711 return 0;
17713 _ACEOF
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -z "$ac_c_werror_flag"
17724 || test ! -s conftest.err'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest$ac_exeext'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 gt_cv_func_gnugettext2_libintl=yes
17737 else
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 gt_cv_func_gnugettext2_libintl=no
17743 rm -f conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17745 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17746 LIBS="$LIBS $LIBICONV"
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include <libintl.h>
17754 extern int _nl_msg_cat_cntr;
17755 extern
17756 #ifdef __cplusplus
17758 #endif
17759 const char *_nl_expand_alias ();
17761 main ()
17763 bindtextdomain ("", "");
17764 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17766 return 0;
17768 _ACEOF
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>conftest.er1
17772 ac_status=$?
17773 grep -v '^ *+' conftest.er1 >conftest.err
17774 rm -f conftest.er1
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -z "$ac_c_werror_flag"
17779 || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 LIBINTL="$LIBINTL $LIBICONV"
17792 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17793 gt_cv_func_gnugettext2_libintl=yes
17795 else
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17800 rm -f conftest.err conftest.$ac_objext \
17801 conftest$ac_exeext conftest.$ac_ext
17803 CPPFLAGS="$gt_save_CPPFLAGS"
17804 LIBS="$gt_save_LIBS"
17806 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17807 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17810 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17811 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17812 && test "$PACKAGE" != gettext; }; then
17813 gt_use_preinstalled_gnugettext=yes
17814 else
17815 LIBINTL=
17816 LTLIBINTL=
17817 INCINTL=
17821 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17822 nls_cv_use_gnu_gettext=yes
17826 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17827 INTLOBJS="\$(GETTOBJS)"
17828 BUILD_INCLUDED_LIBINTL=yes
17829 USE_INCLUDED_LIBINTL=yes
17830 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17831 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17832 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17835 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17836 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17837 CATOBJEXT=.gmo
17841 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17842 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17844 cat >>confdefs.h <<\_ACEOF
17845 #define ENABLE_NLS 1
17846 _ACEOF
17848 else
17849 USE_NLS=no
17853 if test "$USE_NLS" = "yes"; then
17855 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17856 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17857 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17858 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17859 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17860 echo "${ECHO_T}$LIBINTL" >&6
17862 for element in $INCINTL; do
17863 haveit=
17864 for x in $CPPFLAGS; do
17866 acl_save_prefix="$prefix"
17867 prefix="$acl_final_prefix"
17868 acl_save_exec_prefix="$exec_prefix"
17869 exec_prefix="$acl_final_exec_prefix"
17870 eval x=\"$x\"
17871 exec_prefix="$acl_save_exec_prefix"
17872 prefix="$acl_save_prefix"
17874 if test "X$x" = "X$element"; then
17875 haveit=yes
17876 break
17878 done
17879 if test -z "$haveit"; then
17880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17882 done
17887 cat >>confdefs.h <<\_ACEOF
17888 #define HAVE_GETTEXT 1
17889 _ACEOF
17892 cat >>confdefs.h <<\_ACEOF
17893 #define HAVE_DCGETTEXT 1
17894 _ACEOF
17898 POSUB=po
17902 if test "$PACKAGE" = gettext; then
17903 BUILD_INCLUDED_LIBINTL=yes
17911 nls_cv_header_intl=
17912 nls_cv_header_libgt=
17914 DATADIRNAME=share
17917 INSTOBJEXT=.mo
17920 GENCAT=gencat
17923 INTL_LIBTOOL_SUFFIX_PREFIX=
17927 INTLLIBS="$LIBINTL"
17934 if test $USE_INCLUDED_LIBINTL = yes; then
17935 INCINTL=-I\${top_builddir}/intl
17939 if test x$USE_NLS = xyes; then
17941 echo "$as_me:$LINENO: checking for autopoint" >&5
17942 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17943 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17944 if test -n "$autopoint_version"; then
17946 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17947 echo "${ECHO_T}yes ($autopoint_version)" >&6
17950 else
17952 echo "$as_me:$LINENO: result: no" >&5
17953 echo "${ECHO_T}no" >&6
17954 USE_NLS=no
17961 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
17962 { echo "$as_me:$LINENO: WARNING:
17963 You need to install GNU gettext/gettext-tools to compile aMule with
17964 i18n support." >&5
17965 echo "$as_me: WARNING:
17966 You need to install GNU gettext/gettext-tools to compile aMule with
17967 i18n support." >&2;}
17968 _mule_warning_8=yes
17969 _mule_has_warnings=yes
17974 if test ${USE_NLS:-no} = yes; then
17976 echo "$as_me:$LINENO: checking for requested languages" >&5
17977 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17978 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17980 if test "$AMULE_DAEMON" = "yes"; then
17982 if test -z "$LINGUAS"; then
17983 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17984 else
17986 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17987 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17991 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17993 else
17994 AMULE_DAEMON_MANPAGES=
18000 if test "$AMULECMD" = "yes"; then
18002 if test -z "$LINGUAS"; then
18003 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18004 else
18006 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18007 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18011 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18013 else
18014 AMULECMD_MANPAGES=
18020 if test "$WEB" = "yes"; then
18022 if test -z "$LINGUAS"; then
18023 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18024 else
18026 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18027 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18031 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18033 else
18034 WEB_MANPAGES=
18040 if test "$AMULE_GUI" = "yes"; then
18042 if test -z "$LINGUAS"; then
18043 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18044 else
18046 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18047 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18051 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18053 else
18054 AMULE_GUI_MANPAGES=
18060 if test "$CAS" = "yes"; then
18062 if test -z "$LINGUAS"; then
18063 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18064 else
18066 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18067 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18071 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18073 else
18074 CAS_MANPAGES=
18080 if test "$WXCAS" = "yes"; then
18082 if test -z "$LINGUAS"; then
18083 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18084 else
18086 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18087 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18091 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18093 else
18094 WXCAS_MANPAGES=
18100 if test "$ED2K" = "yes"; then
18102 if test -z "$LINGUAS"; then
18103 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18104 else
18106 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18107 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18111 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18113 else
18114 ED2K_MANPAGES=
18120 if test "$ALC" = "yes"; then
18122 if test -z "$LINGUAS"; then
18123 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18124 else
18126 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18127 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18131 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18133 else
18134 ALC_MANPAGES=
18140 if test "$ALCC" = "yes"; then
18142 if test -z "$LINGUAS"; then
18143 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18144 else
18146 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18147 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18151 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18153 else
18154 ALCC_MANPAGES=
18160 if test "$MONOLITHIC" = "yes"; then
18162 if test -z "$LINGUAS"; then
18163 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18164 else
18166 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18167 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18171 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18173 else
18174 MONOLITHIC_MANPAGES=
18179 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18180 echo "${ECHO_T}${LINGUAS:-all}" >&6
18187 # Check for bfd.h (to have proper backtraces without using wxExecute)
18189 echo "$as_me:$LINENO: checking for bfd" >&5
18190 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18191 result=no
18192 for bfd_ldadd in "" "${LIBINTL}"; do
18193 mule_backup_LIBS="$LIBS"
18194 mule_backup_LDFLAGS="$LDFLAGS"
18195 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18196 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18197 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h. */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18205 #include <ansidecl.h>
18206 #include <bfd.h>
18209 main ()
18212 char *dummy = bfd_errmsg(bfd_get_error());
18215 return 0;
18218 _ACEOF
18219 rm -f conftest.$ac_objext conftest$ac_exeext
18220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18221 (eval $ac_link) 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag"
18229 || test ! -s conftest.err'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; } &&
18235 { ac_try='test -s conftest$ac_exeext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18242 result=yes
18243 BFD_CPPFLAGS="-DHAVE_BFD"
18244 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18245 LIBS="$mule_backup_LIBS"
18246 LDFLAGS="$mule_backup_LDFLAGS"
18247 break
18249 else
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18254 rm -f conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS="$mule_backup_LIBS"
18257 LDFLAGS="$mule_backup_LDFLAGS"
18258 done
18260 echo "$as_me:$LINENO: result: $result" >&5
18261 echo "${ECHO_T}$result" >&6
18263 if test $result = no; then
18264 { echo "$as_me:$LINENO: WARNING:
18265 bfd.h not found or unusable, please install binutils development
18266 package if you are a developer or want to help testing aMule" >&5
18267 echo "$as_me: WARNING:
18268 bfd.h not found or unusable, please install binutils development
18269 package if you are a developer or want to help testing aMule" >&2;}
18270 _mule_warning_9=yes
18271 _mule_has_warnings=yes
18278 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18279 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18280 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18288 #include <execinfo.h>
18291 main ()
18294 void *bt[1];
18295 int n = backtrace(&bt, 1);
18296 const char **bt_syms = backtrace_symbols(bt, n);
18299 return 0;
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>conftest.er1
18306 ac_status=$?
18307 grep -v '^ *+' conftest.er1 >conftest.err
18308 rm -f conftest.er1
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -z "$ac_c_werror_flag"
18313 || test ! -s conftest.err'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest$ac_exeext'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18328 cat >>confdefs.h <<\_ACEOF
18329 #define HAVE_EXECINFO 1
18330 _ACEOF
18332 echo "$as_me:$LINENO: result: yes" >&5
18333 echo "${ECHO_T}yes" >&6
18335 else
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18340 echo "$as_me:$LINENO: result: no" >&5
18341 echo "${ECHO_T}no" >&6
18344 rm -f conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18348 # Flush standard test results for speeding cache
18349 cat >confcache <<\_ACEOF
18350 # This file is a shell script that caches the results of configure
18351 # tests run on this system so they can be shared between configure
18352 # scripts and configure runs, see configure's option --config-cache.
18353 # It is not useful on other systems. If it contains results you don't
18354 # want to keep, you may remove or edit it.
18356 # config.status only pays attention to the cache file if you give it
18357 # the --recheck option to rerun configure.
18359 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18360 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18361 # following values.
18363 _ACEOF
18365 # The following way of writing the cache mishandles newlines in values,
18366 # but we know of no workaround that is simple, portable, and efficient.
18367 # So, don't put newlines in cache variables' values.
18368 # Ultrix sh set writes to stderr and can't be redirected directly,
18369 # and sets the high bit in the cache file unless we assign to the vars.
18371 (set) 2>&1 |
18372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18373 *ac_space=\ *)
18374 # `set' does not quote correctly, so add quotes (double-quote
18375 # substitution turns \\\\ into \\, and sed turns \\ into \).
18376 sed -n \
18377 "s/'/'\\\\''/g;
18378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18381 # `set' quotes correctly as required by POSIX, so do not add quotes.
18382 sed -n \
18383 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18385 esac;
18387 sed '
18388 t clear
18389 : clear
18390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18391 t end
18392 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18393 : end' >>confcache
18394 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18395 if test -w $cache_file; then
18396 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18397 cat confcache >$cache_file
18398 else
18399 echo "not updating unwritable cache $cache_file"
18402 rm -f confcache
18404 # Other tests
18405 # aMule options
18408 # Check whether --enable-debug or --disable-debug was given.
18409 if test "${enable_debug+set}" = set; then
18410 enableval="$enable_debug"
18411 USE_DEBUG=${enableval:-yes}
18412 else
18413 USE_DEBUG=yes
18416 if test $USE_DEBUG = yes; then
18418 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18420 MULECFLAGS="$MULECFLAGS -g"
18421 MULECXXFLAGS="$MULECXXFLAGS -g"
18423 if test ${GLIBCXX:-no} = yes; then
18424 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18427 if test ${GCC:-no} = yes; then
18429 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18430 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18434 if test ${SYS:-unknown} = win32; then
18435 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18439 else
18441 if test ${GCC:-no} = yes; then
18443 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18444 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18453 # Check whether --enable-optimize or --disable-optimize was given.
18454 if test "${enable_optimize+set}" = set; then
18455 enableval="$enable_optimize"
18456 USE_OPTIMIZE=${enableval:-no}
18457 else
18458 USE_OPTIMIZE=no
18461 if test $USE_OPTIMIZE = yes; then
18463 MULECFLAGS="$MULECFLAGS -O2"
18464 MULECXXFLAGS="$MULECXXFLAGS -O2"
18470 # Check whether --enable-profile or --disable-profile was given.
18471 if test "${enable_profile+set}" = set; then
18472 enableval="$enable_profile"
18473 USE_PROFILE=${enableval:-no}
18474 else
18475 USE_PROFILE=no
18478 if test $USE_PROFILE = yes; then
18481 MULECFLAGS="$MULECFLAGS -pg"
18482 MULECXXFLAGS="$MULECXXFLAGS -pg"
18484 MULELDFLAGS="$MULELDFLAGS -pg"
18490 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18491 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18492 # Check whether --enable-static or --disable-static was given.
18493 if test "${enable_static+set}" = set; then
18494 enableval="$enable_static"
18495 if test ${enableval:-no} = yes; then
18496 MULELDFLAGS="$MULELDFLAGS -static"
18500 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18501 echo "${ECHO_T}${enableval:-no}" >&6
18503 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18506 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18507 echo "$as_me:$LINENO: checking for docdir" >&5
18508 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18509 if test -z "$docdir"; then
18510 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18513 echo "$as_me:$LINENO: result: $docdir" >&5
18514 echo "${ECHO_T}$docdir" >&6
18516 # Try to set the SVN checkout-date
18517 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18518 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18519 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18520 then
18521 svndate="rev. `cat $srcdir/.svn-revision`"
18522 elif test -d $srcdir/.svn # SVNDATE for svn
18523 then
18524 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18526 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18527 echo "${ECHO_T}${svndate:-None required}" >&6
18528 if test -n "$svndate"; then
18531 cat >>confdefs.h <<_ACEOF
18532 #define SVNDATE "$svndate"
18533 _ACEOF
18535 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18539 SVNDATE=$svndate
18543 # Check whether --with-denoise-level or --without-denoise-level was given.
18544 if test "${with_denoise_level+set}" = set; then
18545 withval="$with_denoise_level"
18549 echo "$as_me:$LINENO: checking denoising level" >&5
18550 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18551 if test ${with_denoise_level:-5} = yes; then
18552 with_denoise_level=5
18555 if test ${with_denoise_level:-5} = no; then
18556 with_denoise_level=0
18559 if test ${with_denoise_level:-5} -gt 4; then
18560 if test "${svndate:+set}" = "set"; then
18561 with_denoise_level=0
18562 else
18563 with_denoise_level=4
18568 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18569 echo "${ECHO_T}$with_denoise_level" >&6
18571 ac_config_commands="$ac_config_commands denoiser"
18577 if test x$WEB = xyes; then
18578 WEB_TRUE=
18579 WEB_FALSE='#'
18580 else
18581 WEB_TRUE='#'
18582 WEB_FALSE=
18587 if test x$ED2K = xyes; then
18588 ED2K_TRUE=
18589 ED2K_FALSE='#'
18590 else
18591 ED2K_TRUE='#'
18592 ED2K_FALSE=
18597 if test x$CAS = xyes; then
18598 CAS_TRUE=
18599 CAS_FALSE='#'
18600 else
18601 CAS_TRUE='#'
18602 CAS_FALSE=
18607 if test x$WXCAS = xyes; then
18608 WXCAS_TRUE=
18609 WXCAS_FALSE='#'
18610 else
18611 WXCAS_TRUE='#'
18612 WXCAS_FALSE=
18617 if test x$ALC = xyes; then
18618 ALC_TRUE=
18619 ALC_FALSE='#'
18620 else
18621 ALC_TRUE='#'
18622 ALC_FALSE=
18627 if test x$ALCC = xyes; then
18628 ALCC_TRUE=
18629 ALCC_FALSE='#'
18630 else
18631 ALCC_TRUE='#'
18632 ALCC_FALSE=
18637 if test x$AMULE_GUI = xyes; then
18638 AMULE_GUI_TRUE=
18639 AMULE_GUI_FALSE='#'
18640 else
18641 AMULE_GUI_TRUE='#'
18642 AMULE_GUI_FALSE=
18647 if test x$AMULE_DAEMON = xyes; then
18648 AMULE_DAEMON_TRUE=
18649 AMULE_DAEMON_FALSE='#'
18650 else
18651 AMULE_DAEMON_TRUE='#'
18652 AMULE_DAEMON_FALSE=
18657 if test x$AMULECMD = xyes; then
18658 COMPILE_CMD_TRUE=
18659 COMPILE_CMD_FALSE='#'
18660 else
18661 COMPILE_CMD_TRUE='#'
18662 COMPILE_CMD_FALSE=
18667 if test x$MONOLITHIC = xyes; then
18668 MONOLITHIC_TRUE=
18669 MONOLITHIC_FALSE='#'
18670 else
18671 MONOLITHIC_TRUE='#'
18672 MONOLITHIC_FALSE=
18677 if test x$XAS = xyes; then
18678 XAS_TRUE=
18679 XAS_FALSE='#'
18680 else
18681 XAS_TRUE='#'
18682 XAS_FALSE=
18687 if test x$ENABLE_UPNP = xyes; then
18688 ENABLE_UPNP_TRUE=
18689 ENABLE_UPNP_FALSE='#'
18690 else
18691 ENABLE_UPNP_TRUE='#'
18692 ENABLE_UPNP_FALSE=
18697 if test x$ENABLE_IP2COUNTRY = xyes; then
18698 ENABLE_IP2COUNTRY_TRUE=
18699 ENABLE_IP2COUNTRY_FALSE='#'
18700 else
18701 ENABLE_IP2COUNTRY_TRUE='#'
18702 ENABLE_IP2COUNTRY_FALSE=
18707 if test x$SYS = xwin32; then
18708 SYS_WIN32_TRUE=
18709 SYS_WIN32_FALSE='#'
18710 else
18711 SYS_WIN32_TRUE='#'
18712 SYS_WIN32_FALSE=
18717 if test x$SYS = xwin32 -a "$RC" != ":"; then
18718 NEED_RC_TRUE=
18719 NEED_RC_FALSE='#'
18720 else
18721 NEED_RC_TRUE='#'
18722 NEED_RC_FALSE=
18727 if test x$SYS = xdarwin; then
18728 NEED_CORESERVICES_TRUE=
18729 NEED_CORESERVICES_FALSE='#'
18730 else
18731 NEED_CORESERVICES_TRUE='#'
18732 NEED_CORESERVICES_FALSE=
18737 if test x$USE_NLS = xyes; then
18738 COMPILE_NLS_TRUE=
18739 COMPILE_NLS_FALSE='#'
18740 else
18741 COMPILE_NLS_TRUE='#'
18742 COMPILE_NLS_FALSE=
18747 if test x$HAVE_FLEX_EXTENDED = xyes; then
18748 GENERATE_FLEX_HEADER_TRUE=
18749 GENERATE_FLEX_HEADER_FALSE='#'
18750 else
18751 GENERATE_FLEX_HEADER_TRUE='#'
18752 GENERATE_FLEX_HEADER_FALSE=
18757 if test x$INSTALL_SKINS = xyes; then
18758 INSTALL_SKINS_TRUE=
18759 INSTALL_SKINS_FALSE='#'
18760 else
18761 INSTALL_SKINS_TRUE='#'
18762 INSTALL_SKINS_FALSE=
18766 # Check for readline library
18767 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18769 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18770 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18771 if test "${vl_cv_lib_readline+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18775 ORIG_LIBS="$LIBS"
18776 for readline_lib in readline edit editline; do
18777 for termcap_lib in "" termcap curses ncurses; do
18778 if test -z "$termcap_lib"; then
18779 TRY_LIB="-l$readline_lib"
18780 else
18781 TRY_LIB="-l$readline_lib -l$termcap_lib"
18783 LIBS="$ORIG_LIBS $TRY_LIB"
18784 cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h. */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18791 /* Override any gcc2 internal prototype to avoid an error. */
18792 #ifdef __cplusplus
18793 extern "C"
18794 #endif
18795 /* We use char because int might match the return type of a gcc2
18796 builtin and then its argument prototype would still apply. */
18797 char readline ();
18799 main ()
18801 readline ();
18803 return 0;
18805 _ACEOF
18806 rm -f conftest.$ac_objext conftest$ac_exeext
18807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18808 (eval $ac_link) 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -z "$ac_c_werror_flag"
18816 || test ! -s conftest.err'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest$ac_exeext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
18828 vl_cv_lib_readline="$TRY_LIB"
18829 else
18830 echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18834 rm -f conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18836 if test -n "$vl_cv_lib_readline"; then
18837 break
18839 done
18840 if test -n "$vl_cv_lib_readline"; then
18841 break
18843 done
18844 if test -z "$vl_cv_lib_readline"; then
18845 vl_cv_lib_readline="no"
18846 LIBS="$ORIG_LIBS"
18847 READLINE_LIBS=""
18848 else
18849 READLINE_LIBS="$vl_cv_lib_readline"
18853 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18854 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18856 if test "$vl_cv_lib_readline" != "no"; then
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_LIBREADLINE 1
18860 _ACEOF
18864 for ac_header in readline.h readline/readline.h
18866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18868 echo "$as_me:$LINENO: checking for $ac_header" >&5
18869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18875 else
18876 # Is the header compilable?
18877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h. */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18885 $ac_includes_default
18886 #include <$ac_header>
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18890 (eval $ac_compile) 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag"
18898 || test ! -s conftest.err'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest.$ac_objext'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910 ac_header_compiler=yes
18911 else
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_header_compiler=no
18917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18919 echo "${ECHO_T}$ac_header_compiler" >&6
18921 # Is the header present?
18922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 #include <$ac_header>
18931 _ACEOF
18932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } >/dev/null; then
18940 if test -s conftest.err; then
18941 ac_cpp_err=$ac_c_preproc_warn_flag
18942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18943 else
18944 ac_cpp_err=
18946 else
18947 ac_cpp_err=yes
18949 if test -z "$ac_cpp_err"; then
18950 ac_header_preproc=yes
18951 else
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_header_preproc=no
18957 rm -f conftest.err conftest.$ac_ext
18958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18959 echo "${ECHO_T}$ac_header_preproc" >&6
18961 # So? What about this header?
18962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18963 yes:no: )
18964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18968 ac_header_preproc=yes
18970 no:yes:* )
18971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18984 cat <<\_ASBOX
18985 ## ------------------------------ ##
18986 ## Report this to admin@amule.org ##
18987 ## ------------------------------ ##
18988 _ASBOX
18990 sed "s/^/$as_me: WARNING: /" >&2
18992 esac
18993 echo "$as_me:$LINENO: checking for $ac_header" >&5
18994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998 eval "$as_ac_Header=\$ac_header_preproc"
19000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19005 cat >>confdefs.h <<_ACEOF
19006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19007 _ACEOF
19011 done
19013 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19014 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19015 if test "${vl_cv_lib_readline_history+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19019 vl_cv_lib_readline_history="no"
19020 cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h. */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19027 /* Override any gcc2 internal prototype to avoid an error. */
19028 #ifdef __cplusplus
19029 extern "C"
19030 #endif
19031 /* We use char because int might match the return type of a gcc2
19032 builtin and then its argument prototype would still apply. */
19033 char add_history ();
19035 main ()
19037 add_history ();
19039 return 0;
19041 _ACEOF
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>conftest.er1
19045 ac_status=$?
19046 grep -v '^ *+' conftest.er1 >conftest.err
19047 rm -f conftest.er1
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 vl_cv_lib_readline_history="yes"
19065 else
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19070 rm -f conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19074 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19075 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19076 if test "$vl_cv_lib_readline_history" = "yes"; then
19078 cat >>confdefs.h <<\_ACEOF
19079 #define HAVE_READLINE_HISTORY 1
19080 _ACEOF
19084 for ac_header in history.h readline/history.h
19086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19088 echo "$as_me:$LINENO: checking for $ac_header" >&5
19089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19095 else
19096 # Is the header compilable?
19097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h. */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 $ac_includes_default
19106 #include <$ac_header>
19107 _ACEOF
19108 rm -f conftest.$ac_objext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try='test -z "$ac_c_werror_flag"
19118 || test ! -s conftest.err'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest.$ac_objext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 ac_header_compiler=yes
19131 else
19132 echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19135 ac_header_compiler=no
19137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19139 echo "${ECHO_T}$ac_header_compiler" >&6
19141 # Is the header present?
19142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19144 cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h. */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150 #include <$ac_header>
19151 _ACEOF
19152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19154 ac_status=$?
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } >/dev/null; then
19160 if test -s conftest.err; then
19161 ac_cpp_err=$ac_c_preproc_warn_flag
19162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19163 else
19164 ac_cpp_err=
19166 else
19167 ac_cpp_err=yes
19169 if test -z "$ac_cpp_err"; then
19170 ac_header_preproc=yes
19171 else
19172 echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19175 ac_header_preproc=no
19177 rm -f conftest.err conftest.$ac_ext
19178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19179 echo "${ECHO_T}$ac_header_preproc" >&6
19181 # So? What about this header?
19182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19183 yes:no: )
19184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19188 ac_header_preproc=yes
19190 no:yes:* )
19191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19204 cat <<\_ASBOX
19205 ## ------------------------------ ##
19206 ## Report this to admin@amule.org ##
19207 ## ------------------------------ ##
19208 _ASBOX
19210 sed "s/^/$as_me: WARNING: /" >&2
19212 esac
19213 echo "$as_me:$LINENO: checking for $ac_header" >&5
19214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218 eval "$as_ac_Header=\$ac_header_preproc"
19220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19225 cat >>confdefs.h <<_ACEOF
19226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19227 _ACEOF
19231 done
19236 LIBS="$ORIG_LIBS"
19240 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19243 # Check whether --enable-ccache or --disable-ccache was given.
19244 if test "${enable_ccache+set}" = set; then
19245 enableval="$enable_ccache"
19250 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19251 if test "${with_ccache_prefix+set}" = set; then
19252 withval="$with_ccache_prefix"
19256 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19257 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19258 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19259 echo "${ECHO_T}${enable_ccache:-no}" >&6
19261 if test ${enable_ccache:-no} = yes; then
19263 echo "$as_me:$LINENO: checking for ccache presence" >&5
19264 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19265 if test -z "$with_ccache_prefix"; then
19267 ccache_full=`which ccache`
19268 with_ccache_prefix=`dirname ${ccache_full}`
19272 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19274 echo "$as_me:$LINENO: result: yes" >&5
19275 echo "${ECHO_T}yes" >&6
19276 CC="$with_ccache_prefix/ccache $CC"
19277 CXX="$with_ccache_prefix/ccache $CXX"
19278 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19280 else
19282 enable_ccache=no
19283 echo "$as_me:$LINENO: result: no" >&5
19284 echo "${ECHO_T}no" >&6
19293 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"
19295 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19297 if test x$SYS = xwin32; then
19298 ac_config_files="$ac_config_files version.rc"
19302 cat >confcache <<\_ACEOF
19303 # This file is a shell script that caches the results of configure
19304 # tests run on this system so they can be shared between configure
19305 # scripts and configure runs, see configure's option --config-cache.
19306 # It is not useful on other systems. If it contains results you don't
19307 # want to keep, you may remove or edit it.
19309 # config.status only pays attention to the cache file if you give it
19310 # the --recheck option to rerun configure.
19312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19314 # following values.
19316 _ACEOF
19318 # The following way of writing the cache mishandles newlines in values,
19319 # but we know of no workaround that is simple, portable, and efficient.
19320 # So, don't put newlines in cache variables' values.
19321 # Ultrix sh set writes to stderr and can't be redirected directly,
19322 # and sets the high bit in the cache file unless we assign to the vars.
19324 (set) 2>&1 |
19325 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19326 *ac_space=\ *)
19327 # `set' does not quote correctly, so add quotes (double-quote
19328 # substitution turns \\\\ into \\, and sed turns \\ into \).
19329 sed -n \
19330 "s/'/'\\\\''/g;
19331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19334 # `set' quotes correctly as required by POSIX, so do not add quotes.
19335 sed -n \
19336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19338 esac;
19340 sed '
19341 t clear
19342 : clear
19343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19344 t end
19345 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19346 : end' >>confcache
19347 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19348 if test -w $cache_file; then
19349 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19350 cat confcache >$cache_file
19351 else
19352 echo "not updating unwritable cache $cache_file"
19355 rm -f confcache
19357 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19358 # Let make expand exec_prefix.
19359 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19361 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19362 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19363 # trailing colons and then remove the whole line if VPATH becomes empty
19364 # (actually we leave an empty line to preserve line numbers).
19365 if test "x$srcdir" = x.; then
19366 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19367 s/:*\$(srcdir):*/:/;
19368 s/:*\${srcdir}:*/:/;
19369 s/:*@srcdir@:*/:/;
19370 s/^\([^=]*=[ ]*\):*/\1/;
19371 s/:*$//;
19372 s/^[^=]*=[ ]*$//;
19376 DEFS=-DHAVE_CONFIG_H
19378 ac_libobjs=
19379 ac_ltlibobjs=
19380 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19381 # 1. Remove the extension, and $U if already installed.
19382 ac_i=`echo "$ac_i" |
19383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19384 # 2. Add them.
19385 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19386 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19387 done
19388 LIBOBJS=$ac_libobjs
19390 LTLIBOBJS=$ac_ltlibobjs
19393 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19394 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19395 Usually this means the macro was only invoked conditionally." >&5
19396 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19397 Usually this means the macro was only invoked conditionally." >&2;}
19398 { (exit 1); exit 1; }; }
19400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19401 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19402 Usually this means the macro was only invoked conditionally." >&5
19403 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19404 Usually this means the macro was only invoked conditionally." >&2;}
19405 { (exit 1); exit 1; }; }
19407 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19408 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19409 Usually this means the macro was only invoked conditionally." >&5
19410 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19411 Usually this means the macro was only invoked conditionally." >&2;}
19412 { (exit 1); exit 1; }; }
19414 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19415 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19416 Usually this means the macro was only invoked conditionally." >&5
19417 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19418 Usually this means the macro was only invoked conditionally." >&2;}
19419 { (exit 1); exit 1; }; }
19421 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19422 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19423 Usually this means the macro was only invoked conditionally." >&5
19424 echo "$as_me: error: conditional \"WEB\" was never defined.
19425 Usually this means the macro was only invoked conditionally." >&2;}
19426 { (exit 1); exit 1; }; }
19428 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19429 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19430 Usually this means the macro was only invoked conditionally." >&5
19431 echo "$as_me: error: conditional \"ED2K\" was never defined.
19432 Usually this means the macro was only invoked conditionally." >&2;}
19433 { (exit 1); exit 1; }; }
19435 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19436 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19437 Usually this means the macro was only invoked conditionally." >&5
19438 echo "$as_me: error: conditional \"CAS\" was never defined.
19439 Usually this means the macro was only invoked conditionally." >&2;}
19440 { (exit 1); exit 1; }; }
19442 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19443 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19444 Usually this means the macro was only invoked conditionally." >&5
19445 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19446 Usually this means the macro was only invoked conditionally." >&2;}
19447 { (exit 1); exit 1; }; }
19449 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19450 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19451 Usually this means the macro was only invoked conditionally." >&5
19452 echo "$as_me: error: conditional \"ALC\" was never defined.
19453 Usually this means the macro was only invoked conditionally." >&2;}
19454 { (exit 1); exit 1; }; }
19456 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19457 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19458 Usually this means the macro was only invoked conditionally." >&5
19459 echo "$as_me: error: conditional \"ALCC\" was never defined.
19460 Usually this means the macro was only invoked conditionally." >&2;}
19461 { (exit 1); exit 1; }; }
19463 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19464 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19465 Usually this means the macro was only invoked conditionally." >&5
19466 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19467 Usually this means the macro was only invoked conditionally." >&2;}
19468 { (exit 1); exit 1; }; }
19470 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19471 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19472 Usually this means the macro was only invoked conditionally." >&5
19473 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19474 Usually this means the macro was only invoked conditionally." >&2;}
19475 { (exit 1); exit 1; }; }
19477 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19478 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19479 Usually this means the macro was only invoked conditionally." >&5
19480 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19481 Usually this means the macro was only invoked conditionally." >&2;}
19482 { (exit 1); exit 1; }; }
19484 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19485 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19486 Usually this means the macro was only invoked conditionally." >&5
19487 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19488 Usually this means the macro was only invoked conditionally." >&2;}
19489 { (exit 1); exit 1; }; }
19491 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19492 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19493 Usually this means the macro was only invoked conditionally." >&5
19494 echo "$as_me: error: conditional \"XAS\" was never defined.
19495 Usually this means the macro was only invoked conditionally." >&2;}
19496 { (exit 1); exit 1; }; }
19498 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19499 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19500 Usually this means the macro was only invoked conditionally." >&5
19501 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19502 Usually this means the macro was only invoked conditionally." >&2;}
19503 { (exit 1); exit 1; }; }
19505 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19506 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19507 Usually this means the macro was only invoked conditionally." >&5
19508 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19509 Usually this means the macro was only invoked conditionally." >&2;}
19510 { (exit 1); exit 1; }; }
19512 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19513 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19514 Usually this means the macro was only invoked conditionally." >&5
19515 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19516 Usually this means the macro was only invoked conditionally." >&2;}
19517 { (exit 1); exit 1; }; }
19519 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19520 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19521 Usually this means the macro was only invoked conditionally." >&5
19522 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19523 Usually this means the macro was only invoked conditionally." >&2;}
19524 { (exit 1); exit 1; }; }
19526 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19527 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&5
19529 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19530 Usually this means the macro was only invoked conditionally." >&2;}
19531 { (exit 1); exit 1; }; }
19533 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19534 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&5
19536 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19537 Usually this means the macro was only invoked conditionally." >&2;}
19538 { (exit 1); exit 1; }; }
19540 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19541 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19542 Usually this means the macro was only invoked conditionally." >&5
19543 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19544 Usually this means the macro was only invoked conditionally." >&2;}
19545 { (exit 1); exit 1; }; }
19547 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19548 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19549 Usually this means the macro was only invoked conditionally." >&5
19550 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19551 Usually this means the macro was only invoked conditionally." >&2;}
19552 { (exit 1); exit 1; }; }
19555 : ${CONFIG_STATUS=./config.status}
19556 ac_clean_files_save=$ac_clean_files
19557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19558 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19559 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19560 cat >$CONFIG_STATUS <<_ACEOF
19561 #! $SHELL
19562 # Generated by $as_me.
19563 # Run this file to recreate the current configuration.
19564 # Compiler output produced by configure, useful for debugging
19565 # configure, is in config.log if it exists.
19567 debug=false
19568 ac_cs_recheck=false
19569 ac_cs_silent=false
19570 SHELL=\${CONFIG_SHELL-$SHELL}
19571 _ACEOF
19573 cat >>$CONFIG_STATUS <<\_ACEOF
19574 ## --------------------- ##
19575 ## M4sh Initialization. ##
19576 ## --------------------- ##
19578 # Be Bourne compatible
19579 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19580 emulate sh
19581 NULLCMD=:
19582 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19583 # is contrary to our usage. Disable this feature.
19584 alias -g '${1+"$@"}'='"$@"'
19585 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19586 set -o posix
19588 DUALCASE=1; export DUALCASE # for MKS sh
19590 # Support unset when possible.
19591 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19592 as_unset=unset
19593 else
19594 as_unset=false
19598 # Work around bugs in pre-3.0 UWIN ksh.
19599 $as_unset ENV MAIL MAILPATH
19600 PS1='$ '
19601 PS2='> '
19602 PS4='+ '
19604 # NLS nuisances.
19605 for as_var in \
19606 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19607 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19608 LC_TELEPHONE LC_TIME
19610 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19611 eval $as_var=C; export $as_var
19612 else
19613 $as_unset $as_var
19615 done
19617 # Required to use basename.
19618 if expr a : '\(a\)' >/dev/null 2>&1; then
19619 as_expr=expr
19620 else
19621 as_expr=false
19624 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19625 as_basename=basename
19626 else
19627 as_basename=false
19631 # Name of the executable.
19632 as_me=`$as_basename "$0" ||
19633 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19634 X"$0" : 'X\(//\)$' \| \
19635 X"$0" : 'X\(/\)$' \| \
19636 . : '\(.\)' 2>/dev/null ||
19637 echo X/"$0" |
19638 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19639 /^X\/\(\/\/\)$/{ s//\1/; q; }
19640 /^X\/\(\/\).*/{ s//\1/; q; }
19641 s/.*/./; q'`
19644 # PATH needs CR, and LINENO needs CR and PATH.
19645 # Avoid depending upon Character Ranges.
19646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19649 as_cr_digits='0123456789'
19650 as_cr_alnum=$as_cr_Letters$as_cr_digits
19652 # The user is always right.
19653 if test "${PATH_SEPARATOR+set}" != set; then
19654 echo "#! /bin/sh" >conf$$.sh
19655 echo "exit 0" >>conf$$.sh
19656 chmod +x conf$$.sh
19657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19658 PATH_SEPARATOR=';'
19659 else
19660 PATH_SEPARATOR=:
19662 rm -f conf$$.sh
19666 as_lineno_1=$LINENO
19667 as_lineno_2=$LINENO
19668 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19669 test "x$as_lineno_1" != "x$as_lineno_2" &&
19670 test "x$as_lineno_3" = "x$as_lineno_2" || {
19671 # Find who we are. Look in the path if we contain no path at all
19672 # relative or not.
19673 case $0 in
19674 *[\\/]* ) as_myself=$0 ;;
19675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19676 for as_dir in $PATH
19678 IFS=$as_save_IFS
19679 test -z "$as_dir" && as_dir=.
19680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19681 done
19684 esac
19685 # We did not find ourselves, most probably we were run as `sh COMMAND'
19686 # in which case we are not to be found in the path.
19687 if test "x$as_myself" = x; then
19688 as_myself=$0
19690 if test ! -f "$as_myself"; then
19691 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19692 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19693 { (exit 1); exit 1; }; }
19695 case $CONFIG_SHELL in
19697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19698 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19700 IFS=$as_save_IFS
19701 test -z "$as_dir" && as_dir=.
19702 for as_base in sh bash ksh sh5; do
19703 case $as_dir in
19705 if ("$as_dir/$as_base" -c '
19706 as_lineno_1=$LINENO
19707 as_lineno_2=$LINENO
19708 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19709 test "x$as_lineno_1" != "x$as_lineno_2" &&
19710 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19711 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19712 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19713 CONFIG_SHELL=$as_dir/$as_base
19714 export CONFIG_SHELL
19715 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19716 fi;;
19717 esac
19718 done
19719 done
19721 esac
19723 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19724 # uniformly replaced by the line number. The first 'sed' inserts a
19725 # line-number line before each line; the second 'sed' does the real
19726 # work. The second script uses 'N' to pair each line-number line
19727 # with the numbered line, and appends trailing '-' during
19728 # substitution so that $LINENO is not a special case at line end.
19729 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19730 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19731 sed '=' <$as_myself |
19732 sed '
19734 s,$,-,
19735 : loop
19736 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19737 t loop
19738 s,-$,,
19739 s,^['$as_cr_digits']*\n,,
19740 ' >$as_me.lineno &&
19741 chmod +x $as_me.lineno ||
19742 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19743 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19744 { (exit 1); exit 1; }; }
19746 # Don't try to exec as it changes $[0], causing all sort of problems
19747 # (the dirname of $[0] is not the place where we might find the
19748 # original and so on. Autoconf is especially sensible to this).
19749 . ./$as_me.lineno
19750 # Exit status is that of the last command.
19751 exit
19755 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19756 *c*,-n*) ECHO_N= ECHO_C='
19757 ' ECHO_T=' ' ;;
19758 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19759 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19760 esac
19762 if expr a : '\(a\)' >/dev/null 2>&1; then
19763 as_expr=expr
19764 else
19765 as_expr=false
19768 rm -f conf$$ conf$$.exe conf$$.file
19769 echo >conf$$.file
19770 if ln -s conf$$.file conf$$ 2>/dev/null; then
19771 # We could just check for DJGPP; but this test a) works b) is more generic
19772 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19773 if test -f conf$$.exe; then
19774 # Don't use ln at all; we don't have any links
19775 as_ln_s='cp -p'
19776 else
19777 as_ln_s='ln -s'
19779 elif ln conf$$.file conf$$ 2>/dev/null; then
19780 as_ln_s=ln
19781 else
19782 as_ln_s='cp -p'
19784 rm -f conf$$ conf$$.exe conf$$.file
19786 if mkdir -p . 2>/dev/null; then
19787 as_mkdir_p=:
19788 else
19789 test -d ./-p && rmdir ./-p
19790 as_mkdir_p=false
19793 as_executable_p="test -f"
19795 # Sed expression to map a string onto a valid CPP name.
19796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19798 # Sed expression to map a string onto a valid variable name.
19799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19802 # IFS
19803 # We need space, tab and new line, in precisely that order.
19804 as_nl='
19806 IFS=" $as_nl"
19808 # CDPATH.
19809 $as_unset CDPATH
19811 exec 6>&1
19813 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19814 # report actual input values of CONFIG_FILES etc. instead of their
19815 # values after options handling. Logging --version etc. is OK.
19816 exec 5>>config.log
19818 echo
19819 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19820 ## Running $as_me. ##
19821 _ASBOX
19822 } >&5
19823 cat >&5 <<_CSEOF
19825 This file was extended by aMule $as_me SVN, which was
19826 generated by GNU Autoconf 2.59. Invocation command line was
19828 CONFIG_FILES = $CONFIG_FILES
19829 CONFIG_HEADERS = $CONFIG_HEADERS
19830 CONFIG_LINKS = $CONFIG_LINKS
19831 CONFIG_COMMANDS = $CONFIG_COMMANDS
19832 $ $0 $@
19834 _CSEOF
19835 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19836 echo >&5
19837 _ACEOF
19839 # Files that config.status was made for.
19840 if test -n "$ac_config_files"; then
19841 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19844 if test -n "$ac_config_headers"; then
19845 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19848 if test -n "$ac_config_links"; then
19849 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19852 if test -n "$ac_config_commands"; then
19853 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19856 cat >>$CONFIG_STATUS <<\_ACEOF
19858 ac_cs_usage="\
19859 \`$as_me' instantiates files from templates according to the
19860 current configuration.
19862 Usage: $0 [OPTIONS] [FILE]...
19864 -h, --help print this help, then exit
19865 -V, --version print version number, then exit
19866 -q, --quiet do not print progress messages
19867 -d, --debug don't remove temporary files
19868 --recheck update $as_me by reconfiguring in the same conditions
19869 --file=FILE[:TEMPLATE]
19870 instantiate the configuration file FILE
19871 --header=FILE[:TEMPLATE]
19872 instantiate the configuration header FILE
19874 Configuration files:
19875 $config_files
19877 Configuration headers:
19878 $config_headers
19880 Configuration commands:
19881 $config_commands
19883 Report bugs to <bug-autoconf@gnu.org>."
19884 _ACEOF
19886 cat >>$CONFIG_STATUS <<_ACEOF
19887 ac_cs_version="\\
19888 aMule config.status SVN
19889 configured by $0, generated by GNU Autoconf 2.59,
19890 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19892 Copyright (C) 2003 Free Software Foundation, Inc.
19893 This config.status script is free software; the Free Software Foundation
19894 gives unlimited permission to copy, distribute and modify it."
19895 srcdir=$srcdir
19896 INSTALL="$INSTALL"
19897 _ACEOF
19899 cat >>$CONFIG_STATUS <<\_ACEOF
19900 # If no file are specified by the user, then we need to provide default
19901 # value. By we need to know if files were specified by the user.
19902 ac_need_defaults=:
19903 while test $# != 0
19905 case $1 in
19906 --*=*)
19907 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19908 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19909 ac_shift=:
19912 ac_option=$1
19913 ac_optarg=$2
19914 ac_shift=shift
19916 *) # This is not an option, so the user has probably given explicit
19917 # arguments.
19918 ac_option=$1
19919 ac_need_defaults=false;;
19920 esac
19922 case $ac_option in
19923 # Handling of the options.
19924 _ACEOF
19925 cat >>$CONFIG_STATUS <<\_ACEOF
19926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19927 ac_cs_recheck=: ;;
19928 --version | --vers* | -V )
19929 echo "$ac_cs_version"; exit 0 ;;
19930 --he | --h)
19931 # Conflict between --help and --header
19932 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19933 Try \`$0 --help' for more information." >&5
19934 echo "$as_me: error: ambiguous option: $1
19935 Try \`$0 --help' for more information." >&2;}
19936 { (exit 1); exit 1; }; };;
19937 --help | --hel | -h )
19938 echo "$ac_cs_usage"; exit 0 ;;
19939 --debug | --d* | -d )
19940 debug=: ;;
19941 --file | --fil | --fi | --f )
19942 $ac_shift
19943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19944 ac_need_defaults=false;;
19945 --header | --heade | --head | --hea )
19946 $ac_shift
19947 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19948 ac_need_defaults=false;;
19949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19951 ac_cs_silent=: ;;
19953 # This is an error.
19954 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19955 Try \`$0 --help' for more information." >&5
19956 echo "$as_me: error: unrecognized option: $1
19957 Try \`$0 --help' for more information." >&2;}
19958 { (exit 1); exit 1; }; } ;;
19960 *) ac_config_targets="$ac_config_targets $1" ;;
19962 esac
19963 shift
19964 done
19966 ac_configure_extra_args=
19968 if $ac_cs_silent; then
19969 exec 6>/dev/null
19970 ac_configure_extra_args="$ac_configure_extra_args --silent"
19973 _ACEOF
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975 if \$ac_cs_recheck; then
19976 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19977 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19980 _ACEOF
19982 cat >>$CONFIG_STATUS <<_ACEOF
19984 # INIT-COMMANDS section.
19987 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19988 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19989 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19990 # from automake.
19991 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19992 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19993 LINGUAS="${LINGUAS-%UNSET%}"
19995 denoiserlevel=$with_denoise_level
19997 _ACEOF
20001 cat >>$CONFIG_STATUS <<\_ACEOF
20002 for ac_config_target in $ac_config_targets
20004 case "$ac_config_target" in
20005 # Handling of arguments.
20006 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20007 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20008 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20009 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20010 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20011 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20012 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20013 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20014 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20015 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20016 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20017 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20018 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20019 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20020 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20021 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20022 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20023 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20024 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20025 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20026 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20027 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20028 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20029 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20030 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20031 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20032 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20033 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20034 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20035 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20036 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20037 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20038 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20039 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20040 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20041 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20042 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20043 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20044 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20045 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20046 { (exit 1); exit 1; }; };;
20047 esac
20048 done
20050 # If the user did not use the arguments to specify the items to instantiate,
20051 # then the envvar interface is used. Set only those that are not.
20052 # We use the long form for the default assignment because of an extremely
20053 # bizarre bug on SunOS 4.1.3.
20054 if $ac_need_defaults; then
20055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20060 # Have a temporary directory for convenience. Make it in the build tree
20061 # simply because there is no reason to put it here, and in addition,
20062 # creating and moving files from /tmp can sometimes cause problems.
20063 # Create a temporary directory, and hook for its removal unless debugging.
20064 $debug ||
20066 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20067 trap '{ (exit 1); exit 1; }' 1 2 13 15
20070 # Create a (secure) tmp directory for tmp files.
20073 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20074 test -n "$tmp" && test -d "$tmp"
20075 } ||
20077 tmp=./confstat$$-$RANDOM
20078 (umask 077 && mkdir $tmp)
20079 } ||
20081 echo "$me: cannot create a temporary directory in ." >&2
20082 { (exit 1); exit 1; }
20085 _ACEOF
20087 cat >>$CONFIG_STATUS <<_ACEOF
20090 # CONFIG_FILES section.
20093 # No need to generate the scripts if there are no CONFIG_FILES.
20094 # This happens for instance when ./config.status config.h
20095 if test -n "\$CONFIG_FILES"; then
20096 # Protect against being on the right side of a sed subst in config.status.
20097 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20098 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20099 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20100 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20101 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20102 s,@SHELL@,$SHELL,;t t
20103 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20109 s,@exec_prefix@,$exec_prefix,;t t
20110 s,@prefix@,$prefix,;t t
20111 s,@program_transform_name@,$program_transform_name,;t t
20112 s,@bindir@,$bindir,;t t
20113 s,@sbindir@,$sbindir,;t t
20114 s,@libexecdir@,$libexecdir,;t t
20115 s,@datadir@,$datadir,;t t
20116 s,@sysconfdir@,$sysconfdir,;t t
20117 s,@sharedstatedir@,$sharedstatedir,;t t
20118 s,@localstatedir@,$localstatedir,;t t
20119 s,@libdir@,$libdir,;t t
20120 s,@includedir@,$includedir,;t t
20121 s,@oldincludedir@,$oldincludedir,;t t
20122 s,@infodir@,$infodir,;t t
20123 s,@mandir@,$mandir,;t t
20124 s,@build_alias@,$build_alias,;t t
20125 s,@host_alias@,$host_alias,;t t
20126 s,@target_alias@,$target_alias,;t t
20127 s,@DEFS@,$DEFS,;t t
20128 s,@ECHO_C@,$ECHO_C,;t t
20129 s,@ECHO_N@,$ECHO_N,;t t
20130 s,@ECHO_T@,$ECHO_T,;t t
20131 s,@LIBS@,$LIBS,;t t
20132 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20133 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20134 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20135 s,@CYGPATH_W@,$CYGPATH_W,;t t
20136 s,@PACKAGE@,$PACKAGE,;t t
20137 s,@VERSION@,$VERSION,;t t
20138 s,@ACLOCAL@,$ACLOCAL,;t t
20139 s,@AUTOCONF@,$AUTOCONF,;t t
20140 s,@AUTOMAKE@,$AUTOMAKE,;t t
20141 s,@AUTOHEADER@,$AUTOHEADER,;t t
20142 s,@MAKEINFO@,$MAKEINFO,;t t
20143 s,@install_sh@,$install_sh,;t t
20144 s,@STRIP@,$STRIP,;t t
20145 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20146 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20147 s,@mkdir_p@,$mkdir_p,;t t
20148 s,@AWK@,$AWK,;t t
20149 s,@SET_MAKE@,$SET_MAKE,;t t
20150 s,@am__leading_dot@,$am__leading_dot,;t t
20151 s,@AMTAR@,$AMTAR,;t t
20152 s,@am__tar@,$am__tar,;t t
20153 s,@am__untar@,$am__untar,;t t
20154 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20155 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20156 s,@MAINT@,$MAINT,;t t
20157 s,@build@,$build,;t t
20158 s,@build_cpu@,$build_cpu,;t t
20159 s,@build_vendor@,$build_vendor,;t t
20160 s,@build_os@,$build_os,;t t
20161 s,@host@,$host,;t t
20162 s,@host_cpu@,$host_cpu,;t t
20163 s,@host_vendor@,$host_vendor,;t t
20164 s,@host_os@,$host_os,;t t
20165 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20166 s,@X11LIBS@,$X11LIBS,;t t
20167 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20168 s,@MULECFLAGS@,$MULECFLAGS,;t t
20169 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20170 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20171 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20172 s,@CXX@,$CXX,;t t
20173 s,@CXXFLAGS@,$CXXFLAGS,;t t
20174 s,@LDFLAGS@,$LDFLAGS,;t t
20175 s,@CPPFLAGS@,$CPPFLAGS,;t t
20176 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20177 s,@EXEEXT@,$EXEEXT,;t t
20178 s,@OBJEXT@,$OBJEXT,;t t
20179 s,@DEPDIR@,$DEPDIR,;t t
20180 s,@am__include@,$am__include,;t t
20181 s,@am__quote@,$am__quote,;t t
20182 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20183 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20184 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20185 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20186 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20187 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20188 s,@CXXCPP@,$CXXCPP,;t t
20189 s,@CC@,$CC,;t t
20190 s,@CFLAGS@,$CFLAGS,;t t
20191 s,@ac_ct_CC@,$ac_ct_CC,;t t
20192 s,@CCDEPMODE@,$CCDEPMODE,;t t
20193 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20194 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20195 s,@CPP@,$CPP,;t t
20196 s,@BUILD_CC@,$BUILD_CC,;t t
20197 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20198 s,@EXEEXT@,$EXEEXT,;t t
20199 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20200 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20201 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20202 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20203 s,@EGREP@,$EGREP,;t t
20204 s,@LEX@,$LEX,;t t
20205 s,@LEXLIB@,$LEXLIB,;t t
20206 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20207 s,@RANLIB@,$RANLIB,;t t
20208 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20209 s,@YACC@,$YACC,;t t
20210 s,@AR@,$AR,;t t
20211 s,@ac_ct_AR@,$ac_ct_AR,;t t
20212 s,@LD@,$LD,;t t
20213 s,@ac_ct_LD@,$ac_ct_LD,;t t
20214 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20215 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20216 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20217 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20218 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20219 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20220 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20221 s,@CAS_DEFS@,$CAS_DEFS,;t t
20222 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20223 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20224 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20225 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20226 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20227 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20228 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20229 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20230 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20231 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20232 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20233 s,@WX_LIBS@,$WX_LIBS,;t t
20234 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20235 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20236 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20237 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20238 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20239 s,@WX_UNICODE@,$WX_UNICODE,;t t
20240 s,@WX_DEBUG@,$WX_DEBUG,;t t
20241 s,@WX_SHARED@,$WX_SHARED,;t t
20242 s,@WX_PORT@,$WX_PORT,;t t
20243 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20244 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20245 s,@RC@,$RC,;t t
20246 s,@RCFLAGS@,$RCFLAGS,;t t
20247 s,@ac_ct_RC@,$ac_ct_RC,;t t
20248 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20249 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20250 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20251 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20252 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20253 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20254 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20255 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20256 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20257 s,@ALLOCA@,$ALLOCA,;t t
20258 s,@LIBOBJS@,$LIBOBJS,;t t
20259 s,@POW_LIB@,$POW_LIB,;t t
20260 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20261 s,@MSGFMT@,$MSGFMT,;t t
20262 s,@GMSGFMT@,$GMSGFMT,;t t
20263 s,@XGETTEXT@,$XGETTEXT,;t t
20264 s,@MSGMERGE@,$MSGMERGE,;t t
20265 s,@GLIBC21@,$GLIBC21,;t t
20266 s,@LIBICONV@,$LIBICONV,;t t
20267 s,@LTLIBICONV@,$LTLIBICONV,;t t
20268 s,@INTLBISON@,$INTLBISON,;t t
20269 s,@USE_NLS@,$USE_NLS,;t t
20270 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20271 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20272 s,@CATOBJEXT@,$CATOBJEXT,;t t
20273 s,@INTLOBJS@,$INTLOBJS,;t t
20274 s,@DATADIRNAME@,$DATADIRNAME,;t t
20275 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20276 s,@GENCAT@,$GENCAT,;t t
20277 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20278 s,@INTLLIBS@,$INTLLIBS,;t t
20279 s,@LIBINTL@,$LIBINTL,;t t
20280 s,@LTLIBINTL@,$LTLIBINTL,;t t
20281 s,@POSUB@,$POSUB,;t t
20282 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20283 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20284 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20285 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20286 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20287 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20288 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20289 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20290 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20291 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20292 s,@INCINTL@,$INCINTL,;t t
20293 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20294 s,@BFD_LIBS@,$BFD_LIBS,;t t
20295 s,@docdir@,$docdir,;t t
20296 s,@SVNDATE@,$SVNDATE,;t t
20297 s,@WEB_TRUE@,$WEB_TRUE,;t t
20298 s,@WEB_FALSE@,$WEB_FALSE,;t t
20299 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20300 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20301 s,@CAS_TRUE@,$CAS_TRUE,;t t
20302 s,@CAS_FALSE@,$CAS_FALSE,;t t
20303 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20304 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20305 s,@ALC_TRUE@,$ALC_TRUE,;t t
20306 s,@ALC_FALSE@,$ALC_FALSE,;t t
20307 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20308 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20309 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20310 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20311 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20312 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20313 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20314 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20315 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20316 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20317 s,@XAS_TRUE@,$XAS_TRUE,;t t
20318 s,@XAS_FALSE@,$XAS_FALSE,;t t
20319 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20320 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20321 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20322 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20323 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20324 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20325 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20326 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20327 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20328 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20329 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20330 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20331 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20332 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20333 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20334 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20335 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20336 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20337 CEOF
20339 _ACEOF
20341 cat >>$CONFIG_STATUS <<\_ACEOF
20342 # Split the substitutions into bite-sized pieces for seds with
20343 # small command number limits, like on Digital OSF/1 and HP-UX.
20344 ac_max_sed_lines=48
20345 ac_sed_frag=1 # Number of current file.
20346 ac_beg=1 # First line for current file.
20347 ac_end=$ac_max_sed_lines # Line after last line for current file.
20348 ac_more_lines=:
20349 ac_sed_cmds=
20350 while $ac_more_lines; do
20351 if test $ac_beg -gt 1; then
20352 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20353 else
20354 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20356 if test ! -s $tmp/subs.frag; then
20357 ac_more_lines=false
20358 else
20359 # The purpose of the label and of the branching condition is to
20360 # speed up the sed processing (if there are no `@' at all, there
20361 # is no need to browse any of the substitutions).
20362 # These are the two extra sed commands mentioned above.
20363 (echo ':t
20364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20365 if test -z "$ac_sed_cmds"; then
20366 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20367 else
20368 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20370 ac_sed_frag=`expr $ac_sed_frag + 1`
20371 ac_beg=$ac_end
20372 ac_end=`expr $ac_end + $ac_max_sed_lines`
20374 done
20375 if test -z "$ac_sed_cmds"; then
20376 ac_sed_cmds=cat
20378 fi # test -n "$CONFIG_FILES"
20380 _ACEOF
20381 cat >>$CONFIG_STATUS <<\_ACEOF
20382 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20383 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20384 case $ac_file in
20385 - | *:- | *:-:* ) # input from stdin
20386 cat >$tmp/stdin
20387 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20389 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20391 * ) ac_file_in=$ac_file.in ;;
20392 esac
20394 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20395 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20397 X"$ac_file" : 'X\(//\)[^/]' \| \
20398 X"$ac_file" : 'X\(//\)$' \| \
20399 X"$ac_file" : 'X\(/\)' \| \
20400 . : '\(.\)' 2>/dev/null ||
20401 echo X"$ac_file" |
20402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20404 /^X\(\/\/\)$/{ s//\1/; q; }
20405 /^X\(\/\).*/{ s//\1/; q; }
20406 s/.*/./; q'`
20407 { if $as_mkdir_p; then
20408 mkdir -p "$ac_dir"
20409 else
20410 as_dir="$ac_dir"
20411 as_dirs=
20412 while test ! -d "$as_dir"; do
20413 as_dirs="$as_dir $as_dirs"
20414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20416 X"$as_dir" : 'X\(//\)[^/]' \| \
20417 X"$as_dir" : 'X\(//\)$' \| \
20418 X"$as_dir" : 'X\(/\)' \| \
20419 . : '\(.\)' 2>/dev/null ||
20420 echo X"$as_dir" |
20421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20423 /^X\(\/\/\)$/{ s//\1/; q; }
20424 /^X\(\/\).*/{ s//\1/; q; }
20425 s/.*/./; q'`
20426 done
20427 test ! -n "$as_dirs" || mkdir $as_dirs
20428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20430 { (exit 1); exit 1; }; }; }
20432 ac_builddir=.
20434 if test "$ac_dir" != .; then
20435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20436 # A "../" for each directory in $ac_dir_suffix.
20437 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20438 else
20439 ac_dir_suffix= ac_top_builddir=
20442 case $srcdir in
20443 .) # No --srcdir option. We are building in place.
20444 ac_srcdir=.
20445 if test -z "$ac_top_builddir"; then
20446 ac_top_srcdir=.
20447 else
20448 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20449 fi ;;
20450 [\\/]* | ?:[\\/]* ) # Absolute path.
20451 ac_srcdir=$srcdir$ac_dir_suffix;
20452 ac_top_srcdir=$srcdir ;;
20453 *) # Relative path.
20454 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20455 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20456 esac
20458 # Do not use `cd foo && pwd` to compute absolute paths, because
20459 # the directories may not exist.
20460 case `pwd` in
20461 .) ac_abs_builddir="$ac_dir";;
20463 case "$ac_dir" in
20464 .) ac_abs_builddir=`pwd`;;
20465 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20466 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20467 esac;;
20468 esac
20469 case $ac_abs_builddir in
20470 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20472 case ${ac_top_builddir}. in
20473 .) ac_abs_top_builddir=$ac_abs_builddir;;
20474 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20475 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20476 esac;;
20477 esac
20478 case $ac_abs_builddir in
20479 .) ac_abs_srcdir=$ac_srcdir;;
20481 case $ac_srcdir in
20482 .) ac_abs_srcdir=$ac_abs_builddir;;
20483 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20484 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20485 esac;;
20486 esac
20487 case $ac_abs_builddir in
20488 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20490 case $ac_top_srcdir in
20491 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20492 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20493 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20494 esac;;
20495 esac
20498 case $INSTALL in
20499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20500 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20501 esac
20503 if test x"$ac_file" != x-; then
20504 { echo "$as_me:$LINENO: creating $ac_file" >&5
20505 echo "$as_me: creating $ac_file" >&6;}
20506 rm -f "$ac_file"
20508 # Let's still pretend it is `configure' which instantiates (i.e., don't
20509 # use $as_me), people would be surprised to read:
20510 # /* config.h. Generated by config.status. */
20511 if test x"$ac_file" = x-; then
20512 configure_input=
20513 else
20514 configure_input="$ac_file. "
20516 configure_input=$configure_input"Generated from `echo $ac_file_in |
20517 sed 's,.*/,,'` by configure."
20519 # First look for the input files in the build tree, otherwise in the
20520 # src tree.
20521 ac_file_inputs=`IFS=:
20522 for f in $ac_file_in; do
20523 case $f in
20524 -) echo $tmp/stdin ;;
20525 [\\/$]*)
20526 # Absolute (can't be DOS-style, as IFS=:)
20527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20528 echo "$as_me: error: cannot find input file: $f" >&2;}
20529 { (exit 1); exit 1; }; }
20530 echo "$f";;
20531 *) # Relative
20532 if test -f "$f"; then
20533 # Build tree
20534 echo "$f"
20535 elif test -f "$srcdir/$f"; then
20536 # Source tree
20537 echo "$srcdir/$f"
20538 else
20539 # /dev/null tree
20540 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20541 echo "$as_me: error: cannot find input file: $f" >&2;}
20542 { (exit 1); exit 1; }; }
20543 fi;;
20544 esac
20545 done` || { (exit 1); exit 1; }
20546 _ACEOF
20547 cat >>$CONFIG_STATUS <<_ACEOF
20548 sed "$ac_vpsub
20549 $extrasub
20550 _ACEOF
20551 cat >>$CONFIG_STATUS <<\_ACEOF
20553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20554 s,@configure_input@,$configure_input,;t t
20555 s,@srcdir@,$ac_srcdir,;t t
20556 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20557 s,@top_srcdir@,$ac_top_srcdir,;t t
20558 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20559 s,@builddir@,$ac_builddir,;t t
20560 s,@abs_builddir@,$ac_abs_builddir,;t t
20561 s,@top_builddir@,$ac_top_builddir,;t t
20562 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20563 s,@INSTALL@,$ac_INSTALL,;t t
20564 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20565 rm -f $tmp/stdin
20566 if test x"$ac_file" != x-; then
20567 mv $tmp/out $ac_file
20568 else
20569 cat $tmp/out
20570 rm -f $tmp/out
20573 done
20574 _ACEOF
20575 cat >>$CONFIG_STATUS <<\_ACEOF
20578 # CONFIG_HEADER section.
20581 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20582 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20584 # ac_d sets the value in "#define NAME VALUE" lines.
20585 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20586 ac_dB='[ ].*$,\1#\2'
20587 ac_dC=' '
20588 ac_dD=',;t'
20589 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20590 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20591 ac_uB='$,\1#\2define\3'
20592 ac_uC=' '
20593 ac_uD=',;t'
20595 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20597 case $ac_file in
20598 - | *:- | *:-:* ) # input from stdin
20599 cat >$tmp/stdin
20600 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20602 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20604 * ) ac_file_in=$ac_file.in ;;
20605 esac
20607 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20608 echo "$as_me: creating $ac_file" >&6;}
20610 # First look for the input files in the build tree, otherwise in the
20611 # src tree.
20612 ac_file_inputs=`IFS=:
20613 for f in $ac_file_in; do
20614 case $f in
20615 -) echo $tmp/stdin ;;
20616 [\\/$]*)
20617 # Absolute (can't be DOS-style, as IFS=:)
20618 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20619 echo "$as_me: error: cannot find input file: $f" >&2;}
20620 { (exit 1); exit 1; }; }
20621 # Do quote $f, to prevent DOS paths from being IFS'd.
20622 echo "$f";;
20623 *) # Relative
20624 if test -f "$f"; then
20625 # Build tree
20626 echo "$f"
20627 elif test -f "$srcdir/$f"; then
20628 # Source tree
20629 echo "$srcdir/$f"
20630 else
20631 # /dev/null tree
20632 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20633 echo "$as_me: error: cannot find input file: $f" >&2;}
20634 { (exit 1); exit 1; }; }
20635 fi;;
20636 esac
20637 done` || { (exit 1); exit 1; }
20638 # Remove the trailing spaces.
20639 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20641 _ACEOF
20643 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20644 # `conftest.undefs', that substitutes the proper values into
20645 # config.h.in to produce config.h. The first handles `#define'
20646 # templates, and the second `#undef' templates.
20647 # And first: Protect against being on the right side of a sed subst in
20648 # config.status. Protect against being in an unquoted here document
20649 # in config.status.
20650 rm -f conftest.defines conftest.undefs
20651 # Using a here document instead of a string reduces the quoting nightmare.
20652 # Putting comments in sed scripts is not portable.
20654 # `end' is used to avoid that the second main sed command (meant for
20655 # 0-ary CPP macros) applies to n-ary macro definitions.
20656 # See the Autoconf documentation for `clear'.
20657 cat >confdef2sed.sed <<\_ACEOF
20658 s/[\\&,]/\\&/g
20659 s,[\\$`],\\&,g
20660 t clear
20661 : clear
20662 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20663 t end
20664 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20665 : end
20666 _ACEOF
20667 # If some macros were called several times there might be several times
20668 # the same #defines, which is useless. Nevertheless, we may not want to
20669 # sort them, since we want the *last* AC-DEFINE to be honored.
20670 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20671 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20672 rm -f confdef2sed.sed
20674 # This sed command replaces #undef with comments. This is necessary, for
20675 # example, in the case of _POSIX_SOURCE, which is predefined and required
20676 # on some systems where configure will not decide to define it.
20677 cat >>conftest.undefs <<\_ACEOF
20678 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20679 _ACEOF
20681 # Break up conftest.defines because some shells have a limit on the size
20682 # of here documents, and old seds have small limits too (100 cmds).
20683 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20684 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20685 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20686 echo ' :' >>$CONFIG_STATUS
20687 rm -f conftest.tail
20688 while grep . conftest.defines >/dev/null
20690 # Write a limited-size here document to $tmp/defines.sed.
20691 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20692 # Speed up: don't consider the non `#define' lines.
20693 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20694 # Work around the forget-to-reset-the-flag bug.
20695 echo 't clr' >>$CONFIG_STATUS
20696 echo ': clr' >>$CONFIG_STATUS
20697 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20698 echo 'CEOF
20699 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20700 rm -f $tmp/in
20701 mv $tmp/out $tmp/in
20702 ' >>$CONFIG_STATUS
20703 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20704 rm -f conftest.defines
20705 mv conftest.tail conftest.defines
20706 done
20707 rm -f conftest.defines
20708 echo ' fi # grep' >>$CONFIG_STATUS
20709 echo >>$CONFIG_STATUS
20711 # Break up conftest.undefs because some shells have a limit on the size
20712 # of here documents, and old seds have small limits too (100 cmds).
20713 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20714 rm -f conftest.tail
20715 while grep . conftest.undefs >/dev/null
20717 # Write a limited-size here document to $tmp/undefs.sed.
20718 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20719 # Speed up: don't consider the non `#undef'
20720 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20721 # Work around the forget-to-reset-the-flag bug.
20722 echo 't clr' >>$CONFIG_STATUS
20723 echo ': clr' >>$CONFIG_STATUS
20724 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20725 echo 'CEOF
20726 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20727 rm -f $tmp/in
20728 mv $tmp/out $tmp/in
20729 ' >>$CONFIG_STATUS
20730 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20731 rm -f conftest.undefs
20732 mv conftest.tail conftest.undefs
20733 done
20734 rm -f conftest.undefs
20736 cat >>$CONFIG_STATUS <<\_ACEOF
20737 # Let's still pretend it is `configure' which instantiates (i.e., don't
20738 # use $as_me), people would be surprised to read:
20739 # /* config.h. Generated by config.status. */
20740 if test x"$ac_file" = x-; then
20741 echo "/* Generated by configure. */" >$tmp/config.h
20742 else
20743 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20745 cat $tmp/in >>$tmp/config.h
20746 rm -f $tmp/in
20747 if test x"$ac_file" != x-; then
20748 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20749 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20750 echo "$as_me: $ac_file is unchanged" >&6;}
20751 else
20752 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20754 X"$ac_file" : 'X\(//\)[^/]' \| \
20755 X"$ac_file" : 'X\(//\)$' \| \
20756 X"$ac_file" : 'X\(/\)' \| \
20757 . : '\(.\)' 2>/dev/null ||
20758 echo X"$ac_file" |
20759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20761 /^X\(\/\/\)$/{ s//\1/; q; }
20762 /^X\(\/\).*/{ s//\1/; q; }
20763 s/.*/./; q'`
20764 { if $as_mkdir_p; then
20765 mkdir -p "$ac_dir"
20766 else
20767 as_dir="$ac_dir"
20768 as_dirs=
20769 while test ! -d "$as_dir"; do
20770 as_dirs="$as_dir $as_dirs"
20771 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20773 X"$as_dir" : 'X\(//\)[^/]' \| \
20774 X"$as_dir" : 'X\(//\)$' \| \
20775 X"$as_dir" : 'X\(/\)' \| \
20776 . : '\(.\)' 2>/dev/null ||
20777 echo X"$as_dir" |
20778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20780 /^X\(\/\/\)$/{ s//\1/; q; }
20781 /^X\(\/\).*/{ s//\1/; q; }
20782 s/.*/./; q'`
20783 done
20784 test ! -n "$as_dirs" || mkdir $as_dirs
20785 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20786 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20787 { (exit 1); exit 1; }; }; }
20789 rm -f $ac_file
20790 mv $tmp/config.h $ac_file
20792 else
20793 cat $tmp/config.h
20794 rm -f $tmp/config.h
20796 # Compute $ac_file's index in $config_headers.
20797 _am_stamp_count=1
20798 for _am_header in $config_headers :; do
20799 case $_am_header in
20800 $ac_file | $ac_file:* )
20801 break ;;
20803 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20804 esac
20805 done
20806 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20807 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20808 X$ac_file : 'X\(//\)[^/]' \| \
20809 X$ac_file : 'X\(//\)$' \| \
20810 X$ac_file : 'X\(/\)' \| \
20811 . : '\(.\)' 2>/dev/null ||
20812 echo X$ac_file |
20813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20815 /^X\(\/\/\)$/{ s//\1/; q; }
20816 /^X\(\/\).*/{ s//\1/; q; }
20817 s/.*/./; q'`/stamp-h$_am_stamp_count
20818 done
20819 _ACEOF
20820 cat >>$CONFIG_STATUS <<\_ACEOF
20823 # CONFIG_COMMANDS section.
20825 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20826 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20827 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20828 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20829 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20830 X"$ac_dest" : 'X\(//\)[^/]' \| \
20831 X"$ac_dest" : 'X\(//\)$' \| \
20832 X"$ac_dest" : 'X\(/\)' \| \
20833 . : '\(.\)' 2>/dev/null ||
20834 echo X"$ac_dest" |
20835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20837 /^X\(\/\/\)$/{ s//\1/; q; }
20838 /^X\(\/\).*/{ s//\1/; q; }
20839 s/.*/./; q'`
20840 { if $as_mkdir_p; then
20841 mkdir -p "$ac_dir"
20842 else
20843 as_dir="$ac_dir"
20844 as_dirs=
20845 while test ! -d "$as_dir"; do
20846 as_dirs="$as_dir $as_dirs"
20847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20849 X"$as_dir" : 'X\(//\)[^/]' \| \
20850 X"$as_dir" : 'X\(//\)$' \| \
20851 X"$as_dir" : 'X\(/\)' \| \
20852 . : '\(.\)' 2>/dev/null ||
20853 echo X"$as_dir" |
20854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20856 /^X\(\/\/\)$/{ s//\1/; q; }
20857 /^X\(\/\).*/{ s//\1/; q; }
20858 s/.*/./; q'`
20859 done
20860 test ! -n "$as_dirs" || mkdir $as_dirs
20861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20863 { (exit 1); exit 1; }; }; }
20865 ac_builddir=.
20867 if test "$ac_dir" != .; then
20868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20869 # A "../" for each directory in $ac_dir_suffix.
20870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20871 else
20872 ac_dir_suffix= ac_top_builddir=
20875 case $srcdir in
20876 .) # No --srcdir option. We are building in place.
20877 ac_srcdir=.
20878 if test -z "$ac_top_builddir"; then
20879 ac_top_srcdir=.
20880 else
20881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20882 fi ;;
20883 [\\/]* | ?:[\\/]* ) # Absolute path.
20884 ac_srcdir=$srcdir$ac_dir_suffix;
20885 ac_top_srcdir=$srcdir ;;
20886 *) # Relative path.
20887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20889 esac
20891 # Do not use `cd foo && pwd` to compute absolute paths, because
20892 # the directories may not exist.
20893 case `pwd` in
20894 .) ac_abs_builddir="$ac_dir";;
20896 case "$ac_dir" in
20897 .) ac_abs_builddir=`pwd`;;
20898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20900 esac;;
20901 esac
20902 case $ac_abs_builddir in
20903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20905 case ${ac_top_builddir}. in
20906 .) ac_abs_top_builddir=$ac_abs_builddir;;
20907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20909 esac;;
20910 esac
20911 case $ac_abs_builddir in
20912 .) ac_abs_srcdir=$ac_srcdir;;
20914 case $ac_srcdir in
20915 .) ac_abs_srcdir=$ac_abs_builddir;;
20916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20918 esac;;
20919 esac
20920 case $ac_abs_builddir in
20921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20923 case $ac_top_srcdir in
20924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20927 esac;;
20928 esac
20931 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20932 echo "$as_me: executing $ac_dest commands" >&6;}
20933 case $ac_dest in
20934 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20935 # Strip MF so we end up with the name of the file.
20936 mf=`echo "$mf" | sed -e 's/:.*$//'`
20937 # Check whether this is an Automake generated Makefile or not.
20938 # We used to match only the files named `Makefile.in', but
20939 # some people rename them; so instead we look at the file content.
20940 # Grep'ing the first line is not enough: some people post-process
20941 # each Makefile.in and add a new line on top of each file to say so.
20942 # So let's grep whole file.
20943 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20944 dirpart=`(dirname "$mf") 2>/dev/null ||
20945 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946 X"$mf" : 'X\(//\)[^/]' \| \
20947 X"$mf" : 'X\(//\)$' \| \
20948 X"$mf" : 'X\(/\)' \| \
20949 . : '\(.\)' 2>/dev/null ||
20950 echo X"$mf" |
20951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20953 /^X\(\/\/\)$/{ s//\1/; q; }
20954 /^X\(\/\).*/{ s//\1/; q; }
20955 s/.*/./; q'`
20956 else
20957 continue
20959 # Extract the definition of DEPDIR, am__include, and am__quote
20960 # from the Makefile without running `make'.
20961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20962 test -z "$DEPDIR" && continue
20963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20964 test -z "am__include" && continue
20965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20966 # When using ansi2knr, U may be empty or an underscore; expand it
20967 U=`sed -n 's/^U = //p' < "$mf"`
20968 # Find all dependency output files, they are included files with
20969 # $(DEPDIR) in their names. We invoke sed twice because it is the
20970 # simplest approach to changing $(DEPDIR) to its actual value in the
20971 # expansion.
20972 for file in `sed -n "
20973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20975 # Make sure the directory exists.
20976 test -f "$dirpart/$file" && continue
20977 fdir=`(dirname "$file") 2>/dev/null ||
20978 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20979 X"$file" : 'X\(//\)[^/]' \| \
20980 X"$file" : 'X\(//\)$' \| \
20981 X"$file" : 'X\(/\)' \| \
20982 . : '\(.\)' 2>/dev/null ||
20983 echo X"$file" |
20984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20986 /^X\(\/\/\)$/{ s//\1/; q; }
20987 /^X\(\/\).*/{ s//\1/; q; }
20988 s/.*/./; q'`
20989 { if $as_mkdir_p; then
20990 mkdir -p $dirpart/$fdir
20991 else
20992 as_dir=$dirpart/$fdir
20993 as_dirs=
20994 while test ! -d "$as_dir"; do
20995 as_dirs="$as_dir $as_dirs"
20996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20998 X"$as_dir" : 'X\(//\)[^/]' \| \
20999 X"$as_dir" : 'X\(//\)$' \| \
21000 X"$as_dir" : 'X\(/\)' \| \
21001 . : '\(.\)' 2>/dev/null ||
21002 echo X"$as_dir" |
21003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21005 /^X\(\/\/\)$/{ s//\1/; q; }
21006 /^X\(\/\).*/{ s//\1/; q; }
21007 s/.*/./; q'`
21008 done
21009 test ! -n "$as_dirs" || mkdir $as_dirs
21010 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21011 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21012 { (exit 1); exit 1; }; }; }
21014 # echo "creating $dirpart/$file"
21015 echo '# dummy' > "$dirpart/$file"
21016 done
21017 done
21019 default-1 )
21020 for ac_file in $CONFIG_FILES; do
21021 # Support "outfile[:infile[:infile...]]"
21022 case "$ac_file" in
21023 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21024 esac
21025 # PO directories have a Makefile.in generated from Makefile.in.in.
21026 case "$ac_file" in */Makefile.in)
21027 # Adjust a relative srcdir.
21028 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21029 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21030 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21031 # In autoconf-2.13 it is called $ac_given_srcdir.
21032 # In autoconf-2.50 it is called $srcdir.
21033 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21034 case "$ac_given_srcdir" in
21035 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21036 /*) top_srcdir="$ac_given_srcdir" ;;
21037 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21038 esac
21039 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21040 rm -f "$ac_dir/POTFILES"
21041 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21042 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21043 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21044 # on $ac_dir but don't depend on user-specified configuration
21045 # parameters.
21046 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21047 # The LINGUAS file contains the set of available languages.
21048 if test -n "$ALL_LINGUAS"; then
21049 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21051 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21052 # Hide the ALL_LINGUAS assigment from automake.
21053 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21055 case "$ac_given_srcdir" in
21056 .) srcdirpre= ;;
21057 *) srcdirpre='$(srcdir)/' ;;
21058 esac
21059 POFILES=
21060 GMOFILES=
21061 UPDATEPOFILES=
21062 DUMMYPOFILES=
21063 for lang in $ALL_LINGUAS; do
21064 POFILES="$POFILES $srcdirpre$lang.po"
21065 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21066 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21067 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21068 done
21069 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21070 # environment variable.
21071 INST_LINGUAS=
21072 if test -n "$ALL_LINGUAS"; then
21073 for presentlang in $ALL_LINGUAS; do
21074 useit=no
21075 if test "%UNSET%" != "$LINGUAS"; then
21076 desiredlanguages="$LINGUAS"
21077 else
21078 desiredlanguages="$ALL_LINGUAS"
21080 for desiredlang in $desiredlanguages; do
21081 # Use the presentlang catalog if desiredlang is
21082 # a. equal to presentlang, or
21083 # b. a variant of presentlang (because in this case,
21084 # presentlang can be used as a fallback for messages
21085 # which are not translated in the desiredlang catalog).
21086 case "$desiredlang" in
21087 "$presentlang"*) useit=yes;;
21088 esac
21089 done
21090 if test $useit = yes; then
21091 INST_LINGUAS="$INST_LINGUAS $presentlang"
21093 done
21095 CATALOGS=
21096 if test -n "$INST_LINGUAS"; then
21097 for lang in $INST_LINGUAS; do
21098 CATALOGS="$CATALOGS $lang.gmo"
21099 done
21101 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21102 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"
21103 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21104 if test -f "$f"; then
21105 case "$f" in
21106 *.orig | *.bak | *~) ;;
21107 *) cat "$f" >> "$ac_dir/Makefile" ;;
21108 esac
21110 done
21113 esac
21114 done ;;
21115 denoiser ) if test $denoiserlevel -gt 0; then
21116 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21117 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" \
21118 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21119 for i in `find . -name 'Makefile' -print`; do
21120 if test -n "`head -n 1 $i | grep '^#'`"; then
21121 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21123 done
21124 fi ;;
21125 esac
21126 done
21127 _ACEOF
21129 cat >>$CONFIG_STATUS <<\_ACEOF
21131 { (exit 0); exit 0; }
21132 _ACEOF
21133 chmod +x $CONFIG_STATUS
21134 ac_clean_files=$ac_clean_files_save
21137 # configure is writing to config.log, and then calls config.status.
21138 # config.status does its own redirection, appending to config.log.
21139 # Unfortunately, on DOS this fails, as config.log is still kept open
21140 # by configure, so config.status won't be able to write to it; its
21141 # output is simply discarded. So we exec the FD to /dev/null,
21142 # effectively closing config.log, so it can be properly (re)opened and
21143 # appended to by config.status. When coming back to configure, we
21144 # need to make the FD available again.
21145 if test "$no_create" != yes; then
21146 ac_cs_success=:
21147 ac_config_status_args=
21148 test "$silent" = yes &&
21149 ac_config_status_args="$ac_config_status_args --quiet"
21150 exec 5>/dev/null
21151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21152 exec 5>>config.log
21153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21154 # would make configure fail if this is the last instruction.
21155 $ac_cs_success || { (exit 1); exit 1; }
21159 if test -n "$svndate"; then
21160 SVN_REVISION=" ($svndate)"
21161 else
21162 SVN_REVISION=
21166 echo
21167 echo
21168 echo " Configure script has finished system check."
21169 echo
21170 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21171 echo
21172 echo " aMule enabled options:"
21173 echo
21174 echo " **** aMule Core ****"
21175 echo " Prefix where aMule should be installed? ${prefix:-none}"
21176 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21177 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21178 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21179 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21180 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21181 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21182 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21183 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21184 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21185 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21187 echo
21188 echo " **** aMule TextClient ****"
21189 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21190 echo
21191 echo " **** aMule WebServer ****"
21192 echo " Should aMule WebServer be built? ${WEB:-no}"
21193 echo
21194 echo " **** aMule ED2K Links Handler ****"
21195 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21196 echo
21197 echo " **** aMuleLinkCreator ****"
21198 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21199 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21200 echo
21201 echo " **** aMule Statistics ****"
21202 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21203 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21204 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21206 echo
21207 echo " **** General Libraries and Tools ****"
21208 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21209 echo " Libraries aMule will use to build:"
21210 wxinfo="$WX_PORT"
21211 if test $WX_DEBUG -eq 1; then
21212 wxinfo="$wxinfo,debug"
21215 if test $WX_SHARED -eq 1; then
21216 wxinfo="$wxinfo,shared"
21217 else
21218 wxinfo="$wxinfo,static"
21221 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21222 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21223 if test -n "$with_libupnp_prefix"; then
21224 libupnp_place=" (in $with_libupnp_prefix)"
21227 if test x${ENABLE_UPNP} = xyes; then
21228 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21231 if test ${enable_nls:-yes} = yes; then
21232 if test x$USE_NLS = xno; then
21233 libintl_found="Not detected"
21234 else
21235 if test x$USE_INCLUDED_LIBINTL = xyes; then
21236 libintl_found="included"
21237 else
21238 libintl_found="system"
21243 echo " libintl $libintl_found"
21245 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21246 geoip_style=system
21247 else
21248 geoip_style=user
21251 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21252 echo " libGeoIP ${geoip_style}"
21255 if test x$LIBPNG_VERSION != xnot_needed; then
21256 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21258 if test x$GDLIB_VERSION != xnot_needed; then
21259 echo " libgd ${GDLIB_VERSION:-Not detected}"
21261 echo " zlib ${ZLIB_VERSION:-Not detected}"
21262 if test ${_mule_has_warnings:-no} = yes; then
21263 echo ""
21264 echo ""
21265 echo " *** Warnings during configuration ***"
21267 if test ${_mule_warning_0:-no} = yes; then
21268 cat <<_MULEEOT
21270 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21271 Please check that gdlib-config is in your default path, check out
21272 LD_LIBRARY_PATH or equivalent variable.
21273 Or this might also be that your gdlib-config has other name.
21274 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21275 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21276 If you use compiled packages check if you have devel pack installed.
21277 To download the latest version check http://www.boutell.com/gd for sources.
21278 _MULEEOT
21280 if test ${_mule_warning_1:-no} = yes; then
21281 cat <<_MULEEOT
21283 * libpng >= 1.2.0 not found.
21284 amuleweb will be compiled but file download progress bar images will NOT be
21285 generated.
21286 _MULEEOT
21288 if test ${_mule_warning_2:-no} = yes; then
21289 cat <<_MULEEOT
21291 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21292 _MULEEOT
21294 if test ${_mule_warning_3:-no} = yes; then
21295 cat <<_MULEEOT
21297 * GeoIP support has been disabled because the GeoIP libraries were not found
21298 _MULEEOT
21300 if test ${_mule_warning_4:-no} = yes; then
21301 cat <<_MULEEOT
21303 * GeoIP support has been disabled because the GeoIP header files were not
21304 found
21305 _MULEEOT
21307 if test ${_mule_warning_5:-no} = yes; then
21308 cat <<_MULEEOT
21310 * UPnP code has been disabled because ${libupnp_error}.
21311 _MULEEOT
21313 if test ${_mule_warning_6:-no} = yes; then
21314 cat <<_MULEEOT
21316 * Cross-compilation detected, so exception handling cannot be tested.
21317 Note that broken exception handling in your compiler may lead to unexpected
21318 crashes.
21319 _MULEEOT
21321 if test ${_mule_warning_7:-no} = yes; then
21322 cat <<_MULEEOT
21324 * configure cannot check whether malloc() and realloc() are GNU libc
21325 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21326 configure with the --without-gnu-malloc switch.
21327 _MULEEOT
21329 if test ${_mule_warning_8:-no} = yes; then
21330 cat <<_MULEEOT
21332 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21333 support.
21334 _MULEEOT
21336 if test ${_mule_warning_9:-no} = yes; then
21337 cat <<_MULEEOT
21339 * bfd.h not found or unusable, please install binutils development package if
21340 you are a developer or want to help testing aMule
21341 _MULEEOT