Upstream tarball 9712
[amule.git] / configure
blob34de14ca0f0d63e5ef8dba9aa2c0f6673ebdcbac
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 REGEX_LIBS 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 for ac_header in sys/types.h
6377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 else
6387 # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_c_werror_flag"
6409 || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler=yes
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_header_compiler=no
6428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6
6432 # Is the header present?
6433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <$ac_header>
6442 _ACEOF
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null; then
6451 if test -s conftest.err; then
6452 ac_cpp_err=$ac_c_preproc_warn_flag
6453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6454 else
6455 ac_cpp_err=
6457 else
6458 ac_cpp_err=yes
6460 if test -z "$ac_cpp_err"; then
6461 ac_header_preproc=yes
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 ac_header_preproc=no
6468 rm -f conftest.err conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6472 # So? What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 yes:no: )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc=yes
6481 no:yes:* )
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495 cat <<\_ASBOX
6496 ## ------------------------------ ##
6497 ## Report this to admin@amule.org ##
6498 ## ------------------------------ ##
6499 _ASBOX
6501 sed "s/^/$as_me: WARNING: /" >&2
6503 esac
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 eval "$as_ac_Header=\$ac_header_preproc"
6511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h <<_ACEOF
6517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518 _ACEOF
6522 done
6524 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6525 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6526 regex_found=no
6527 for REGEX_LIBS in '' -lgnurx -lregex; do
6528 mule_backup_LIBS="$LIBS"
6529 LIBS="$REGEX_LIBS $LIBS"
6530 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6538 #ifdef HAVE_SYS_TYPES_H
6539 # include <sys/types.h>
6540 #endif
6541 #include <regex.h>
6544 main ()
6547 regex_t preg;
6548 regcomp(&preg, "", REG_EXTENDED);
6549 regmatch_t *pmatch;
6550 regexec(&preg, "", 0, pmatch, 0);
6551 regfree(&preg);
6554 return 0;
6557 _ACEOF
6558 rm -f conftest.$ac_objext conftest$ac_exeext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest$ac_exeext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6581 LIBS="$mule_backup_LIBS"
6582 regex_found=yes
6583 break;
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 LIBS="$mule_backup_LIBS"
6591 rm -f conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6593 done
6594 echo "$as_me:$LINENO: result: $regex_found" >&5
6595 echo "${ECHO_T}$regex_found" >&6
6596 if test $regex_found = yes; then
6598 else
6600 WEB=disabled
6601 { echo "$as_me:$LINENO: WARNING:
6602 amuleweb has been disabled because configure could not find a POSIX
6603 compliant regex library." >&5
6604 echo "$as_me: WARNING:
6605 amuleweb has been disabled because configure could not find a POSIX
6606 compliant regex library." >&2;}
6607 _mule_warning_1=yes
6608 _mule_has_warnings=yes
6617 if test x$WEB = xyes; then
6620 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6621 if test "${with_libpng_prefix+set}" = set; then
6622 withval="$with_libpng_prefix"
6626 # Check whether --with-libpng-config or --without-libpng-config was given.
6627 if test "${with_libpng_config+set}" = set; then
6628 withval="$with_libpng_config"
6632 LIBPNG_VERSION=
6634 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6635 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6636 LIBPNG_CONFIG_NAME=libpng-config
6639 if test -n "$with_libpng_config"; then
6640 LIBPNG_CONFIG_NAME="$with_libpng_config"
6644 # deal with optional prefix
6645 if test -n "$with_libpng_prefix"; then
6646 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6650 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6651 if test -x "$LIBPNG_CONFIG_NAME"; then
6653 echo "$as_me:$LINENO: checking for libpng-config" >&5
6654 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6655 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6656 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6657 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6659 else
6660 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6661 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 case $LIBPNG_CONFIG_PATH in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6674 for as_dir in $as_dummy
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6684 done
6685 done
6687 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6689 esac
6691 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6693 if test -n "$LIBPNG_CONFIG_PATH"; then
6694 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6695 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6696 else
6697 echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6
6704 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6706 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6707 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6709 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6711 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6712 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6713 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6714 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6716 libpng_ver_ok=
6717 if test $libpng_config_major_version -gt 1; then
6718 libpng_ver_ok=yes
6719 elif test $libpng_config_major_version -eq 1; then
6721 if test $libpng_config_minor_version -gt 2; then
6722 libpng_ver_ok=yes
6723 elif test $libpng_config_minor_version -eq 2; then
6724 if test $libpng_config_micro_version -ge 0; then
6725 libpng_ver_ok=yes
6734 if test -z "$libpng_ver_ok"; then
6736 if test -z "$LIBPNG_VERSION"; then
6737 echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6
6739 else
6741 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6742 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6743 LIBPNG_VERSION=
6748 else
6750 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6751 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6752 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6753 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6754 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6762 if test -n "$LIBPNG_VERSION"; then
6763 AMULEWEB_DEFS="-DWITH_LIBPNG"
6764 else
6766 { echo "$as_me:$LINENO: WARNING:
6767 libpng >= 1.2.0 not found.
6768 amuleweb will be compiled but file download progress bar images will
6769 NOT be generated." >&5
6770 echo "$as_me: WARNING:
6771 libpng >= 1.2.0 not found.
6772 amuleweb will be compiled but file download progress bar images will
6773 NOT be generated." >&2;}
6774 _mule_warning_2=yes
6775 _mule_has_warnings=yes
6784 else
6785 LIBPNG_VERSION="not_needed"
6790 # Check for perl File::Copy
6791 echo "$as_me:$LINENO: checking for File::Copy" >&5
6792 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6793 if perl -e "require File::Copy" 2>/dev/null; then
6794 echo "$as_me:$LINENO: result: ok" >&5
6795 echo "${ECHO_T}ok" >&6
6796 else
6797 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6798 echo "$as_me: error: File::Copy perl module is required" >&2;}
6799 { (exit 1); exit 1; }; }
6804 # Check if we need the GUI
6805 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6806 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6807 if test x$MONOLITHIC = xyes; then
6808 need_gui=yes
6811 if test x$WXCAS = xyes; then
6812 need_gui=yes
6815 if test x$ALC = xyes; then
6816 need_gui=yes
6819 if test x$AMULE_GUI = xyes; then
6820 need_gui=yes
6823 if test x${need_gui:+set} != xset; then
6824 need_gui=no
6827 echo "$as_me:$LINENO: result: $need_gui" >&5
6828 echo "${ECHO_T}$need_gui" >&6
6830 # Check if we need to install skins
6831 if test x$MONOLITHIC = xyes; then
6832 INSTALL_SKINS=yes
6835 if test x$AMULE_GUI = xyes; then
6836 INSTALL_SKINS=yes
6839 if test x${INSTALL_SKINS:+set} != xset; then
6840 INSTALL_SKINS=no
6844 # Check for GeoIP (required for IP2Country capability)
6846 # Check whether --enable-geoip or --disable-geoip was given.
6847 if test "${enable_geoip+set}" = set; then
6848 enableval="$enable_geoip"
6849 ENABLE_IP2COUNTRY=$enableval
6850 else
6851 ENABLE_IP2COUNTRY=no
6854 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6857 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6858 if test "${with_geoip_headers+set}" = set; then
6859 withval="$with_geoip_headers"
6860 GEOIP_CPPFLAGS="-I$withval"
6863 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6864 if test "${with_geoip_lib+set}" = set; then
6865 withval="$with_geoip_lib"
6866 GEOIP_LDFLAGS="-L$withval"
6869 mule_backup_CPPFLAGS="$CPPFLAGS"
6870 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6871 mule_backup_LDFLAGS="$LDFLAGS"
6872 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6874 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6875 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6876 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6877 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6881 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6882 else
6883 # Is the header compilable?
6884 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6885 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 #include <GeoIP.h>
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_header_compiler=yes
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_header_compiler=no
6924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6926 echo "${ECHO_T}$ac_header_compiler" >&6
6928 # Is the header present?
6929 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6930 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <GeoIP.h>
6938 _ACEOF
6939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev/null; then
6947 if test -s conftest.err; then
6948 ac_cpp_err=$ac_c_preproc_warn_flag
6949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6950 else
6951 ac_cpp_err=
6953 else
6954 ac_cpp_err=yes
6956 if test -z "$ac_cpp_err"; then
6957 ac_header_preproc=yes
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_header_preproc=no
6964 rm -f conftest.err conftest.$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6
6968 # So? What about this header?
6969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6970 yes:no: )
6971 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6974 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6975 ac_header_preproc=yes
6977 no:yes:* )
6978 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6979 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6981 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6983 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6985 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6989 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6991 cat <<\_ASBOX
6992 ## ------------------------------ ##
6993 ## Report this to admin@amule.org ##
6994 ## ------------------------------ ##
6995 _ASBOX
6997 sed "s/^/$as_me: WARNING: /" >&2
6999 esac
7000 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7001 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7002 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 ac_cv_header_GeoIP_h=$ac_header_preproc
7007 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7008 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7011 if test $ac_cv_header_GeoIP_h = yes; then
7013 if test x$SYS = xwin32; then
7015 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
7016 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
7017 # Actually, we might not need any if GeoIP is linked as a .dll
7018 # - but that's even harder to check for
7019 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7027 #include <GeoIP.h>
7028 #ifdef _WINSOCK2_H
7029 I do know it's not the best approach, but at least works with MinGW stock headers.
7030 (tested with w32api-3.12)
7031 #endif
7034 main ()
7038 return 0;
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7065 GEOIP_WINSOCK_LIB="-lwsock32"
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7072 GEOIP_WINSOCK_LIB="-lws2_32"
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
7077 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
7081 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7082 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7083 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 ac_check_lib_save_LIBS=$LIBS
7087 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 /* Override any gcc2 internal prototype to avoid an error. */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7101 char GeoIP_open ();
7103 main ()
7105 GeoIP_open ();
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 ac_cv_lib_GeoIP_GeoIP_open=yes
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_cv_lib_GeoIP_GeoIP_open=no
7139 rm -f conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
7141 LIBS=$ac_check_lib_save_LIBS
7143 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7144 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7145 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7148 cat >>confdefs.h <<\_ACEOF
7149 #define SUPPORT_GEOIP 1
7150 _ACEOF
7152 GEOIP_LIBS="-lGeoIP"
7153 if test x$SYS = xwin32; then
7154 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7157 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7159 # Check whether --with-geoip-static or --without-geoip-static was given.
7160 if test "${with_geoip_static+set}" = set; then
7161 withval="$with_geoip_static"
7163 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7165 mule_backup_LIBS="$LIBS"
7166 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7167 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7175 #include <GeoIP.h>
7178 main ()
7181 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7184 return 0;
7187 _ACEOF
7188 rm -f conftest.$ac_objext conftest$ac_exeext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest$ac_exeext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7211 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7218 { echo "$as_me:$LINENO: WARNING:
7219 Cannot link GeoIP statically, because your linker ($LD) does not
7220 support it." >&5
7221 echo "$as_me: WARNING:
7222 Cannot link GeoIP statically, because your linker ($LD) does not
7223 support it." >&2;}
7224 _mule_warning_3=yes
7225 _mule_has_warnings=yes
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231 LIBS="$mule_backup_LIBS"
7238 else
7240 ENABLE_IP2COUNTRY=disabled
7241 { echo "$as_me:$LINENO: WARNING:
7242 GeoIP support has been disabled because the GeoIP libraries were not
7243 found" >&5
7244 echo "$as_me: WARNING:
7245 GeoIP support has been disabled because the GeoIP libraries were not
7246 found" >&2;}
7247 _mule_warning_4=yes
7248 _mule_has_warnings=yes
7254 else
7256 ENABLE_IP2COUNTRY=disabled
7257 { echo "$as_me:$LINENO: WARNING:
7258 GeoIP support has been disabled because the GeoIP header files were
7259 not found" >&5
7260 echo "$as_me: WARNING:
7261 GeoIP support has been disabled because the GeoIP header files were
7262 not found" >&2;}
7263 _mule_warning_5=yes
7264 _mule_has_warnings=yes
7271 CPPFLAGS="$mule_backup_CPPFLAGS"
7272 LDFLAGS="$mule_backup_LDFLAGS"
7278 # Check for wx
7281 # Check whether --with-wxdir or --without-wxdir was given.
7282 if test "${with_wxdir+set}" = set; then
7283 withval="$with_wxdir"
7284 wx_config_name="$withval/wx-config"
7285 wx_config_args="--inplace"
7288 # Check whether --with-wx-config or --without-wx-config was given.
7289 if test "${with_wx_config+set}" = set; then
7290 withval="$with_wx_config"
7291 wx_config_name="$withval"
7294 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7295 if test "${with_wx_prefix+set}" = set; then
7296 withval="$with_wx_prefix"
7297 wx_config_prefix="$withval"
7298 else
7299 wx_config_prefix=""
7302 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7303 if test "${with_wx_exec_prefix+set}" = set; then
7304 withval="$with_wx_exec_prefix"
7305 wx_config_exec_prefix="$withval"
7306 else
7307 wx_config_exec_prefix=""
7321 # Check whether --with-toolkit or --without-toolkit was given.
7322 if test "${with_toolkit+set}" = set; then
7323 withval="$with_toolkit"
7325 else
7326 withval="auto"
7329 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7330 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7331 if test "$withval" = "auto" ; then
7332 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7333 echo "${ECHO_T}will be automatically detected" >&6
7334 TOOLKIT="auto"
7335 else
7336 TOOLKIT="$withval"
7338 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7339 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7340 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7341 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7342 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7343 { { echo "$as_me:$LINENO: error:
7344 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7345 " >&5
7346 echo "$as_me: error:
7347 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7348 " >&2;}
7349 { (exit 1); exit 1; }; }
7352 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7353 echo "${ECHO_T}$TOOLKIT" >&6
7360 # Check whether --with-wxshared or --without-wxshared was given.
7361 if test "${with_wxshared+set}" = set; then
7362 withval="$with_wxshared"
7364 else
7365 withval="auto"
7368 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7369 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7370 if test "$withval" = "yes" ; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372 echo "${ECHO_T}yes" >&6
7373 WX_SHARED=1
7375 elif test "1" = "1" -a "$withval" = "no" ; then
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7378 WX_SHARED=0
7379 elif test "$withval" = "auto" ; then
7380 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7381 echo "${ECHO_T}will be automatically detected" >&6
7382 WX_SHARED="auto"
7383 else
7384 { { echo "$as_me:$LINENO: error:
7385 Unrecognized option value (allowed values: yes, auto)
7386 " >&5
7387 echo "$as_me: error:
7388 Unrecognized option value (allowed values: yes, auto)
7389 " >&2;}
7390 { (exit 1); exit 1; }; }
7397 # Check whether --with-wxdebug or --without-wxdebug was given.
7398 if test "${with_wxdebug+set}" = set; then
7399 withval="$with_wxdebug"
7401 else
7402 withval="auto"
7405 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7406 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7407 if test "$withval" = "yes" ; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409 echo "${ECHO_T}yes" >&6
7410 WX_DEBUG=1
7412 elif test "1" = "1" -a "$withval" = "no" ; then
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415 WX_DEBUG=0
7416 elif test "$withval" = "auto" ; then
7417 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7418 echo "${ECHO_T}will be automatically detected" >&6
7419 WX_DEBUG="auto"
7420 else
7421 { { echo "$as_me:$LINENO: error:
7422 Unrecognized option value (allowed values: yes, auto)
7423 " >&5
7424 echo "$as_me: error:
7425 Unrecognized option value (allowed values: yes, auto)
7426 " >&2;}
7427 { (exit 1); exit 1; }; }
7434 # Check whether --with-wxversion or --without-wxversion was given.
7435 if test "${with_wxversion+set}" = set; then
7436 withval="$with_wxversion"
7438 else
7439 withval="auto"
7442 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7443 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7444 if test "$withval" = "auto" ; then
7445 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7446 echo "${ECHO_T}will be automatically detected" >&6
7447 WX_VERSION="auto"
7448 else
7450 wx_requested_major_version=`echo $withval | \
7451 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7452 wx_requested_minor_version=`echo $withval | \
7453 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7455 if test "${#wx_requested_major_version}" != "1" -o \
7456 "${#wx_requested_minor_version}" != "1" ; then
7457 { { echo "$as_me:$LINENO: error:
7458 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7459 " >&5
7460 echo "$as_me: error:
7461 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7462 " >&2;}
7463 { (exit 1); exit 1; }; }
7466 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7467 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7468 echo "${ECHO_T}$WX_VERSION" >&6
7472 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7473 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7474 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7475 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7476 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7477 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7480 # Force using a static wxWidgets library if the executable is to be linked statically.
7481 if test ${enable_static:-no} = yes; then
7482 WX_SHARED=0
7485 # Force using a unicode build of the library
7486 WX_UNICODE=1
7487 DEBUG=$WX_DEBUG
7489 if test "$WX_SHARED" = "1" ; then
7490 WXCONFIG_FLAGS="--static=no "
7491 elif test "$WX_SHARED" = "0" ; then
7492 WXCONFIG_FLAGS="--static=yes "
7495 if test "$WX_DEBUG" = "1" ; then
7496 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7497 elif test "$WX_DEBUG" = "0" ; then
7498 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7501 if test "$WX_UNICODE" = "1" ; then
7502 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7503 elif test "$WX_UNICODE" = "0" ; then
7504 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7507 if test "$TOOLKIT" != "auto" ; then
7508 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7511 if test "$WX_VERSION" != "auto" ; then
7512 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7515 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7517 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7518 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7522 if test x${WX_CONFIG_NAME+set} != xset ; then
7523 WX_CONFIG_NAME=wx-config
7526 if test "x$wx_config_name" != x ; then
7527 WX_CONFIG_NAME="$wx_config_name"
7530 if test x$wx_config_exec_prefix != x ; then
7531 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7532 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7534 if test x$wx_config_prefix != x ; then
7535 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7536 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7538 if test "$cross_compiling" = "yes"; then
7539 wx_config_args="$wx_config_args --host=$host_alias"
7542 if test -x "$WX_CONFIG_NAME" ; then
7543 echo "$as_me:$LINENO: checking for wx-config" >&5
7544 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7545 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7546 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7547 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7548 else
7549 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7550 set dummy $WX_CONFIG_NAME; ac_word=$2
7551 echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 case $WX_CONFIG_PATH in
7557 [\\/]* | ?:[\\/]*)
7558 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7563 for as_dir in $as_dummy
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7573 done
7574 done
7576 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7578 esac
7580 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7582 if test -n "$WX_CONFIG_PATH"; then
7583 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7584 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7585 else
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7592 if test "$WX_CONFIG_PATH" != "no" ; then
7593 WX_VERSION_FULL=""
7595 min_wx_version=2.8.0
7596 if test -z "$WXCONFIG_FLAGS" ; then
7597 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7598 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7599 else
7600 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7601 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7604 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7606 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7607 wx_config_major_version=`echo $WX_VERSION_FULL | \
7608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7609 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7611 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7614 wx_requested_major_version=`echo $min_wx_version | \
7615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7616 wx_requested_minor_version=`echo $min_wx_version | \
7617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7618 wx_requested_micro_version=`echo $min_wx_version | \
7619 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7622 wx_ver_ok=""
7623 if test "x$WX_VERSION_FULL" != x ; then
7624 if test $wx_config_major_version -gt $wx_requested_major_version; then
7625 wx_ver_ok=yes
7626 else
7627 if test $wx_config_major_version -eq $wx_requested_major_version; then
7628 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7629 wx_ver_ok=yes
7630 else
7631 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7632 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7633 wx_ver_ok=yes
7642 if test -n "$wx_ver_ok"; then
7644 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7645 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7646 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7648 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7649 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7650 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7651 if test "x$WX_LIBS_STATIC" = "x"; then
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7654 else
7655 echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7659 wx_has_cppflags=""
7660 if test $wx_config_major_version -gt 2; then
7661 wx_has_cppflags=yes
7662 else
7663 if test $wx_config_major_version -eq 2; then
7664 if test $wx_config_minor_version -gt 2; then
7665 wx_has_cppflags=yes
7666 else
7667 if test $wx_config_minor_version -eq 2; then
7668 if test $wx_config_micro_version -ge 6; then
7669 wx_has_cppflags=yes
7676 wx_has_rescomp=""
7677 if test $wx_config_major_version -gt 2; then
7678 wx_has_rescomp=yes
7679 else
7680 if test $wx_config_major_version -eq 2; then
7681 if test $wx_config_minor_version -ge 7; then
7682 wx_has_rescomp=yes
7686 if test "x$wx_has_rescomp" = x ; then
7687 WX_RESCOMP=
7688 else
7689 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7692 if test "x$wx_has_cppflags" = x ; then
7693 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7694 WX_CPPFLAGS=$WX_CFLAGS
7695 WX_CXXFLAGS=$WX_CFLAGS
7697 WX_CFLAGS_ONLY=$WX_CFLAGS
7698 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7699 else
7700 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7701 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7702 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7704 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7705 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7708 wxWin=1
7710 else
7712 if test "x$WX_VERSION_FULL" = x; then
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7715 else
7716 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7717 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7720 WX_CFLAGS=""
7721 WX_CPPFLAGS=""
7722 WX_CXXFLAGS=""
7723 WX_LIBS=""
7724 WX_LIBS_STATIC=""
7725 WX_RESCOMP=""
7727 if test ! -z "$WXCONFIG_FLAGS"; then
7729 wx_error_message="
7730 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7731 build with the following settings:
7732 $WXCONFIG_FLAGS
7733 but such build is not available.
7735 To see the wxWidgets builds available on this system, please use
7736 'wx-config --list' command. To use the default build, returned by
7737 'wx-config --selected-config', use the options with their 'auto'
7738 default values."
7742 wx_error_message="
7743 The requested wxWidgets build couldn't be found.
7744 $wx_error_message
7746 If you still get this error, then check that 'wx-config' is
7747 in path, the directory where wxWidgets libraries are installed
7748 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7749 or equivalent variable and wxWidgets version is 2.8.0 or above."
7751 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7752 echo "$as_me: error: $wx_error_message" >&2;}
7753 { (exit 1); exit 1; }; }
7756 else
7758 WX_CFLAGS=""
7759 WX_CPPFLAGS=""
7760 WX_CXXFLAGS=""
7761 WX_LIBS=""
7762 WX_LIBS_STATIC=""
7763 WX_RESCOMP=""
7779 WX_VERSION_MAJOR="$wx_config_major_version"
7780 WX_VERSION_MINOR="$wx_config_minor_version"
7784 if test "$wxWin" != 1; then
7785 { { echo "$as_me:$LINENO: error:
7786 wxWidgets must be installed on your system but wx-config
7787 script couldn't be found. Please check that wx-config is
7788 in path or specified by --with-wx-config=path flag, the
7789 directory where wxWidgets libraries are installed (returned
7790 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7791 equivalent variable and wxWidgets version is 2.8.0 or above.
7792 " >&5
7793 echo "$as_me: error:
7794 wxWidgets must be installed on your system but wx-config
7795 script couldn't be found. Please check that wx-config is
7796 in path or specified by --with-wx-config=path flag, the
7797 directory where wxWidgets libraries are installed (returned
7798 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7799 equivalent variable and wxWidgets version is 2.8.0 or above.
7800 " >&2;}
7801 { (exit 1); exit 1; }; }
7804 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7805 if test $WX_VERSION -lt 26 ; then
7807 { { echo "$as_me:$LINENO: error:
7808 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7809 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7810 version of wxWidgets.
7811 " >&5
7812 echo "$as_me: error:
7813 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7814 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7815 version of wxWidgets.
7816 " >&2;}
7817 { (exit 1); exit 1; }; }
7820 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7822 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7823 echo "[dbg] Using wx-config --selected-config"
7824 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7828 if test $WX_SHARED = "1"; then
7829 STATIC=0
7830 elif test $WX_SHARED = "0"; then
7831 STATIC=1
7832 elif test $WX_SHARED = "auto"; then
7833 STATIC="auto"
7837 if test "$UNICODE" = "auto" ; then
7839 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7840 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7842 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7844 if test "$WX_UNICODE" != "0"; then
7845 WX_UNICODE=1
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7849 else
7850 WX_UNICODE=0
7851 echo "$as_me:$LINENO: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7855 else
7857 WX_UNICODE=$UNICODE
7861 if test "$DEBUG" = "auto" ; then
7863 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7864 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7866 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7868 if test "$WX_DEBUG" != "0"; then
7869 WX_DEBUG=1
7870 echo "$as_me:$LINENO: result: yes" >&5
7871 echo "${ECHO_T}yes" >&6
7873 else
7874 WX_DEBUG=0
7875 echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7879 else
7881 WX_DEBUG=$DEBUG
7885 if test "$STATIC" = "auto" ; then
7887 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7888 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7890 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7892 if test "$WX_STATIC" != "0"; then
7893 WX_STATIC=1
7894 echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7897 else
7898 WX_STATIC=0
7899 echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7903 else
7905 WX_STATIC=$STATIC
7909 if test "$WX_STATIC" != "0"; then
7910 WX_SHARED=0
7911 else
7912 WX_SHARED=1
7919 if test "$TOOLKIT" = "auto" ; then
7921 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7922 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7924 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7925 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7926 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7927 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7928 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7929 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7930 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7931 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7932 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7933 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7935 WX_PORT="unknown"
7936 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7937 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7938 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7939 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7940 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7941 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7942 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7943 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7944 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7945 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7948 if test "$WX_PORT" = "unknown" ; then
7949 { { echo "$as_me:$LINENO: error:
7950 Cannot detect the currently installed wxWidgets port !
7951 Please check your 'wx-config --cxxflags'...
7952 " >&5
7953 echo "$as_me: error:
7954 Cannot detect the currently installed wxWidgets port !
7955 Please check your 'wx-config --cxxflags'...
7956 " >&2;}
7957 { (exit 1); exit 1; }; }
7960 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7961 echo "${ECHO_T}$WX_PORT" >&6
7962 else
7964 if test -z "$TOOLKIT" ; then
7965 WX_PORT=$TOOLKIT
7966 else
7967 WX_PORT=$PORT
7973 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7974 echo "[dbg] Values of all WX_* options after final detection:"
7975 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7976 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7977 echo "[dbg] WX_SHARED: $WX_SHARED"
7978 echo "[dbg] WX_VERSION: $WX_VERSION"
7979 echo "[dbg] WX_PORT: $WX_PORT"
7982 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7983 { { echo "$as_me:$LINENO: error:
7984 Cannot build shared library against a static build of wxWidgets !
7985 This error happens because the wxWidgets build which was selected
7986 has been detected as static while you asked to build $PACKAGE_NAME
7987 as shared library and this is not possible.
7988 Use the '--disable-shared' option to build $PACKAGE_NAME
7989 as static library or '--with-wxshared' to use wxWidgets as shared library.
7990 " >&5
7991 echo "$as_me: error:
7992 Cannot build shared library against a static build of wxWidgets !
7993 This error happens because the wxWidgets build which was selected
7994 has been detected as static while you asked to build $PACKAGE_NAME
7995 as shared library and this is not possible.
7996 Use the '--disable-shared' option to build $PACKAGE_NAME
7997 as static library or '--with-wxshared' to use wxWidgets as shared library.
7998 " >&2;}
7999 { (exit 1); exit 1; }; }
8002 if test "$DEBUG" = "auto"; then
8003 DEBUG=$WX_DEBUG
8005 if test "$DEBUG" = "1"; then
8006 BUILD="debug"
8007 elif test "$DEBUG" = ""; then
8008 BUILD="release"
8011 if test "$UNICODE" = "auto"; then
8012 UNICODE=$WX_UNICODE
8014 if test "$SHARED" = "auto"; then
8015 SHARED=$WX_SHARED
8017 if test "$TOOLKIT" = "auto"; then
8018 TOOLKIT=$WX_PORT
8023 # We also need wxBase
8024 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8025 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8026 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8030 if test ${SYS:-unknown} = win32; then
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}windres; ac_word=$2
8035 echo "$as_me:$LINENO: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037 if test "${ac_cv_prog_RC+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 if test -n "$RC"; then
8041 ac_cv_prog_RC="$RC" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_RC="${ac_tool_prefix}windres"
8051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8054 done
8055 done
8059 RC=$ac_cv_prog_RC
8060 if test -n "$RC"; then
8061 echo "$as_me:$LINENO: result: $RC" >&5
8062 echo "${ECHO_T}$RC" >&6
8063 else
8064 echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6
8069 if test -z "$ac_cv_prog_RC"; then
8070 ac_ct_RC=$RC
8071 # Extract the first word of "windres", so it can be a program name with args.
8072 set dummy windres; ac_word=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 if test -n "$ac_ct_RC"; then
8079 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_RC="windres"
8089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8095 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8098 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8099 if test -n "$ac_ct_RC"; then
8100 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8101 echo "${ECHO_T}$ac_ct_RC" >&6
8102 else
8103 echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6
8107 RC=$ac_ct_RC
8108 else
8109 RC="$ac_cv_prog_RC"
8112 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8118 # Check for libupnp
8119 if test "${ENABLE_UPNP:-yes}" = yes; then
8123 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8124 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8126 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 case $PKG_CONFIG in
8133 [\\/]* | ?:[\\/]*)
8134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8152 esac
8154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8156 if test -n "$PKG_CONFIG"; then
8157 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8158 echo "${ECHO_T}$PKG_CONFIG" >&6
8159 else
8160 echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6
8165 if test -z "$ac_cv_path_PKG_CONFIG"; then
8166 ac_pt_PKG_CONFIG=$PKG_CONFIG
8167 # Extract the first word of "pkg-config", so it can be a program name with args.
8168 set dummy pkg-config; ac_word=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174 case $ac_pt_PKG_CONFIG in
8175 [\\/]* | ?:[\\/]*)
8176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8194 esac
8196 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8198 if test -n "$ac_pt_PKG_CONFIG"; then
8199 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8200 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8201 else
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8206 PKG_CONFIG=$ac_pt_PKG_CONFIG
8207 else
8208 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8212 if test -n "$PKG_CONFIG"; then
8213 _pkg_min_version=0.9.0
8214 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8215 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8216 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218 echo "${ECHO_T}yes" >&6
8219 else
8220 echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8222 PKG_CONFIG=""
8228 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8229 if test "${with_libupnp_prefix+set}" = set; then
8230 withval="$with_libupnp_prefix"
8231 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8234 if test $cross_compiling = no; then
8235 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8236 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8237 if test -n "$PKG_CONFIG"; then
8238 if $PKG_CONFIG libupnp --exists; then
8239 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8240 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8241 result=yes
8242 resultstr=" (version $LIBUPNP_VERSION)"
8243 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8244 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8245 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8246 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8247 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8249 else
8250 result=no
8251 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8255 else
8256 result=no
8257 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8261 else
8262 result=no
8263 resultstr=" (pkg-config not found)"
8266 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8267 echo "${ECHO_T}$result$resultstr" >&6
8268 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8270 else
8271 result=no
8272 libupnp_error="cross compiling"
8276 if test ${result:-no} = yes; then
8277 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8278 else
8279 ENABLE_UPNP=disabled
8280 { echo "$as_me:$LINENO: WARNING:
8281 UPnP code has been disabled because ${libupnp_error}." >&5
8282 echo "$as_me: WARNING:
8283 UPnP code has been disabled because ${libupnp_error}." >&2;}
8284 _mule_warning_6=yes
8285 _mule_has_warnings=yes
8296 # Check for Crypto++
8299 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8300 if test "${with_crypto_prefix+set}" = set; then
8301 withval="$with_crypto_prefix"
8305 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8306 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8308 cryptopp_file_with_version="cryptlib.h"
8310 CRYPTOPP_STYLE="unknown"
8311 CRYPTOPP_LIB_NAME="unknown"
8312 cryptopp_includedir="unknown"
8313 CRYPTOPP_INCLUDE_PREFIX="unknown"
8314 cryptopp_libdir="unknown"
8316 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8317 if test -z "$CRYPTOPP_PREFIX"; then
8318 continue
8322 # Find the Cryptopp header
8323 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8325 CRYPTOPP_STYLE="sources"
8326 CRYPTOPP_LIB_NAME="cryptopp"
8327 cryptopp_includedir=
8328 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8329 cryptopp_libdir=
8330 break
8332 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8334 CRYPTOPP_STYLE="installed"
8335 CRYPTOPP_LIB_NAME="cryptopp"
8336 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8337 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8338 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8339 break
8341 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8343 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8344 CRYPTOPP_STYLE="gentoo_debian"
8345 CRYPTOPP_LIB_NAME="crypto++"
8346 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8347 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8348 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8349 break
8353 done
8355 if test $CRYPTOPP_STYLE = "unknown"; then
8356 result=no; resultstr=""
8357 else
8359 # Find out the crypto++ version and check against the minimum required
8360 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8361 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8362 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8363 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8365 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8367 result=yes
8368 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8369 if test -n "$cryptopp_includedir"; then
8370 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8371 else
8372 CRYPTOPP_CPPFLAGS=
8375 if test -n "$cryptopp_libdir"; then
8377 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8378 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8380 else
8382 CRYPTOPP_LDFLAGS=
8383 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8389 cat >>confdefs.h <<_ACEOF
8390 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8391 _ACEOF
8394 else
8396 result=no
8397 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8405 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8406 echo "${ECHO_T}$result$resultstr" >&6
8408 if test ${result:-no} = yes; then
8410 # Check for CryptoPP >= 5.5
8411 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8412 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8416 else
8418 { { echo "$as_me:$LINENO: error:
8419 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8420 Please try again with --with-crypto-prefix=/my_crypto_prefix
8421 (replace /my_crypto_prefix with a valid path to your crypto++
8422 installation directory)." >&5
8423 echo "$as_me: error:
8424 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8425 Please try again with --with-crypto-prefix=/my_crypto_prefix
8426 (replace /my_crypto_prefix with a valid path to your crypto++
8427 installation directory)." >&2;}
8428 { (exit 1); exit 1; }; }
8435 ac_ext=cc
8436 ac_cpp='$CXXCPP $CPPFLAGS'
8437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8444 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8445 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8454 #include <string>
8455 #ifndef __GLIBCXX__
8456 #error Non-GNU C++ library found.
8457 #endif
8460 _ACEOF
8461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev/null; then
8469 if test -s conftest.err; then
8470 ac_cpp_err=$ac_cxx_preproc_warn_flag
8471 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8472 else
8473 ac_cpp_err=
8475 else
8476 ac_cpp_err=yes
8478 if test -z "$ac_cpp_err"; then
8479 GLIBCXX=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 GLIBCXX=no
8486 rm -f conftest.err conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8488 echo "${ECHO_T}$GLIBCXX" >&6
8491 mule_backup_CPPFLAGS="$CPPFLAGS"
8492 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8494 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8495 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 #include <wx/wx.h>
8505 #include <wx/filefn.h>
8506 #ifndef wxHAS_LARGE_FILES
8507 #error No LargeFile support!
8508 #endif
8511 _ACEOF
8512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } >/dev/null; then
8520 if test -s conftest.err; then
8521 ac_cpp_err=$ac_cxx_preproc_warn_flag
8522 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8523 else
8524 ac_cpp_err=
8526 else
8527 ac_cpp_err=yes
8529 if test -z "$ac_cpp_err"; then
8531 echo "$as_me:$LINENO: result: yes" >&5
8532 echo "${ECHO_T}yes" >&6
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8539 echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8541 { { echo "$as_me:$LINENO: error:
8542 Support for large files in wxWidgets is required by aMule.
8543 To continue you must recompile wxWidgets with support for
8544 large files enabled." >&5
8545 echo "$as_me: error:
8546 Support for large files in wxWidgets is required by aMule.
8547 To continue you must recompile wxWidgets with support for
8548 large files enabled." >&2;}
8549 { (exit 1); exit 1; }; }
8552 rm -f conftest.err conftest.$ac_ext
8554 CPPFLAGS="$mule_backup_CPPFLAGS"
8557 # Check if the compiler is broken, wrt. exceptions.
8559 echo "$as_me:$LINENO: checking for exception-handling" >&5
8560 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8561 if test "$cross_compiling" = yes; then
8563 echo "$as_me:$LINENO: result: undeterminable" >&5
8564 echo "${ECHO_T}undeterminable" >&6
8565 { echo "$as_me:$LINENO: WARNING:
8566 Cross-compilation detected, so exception handling cannot be tested.
8567 Note that broken exception handling in your compiler may lead to
8568 unexpected crashes." >&5
8569 echo "$as_me: WARNING:
8570 Cross-compilation detected, so exception handling cannot be tested.
8571 Note that broken exception handling in your compiler may lead to
8572 unexpected crashes." >&2;}
8573 _mule_warning_7=yes
8574 _mule_has_warnings=yes
8577 else
8578 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8587 main ()
8590 try {
8591 throw 1;
8592 } catch (int) {
8593 return 0;
8595 return 1;
8598 return 0;
8601 _ACEOF
8602 rm -f conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8614 echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6
8617 else
8618 echo "$as_me: program exited with status $ac_status" >&5
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ( exit $ac_status )
8624 echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8626 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8627 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8628 { (exit 1); exit 1; }; }
8631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8636 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8637 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8638 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8646 #include <cxxabi.h>
8649 main ()
8652 int status;
8653 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8654 std::type_info *ti = abi::__cxa_current_exception_type();
8657 return 0;
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_cxx_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_CXXABI 1
8688 _ACEOF
8690 echo "$as_me:$LINENO: result: yes" >&5
8691 echo "${ECHO_T}yes" >&6
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8698 echo "$as_me:$LINENO: result: no" >&5
8699 echo "${ECHO_T}no" >&6
8702 rm -f conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8705 ac_ext=c
8706 ac_cpp='$CPP $CPPFLAGS'
8707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8712 # Ok, we have all needed libs, now checking for other stuff
8713 if test "$LEX" = "flex"; then
8715 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8716 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8718 extended_flex=`flex --help | grep header-file`
8719 if test -n "$extended_flex"; then
8720 HAVE_FLEX_EXTENDED=yes
8721 else
8722 HAVE_FLEX_EXTENDED=no
8725 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8726 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8728 if test $HAVE_FLEX_EXTENDED = no; then
8729 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8730 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8734 else
8735 HAVE_FLEX_EXTENDED=no
8739 # Flush standard test results for speeding cache
8740 cat >confcache <<\_ACEOF
8741 # This file is a shell script that caches the results of configure
8742 # tests run on this system so they can be shared between configure
8743 # scripts and configure runs, see configure's option --config-cache.
8744 # It is not useful on other systems. If it contains results you don't
8745 # want to keep, you may remove or edit it.
8747 # config.status only pays attention to the cache file if you give it
8748 # the --recheck option to rerun configure.
8750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8752 # following values.
8754 _ACEOF
8756 # The following way of writing the cache mishandles newlines in values,
8757 # but we know of no workaround that is simple, portable, and efficient.
8758 # So, don't put newlines in cache variables' values.
8759 # Ultrix sh set writes to stderr and can't be redirected directly,
8760 # and sets the high bit in the cache file unless we assign to the vars.
8762 (set) 2>&1 |
8763 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8764 *ac_space=\ *)
8765 # `set' does not quote correctly, so add quotes (double-quote
8766 # substitution turns \\\\ into \\, and sed turns \\ into \).
8767 sed -n \
8768 "s/'/'\\\\''/g;
8769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8772 # `set' quotes correctly as required by POSIX, so do not add quotes.
8773 sed -n \
8774 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8776 esac;
8778 sed '
8779 t clear
8780 : clear
8781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8782 t end
8783 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8784 : end' >>confcache
8785 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8786 if test -w $cache_file; then
8787 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8788 cat confcache >$cache_file
8789 else
8790 echo "not updating unwritable cache $cache_file"
8793 rm -f confcache
8795 # Checks for header files.
8796 echo "$as_me:$LINENO: checking for X" >&5
8797 echo $ECHO_N "checking for X... $ECHO_C" >&6
8800 # Check whether --with-x or --without-x was given.
8801 if test "${with_x+set}" = set; then
8802 withval="$with_x"
8805 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8806 if test "x$with_x" = xno; then
8807 # The user explicitly disabled X.
8808 have_x=disabled
8809 else
8810 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8811 # Both variables are already set.
8812 have_x=yes
8813 else
8814 if test "${ac_cv_have_x+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 # One or both of the vars are not set, and there is no cached value.
8818 ac_x_includes=no ac_x_libraries=no
8819 rm -fr conftest.dir
8820 if mkdir conftest.dir; then
8821 cd conftest.dir
8822 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8823 cat >Imakefile <<'_ACEOF'
8824 acfindx:
8825 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8826 _ACEOF
8827 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8829 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8830 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8831 for ac_extension in a so sl; do
8832 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8833 test -f $ac_im_libdir/libX11.$ac_extension; then
8834 ac_im_usrlibdir=$ac_im_libdir; break
8836 done
8837 # Screen out bogus values from the imake configuration. They are
8838 # bogus both because they are the default anyway, and because
8839 # using them would break gcc on systems where it needs fixed includes.
8840 case $ac_im_incroot in
8841 /usr/include) ;;
8842 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8843 esac
8844 case $ac_im_usrlibdir in
8845 /usr/lib | /lib) ;;
8846 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8847 esac
8849 cd ..
8850 rm -fr conftest.dir
8853 # Standard set of common directories for X headers.
8854 # Check X11 before X11Rn because it is often a symlink to the current release.
8855 ac_x_header_dirs='
8856 /usr/X11/include
8857 /usr/X11R6/include
8858 /usr/X11R5/include
8859 /usr/X11R4/include
8861 /usr/include/X11
8862 /usr/include/X11R6
8863 /usr/include/X11R5
8864 /usr/include/X11R4
8866 /usr/local/X11/include
8867 /usr/local/X11R6/include
8868 /usr/local/X11R5/include
8869 /usr/local/X11R4/include
8871 /usr/local/include/X11
8872 /usr/local/include/X11R6
8873 /usr/local/include/X11R5
8874 /usr/local/include/X11R4
8876 /usr/X386/include
8877 /usr/x386/include
8878 /usr/XFree86/include/X11
8880 /usr/include
8881 /usr/local/include
8882 /usr/unsupported/include
8883 /usr/athena/include
8884 /usr/local/x11r5/include
8885 /usr/lpp/Xamples/include
8887 /usr/openwin/include
8888 /usr/openwin/share/include'
8890 if test "$ac_x_includes" = no; then
8891 # Guess where to find include files, by looking for Intrinsic.h.
8892 # First, try using that file with no special directory specified.
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 #include <X11/Intrinsic.h>
8900 _ACEOF
8901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } >/dev/null; then
8909 if test -s conftest.err; then
8910 ac_cpp_err=$ac_c_preproc_warn_flag
8911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8912 else
8913 ac_cpp_err=
8915 else
8916 ac_cpp_err=yes
8918 if test -z "$ac_cpp_err"; then
8919 # We can compile using X headers with no special include directory.
8920 ac_x_includes=
8921 else
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 for ac_dir in $ac_x_header_dirs; do
8926 if test -r "$ac_dir/X11/Intrinsic.h"; then
8927 ac_x_includes=$ac_dir
8928 break
8930 done
8932 rm -f conftest.err conftest.$ac_ext
8933 fi # $ac_x_includes = no
8935 if test "$ac_x_libraries" = no; then
8936 # Check for the libraries.
8937 # See if we find them without any special options.
8938 # Don't add to $LIBS permanently.
8939 ac_save_LIBS=$LIBS
8940 LIBS="-lXt $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 #include <X11/Intrinsic.h>
8949 main ()
8951 XtMalloc (0)
8953 return 0;
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag"
8966 || test ! -s conftest.err'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 LIBS=$ac_save_LIBS
8979 # We can link X programs with no special library path.
8980 ac_x_libraries=
8981 else
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 LIBS=$ac_save_LIBS
8986 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8988 # Don't even attempt the hair of trying to link an X program!
8989 for ac_extension in a so sl; do
8990 if test -r $ac_dir/libXt.$ac_extension; then
8991 ac_x_libraries=$ac_dir
8992 break 2
8994 done
8995 done
8997 rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 fi # $ac_x_libraries = no
9001 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9002 # Didn't find X anywhere. Cache the known absence of X.
9003 ac_cv_have_x="have_x=no"
9004 else
9005 # Record where we found X for the cache.
9006 ac_cv_have_x="have_x=yes \
9007 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9012 eval "$ac_cv_have_x"
9013 fi # $with_x != no
9015 if test "$have_x" != yes; then
9016 echo "$as_me:$LINENO: result: $have_x" >&5
9017 echo "${ECHO_T}$have_x" >&6
9018 no_x=yes
9019 else
9020 # If each of the values was on the command line, it overrides each guess.
9021 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9022 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9023 # Update the cache value to reflect the command line values.
9024 ac_cv_have_x="have_x=yes \
9025 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9026 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9027 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9031 # for constant arguments. Useless!
9032 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9033 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9034 if test "${ac_cv_working_alloca_h+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 #include <alloca.h>
9045 main ()
9047 char *p = (char *) alloca (2 * sizeof (int));
9049 return 0;
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054 (eval $ac_link) 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag"
9062 || test ! -s conftest.err'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_working_alloca_h=yes
9075 else
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ac_cv_working_alloca_h=no
9081 rm -f conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9085 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9086 if test $ac_cv_working_alloca_h = yes; then
9088 cat >>confdefs.h <<\_ACEOF
9089 #define HAVE_ALLOCA_H 1
9090 _ACEOF
9094 echo "$as_me:$LINENO: checking for alloca" >&5
9095 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9096 if test "${ac_cv_func_alloca_works+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #ifdef __GNUC__
9106 # define alloca __builtin_alloca
9107 #else
9108 # ifdef _MSC_VER
9109 # include <malloc.h>
9110 # define alloca _alloca
9111 # else
9112 # if HAVE_ALLOCA_H
9113 # include <alloca.h>
9114 # else
9115 # ifdef _AIX
9116 #pragma alloca
9117 # else
9118 # ifndef alloca /* predefined by HP cc +Olibcalls */
9119 char *alloca ();
9120 # endif
9121 # endif
9122 # endif
9123 # endif
9124 #endif
9127 main ()
9129 char *p = (char *) alloca (1);
9131 return 0;
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest$ac_exeext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_func_alloca_works=yes
9157 else
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 ac_cv_func_alloca_works=no
9163 rm -f conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9166 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9167 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9169 if test $ac_cv_func_alloca_works = yes; then
9171 cat >>confdefs.h <<\_ACEOF
9172 #define HAVE_ALLOCA 1
9173 _ACEOF
9175 else
9176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9177 # that cause trouble. Some versions do not even contain alloca or
9178 # contain a buggy version. If you still want to use their alloca,
9179 # use ar to extract alloca.o from them instead of compiling alloca.c.
9181 ALLOCA=alloca.$ac_objext
9183 cat >>confdefs.h <<\_ACEOF
9184 #define C_ALLOCA 1
9185 _ACEOF
9188 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9189 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9190 if test "${ac_cv_os_cray+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #if defined(CRAY) && ! defined(CRAY2)
9200 webecray
9201 #else
9202 wenotbecray
9203 #endif
9205 _ACEOF
9206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9207 $EGREP "webecray" >/dev/null 2>&1; then
9208 ac_cv_os_cray=yes
9209 else
9210 ac_cv_os_cray=no
9212 rm -f conftest*
9215 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9216 echo "${ECHO_T}$ac_cv_os_cray" >&6
9217 if test $ac_cv_os_cray = yes; then
9218 for ac_func in _getb67 GETB67 getb67; do
9219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9220 echo "$as_me:$LINENO: checking for $ac_func" >&5
9221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9222 if eval "test \"\${$as_ac_var+set}\" = set"; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h. */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9233 #define $ac_func innocuous_$ac_func
9235 /* System header to define __stub macros and hopefully few prototypes,
9236 which can conflict with char $ac_func (); below.
9237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9238 <limits.h> exists even on freestanding compilers. */
9240 #ifdef __STDC__
9241 # include <limits.h>
9242 #else
9243 # include <assert.h>
9244 #endif
9246 #undef $ac_func
9248 /* Override any gcc2 internal prototype to avoid an error. */
9249 #ifdef __cplusplus
9250 extern "C"
9252 #endif
9253 /* We use char because int might match the return type of a gcc2
9254 builtin and then its argument prototype would still apply. */
9255 char $ac_func ();
9256 /* The GNU C library defines this for functions which it implements
9257 to always fail with ENOSYS. Some functions are actually named
9258 something starting with __ and the normal name is an alias. */
9259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9260 choke me
9261 #else
9262 char (*f) () = $ac_func;
9263 #endif
9264 #ifdef __cplusplus
9266 #endif
9269 main ()
9271 return f != $ac_func;
9273 return 0;
9275 _ACEOF
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278 (eval $ac_link) 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -z "$ac_c_werror_flag"
9286 || test ! -s conftest.err'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 (eval $ac_try) 2>&5
9289 ac_status=$?
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; } &&
9292 { ac_try='test -s conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 eval "$as_ac_var=yes"
9299 else
9300 echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9303 eval "$as_ac_var=no"
9305 rm -f conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9310 if test `eval echo '${'$as_ac_var'}'` = yes; then
9312 cat >>confdefs.h <<_ACEOF
9313 #define CRAY_STACKSEG_END $ac_func
9314 _ACEOF
9316 break
9319 done
9322 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9323 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9324 if test "${ac_cv_c_stack_direction+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327 if test "$cross_compiling" = yes; then
9328 ac_cv_c_stack_direction=0
9329 else
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 find_stack_direction ()
9339 static char *addr = 0;
9340 auto char dummy;
9341 if (addr == 0)
9343 addr = &dummy;
9344 return find_stack_direction ();
9346 else
9347 return (&dummy > addr) ? 1 : -1;
9351 main ()
9353 exit (find_stack_direction () < 0);
9355 _ACEOF
9356 rm -f conftest$ac_exeext
9357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9358 (eval $ac_link) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_cv_c_stack_direction=1
9368 else
9369 echo "$as_me: program exited with status $ac_status" >&5
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ( exit $ac_status )
9374 ac_cv_c_stack_direction=-1
9376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9380 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9382 cat >>confdefs.h <<_ACEOF
9383 #define STACK_DIRECTION $ac_cv_c_stack_direction
9384 _ACEOF
9394 ac_header_dirent=no
9395 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9396 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9397 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9398 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 #include <sys/types.h>
9409 #include <$ac_hdr>
9412 main ()
9414 if ((DIR *) 0)
9415 return 0;
9417 return 0;
9419 _ACEOF
9420 rm -f conftest.$ac_objext
9421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9422 (eval $ac_compile) 2>conftest.er1
9423 ac_status=$?
9424 grep -v '^ *+' conftest.er1 >conftest.err
9425 rm -f conftest.er1
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } &&
9429 { ac_try='test -z "$ac_c_werror_flag"
9430 || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 (eval $ac_try) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try='test -s conftest.$ac_objext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 eval "$as_ac_Header=yes"
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 eval "$as_ac_Header=no"
9449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9454 cat >>confdefs.h <<_ACEOF
9455 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9456 _ACEOF
9458 ac_header_dirent=$ac_hdr; break
9461 done
9462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9463 if test $ac_header_dirent = dirent.h; then
9464 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9465 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9466 if test "${ac_cv_search_opendir+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 ac_func_search_save_LIBS=$LIBS
9470 ac_cv_search_opendir=no
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h. */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 /* Override any gcc2 internal prototype to avoid an error. */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 /* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9484 char opendir ();
9486 main ()
9488 opendir ();
9490 return 0;
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -z "$ac_c_werror_flag"
9503 || test ! -s conftest.err'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest$ac_exeext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 ac_cv_search_opendir="none required"
9516 else
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9521 rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 if test "$ac_cv_search_opendir" = no; then
9524 for ac_lib in dir; do
9525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9533 /* Override any gcc2 internal prototype to avoid an error. */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 /* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9539 char opendir ();
9541 main ()
9543 opendir ();
9545 return 0;
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag"
9558 || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_search_opendir="-l$ac_lib"
9571 break
9572 else
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9577 rm -f conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 done
9581 LIBS=$ac_func_search_save_LIBS
9583 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9584 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9585 if test "$ac_cv_search_opendir" != no; then
9586 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9590 else
9591 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9592 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9593 if test "${ac_cv_search_opendir+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 ac_func_search_save_LIBS=$LIBS
9597 ac_cv_search_opendir=no
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9605 /* Override any gcc2 internal prototype to avoid an error. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611 char opendir ();
9613 main ()
9615 opendir ();
9617 return 0;
9619 _ACEOF
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -z "$ac_c_werror_flag"
9630 || test ! -s conftest.err'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; } &&
9636 { ac_try='test -s conftest$ac_exeext'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9642 ac_cv_search_opendir="none required"
9643 else
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9648 rm -f conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 if test "$ac_cv_search_opendir" = no; then
9651 for ac_lib in x; do
9652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9666 char opendir ();
9668 main ()
9670 opendir ();
9672 return 0;
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -z "$ac_c_werror_flag"
9685 || test ! -s conftest.err'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_cv_search_opendir="-l$ac_lib"
9698 break
9699 else
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9704 rm -f conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 done
9708 LIBS=$ac_func_search_save_LIBS
9710 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9711 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9712 if test "$ac_cv_search_opendir" != no; then
9713 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9719 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9720 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9721 if test "${ac_cv_header_stdc+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <stdlib.h>
9731 #include <stdarg.h>
9732 #include <string.h>
9733 #include <float.h>
9736 main ()
9740 return 0;
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_header_stdc=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_header_stdc=no
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9774 if test $ac_cv_header_stdc = yes; then
9775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 #include <string.h>
9784 _ACEOF
9785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9786 $EGREP "memchr" >/dev/null 2>&1; then
9788 else
9789 ac_cv_header_stdc=no
9791 rm -f conftest*
9795 if test $ac_cv_header_stdc = yes; then
9796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 #include <stdlib.h>
9805 _ACEOF
9806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9807 $EGREP "free" >/dev/null 2>&1; then
9809 else
9810 ac_cv_header_stdc=no
9812 rm -f conftest*
9816 if test $ac_cv_header_stdc = yes; then
9817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9818 if test "$cross_compiling" = yes; then
9820 else
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <ctype.h>
9828 #if ((' ' & 0x0FF) == 0x020)
9829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9831 #else
9832 # define ISLOWER(c) \
9833 (('a' <= (c) && (c) <= 'i') \
9834 || ('j' <= (c) && (c) <= 'r') \
9835 || ('s' <= (c) && (c) <= 'z'))
9836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9837 #endif
9839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9841 main ()
9843 int i;
9844 for (i = 0; i < 256; i++)
9845 if (XOR (islower (i), ISLOWER (i))
9846 || toupper (i) != TOUPPER (i))
9847 exit(2);
9848 exit (0);
9850 _ACEOF
9851 rm -f conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 (eval $ac_try) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9863 else
9864 echo "$as_me: program exited with status $ac_status" >&5
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ( exit $ac_status )
9869 ac_cv_header_stdc=no
9871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9875 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9876 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9877 if test $ac_cv_header_stdc = yes; then
9879 cat >>confdefs.h <<\_ACEOF
9880 #define STDC_HEADERS 1
9881 _ACEOF
9919 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
9921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9923 echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930 else
9931 # Is the header compilable?
9932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 $ac_includes_default
9941 #include <$ac_header>
9942 _ACEOF
9943 rm -f conftest.$ac_objext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9945 (eval $ac_compile) 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag"
9953 || test ! -s conftest.err'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler=yes
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_header_compiler=no
9972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974 echo "${ECHO_T}$ac_header_compiler" >&6
9976 # Is the header present?
9977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 #include <$ac_header>
9986 _ACEOF
9987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } >/dev/null; then
9995 if test -s conftest.err; then
9996 ac_cpp_err=$ac_c_preproc_warn_flag
9997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9998 else
9999 ac_cpp_err=
10001 else
10002 ac_cpp_err=yes
10004 if test -z "$ac_cpp_err"; then
10005 ac_header_preproc=yes
10006 else
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_header_preproc=no
10012 rm -f conftest.err conftest.$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014 echo "${ECHO_T}$ac_header_preproc" >&6
10016 # So? What about this header?
10017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10018 yes:no: )
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10023 ac_header_preproc=yes
10025 no:yes:* )
10026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10039 cat <<\_ASBOX
10040 ## ------------------------------ ##
10041 ## Report this to admin@amule.org ##
10042 ## ------------------------------ ##
10043 _ASBOX
10045 sed "s/^/$as_me: WARNING: /" >&2
10047 esac
10048 echo "$as_me:$LINENO: checking for $ac_header" >&5
10049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 eval "$as_ac_Header=\$ac_header_preproc"
10055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10062 _ACEOF
10066 done
10068 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10069 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10070 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 #include <sys/types.h>
10080 #include <sys/wait.h>
10081 #ifndef WEXITSTATUS
10082 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10083 #endif
10084 #ifndef WIFEXITED
10085 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10086 #endif
10089 main ()
10091 int s;
10092 wait (&s);
10093 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 (eval $ac_compile) 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag"
10108 || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try='test -s conftest.$ac_objext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_header_sys_wait_h=yes
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10125 ac_cv_header_sys_wait_h=no
10127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10130 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10131 if test $ac_cv_header_sys_wait_h = yes; then
10133 cat >>confdefs.h <<\_ACEOF
10134 #define HAVE_SYS_WAIT_H 1
10135 _ACEOF
10140 # Checks for typedefs, structures, and compiler characteristics.
10141 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10142 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10143 if test "${ac_cv_header_stdbool_h+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h. */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10153 #include <stdbool.h>
10154 #ifndef bool
10155 # error bool is not defined
10156 #endif
10157 #ifndef false
10158 # error false is not defined
10159 #endif
10160 #if false
10161 # error false is not 0
10162 #endif
10163 #ifndef true
10164 # error true is not defined
10165 #endif
10166 #if true != 1
10167 # error true is not 1
10168 #endif
10169 #ifndef __bool_true_false_are_defined
10170 # error __bool_true_false_are_defined is not defined
10171 #endif
10173 struct s { _Bool s: 1; _Bool t; } s;
10175 char a[true == 1 ? 1 : -1];
10176 char b[false == 0 ? 1 : -1];
10177 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10178 char d[(bool) -0.5 == true ? 1 : -1];
10179 bool e = &s;
10180 char f[(_Bool) -0.0 == false ? 1 : -1];
10181 char g[true];
10182 char h[sizeof (_Bool)];
10183 char i[sizeof s.t];
10186 main ()
10188 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10190 return 0;
10192 _ACEOF
10193 rm -f conftest.$ac_objext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195 (eval $ac_compile) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag"
10203 || test ! -s conftest.err'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_header_stdbool_h=yes
10216 else
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 ac_cv_header_stdbool_h=no
10222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10224 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10225 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10226 echo "$as_me:$LINENO: checking for _Bool" >&5
10227 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10228 if test "${ac_cv_type__Bool+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 $ac_includes_default
10239 main ()
10241 if ((_Bool *) 0)
10242 return 0;
10243 if (sizeof (_Bool))
10244 return 0;
10246 return 0;
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -z "$ac_c_werror_flag"
10259 || test ! -s conftest.err'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; } &&
10265 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10271 ac_cv_type__Bool=yes
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_cv_type__Bool=no
10278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10281 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10282 if test $ac_cv_type__Bool = yes; then
10284 cat >>confdefs.h <<_ACEOF
10285 #define HAVE__BOOL 1
10286 _ACEOF
10291 if test $ac_cv_header_stdbool_h = yes; then
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_STDBOOL_H 1
10295 _ACEOF
10299 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10300 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10301 if test "${ac_cv_c_const+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10312 main ()
10314 /* FIXME: Include the comments suggested by Paul. */
10315 #ifndef __cplusplus
10316 /* Ultrix mips cc rejects this. */
10317 typedef int charset[2];
10318 const charset x;
10319 /* SunOS 4.1.1 cc rejects this. */
10320 char const *const *ccp;
10321 char **p;
10322 /* NEC SVR4.0.2 mips cc rejects this. */
10323 struct point {int x, y;};
10324 static struct point const zero = {0,0};
10325 /* AIX XL C 1.02.0.0 rejects this.
10326 It does not let you subtract one const X* pointer from another in
10327 an arm of an if-expression whose if-part is not a constant
10328 expression */
10329 const char *g = "string";
10330 ccp = &g + (g ? g-g : 0);
10331 /* HPUX 7.0 cc rejects these. */
10332 ++ccp;
10333 p = (char**) ccp;
10334 ccp = (char const *const *) p;
10335 { /* SCO 3.2v4 cc rejects this. */
10336 char *t;
10337 char const *s = 0 ? (char *) 0 : (char const *) 0;
10339 *t++ = 0;
10341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10342 int x[] = {25, 17};
10343 const int *foo = &x[0];
10344 ++foo;
10346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10347 typedef const int *iptr;
10348 iptr p = 0;
10349 ++p;
10351 { /* AIX XL C 1.02.0.0 rejects this saying
10352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10353 struct s { int j; const int *ap[3]; };
10354 struct s *b; b->j = 5;
10356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10357 const int foo = 10;
10359 #endif
10362 return 0;
10364 _ACEOF
10365 rm -f conftest.$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_c_const=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_c_const=no
10394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10397 echo "${ECHO_T}$ac_cv_c_const" >&6
10398 if test $ac_cv_c_const = no; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define const
10402 _ACEOF
10406 echo "$as_me:$LINENO: checking for inline" >&5
10407 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10408 if test "${ac_cv_c_inline+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 ac_cv_c_inline=no
10412 for ac_kw in inline __inline__ __inline; do
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #ifndef __cplusplus
10420 typedef int foo_t;
10421 static $ac_kw foo_t static_foo () {return 0; }
10422 $ac_kw foo_t foo () {return 0; }
10423 #endif
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_c_inline=$ac_kw; break
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10455 done
10458 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10459 echo "${ECHO_T}$ac_cv_c_inline" >&6
10462 case $ac_cv_c_inline in
10463 inline | yes) ;;
10465 case $ac_cv_c_inline in
10466 no) ac_val=;;
10467 *) ac_val=$ac_cv_c_inline;;
10468 esac
10469 cat >>confdefs.h <<_ACEOF
10470 #ifndef __cplusplus
10471 #define inline $ac_val
10472 #endif
10473 _ACEOF
10475 esac
10477 echo "$as_me:$LINENO: checking for mode_t" >&5
10478 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10479 if test "${ac_cv_type_mode_t+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 $ac_includes_default
10490 main ()
10492 if ((mode_t *) 0)
10493 return 0;
10494 if (sizeof (mode_t))
10495 return 0;
10497 return 0;
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_type_mode_t=yes
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_cv_type_mode_t=no
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10531 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10532 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10533 if test $ac_cv_type_mode_t = yes; then
10535 else
10537 cat >>confdefs.h <<_ACEOF
10538 #define mode_t int
10539 _ACEOF
10543 echo "$as_me:$LINENO: checking for off_t" >&5
10544 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10545 if test "${ac_cv_type_off_t+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 $ac_includes_default
10556 main ()
10558 if ((off_t *) 0)
10559 return 0;
10560 if (sizeof (off_t))
10561 return 0;
10563 return 0;
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_type_off_t=yes
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_cv_type_off_t=no
10595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10597 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10598 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10599 if test $ac_cv_type_off_t = yes; then
10601 else
10603 cat >>confdefs.h <<_ACEOF
10604 #define off_t long
10605 _ACEOF
10609 echo "$as_me:$LINENO: checking for size_t" >&5
10610 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10611 if test "${ac_cv_type_size_t+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10622 main ()
10624 if ((size_t *) 0)
10625 return 0;
10626 if (sizeof (size_t))
10627 return 0;
10629 return 0;
10631 _ACEOF
10632 rm -f conftest.$ac_objext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634 (eval $ac_compile) 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -z "$ac_c_werror_flag"
10642 || test ! -s conftest.err'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_type_size_t=yes
10655 else
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_cv_type_size_t=no
10661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10664 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10665 if test $ac_cv_type_size_t = yes; then
10667 else
10669 cat >>confdefs.h <<_ACEOF
10670 #define size_t unsigned
10671 _ACEOF
10675 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10676 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10677 if test "${ac_cv_header_time+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 #include <sys/types.h>
10687 #include <sys/time.h>
10688 #include <time.h>
10691 main ()
10693 if ((struct tm *) 0)
10694 return 0;
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest.$ac_objext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_header_time=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_header_time=no
10728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10730 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10731 echo "${ECHO_T}$ac_cv_header_time" >&6
10732 if test $ac_cv_header_time = yes; then
10734 cat >>confdefs.h <<\_ACEOF
10735 #define TIME_WITH_SYS_TIME 1
10736 _ACEOF
10740 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10742 if test "${ac_cv_struct_tm+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 #include <sys/types.h>
10752 #include <time.h>
10755 main ()
10757 struct tm *tp; tp->tm_sec;
10759 return 0;
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag"
10772 || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_struct_tm=time.h
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_struct_tm=sys/time.h
10791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10794 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10795 if test $ac_cv_struct_tm = sys/time.h; then
10797 cat >>confdefs.h <<\_ACEOF
10798 #define TM_IN_SYS_TIME 1
10799 _ACEOF
10803 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10804 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10805 if test "${ac_cv_type_uid_t+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <sys/types.h>
10816 _ACEOF
10817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10818 $EGREP "uid_t" >/dev/null 2>&1; then
10819 ac_cv_type_uid_t=yes
10820 else
10821 ac_cv_type_uid_t=no
10823 rm -f conftest*
10826 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10827 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10828 if test $ac_cv_type_uid_t = no; then
10830 cat >>confdefs.h <<\_ACEOF
10831 #define uid_t int
10832 _ACEOF
10835 cat >>confdefs.h <<\_ACEOF
10836 #define gid_t int
10837 _ACEOF
10841 echo "$as_me:$LINENO: checking for working volatile" >&5
10842 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10843 if test "${ac_cv_c_volatile+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10854 main ()
10857 volatile int x;
10858 int * volatile y;
10860 return 0;
10862 _ACEOF
10863 rm -f conftest.$ac_objext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -z "$ac_c_werror_flag"
10873 || test ! -s conftest.err'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try='test -s conftest.$ac_objext'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; }; then
10885 ac_cv_c_volatile=yes
10886 else
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ac_cv_c_volatile=no
10892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10894 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10895 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10896 if test $ac_cv_c_volatile = no; then
10898 cat >>confdefs.h <<\_ACEOF
10899 #define volatile
10900 _ACEOF
10904 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10905 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10906 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 $ac_includes_default
10917 main ()
10919 if ((ptrdiff_t *) 0)
10920 return 0;
10921 if (sizeof (ptrdiff_t))
10922 return 0;
10924 return 0;
10926 _ACEOF
10927 rm -f conftest.$ac_objext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10929 (eval $ac_compile) 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try='test -z "$ac_c_werror_flag"
10937 || test ! -s conftest.err'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest.$ac_objext'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_cv_type_ptrdiff_t=yes
10950 else
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10954 ac_cv_type_ptrdiff_t=no
10956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10958 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10959 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10960 if test $ac_cv_type_ptrdiff_t = yes; then
10962 cat >>confdefs.h <<_ACEOF
10963 #define HAVE_PTRDIFF_T 1
10964 _ACEOF
10970 # Checks for library functions.
10971 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10972 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10973 if test "${ac_cv_func_closedir_void+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 if test "$cross_compiling" = yes; then
10977 ac_cv_func_closedir_void=yes
10978 else
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 $ac_includes_default
10986 #include <$ac_header_dirent>
10987 #ifndef __cplusplus
10988 int closedir ();
10989 #endif
10992 main ()
10994 exit (closedir (opendir (".")) != 0);
10996 return 0;
10998 _ACEOF
10999 rm -f conftest$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 ac_cv_func_closedir_void=no
11011 else
11012 echo "$as_me: program exited with status $ac_status" >&5
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ( exit $ac_status )
11017 ac_cv_func_closedir_void=yes
11019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11022 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11023 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11024 if test $ac_cv_func_closedir_void = yes; then
11026 cat >>confdefs.h <<\_ACEOF
11027 #define CLOSEDIR_VOID 1
11028 _ACEOF
11032 if test $ac_cv_c_compiler_gnu = yes; then
11033 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11034 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11035 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038 ac_pattern="Autoconf.*'x'"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <sgtty.h>
11046 Autoconf TIOCGETP
11047 _ACEOF
11048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11049 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11050 ac_cv_prog_gcc_traditional=yes
11051 else
11052 ac_cv_prog_gcc_traditional=no
11054 rm -f conftest*
11057 if test $ac_cv_prog_gcc_traditional = no; then
11058 cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h. */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 #include <termio.h>
11065 Autoconf TCGETA
11066 _ACEOF
11067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11068 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11069 ac_cv_prog_gcc_traditional=yes
11071 rm -f conftest*
11075 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11076 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11077 if test $ac_cv_prog_gcc_traditional = yes; then
11078 CC="$CC -traditional"
11082 echo "$as_me:$LINENO: checking for pid_t" >&5
11083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11084 if test "${ac_cv_type_pid_t+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 $ac_includes_default
11095 main ()
11097 if ((pid_t *) 0)
11098 return 0;
11099 if (sizeof (pid_t))
11100 return 0;
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_c_werror_flag"
11115 || test ! -s conftest.err'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; } &&
11121 { ac_try='test -s conftest.$ac_objext'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_type_pid_t=yes
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 ac_cv_type_pid_t=no
11134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11136 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11138 if test $ac_cv_type_pid_t = yes; then
11140 else
11142 cat >>confdefs.h <<_ACEOF
11143 #define pid_t int
11144 _ACEOF
11150 for ac_header in unistd.h vfork.h
11152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11154 echo "$as_me:$LINENO: checking for $ac_header" >&5
11155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11161 else
11162 # Is the header compilable?
11163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 $ac_includes_default
11172 #include <$ac_header>
11173 _ACEOF
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest.$ac_objext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_header_compiler=yes
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_compiler=no
11203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11205 echo "${ECHO_T}$ac_header_compiler" >&6
11207 # Is the header present?
11208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 #include <$ac_header>
11217 _ACEOF
11218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null; then
11226 if test -s conftest.err; then
11227 ac_cpp_err=$ac_c_preproc_warn_flag
11228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229 else
11230 ac_cpp_err=
11232 else
11233 ac_cpp_err=yes
11235 if test -z "$ac_cpp_err"; then
11236 ac_header_preproc=yes
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_header_preproc=no
11243 rm -f conftest.err conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11245 echo "${ECHO_T}$ac_header_preproc" >&6
11247 # So? What about this header?
11248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11249 yes:no: )
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11254 ac_header_preproc=yes
11256 no:yes:* )
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270 cat <<\_ASBOX
11271 ## ------------------------------ ##
11272 ## Report this to admin@amule.org ##
11273 ## ------------------------------ ##
11274 _ASBOX
11276 sed "s/^/$as_me: WARNING: /" >&2
11278 esac
11279 echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 eval "$as_ac_Header=\$ac_header_preproc"
11286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 _ACEOF
11297 done
11301 for ac_func in fork vfork
11303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11304 echo "$as_me:$LINENO: checking for $ac_func" >&5
11305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11306 if eval "test \"\${$as_ac_var+set}\" = set"; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11317 #define $ac_func innocuous_$ac_func
11319 /* System header to define __stub macros and hopefully few prototypes,
11320 which can conflict with char $ac_func (); below.
11321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11322 <limits.h> exists even on freestanding compilers. */
11324 #ifdef __STDC__
11325 # include <limits.h>
11326 #else
11327 # include <assert.h>
11328 #endif
11330 #undef $ac_func
11332 /* Override any gcc2 internal prototype to avoid an error. */
11333 #ifdef __cplusplus
11334 extern "C"
11336 #endif
11337 /* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11339 char $ac_func ();
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11344 choke me
11345 #else
11346 char (*f) () = $ac_func;
11347 #endif
11348 #ifdef __cplusplus
11350 #endif
11353 main ()
11355 return f != $ac_func;
11357 return 0;
11359 _ACEOF
11360 rm -f conftest.$ac_objext conftest$ac_exeext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag"
11370 || test ! -s conftest.err'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest$ac_exeext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 eval "$as_ac_var=yes"
11383 else
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 eval "$as_ac_var=no"
11389 rm -f conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 _ACEOF
11400 done
11402 if test "x$ac_cv_func_fork" = xyes; then
11403 echo "$as_me:$LINENO: checking for working fork" >&5
11404 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11405 if test "${ac_cv_func_fork_works+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408 if test "$cross_compiling" = yes; then
11409 ac_cv_func_fork_works=cross
11410 else
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* By Ruediger Kuhlmann. */
11413 #include <sys/types.h>
11414 #if HAVE_UNISTD_H
11415 # include <unistd.h>
11416 #endif
11417 /* Some systems only have a dummy stub for fork() */
11418 int main ()
11420 if (fork() < 0)
11421 exit (1);
11422 exit (0);
11424 _ACEOF
11425 rm -f conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
11436 ac_cv_func_fork_works=yes
11437 else
11438 echo "$as_me: program exited with status $ac_status" >&5
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 ( exit $ac_status )
11443 ac_cv_func_fork_works=no
11445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11448 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11449 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11451 else
11452 ac_cv_func_fork_works=$ac_cv_func_fork
11454 if test "x$ac_cv_func_fork_works" = xcross; then
11455 case $host in
11456 *-*-amigaos* | *-*-msdosdjgpp*)
11457 # Override, as these systems have only a dummy fork() stub
11458 ac_cv_func_fork_works=no
11461 ac_cv_func_fork_works=yes
11463 esac
11464 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11465 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11467 ac_cv_func_vfork_works=$ac_cv_func_vfork
11468 if test "x$ac_cv_func_vfork" = xyes; then
11469 echo "$as_me:$LINENO: checking for working vfork" >&5
11470 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11471 if test "${ac_cv_func_vfork_works+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474 if test "$cross_compiling" = yes; then
11475 ac_cv_func_vfork_works=cross
11476 else
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 /* Thanks to Paul Eggert for this test. */
11484 #include <stdio.h>
11485 #include <stdlib.h>
11486 #include <sys/types.h>
11487 #include <sys/stat.h>
11488 #include <sys/wait.h>
11489 #if HAVE_UNISTD_H
11490 # include <unistd.h>
11491 #endif
11492 #if HAVE_VFORK_H
11493 # include <vfork.h>
11494 #endif
11495 /* On some sparc systems, changes by the child to local and incoming
11496 argument registers are propagated back to the parent. The compiler
11497 is told about this with #include <vfork.h>, but some compilers
11498 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11499 static variable whose address is put into a register that is
11500 clobbered by the vfork. */
11501 static void
11502 #ifdef __cplusplus
11503 sparc_address_test (int arg)
11504 # else
11505 sparc_address_test (arg) int arg;
11506 #endif
11508 static pid_t child;
11509 if (!child) {
11510 child = vfork ();
11511 if (child < 0) {
11512 perror ("vfork");
11513 _exit(2);
11515 if (!child) {
11516 arg = getpid();
11517 write(-1, "", 0);
11518 _exit (arg);
11524 main ()
11526 pid_t parent = getpid ();
11527 pid_t child;
11529 sparc_address_test (0);
11531 child = vfork ();
11533 if (child == 0) {
11534 /* Here is another test for sparc vfork register problems. This
11535 test uses lots of local variables, at least as many local
11536 variables as main has allocated so far including compiler
11537 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11538 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11539 reuse the register of parent for one of the local variables,
11540 since it will think that parent can't possibly be used any more
11541 in this routine. Assigning to the local variable will thus
11542 munge parent in the parent process. */
11543 pid_t
11544 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11545 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11546 /* Convince the compiler that p..p7 are live; otherwise, it might
11547 use the same hardware register for all 8 local variables. */
11548 if (p != p1 || p != p2 || p != p3 || p != p4
11549 || p != p5 || p != p6 || p != p7)
11550 _exit(1);
11552 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11553 from child file descriptors. If the child closes a descriptor
11554 before it execs or exits, this munges the parent's descriptor
11555 as well. Test for this by closing stdout in the child. */
11556 _exit(close(fileno(stdout)) != 0);
11557 } else {
11558 int status;
11559 struct stat st;
11561 while (wait(&status) != child)
11563 exit(
11564 /* Was there some problem with vforking? */
11565 child < 0
11567 /* Did the child fail? (This shouldn't happen.) */
11568 || status
11570 /* Did the vfork/compiler bug occur? */
11571 || parent != getpid()
11573 /* Did the file descriptor bug occur? */
11574 || fstat(fileno(stdout), &st) != 0
11578 _ACEOF
11579 rm -f conftest$ac_exeext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581 (eval $ac_link) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_cv_func_vfork_works=yes
11591 else
11592 echo "$as_me: program exited with status $ac_status" >&5
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ( exit $ac_status )
11597 ac_cv_func_vfork_works=no
11599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11603 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11606 if test "x$ac_cv_func_fork_works" = xcross; then
11607 ac_cv_func_vfork_works=$ac_cv_func_vfork
11608 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11609 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11612 if test "x$ac_cv_func_vfork_works" = xyes; then
11614 cat >>confdefs.h <<\_ACEOF
11615 #define HAVE_WORKING_VFORK 1
11616 _ACEOF
11618 else
11620 cat >>confdefs.h <<\_ACEOF
11621 #define vfork fork
11622 _ACEOF
11625 if test "x$ac_cv_func_fork_works" = xyes; then
11627 cat >>confdefs.h <<\_ACEOF
11628 #define HAVE_WORKING_FORK 1
11629 _ACEOF
11633 if test x$SYS != xwin32; then
11635 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11636 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11637 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11638 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-lsun $LIBS"
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11650 /* Override any gcc2 internal prototype to avoid an error. */
11651 #ifdef __cplusplus
11652 extern "C"
11653 #endif
11654 /* We use char because int might match the return type of a gcc2
11655 builtin and then its argument prototype would still apply. */
11656 char getmntent ();
11658 main ()
11660 getmntent ();
11662 return 0;
11664 _ACEOF
11665 rm -f conftest.$ac_objext conftest$ac_exeext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11667 (eval $ac_link) 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_c_werror_flag"
11675 || test ! -s conftest.err'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_lib_sun_getmntent=yes
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_cv_lib_sun_getmntent=no
11694 rm -f conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11698 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11699 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11700 if test $ac_cv_lib_sun_getmntent = yes; then
11701 LIBS="-lsun $LIBS"
11702 else
11703 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11704 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11705 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-lseq $LIBS"
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h. */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11717 /* Override any gcc2 internal prototype to avoid an error. */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 /* We use char because int might match the return type of a gcc2
11722 builtin and then its argument prototype would still apply. */
11723 char getmntent ();
11725 main ()
11727 getmntent ();
11729 return 0;
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11734 (eval $ac_link) 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
11741 { ac_try='test -z "$ac_c_werror_flag"
11742 || test ! -s conftest.err'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_cv_lib_seq_getmntent=yes
11755 else
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_cv_lib_seq_getmntent=no
11761 rm -f conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LIBS=$ac_check_lib_save_LIBS
11765 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11766 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11767 if test $ac_cv_lib_seq_getmntent = yes; then
11768 LIBS="-lseq $LIBS"
11769 else
11770 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11771 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11772 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775 ac_check_lib_save_LIBS=$LIBS
11776 LIBS="-lgen $LIBS"
11777 cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h. */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11784 /* Override any gcc2 internal prototype to avoid an error. */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11790 char getmntent ();
11792 main ()
11794 getmntent ();
11796 return 0;
11798 _ACEOF
11799 rm -f conftest.$ac_objext conftest$ac_exeext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11801 (eval $ac_link) 2>conftest.er1
11802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -z "$ac_c_werror_flag"
11809 || test ! -s conftest.err'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_cv_lib_gen_getmntent=yes
11822 else
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 ac_cv_lib_gen_getmntent=no
11828 rm -f conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11832 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11833 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11834 if test $ac_cv_lib_gen_getmntent = yes; then
11835 LIBS="-lgen $LIBS"
11843 for ac_func in getmntent
11845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11846 echo "$as_me:$LINENO: checking for $ac_func" >&5
11847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11848 if eval "test \"\${$as_ac_var+set}\" = set"; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11859 #define $ac_func innocuous_$ac_func
11861 /* System header to define __stub macros and hopefully few prototypes,
11862 which can conflict with char $ac_func (); below.
11863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11864 <limits.h> exists even on freestanding compilers. */
11866 #ifdef __STDC__
11867 # include <limits.h>
11868 #else
11869 # include <assert.h>
11870 #endif
11872 #undef $ac_func
11874 /* Override any gcc2 internal prototype to avoid an error. */
11875 #ifdef __cplusplus
11876 extern "C"
11878 #endif
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11881 char $ac_func ();
11882 /* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11886 choke me
11887 #else
11888 char (*f) () = $ac_func;
11889 #endif
11890 #ifdef __cplusplus
11892 #endif
11895 main ()
11897 return f != $ac_func;
11899 return 0;
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 eval "$as_ac_var=yes"
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 eval "$as_ac_var=no"
11931 rm -f conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11939 _ACEOF
11942 done
11945 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11946 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11947 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950 rm -f conftest.sym conftest.file
11951 echo >conftest.file
11952 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11953 if test "$cross_compiling" = yes; then
11954 ac_cv_func_lstat_dereferences_slashed_symlink=no
11955 else
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 $ac_includes_default
11964 main ()
11966 struct stat sbuf;
11967 /* Linux will dereference the symlink and fail.
11968 That is better in the sense that it means we will not
11969 have to compile and use the lstat wrapper. */
11970 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11972 return 0;
11974 _ACEOF
11975 rm -f conftest$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11987 else
11988 echo "$as_me: program exited with status $ac_status" >&5
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ( exit $ac_status )
11993 ac_cv_func_lstat_dereferences_slashed_symlink=no
11995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11997 else
11998 # If the `ln -s' command failed, then we probably don't even
11999 # have an lstat function.
12000 ac_cv_func_lstat_dereferences_slashed_symlink=no
12002 rm -f conftest.sym conftest.file
12005 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12006 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12008 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12010 cat >>confdefs.h <<_ACEOF
12011 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12012 _ACEOF
12015 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12016 case $LIBOBJS in
12017 "lstat.$ac_objext" | \
12018 *" lstat.$ac_objext" | \
12019 "lstat.$ac_objext "* | \
12020 *" lstat.$ac_objext "* ) ;;
12021 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12022 esac
12026 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12027 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12028 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 if test "$cross_compiling" = yes; then
12032 ac_cv_func_lstat_empty_string_bug=yes
12033 else
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12042 main ()
12044 struct stat sbuf;
12045 exit (lstat ("", &sbuf) ? 1 : 0);
12047 return 0;
12049 _ACEOF
12050 rm -f conftest$ac_exeext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052 (eval $ac_link) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_func_lstat_empty_string_bug=yes
12062 else
12063 echo "$as_me: program exited with status $ac_status" >&5
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ( exit $ac_status )
12068 ac_cv_func_lstat_empty_string_bug=no
12070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12073 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12074 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12075 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12076 case $LIBOBJS in
12077 "lstat.$ac_objext" | \
12078 *" lstat.$ac_objext" | \
12079 "lstat.$ac_objext "* | \
12080 *" lstat.$ac_objext "* ) ;;
12081 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12082 esac
12085 cat >>confdefs.h <<_ACEOF
12086 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12087 _ACEOF
12091 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12092 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12093 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 rm -f conftest.sym conftest.file
12097 echo >conftest.file
12098 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12099 if test "$cross_compiling" = yes; then
12100 ac_cv_func_lstat_dereferences_slashed_symlink=no
12101 else
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12110 main ()
12112 struct stat sbuf;
12113 /* Linux will dereference the symlink and fail.
12114 That is better in the sense that it means we will not
12115 have to compile and use the lstat wrapper. */
12116 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12118 return 0;
12120 _ACEOF
12121 rm -f conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12133 else
12134 echo "$as_me: program exited with status $ac_status" >&5
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ( exit $ac_status )
12139 ac_cv_func_lstat_dereferences_slashed_symlink=no
12141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12143 else
12144 # If the `ln -s' command failed, then we probably don't even
12145 # have an lstat function.
12146 ac_cv_func_lstat_dereferences_slashed_symlink=no
12148 rm -f conftest.sym conftest.file
12151 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12152 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12154 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12156 cat >>confdefs.h <<_ACEOF
12157 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12158 _ACEOF
12161 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12162 case $LIBOBJS in
12163 "lstat.$ac_objext" | \
12164 *" lstat.$ac_objext" | \
12165 "lstat.$ac_objext "* | \
12166 *" lstat.$ac_objext "* ) ;;
12167 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12168 esac
12175 echo "$as_me:$LINENO: checking for working memcmp" >&5
12176 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12177 if test "${ac_cv_func_memcmp_working+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 if test "$cross_compiling" = yes; then
12181 ac_cv_func_memcmp_working=no
12182 else
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 $ac_includes_default
12191 main ()
12194 /* Some versions of memcmp are not 8-bit clean. */
12195 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12196 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12197 exit (1);
12199 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12200 or more and with at least one buffer not starting on a 4-byte boundary.
12201 William Lewis provided this test program. */
12203 char foo[21];
12204 char bar[21];
12205 int i;
12206 for (i = 0; i < 4; i++)
12208 char *a = foo + i;
12209 char *b = bar + i;
12210 strcpy (a, "--------01111111");
12211 strcpy (b, "--------10000000");
12212 if (memcmp (a, b, 16) >= 0)
12213 exit (1);
12215 exit (0);
12219 return 0;
12221 _ACEOF
12222 rm -f conftest$ac_exeext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 ac_cv_func_memcmp_working=yes
12234 else
12235 echo "$as_me: program exited with status $ac_status" >&5
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ( exit $ac_status )
12240 ac_cv_func_memcmp_working=no
12242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12245 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12246 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12247 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12248 "memcmp.$ac_objext" | \
12249 *" memcmp.$ac_objext" | \
12250 "memcmp.$ac_objext "* | \
12251 *" memcmp.$ac_objext "* ) ;;
12252 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12253 esac
12258 for ac_header in sys/select.h sys/socket.h
12260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12262 echo "$as_me:$LINENO: checking for $ac_header" >&5
12263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12269 else
12270 # Is the header compilable?
12271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12273 cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h. */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279 $ac_includes_default
12280 #include <$ac_header>
12281 _ACEOF
12282 rm -f conftest.$ac_objext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12284 (eval $ac_compile) 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_c_werror_flag"
12292 || test ! -s conftest.err'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest.$ac_objext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_header_compiler=yes
12305 else
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_header_compiler=no
12311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12313 echo "${ECHO_T}$ac_header_compiler" >&6
12315 # Is the header present?
12316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <$ac_header>
12325 _ACEOF
12326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } >/dev/null; then
12334 if test -s conftest.err; then
12335 ac_cpp_err=$ac_c_preproc_warn_flag
12336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12337 else
12338 ac_cpp_err=
12340 else
12341 ac_cpp_err=yes
12343 if test -z "$ac_cpp_err"; then
12344 ac_header_preproc=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_header_preproc=no
12351 rm -f conftest.err conftest.$ac_ext
12352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12353 echo "${ECHO_T}$ac_header_preproc" >&6
12355 # So? What about this header?
12356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12357 yes:no: )
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12362 ac_header_preproc=yes
12364 no:yes:* )
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12378 cat <<\_ASBOX
12379 ## ------------------------------ ##
12380 ## Report this to admin@amule.org ##
12381 ## ------------------------------ ##
12382 _ASBOX
12384 sed "s/^/$as_me: WARNING: /" >&2
12386 esac
12387 echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 eval "$as_ac_Header=\$ac_header_preproc"
12394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12399 cat >>confdefs.h <<_ACEOF
12400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12401 _ACEOF
12405 done
12407 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12408 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12409 if test "${ac_cv_func_select_args+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12413 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12414 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 #if HAVE_SYS_SELECT_H
12423 # include <sys/select.h>
12424 #endif
12425 #if HAVE_SYS_SOCKET_H
12426 # include <sys/socket.h>
12427 #endif
12430 main ()
12432 extern int select ($ac_arg1,
12433 $ac_arg234, $ac_arg234, $ac_arg234,
12434 $ac_arg5);
12436 return 0;
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag"
12449 || test ! -s conftest.err'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12468 done
12469 done
12470 done
12471 # Provide a safe default value.
12472 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12475 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12476 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12477 ac_save_IFS=$IFS; IFS=','
12478 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12479 IFS=$ac_save_IFS
12480 shift
12482 cat >>confdefs.h <<_ACEOF
12483 #define SELECT_TYPE_ARG1 $1
12484 _ACEOF
12487 cat >>confdefs.h <<_ACEOF
12488 #define SELECT_TYPE_ARG234 ($2)
12489 _ACEOF
12492 cat >>confdefs.h <<_ACEOF
12493 #define SELECT_TYPE_ARG5 ($3)
12494 _ACEOF
12496 rm -f conftest*
12498 echo "$as_me:$LINENO: checking for function prototypes" >&5
12499 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12500 if test "$ac_cv_prog_cc_stdc" != no; then
12501 echo "$as_me:$LINENO: result: yes" >&5
12502 echo "${ECHO_T}yes" >&6
12504 cat >>confdefs.h <<\_ACEOF
12505 #define PROTOTYPES 1
12506 _ACEOF
12509 cat >>confdefs.h <<\_ACEOF
12510 #define __PROTOTYPES 1
12511 _ACEOF
12513 else
12514 echo "$as_me:$LINENO: result: no" >&5
12515 echo "${ECHO_T}no" >&6
12518 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12519 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12520 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523 ac_cv_func_setvbuf_reversed=no
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <stdio.h>
12531 # if PROTOTYPES
12532 int (setvbuf) (FILE *, int, char *, size_t);
12533 # endif
12535 main ()
12537 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12539 return 0;
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #include <stdio.h>
12571 # if PROTOTYPES
12572 int (setvbuf) (FILE *, int, char *, size_t);
12573 # endif
12575 main ()
12577 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12579 return 0;
12581 _ACEOF
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>conftest.er1
12585 ac_status=$?
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag"
12592 || test ! -s conftest.err'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try='test -s conftest$ac_exeext'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 # It compiles and links either way, so it must not be declared
12605 # with a prototype and most likely this is a K&R C compiler.
12606 # Try running it.
12607 if test "$cross_compiling" = yes; then
12608 : # Assume setvbuf is not reversed when cross-compiling.
12609 else
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 #include <stdio.h>
12618 main ()
12620 /* This call has the arguments reversed.
12621 A reversed system may check and see that the address of buf
12622 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12623 char buf;
12624 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12625 exit (1);
12626 putchar ('\r');
12627 exit (0); /* Non-reversed systems SEGV here. */
12629 return 0;
12631 _ACEOF
12632 rm -f conftest$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_func_setvbuf_reversed=yes
12644 else
12645 echo "$as_me: program exited with status $ac_status" >&5
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ( exit $ac_status )
12650 rm -f core *.core
12652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12654 ac_cv_func_setvbuf_reversed=yes
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12660 rm -f conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 else
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12671 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12672 if test $ac_cv_func_setvbuf_reversed = yes; then
12674 cat >>confdefs.h <<\_ACEOF
12675 #define SETVBUF_REVERSED 1
12676 _ACEOF
12680 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12681 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12682 if test "${ac_cv_type_signal+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 #include <sys/types.h>
12692 #include <signal.h>
12693 #ifdef signal
12694 # undef signal
12695 #endif
12696 #ifdef __cplusplus
12697 extern "C" void (*signal (int, void (*)(int)))(int);
12698 #else
12699 void (*signal ()) ();
12700 #endif
12703 main ()
12705 int i;
12707 return 0;
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_type_signal=void
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_cv_type_signal=int
12739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12742 echo "${ECHO_T}$ac_cv_type_signal" >&6
12744 cat >>confdefs.h <<_ACEOF
12745 #define RETSIGTYPE $ac_cv_type_signal
12746 _ACEOF
12749 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12750 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12751 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 if test "$cross_compiling" = yes; then
12755 ac_cv_func_stat_empty_string_bug=yes
12756 else
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 $ac_includes_default
12765 main ()
12767 struct stat sbuf;
12768 exit (stat ("", &sbuf) ? 1 : 0);
12770 return 0;
12772 _ACEOF
12773 rm -f conftest$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_func_stat_empty_string_bug=yes
12785 else
12786 echo "$as_me: program exited with status $ac_status" >&5
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12790 ( exit $ac_status )
12791 ac_cv_func_stat_empty_string_bug=no
12793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12796 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12797 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12798 if test $ac_cv_func_stat_empty_string_bug = yes; then
12799 case $LIBOBJS in
12800 "stat.$ac_objext" | \
12801 *" stat.$ac_objext" | \
12802 "stat.$ac_objext "* | \
12803 *" stat.$ac_objext "* ) ;;
12804 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12805 esac
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_STAT_EMPTY_STRING_BUG 1
12810 _ACEOF
12815 for ac_func in strftime
12817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12818 echo "$as_me:$LINENO: checking for $ac_func" >&5
12819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12820 if eval "test \"\${$as_ac_var+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define $ac_func innocuous_$ac_func
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char $ac_func (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12838 #ifdef __STDC__
12839 # include <limits.h>
12840 #else
12841 # include <assert.h>
12842 #endif
12844 #undef $ac_func
12846 /* Override any gcc2 internal prototype to avoid an error. */
12847 #ifdef __cplusplus
12848 extern "C"
12850 #endif
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12853 char $ac_func ();
12854 /* The GNU C library defines this for functions which it implements
12855 to always fail with ENOSYS. Some functions are actually named
12856 something starting with __ and the normal name is an alias. */
12857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12858 choke me
12859 #else
12860 char (*f) () = $ac_func;
12861 #endif
12862 #ifdef __cplusplus
12864 #endif
12867 main ()
12869 return f != $ac_func;
12871 return 0;
12873 _ACEOF
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 eval "$as_ac_var=yes"
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 eval "$as_ac_var=no"
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908 if test `eval echo '${'$as_ac_var'}'` = yes; then
12909 cat >>confdefs.h <<_ACEOF
12910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12911 _ACEOF
12913 else
12914 # strftime is in -lintl on SCO UNIX.
12915 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12916 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12917 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920 ac_check_lib_save_LIBS=$LIBS
12921 LIBS="-lintl $LIBS"
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h. */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12929 /* Override any gcc2 internal prototype to avoid an error. */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 /* We use char because int might match the return type of a gcc2
12934 builtin and then its argument prototype would still apply. */
12935 char strftime ();
12937 main ()
12939 strftime ();
12941 return 0;
12943 _ACEOF
12944 rm -f conftest.$ac_objext conftest$ac_exeext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12946 (eval $ac_link) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag"
12954 || test ! -s conftest.err'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try='test -s conftest$ac_exeext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_lib_intl_strftime=yes
12967 else
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 ac_cv_lib_intl_strftime=no
12973 rm -f conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12977 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12978 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12979 if test $ac_cv_lib_intl_strftime = yes; then
12980 cat >>confdefs.h <<\_ACEOF
12981 #define HAVE_STRFTIME 1
12982 _ACEOF
12984 LIBS="-lintl $LIBS"
12988 done
12990 echo "$as_me:$LINENO: checking for working strtod" >&5
12991 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12992 if test "${ac_cv_func_strtod+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995 if test "$cross_compiling" = yes; then
12996 ac_cv_func_strtod=no
12997 else
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13005 double strtod ();
13007 main()
13010 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13011 char *string = " +69";
13012 char *term;
13013 double value;
13014 value = strtod (string, &term);
13015 if (value != 69 || term != (string + 4))
13016 exit (1);
13020 /* Under Solaris 2.4, strtod returns the wrong value for the
13021 terminating character under some conditions. */
13022 char *string = "NaN";
13023 char *term;
13024 strtod (string, &term);
13025 if (term != string && *(term - 1) == 0)
13026 exit (1);
13028 exit (0);
13031 _ACEOF
13032 rm -f conftest$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034 (eval $ac_link) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_func_strtod=yes
13044 else
13045 echo "$as_me: program exited with status $ac_status" >&5
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ( exit $ac_status )
13050 ac_cv_func_strtod=no
13052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13056 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13057 if test $ac_cv_func_strtod = no; then
13058 case $LIBOBJS in
13059 "strtod.$ac_objext" | \
13060 *" strtod.$ac_objext" | \
13061 "strtod.$ac_objext "* | \
13062 *" strtod.$ac_objext "* ) ;;
13063 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13064 esac
13066 echo "$as_me:$LINENO: checking for pow" >&5
13067 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13068 if test "${ac_cv_func_pow+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13079 #define pow innocuous_pow
13081 /* System header to define __stub macros and hopefully few prototypes,
13082 which can conflict with char pow (); below.
13083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13084 <limits.h> exists even on freestanding compilers. */
13086 #ifdef __STDC__
13087 # include <limits.h>
13088 #else
13089 # include <assert.h>
13090 #endif
13092 #undef pow
13094 /* Override any gcc2 internal prototype to avoid an error. */
13095 #ifdef __cplusplus
13096 extern "C"
13098 #endif
13099 /* We use char because int might match the return type of a gcc2
13100 builtin and then its argument prototype would still apply. */
13101 char pow ();
13102 /* The GNU C library defines this for functions which it implements
13103 to always fail with ENOSYS. Some functions are actually named
13104 something starting with __ and the normal name is an alias. */
13105 #if defined (__stub_pow) || defined (__stub___pow)
13106 choke me
13107 #else
13108 char (*f) () = pow;
13109 #endif
13110 #ifdef __cplusplus
13112 #endif
13115 main ()
13117 return f != pow;
13119 return 0;
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13124 (eval $ac_link) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try='test -z "$ac_c_werror_flag"
13132 || test ! -s conftest.err'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest$ac_exeext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_func_pow=yes
13145 else
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 ac_cv_func_pow=no
13151 rm -f conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13154 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13155 echo "${ECHO_T}$ac_cv_func_pow" >&6
13157 if test $ac_cv_func_pow = no; then
13158 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13159 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13160 if test "${ac_cv_lib_m_pow+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163 ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-lm $LIBS"
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13172 /* Override any gcc2 internal prototype to avoid an error. */
13173 #ifdef __cplusplus
13174 extern "C"
13175 #endif
13176 /* We use char because int might match the return type of a gcc2
13177 builtin and then its argument prototype would still apply. */
13178 char pow ();
13180 main ()
13182 pow ();
13184 return 0;
13186 _ACEOF
13187 rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13189 (eval $ac_link) 2>conftest.er1
13190 ac_status=$?
13191 grep -v '^ *+' conftest.er1 >conftest.err
13192 rm -f conftest.er1
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -z "$ac_c_werror_flag"
13197 || test ! -s conftest.err'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try='test -s conftest$ac_exeext'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_cv_lib_m_pow=yes
13210 else
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_cv_lib_m_pow=no
13216 rm -f conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13220 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13221 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13222 if test $ac_cv_lib_m_pow = yes; then
13223 POW_LIB=-lm
13224 else
13225 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13226 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13234 for ac_func in vprintf
13236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13237 echo "$as_me:$LINENO: checking for $ac_func" >&5
13238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13239 if eval "test \"\${$as_ac_var+set}\" = set"; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13250 #define $ac_func innocuous_$ac_func
13252 /* System header to define __stub macros and hopefully few prototypes,
13253 which can conflict with char $ac_func (); below.
13254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13255 <limits.h> exists even on freestanding compilers. */
13257 #ifdef __STDC__
13258 # include <limits.h>
13259 #else
13260 # include <assert.h>
13261 #endif
13263 #undef $ac_func
13265 /* Override any gcc2 internal prototype to avoid an error. */
13266 #ifdef __cplusplus
13267 extern "C"
13269 #endif
13270 /* We use char because int might match the return type of a gcc2
13271 builtin and then its argument prototype would still apply. */
13272 char $ac_func ();
13273 /* The GNU C library defines this for functions which it implements
13274 to always fail with ENOSYS. Some functions are actually named
13275 something starting with __ and the normal name is an alias. */
13276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13277 choke me
13278 #else
13279 char (*f) () = $ac_func;
13280 #endif
13281 #ifdef __cplusplus
13283 #endif
13286 main ()
13288 return f != $ac_func;
13290 return 0;
13292 _ACEOF
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295 (eval $ac_link) 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -z "$ac_c_werror_flag"
13303 || test ! -s conftest.err'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try='test -s conftest$ac_exeext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 eval "$as_ac_var=yes"
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 eval "$as_ac_var=no"
13322 rm -f conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13327 if test `eval echo '${'$as_ac_var'}'` = yes; then
13328 cat >>confdefs.h <<_ACEOF
13329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13330 _ACEOF
13332 echo "$as_me:$LINENO: checking for _doprnt" >&5
13333 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13334 if test "${ac_cv_func__doprnt+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h. */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13345 #define _doprnt innocuous__doprnt
13347 /* System header to define __stub macros and hopefully few prototypes,
13348 which can conflict with char _doprnt (); below.
13349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13350 <limits.h> exists even on freestanding compilers. */
13352 #ifdef __STDC__
13353 # include <limits.h>
13354 #else
13355 # include <assert.h>
13356 #endif
13358 #undef _doprnt
13360 /* Override any gcc2 internal prototype to avoid an error. */
13361 #ifdef __cplusplus
13362 extern "C"
13364 #endif
13365 /* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13367 char _doprnt ();
13368 /* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13372 choke me
13373 #else
13374 char (*f) () = _doprnt;
13375 #endif
13376 #ifdef __cplusplus
13378 #endif
13381 main ()
13383 return f != _doprnt;
13385 return 0;
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag"
13398 || test ! -s conftest.err'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try='test -s conftest$ac_exeext'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 ac_cv_func__doprnt=yes
13411 else
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13415 ac_cv_func__doprnt=no
13417 rm -f conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13421 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13422 if test $ac_cv_func__doprnt = yes; then
13424 cat >>confdefs.h <<\_ACEOF
13425 #define HAVE_DOPRNT 1
13426 _ACEOF
13431 done
13434 if test $cross_compiling = yes -a $gnumalloc = yes; then
13436 { echo "$as_me:$LINENO: WARNING:
13437 configure cannot check whether malloc() and realloc() are GNU libc
13438 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13439 run configure with the --without-gnu-malloc switch." >&5
13440 echo "$as_me: WARNING:
13441 configure cannot check whether malloc() and realloc() are GNU libc
13442 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13443 run configure with the --without-gnu-malloc switch." >&2;}
13444 _mule_warning_8=yes
13445 _mule_has_warnings=yes
13447 ac_cv_func_malloc_0_nonnull=yes
13448 ac_cv_func_realloc_0_nonnull=yes
13453 for ac_header in stdlib.h
13455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo "$as_me:$LINENO: checking for $ac_header" >&5
13458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13464 else
13465 # Is the header compilable?
13466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 $ac_includes_default
13475 #include <$ac_header>
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>conftest.er1
13480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_header_compiler=yes
13500 else
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_header_compiler=no
13506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13508 echo "${ECHO_T}$ac_header_compiler" >&6
13510 # Is the header present?
13511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <$ac_header>
13520 _ACEOF
13521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } >/dev/null; then
13529 if test -s conftest.err; then
13530 ac_cpp_err=$ac_c_preproc_warn_flag
13531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13532 else
13533 ac_cpp_err=
13535 else
13536 ac_cpp_err=yes
13538 if test -z "$ac_cpp_err"; then
13539 ac_header_preproc=yes
13540 else
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ac_header_preproc=no
13546 rm -f conftest.err conftest.$ac_ext
13547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13548 echo "${ECHO_T}$ac_header_preproc" >&6
13550 # So? What about this header?
13551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 yes:no: )
13553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13557 ac_header_preproc=yes
13559 no:yes:* )
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13573 cat <<\_ASBOX
13574 ## ------------------------------ ##
13575 ## Report this to admin@amule.org ##
13576 ## ------------------------------ ##
13577 _ASBOX
13579 sed "s/^/$as_me: WARNING: /" >&2
13581 esac
13582 echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 eval "$as_ac_Header=\$ac_header_preproc"
13589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13594 cat >>confdefs.h <<_ACEOF
13595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13596 _ACEOF
13600 done
13602 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13603 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13604 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607 if test "$cross_compiling" = yes; then
13608 ac_cv_func_malloc_0_nonnull=no
13609 else
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #if STDC_HEADERS || HAVE_STDLIB_H
13617 # include <stdlib.h>
13618 #else
13619 char *malloc ();
13620 #endif
13623 main ()
13625 exit (malloc (0) ? 0 : 1);
13627 return 0;
13629 _ACEOF
13630 rm -f conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_func_malloc_0_nonnull=yes
13642 else
13643 echo "$as_me: program exited with status $ac_status" >&5
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ( exit $ac_status )
13648 ac_cv_func_malloc_0_nonnull=no
13650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13653 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13654 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13655 if test $ac_cv_func_malloc_0_nonnull = yes; then
13657 cat >>confdefs.h <<\_ACEOF
13658 #define HAVE_MALLOC 1
13659 _ACEOF
13661 else
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_MALLOC 0
13664 _ACEOF
13666 case $LIBOBJS in
13667 "malloc.$ac_objext" | \
13668 *" malloc.$ac_objext" | \
13669 "malloc.$ac_objext "* | \
13670 *" malloc.$ac_objext "* ) ;;
13671 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13672 esac
13675 cat >>confdefs.h <<\_ACEOF
13676 #define malloc rpl_malloc
13677 _ACEOF
13684 for ac_header in stdlib.h
13686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688 echo "$as_me:$LINENO: checking for $ac_header" >&5
13689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13695 else
13696 # Is the header compilable?
13697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h. */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 $ac_includes_default
13706 #include <$ac_header>
13707 _ACEOF
13708 rm -f conftest.$ac_objext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
13711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler=yes
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13735 ac_header_compiler=no
13737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739 echo "${ECHO_T}$ac_header_compiler" >&6
13741 # Is the header present?
13742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13744 cat >conftest.$ac_ext <<_ACEOF
13745 /* confdefs.h. */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 #include <$ac_header>
13751 _ACEOF
13752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev/null; then
13760 if test -s conftest.err; then
13761 ac_cpp_err=$ac_c_preproc_warn_flag
13762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13763 else
13764 ac_cpp_err=
13766 else
13767 ac_cpp_err=yes
13769 if test -z "$ac_cpp_err"; then
13770 ac_header_preproc=yes
13771 else
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_header_preproc=no
13777 rm -f conftest.err conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779 echo "${ECHO_T}$ac_header_preproc" >&6
13781 # So? What about this header?
13782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13783 yes:no: )
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13788 ac_header_preproc=yes
13790 no:yes:* )
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13804 cat <<\_ASBOX
13805 ## ------------------------------ ##
13806 ## Report this to admin@amule.org ##
13807 ## ------------------------------ ##
13808 _ASBOX
13810 sed "s/^/$as_me: WARNING: /" >&2
13812 esac
13813 echo "$as_me:$LINENO: checking for $ac_header" >&5
13814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818 eval "$as_ac_Header=\$ac_header_preproc"
13820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13827 _ACEOF
13831 done
13833 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13834 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13835 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 if test "$cross_compiling" = yes; then
13839 ac_cv_func_realloc_0_nonnull=no
13840 else
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h. */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 #if STDC_HEADERS || HAVE_STDLIB_H
13848 # include <stdlib.h>
13849 #else
13850 char *realloc ();
13851 #endif
13854 main ()
13856 exit (realloc (0, 0) ? 0 : 1);
13858 return 0;
13860 _ACEOF
13861 rm -f conftest$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 (eval $ac_link) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_func_realloc_0_nonnull=yes
13873 else
13874 echo "$as_me: program exited with status $ac_status" >&5
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 ( exit $ac_status )
13879 ac_cv_func_realloc_0_nonnull=no
13881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13884 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13885 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13886 if test $ac_cv_func_realloc_0_nonnull = yes; then
13888 cat >>confdefs.h <<\_ACEOF
13889 #define HAVE_REALLOC 1
13890 _ACEOF
13892 else
13893 cat >>confdefs.h <<\_ACEOF
13894 #define HAVE_REALLOC 0
13895 _ACEOF
13897 case $LIBOBJS in
13898 "realloc.$ac_objext" | \
13899 *" realloc.$ac_objext" | \
13900 "realloc.$ac_objext "* | \
13901 *" realloc.$ac_objext "* ) ;;
13902 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13903 esac
13906 cat >>confdefs.h <<\_ACEOF
13907 #define realloc rpl_realloc
13908 _ACEOF
13947 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
13949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13950 echo "$as_me:$LINENO: checking for $ac_func" >&5
13951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13952 if eval "test \"\${$as_ac_var+set}\" = set"; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13963 #define $ac_func innocuous_$ac_func
13965 /* System header to define __stub macros and hopefully few prototypes,
13966 which can conflict with char $ac_func (); below.
13967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13968 <limits.h> exists even on freestanding compilers. */
13970 #ifdef __STDC__
13971 # include <limits.h>
13972 #else
13973 # include <assert.h>
13974 #endif
13976 #undef $ac_func
13978 /* Override any gcc2 internal prototype to avoid an error. */
13979 #ifdef __cplusplus
13980 extern "C"
13982 #endif
13983 /* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13985 char $ac_func ();
13986 /* The GNU C library defines this for functions which it implements
13987 to always fail with ENOSYS. Some functions are actually named
13988 something starting with __ and the normal name is an alias. */
13989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13990 choke me
13991 #else
13992 char (*f) () = $ac_func;
13993 #endif
13994 #ifdef __cplusplus
13996 #endif
13999 main ()
14001 return f != $ac_func;
14003 return 0;
14005 _ACEOF
14006 rm -f conftest.$ac_objext conftest$ac_exeext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008 (eval $ac_link) 2>conftest.er1
14009 ac_status=$?
14010 grep -v '^ *+' conftest.er1 >conftest.err
14011 rm -f conftest.er1
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -z "$ac_c_werror_flag"
14016 || test ! -s conftest.err'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 eval "$as_ac_var=yes"
14029 else
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14033 eval "$as_ac_var=no"
14035 rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14040 if test `eval echo '${'$as_ac_var'}'` = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14043 _ACEOF
14046 done
14048 #-------------------------------------------------------------------------------
14049 # End of autoscan stuff
14050 #-------------------------------------------------------------------------------
14056 for ac_func in mkdir getrlimit setrlimit getopt_long
14058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14059 echo "$as_me:$LINENO: checking for $ac_func" >&5
14060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14061 if eval "test \"\${$as_ac_var+set}\" = set"; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h. */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14072 #define $ac_func innocuous_$ac_func
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char $ac_func (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
14079 #ifdef __STDC__
14080 # include <limits.h>
14081 #else
14082 # include <assert.h>
14083 #endif
14085 #undef $ac_func
14087 /* Override any gcc2 internal prototype to avoid an error. */
14088 #ifdef __cplusplus
14089 extern "C"
14091 #endif
14092 /* We use char because int might match the return type of a gcc2
14093 builtin and then its argument prototype would still apply. */
14094 char $ac_func ();
14095 /* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
14098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14099 choke me
14100 #else
14101 char (*f) () = $ac_func;
14102 #endif
14103 #ifdef __cplusplus
14105 #endif
14108 main ()
14110 return f != $ac_func;
14112 return 0;
14114 _ACEOF
14115 rm -f conftest.$ac_objext conftest$ac_exeext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14117 (eval $ac_link) 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag"
14125 || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest$ac_exeext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 eval "$as_ac_var=yes"
14138 else
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 eval "$as_ac_var=no"
14144 rm -f conftest.err conftest.$ac_objext \
14145 conftest$ac_exeext conftest.$ac_ext
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14149 if test `eval echo '${'$as_ac_var'}'` = yes; then
14150 cat >>confdefs.h <<_ACEOF
14151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14152 _ACEOF
14155 done
14158 # Check whether --enable-mmap or --disable-mmap was given.
14159 if test "${enable_mmap+set}" = set; then
14160 enableval="$enable_mmap"
14164 if test ${enable_mmap:-no} = yes; then
14167 for ac_header in sys/mman.h
14169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14171 echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14178 else
14179 # Is the header compilable?
14180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14182 cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h. */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 $ac_includes_default
14189 #include <$ac_header>
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193 (eval $ac_compile) 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -z "$ac_c_werror_flag"
14201 || test ! -s conftest.err'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest.$ac_objext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_header_compiler=yes
14214 else
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14218 ac_header_compiler=no
14220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14222 echo "${ECHO_T}$ac_header_compiler" >&6
14224 # Is the header present?
14225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h. */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <$ac_header>
14234 _ACEOF
14235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14237 ac_status=$?
14238 grep -v '^ *+' conftest.er1 >conftest.err
14239 rm -f conftest.er1
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } >/dev/null; then
14243 if test -s conftest.err; then
14244 ac_cpp_err=$ac_c_preproc_warn_flag
14245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14246 else
14247 ac_cpp_err=
14249 else
14250 ac_cpp_err=yes
14252 if test -z "$ac_cpp_err"; then
14253 ac_header_preproc=yes
14254 else
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14258 ac_header_preproc=no
14260 rm -f conftest.err conftest.$ac_ext
14261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14262 echo "${ECHO_T}$ac_header_preproc" >&6
14264 # So? What about this header?
14265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14266 yes:no: )
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14271 ac_header_preproc=yes
14273 no:yes:* )
14274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14287 cat <<\_ASBOX
14288 ## ------------------------------ ##
14289 ## Report this to admin@amule.org ##
14290 ## ------------------------------ ##
14291 _ASBOX
14293 sed "s/^/$as_me: WARNING: /" >&2
14295 esac
14296 echo "$as_me:$LINENO: checking for $ac_header" >&5
14297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301 eval "$as_ac_Header=\$ac_header_preproc"
14303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14308 cat >>confdefs.h <<_ACEOF
14309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14310 _ACEOF
14314 done
14318 for ac_header in stdlib.h unistd.h
14320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14322 echo "$as_me:$LINENO: checking for $ac_header" >&5
14323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14329 else
14330 # Is the header compilable?
14331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 $ac_includes_default
14340 #include <$ac_header>
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag"
14352 || test ! -s conftest.err'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_header_compiler=yes
14365 else
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ac_header_compiler=no
14371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14373 echo "${ECHO_T}$ac_header_compiler" >&6
14375 # Is the header present?
14376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 #include <$ac_header>
14385 _ACEOF
14386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14388 ac_status=$?
14389 grep -v '^ *+' conftest.er1 >conftest.err
14390 rm -f conftest.er1
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } >/dev/null; then
14394 if test -s conftest.err; then
14395 ac_cpp_err=$ac_c_preproc_warn_flag
14396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14397 else
14398 ac_cpp_err=
14400 else
14401 ac_cpp_err=yes
14403 if test -z "$ac_cpp_err"; then
14404 ac_header_preproc=yes
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 ac_header_preproc=no
14411 rm -f conftest.err conftest.$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14413 echo "${ECHO_T}$ac_header_preproc" >&6
14415 # So? What about this header?
14416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14417 yes:no: )
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14422 ac_header_preproc=yes
14424 no:yes:* )
14425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14438 cat <<\_ASBOX
14439 ## ------------------------------ ##
14440 ## Report this to admin@amule.org ##
14441 ## ------------------------------ ##
14442 _ASBOX
14444 sed "s/^/$as_me: WARNING: /" >&2
14446 esac
14447 echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 eval "$as_ac_Header=\$ac_header_preproc"
14454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14459 cat >>confdefs.h <<_ACEOF
14460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14461 _ACEOF
14465 done
14468 for ac_func in getpagesize
14470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14471 echo "$as_me:$LINENO: checking for $ac_func" >&5
14472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14473 if eval "test \"\${$as_ac_var+set}\" = set"; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14484 #define $ac_func innocuous_$ac_func
14486 /* System header to define __stub macros and hopefully few prototypes,
14487 which can conflict with char $ac_func (); below.
14488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14489 <limits.h> exists even on freestanding compilers. */
14491 #ifdef __STDC__
14492 # include <limits.h>
14493 #else
14494 # include <assert.h>
14495 #endif
14497 #undef $ac_func
14499 /* Override any gcc2 internal prototype to avoid an error. */
14500 #ifdef __cplusplus
14501 extern "C"
14503 #endif
14504 /* We use char because int might match the return type of a gcc2
14505 builtin and then its argument prototype would still apply. */
14506 char $ac_func ();
14507 /* The GNU C library defines this for functions which it implements
14508 to always fail with ENOSYS. Some functions are actually named
14509 something starting with __ and the normal name is an alias. */
14510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14511 choke me
14512 #else
14513 char (*f) () = $ac_func;
14514 #endif
14515 #ifdef __cplusplus
14517 #endif
14520 main ()
14522 return f != $ac_func;
14524 return 0;
14526 _ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14529 (eval $ac_link) 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -z "$ac_c_werror_flag"
14537 || test ! -s conftest.err'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest$ac_exeext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 eval "$as_ac_var=yes"
14550 else
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 eval "$as_ac_var=no"
14556 rm -f conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14561 if test `eval echo '${'$as_ac_var'}'` = yes; then
14562 cat >>confdefs.h <<_ACEOF
14563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14564 _ACEOF
14567 done
14569 echo "$as_me:$LINENO: checking for working mmap" >&5
14570 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14571 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 if test "$cross_compiling" = yes; then
14575 ac_cv_func_mmap_fixed_mapped=no
14576 else
14577 cat >conftest.$ac_ext <<_ACEOF
14578 /* confdefs.h. */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 $ac_includes_default
14584 /* malloc might have been renamed as rpl_malloc. */
14585 #undef malloc
14587 /* Thanks to Mike Haertel and Jim Avera for this test.
14588 Here is a matrix of mmap possibilities:
14589 mmap private not fixed
14590 mmap private fixed at somewhere currently unmapped
14591 mmap private fixed at somewhere already mapped
14592 mmap shared not fixed
14593 mmap shared fixed at somewhere currently unmapped
14594 mmap shared fixed at somewhere already mapped
14595 For private mappings, we should verify that changes cannot be read()
14596 back from the file, nor mmap's back from the file at a different
14597 address. (There have been systems where private was not correctly
14598 implemented like the infamous i386 svr4.0, and systems where the
14599 VM page cache was not coherent with the file system buffer cache
14600 like early versions of FreeBSD and possibly contemporary NetBSD.)
14601 For shared mappings, we should conversely verify that changes get
14602 propagated back to all the places they're supposed to be.
14604 Grep wants private fixed already mapped.
14605 The main things grep needs to know about mmap are:
14606 * does it exist and is it safe to write into the mmap'd area
14607 * how to use it (BSD variants) */
14609 #include <fcntl.h>
14610 #include <sys/mman.h>
14612 #if !STDC_HEADERS && !HAVE_STDLIB_H
14613 char *malloc ();
14614 #endif
14616 /* This mess was copied from the GNU getpagesize.h. */
14617 #if !HAVE_GETPAGESIZE
14618 /* Assume that all systems that can run configure have sys/param.h. */
14619 # if !HAVE_SYS_PARAM_H
14620 # define HAVE_SYS_PARAM_H 1
14621 # endif
14623 # ifdef _SC_PAGESIZE
14624 # define getpagesize() sysconf(_SC_PAGESIZE)
14625 # else /* no _SC_PAGESIZE */
14626 # if HAVE_SYS_PARAM_H
14627 # include <sys/param.h>
14628 # ifdef EXEC_PAGESIZE
14629 # define getpagesize() EXEC_PAGESIZE
14630 # else /* no EXEC_PAGESIZE */
14631 # ifdef NBPG
14632 # define getpagesize() NBPG * CLSIZE
14633 # ifndef CLSIZE
14634 # define CLSIZE 1
14635 # endif /* no CLSIZE */
14636 # else /* no NBPG */
14637 # ifdef NBPC
14638 # define getpagesize() NBPC
14639 # else /* no NBPC */
14640 # ifdef PAGESIZE
14641 # define getpagesize() PAGESIZE
14642 # endif /* PAGESIZE */
14643 # endif /* no NBPC */
14644 # endif /* no NBPG */
14645 # endif /* no EXEC_PAGESIZE */
14646 # else /* no HAVE_SYS_PARAM_H */
14647 # define getpagesize() 8192 /* punt totally */
14648 # endif /* no HAVE_SYS_PARAM_H */
14649 # endif /* no _SC_PAGESIZE */
14651 #endif /* no HAVE_GETPAGESIZE */
14654 main ()
14656 char *data, *data2, *data3;
14657 int i, pagesize;
14658 int fd;
14660 pagesize = getpagesize ();
14662 /* First, make a file with some known garbage in it. */
14663 data = (char *) malloc (pagesize);
14664 if (!data)
14665 exit (1);
14666 for (i = 0; i < pagesize; ++i)
14667 *(data + i) = rand ();
14668 umask (0);
14669 fd = creat ("conftest.mmap", 0600);
14670 if (fd < 0)
14671 exit (1);
14672 if (write (fd, data, pagesize) != pagesize)
14673 exit (1);
14674 close (fd);
14676 /* Next, try to mmap the file at a fixed address which already has
14677 something else allocated at it. If we can, also make sure that
14678 we see the same garbage. */
14679 fd = open ("conftest.mmap", O_RDWR);
14680 if (fd < 0)
14681 exit (1);
14682 data2 = (char *) malloc (2 * pagesize);
14683 if (!data2)
14684 exit (1);
14685 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14686 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14688 exit (1);
14689 for (i = 0; i < pagesize; ++i)
14690 if (*(data + i) != *(data2 + i))
14691 exit (1);
14693 /* Finally, make sure that changes to the mapped area do not
14694 percolate back to the file as seen by read(). (This is a bug on
14695 some variants of i386 svr4.0.) */
14696 for (i = 0; i < pagesize; ++i)
14697 *(data2 + i) = *(data2 + i) + 1;
14698 data3 = (char *) malloc (pagesize);
14699 if (!data3)
14700 exit (1);
14701 if (read (fd, data3, pagesize) != pagesize)
14702 exit (1);
14703 for (i = 0; i < pagesize; ++i)
14704 if (*(data + i) != *(data3 + i))
14705 exit (1);
14706 close (fd);
14707 exit (0);
14709 _ACEOF
14710 rm -f conftest$ac_exeext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14712 (eval $ac_link) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_cv_func_mmap_fixed_mapped=yes
14722 else
14723 echo "$as_me: program exited with status $ac_status" >&5
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ( exit $ac_status )
14728 ac_cv_func_mmap_fixed_mapped=no
14730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14733 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14734 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14735 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_MMAP 1
14739 _ACEOF
14742 rm -f conftest.mmap
14745 for ac_func in munmap
14747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14748 echo "$as_me:$LINENO: checking for $ac_func" >&5
14749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14750 if eval "test \"\${$as_ac_var+set}\" = set"; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14761 #define $ac_func innocuous_$ac_func
14763 /* System header to define __stub macros and hopefully few prototypes,
14764 which can conflict with char $ac_func (); below.
14765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14766 <limits.h> exists even on freestanding compilers. */
14768 #ifdef __STDC__
14769 # include <limits.h>
14770 #else
14771 # include <assert.h>
14772 #endif
14774 #undef $ac_func
14776 /* Override any gcc2 internal prototype to avoid an error. */
14777 #ifdef __cplusplus
14778 extern "C"
14780 #endif
14781 /* We use char because int might match the return type of a gcc2
14782 builtin and then its argument prototype would still apply. */
14783 char $ac_func ();
14784 /* The GNU C library defines this for functions which it implements
14785 to always fail with ENOSYS. Some functions are actually named
14786 something starting with __ and the normal name is an alias. */
14787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14788 choke me
14789 #else
14790 char (*f) () = $ac_func;
14791 #endif
14792 #ifdef __cplusplus
14794 #endif
14797 main ()
14799 return f != $ac_func;
14801 return 0;
14803 _ACEOF
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag"
14814 || test ! -s conftest.err'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest$ac_exeext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 eval "$as_ac_var=yes"
14827 else
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 eval "$as_ac_var=no"
14833 rm -f conftest.err conftest.$ac_objext \
14834 conftest$ac_exeext conftest.$ac_ext
14836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14838 if test `eval echo '${'$as_ac_var'}'` = yes; then
14839 cat >>confdefs.h <<_ACEOF
14840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14841 _ACEOF
14844 done
14847 else
14849 # fake the result of the test for munmap() for the gettext macros
14850 ac_cv_func_munmap=no
14856 mule_backup_CPPFLAGS="$CPPFLAGS"
14857 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14858 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14859 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14860 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 $ac_includes_default
14871 main ()
14873 #ifndef strerror_r
14874 char *p = (char *) strerror_r;
14875 #endif
14878 return 0;
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_have_decl_strerror_r=yes
14904 else
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 ac_cv_have_decl_strerror_r=no
14910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14912 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14913 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14914 if test $ac_cv_have_decl_strerror_r = yes; then
14916 cat >>confdefs.h <<_ACEOF
14917 #define HAVE_DECL_STRERROR_R 1
14918 _ACEOF
14921 else
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_DECL_STRERROR_R 0
14924 _ACEOF
14931 for ac_func in strerror_r
14933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14934 echo "$as_me:$LINENO: checking for $ac_func" >&5
14935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14936 if eval "test \"\${$as_ac_var+set}\" = set"; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939 cat >conftest.$ac_ext <<_ACEOF
14940 /* confdefs.h. */
14941 _ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14947 #define $ac_func innocuous_$ac_func
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func (); below.
14951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952 <limits.h> exists even on freestanding compilers. */
14954 #ifdef __STDC__
14955 # include <limits.h>
14956 #else
14957 # include <assert.h>
14958 #endif
14960 #undef $ac_func
14962 /* Override any gcc2 internal prototype to avoid an error. */
14963 #ifdef __cplusplus
14964 extern "C"
14966 #endif
14967 /* We use char because int might match the return type of a gcc2
14968 builtin and then its argument prototype would still apply. */
14969 char $ac_func ();
14970 /* The GNU C library defines this for functions which it implements
14971 to always fail with ENOSYS. Some functions are actually named
14972 something starting with __ and the normal name is an alias. */
14973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14974 choke me
14975 #else
14976 char (*f) () = $ac_func;
14977 #endif
14978 #ifdef __cplusplus
14980 #endif
14983 main ()
14985 return f != $ac_func;
14987 return 0;
14989 _ACEOF
14990 rm -f conftest.$ac_objext conftest$ac_exeext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14992 (eval $ac_link) 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest$ac_exeext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 eval "$as_ac_var=yes"
15013 else
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15017 eval "$as_ac_var=no"
15019 rm -f conftest.err conftest.$ac_objext \
15020 conftest$ac_exeext conftest.$ac_ext
15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15024 if test `eval echo '${'$as_ac_var'}'` = yes; then
15025 cat >>confdefs.h <<_ACEOF
15026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15027 _ACEOF
15030 done
15032 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15033 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
15034 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15038 ac_cv_func_strerror_r_char_p=no
15039 if test $ac_cv_have_decl_strerror_r = yes; then
15040 cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h. */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15048 main ()
15051 char buf[100];
15052 char x = *strerror_r (0, buf, sizeof buf);
15053 char *p = strerror_r (0, buf, sizeof buf);
15056 return 0;
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_func_strerror_r_char_p=yes
15082 else
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15088 else
15089 # strerror_r is not declared. Choose between
15090 # systems that have relatively inaccessible declarations for the
15091 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15092 # former has a strerror_r that returns char*, while the latter
15093 # has a strerror_r that returns `int'.
15094 # This test should segfault on the DEC system.
15095 if test "$cross_compiling" = yes; then
15097 else
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15105 extern char *strerror_r ();
15107 main ()
15109 char buf[100];
15110 char x = *strerror_r (0, buf, sizeof buf);
15111 exit (!isalpha (x));
15113 return 0;
15115 _ACEOF
15116 rm -f conftest$ac_exeext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15118 (eval $ac_link) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_func_strerror_r_char_p=yes
15128 else
15129 echo "$as_me: program exited with status $ac_status" >&5
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15139 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15140 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15141 if test $ac_cv_func_strerror_r_char_p = yes; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define STRERROR_R_CHAR_P 1
15145 _ACEOF
15149 CPPFLAGS="$mule_backup_CPPFLAGS"
15151 # Look for a way to preallocate disk space for files.
15153 echo "$as_me:$LINENO: checking for fallocate" >&5
15154 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15163 #include <linux/falloc.h>
15166 main ()
15169 fallocate(0, 0, 0, 0);
15172 return 0;
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15179 ac_status=$?
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15201 cat >>confdefs.h <<\_ACEOF
15202 #define HAVE_FALLOCATE 1
15203 _ACEOF
15205 echo "$as_me:$LINENO: result: yes" >&5
15206 echo "${ECHO_T}yes" >&6
15208 else
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15213 echo "$as_me:$LINENO: result: no" >&5
15214 echo "${ECHO_T}no" >&6
15217 rm -f conftest.err conftest.$ac_objext \
15218 conftest$ac_exeext conftest.$ac_ext
15221 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15222 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15223 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 #include <sys/sycall.h>
15232 #include <sys/types.h>
15233 #include <unistd.h>
15236 main ()
15239 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15242 return 0;
15245 _ACEOF
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15271 cat >>confdefs.h <<\_ACEOF
15272 #define HAVE_SYS_FALLOCATE 1
15273 _ACEOF
15275 echo "$as_me:$LINENO: result: yes" >&5
15276 echo "${ECHO_T}yes" >&6
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15283 echo "$as_me:$LINENO: result: no" >&5
15284 echo "${ECHO_T}no" >&6
15287 rm -f conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext conftest.$ac_ext
15290 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15291 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15292 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15300 #define _XOPEN_SOURCE 600
15301 #include <stdlib.h>
15302 #ifdef HAVE_FCNTL_H
15303 # include <fcntl.h>
15304 #endif
15307 main ()
15310 posix_fallocate(0, 0, 0);
15313 return 0;
15316 _ACEOF
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>conftest.er1
15320 ac_status=$?
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag"
15327 || test ! -s conftest.err'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest$ac_exeext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15342 cat >>confdefs.h <<\_ACEOF
15343 #define HAVE_POSIX_FALLOCATE 1
15344 _ACEOF
15346 echo "$as_me:$LINENO: result: yes" >&5
15347 echo "${ECHO_T}yes" >&6
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15354 echo "$as_me:$LINENO: result: no" >&5
15355 echo "${ECHO_T}no" >&6
15358 rm -f conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15362 # Checking Native Language Support
15365 MKINSTALLDIRS=
15366 if test -n "$ac_aux_dir"; then
15367 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15369 if test -z "$MKINSTALLDIRS"; then
15370 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15377 # Extract the first word of "msgfmt", so it can be a program name with args.
15378 set dummy msgfmt; ac_word=$2
15379 echo "$as_me:$LINENO: checking for $ac_word" >&5
15380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15381 if test "${ac_cv_path_MSGFMT+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384 case "$MSGFMT" in
15386 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15390 for ac_dir in $PATH; do
15391 test -z "$ac_dir" && ac_dir=.
15392 if test -f $ac_dir/$ac_word; then
15393 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15394 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15395 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15396 break
15399 done
15400 IFS="$ac_save_ifs"
15401 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15403 esac
15405 MSGFMT="$ac_cv_path_MSGFMT"
15406 if test "$MSGFMT" != ":"; then
15407 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15408 echo "${ECHO_T}$MSGFMT" >&6
15409 else
15410 echo "$as_me:$LINENO: result: no" >&5
15411 echo "${ECHO_T}no" >&6
15414 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15415 set dummy gmsgfmt; ac_word=$2
15416 echo "$as_me:$LINENO: checking for $ac_word" >&5
15417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15418 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421 case $GMSGFMT in
15422 [\\/]* | ?:[\\/]*)
15423 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15427 for as_dir in $PATH
15429 IFS=$as_save_IFS
15430 test -z "$as_dir" && as_dir=.
15431 for ac_exec_ext in '' $ac_executable_extensions; do
15432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15433 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15435 break 2
15437 done
15438 done
15440 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15442 esac
15444 GMSGFMT=$ac_cv_path_GMSGFMT
15446 if test -n "$GMSGFMT"; then
15447 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15448 echo "${ECHO_T}$GMSGFMT" >&6
15449 else
15450 echo "$as_me:$LINENO: result: no" >&5
15451 echo "${ECHO_T}no" >&6
15455 # Extract the first word of "xgettext", so it can be a program name with args.
15456 set dummy xgettext; ac_word=$2
15457 echo "$as_me:$LINENO: checking for $ac_word" >&5
15458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15459 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462 case "$XGETTEXT" in
15464 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15468 for ac_dir in $PATH; do
15469 test -z "$ac_dir" && ac_dir=.
15470 if test -f $ac_dir/$ac_word; then
15471 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15472 (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
15473 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15474 break
15477 done
15478 IFS="$ac_save_ifs"
15479 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15481 esac
15483 XGETTEXT="$ac_cv_path_XGETTEXT"
15484 if test "$XGETTEXT" != ":"; then
15485 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15486 echo "${ECHO_T}$XGETTEXT" >&6
15487 else
15488 echo "$as_me:$LINENO: result: no" >&5
15489 echo "${ECHO_T}no" >&6
15492 rm -f messages.po
15494 # Extract the first word of "msgmerge", so it can be a program name with args.
15495 set dummy msgmerge; ac_word=$2
15496 echo "$as_me:$LINENO: checking for $ac_word" >&5
15497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15498 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 case "$MSGMERGE" in
15503 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15507 for ac_dir in $PATH; do
15508 test -z "$ac_dir" && ac_dir=.
15509 if test -f $ac_dir/$ac_word; then
15510 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15511 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15512 break
15515 done
15516 IFS="$ac_save_ifs"
15517 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15519 esac
15521 MSGMERGE="$ac_cv_path_MSGMERGE"
15522 if test "$MSGMERGE" != ":"; then
15523 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15524 echo "${ECHO_T}$MSGMERGE" >&6
15525 else
15526 echo "$as_me:$LINENO: result: no" >&5
15527 echo "${ECHO_T}no" >&6
15531 if test "$GMSGFMT" != ":"; then
15532 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15533 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15535 else
15536 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15537 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15538 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15539 GMSGFMT=":"
15543 if test "$XGETTEXT" != ":"; then
15544 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15545 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15547 else
15548 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15549 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15550 XGETTEXT=":"
15552 rm -f messages.po
15555 ac_config_commands="$ac_config_commands default-1"
15558 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15559 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15560 if test "${ac_cv_search_strerror+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 ac_func_search_save_LIBS=$LIBS
15564 ac_cv_search_strerror=no
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any gcc2 internal prototype to avoid an error. */
15573 #ifdef __cplusplus
15574 extern "C"
15575 #endif
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15578 char strerror ();
15580 main ()
15582 strerror ();
15584 return 0;
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -z "$ac_c_werror_flag"
15597 || test ! -s conftest.err'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try='test -s conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_search_strerror="none required"
15610 else
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15615 rm -f conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617 if test "$ac_cv_search_strerror" = no; then
15618 for ac_lib in cposix; do
15619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any gcc2 internal prototype to avoid an error. */
15628 #ifdef __cplusplus
15629 extern "C"
15630 #endif
15631 /* We use char because int might match the return type of a gcc2
15632 builtin and then its argument prototype would still apply. */
15633 char strerror ();
15635 main ()
15637 strerror ();
15639 return 0;
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag"
15652 || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest$ac_exeext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_search_strerror="-l$ac_lib"
15665 break
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15671 rm -f conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15673 done
15675 LIBS=$ac_func_search_save_LIBS
15677 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15678 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15679 if test "$ac_cv_search_strerror" != no; then
15680 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15685 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15686 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15687 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 else
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 #include <features.h>
15698 #ifdef __GNU_LIBRARY__
15699 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15700 Lucky GNU user
15701 #endif
15702 #endif
15704 _ACEOF
15705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15706 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15707 ac_cv_gnu_library_2_1=yes
15708 else
15709 ac_cv_gnu_library_2_1=no
15711 rm -f conftest*
15716 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15717 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15719 GLIBC21="$ac_cv_gnu_library_2_1"
15724 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15725 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15726 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15730 if test "$cross_compiling" = yes; then
15732 # Guess based on the CPU.
15733 case "$host_cpu" in
15734 alpha* | i3456786 | m68k | s390*)
15735 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15737 gt_cv_int_divbyzero_sigfpe="guessing no";;
15738 esac
15740 else
15741 cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h. */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15748 #include <stdlib.h>
15749 #include <signal.h>
15751 static void
15752 #ifdef __cplusplus
15753 sigfpe_handler (int sig)
15754 #else
15755 sigfpe_handler (sig) int sig;
15756 #endif
15758 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15759 exit (sig != SIGFPE);
15762 int x = 1;
15763 int y = 0;
15764 int z;
15765 int nan;
15767 int main ()
15769 signal (SIGFPE, sigfpe_handler);
15770 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15771 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15772 signal (SIGTRAP, sigfpe_handler);
15773 #endif
15774 /* Linux/SPARC yields signal SIGILL. */
15775 #if defined (__sparc__) && defined (__linux__)
15776 signal (SIGILL, sigfpe_handler);
15777 #endif
15779 z = x / y;
15780 nan = y / y;
15781 exit (1);
15784 _ACEOF
15785 rm -f conftest$ac_exeext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15787 (eval $ac_link) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 gt_cv_int_divbyzero_sigfpe=yes
15797 else
15798 echo "$as_me: program exited with status $ac_status" >&5
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ( exit $ac_status )
15803 gt_cv_int_divbyzero_sigfpe=no
15805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15809 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15810 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15811 case "$gt_cv_int_divbyzero_sigfpe" in
15812 *yes) value=1;;
15813 *) value=0;;
15814 esac
15816 cat >>confdefs.h <<_ACEOF
15817 #define INTDIV0_RAISES_SIGFPE $value
15818 _ACEOF
15822 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15823 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15824 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 #include <sys/types.h>
15834 #include <inttypes.h>
15836 main ()
15838 uintmax_t i = (uintmax_t) -1;
15840 return 0;
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -z "$ac_c_werror_flag"
15853 || test ! -s conftest.err'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 jm_ac_cv_header_inttypes_h=yes
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 jm_ac_cv_header_inttypes_h=no
15872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15874 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15875 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15876 if test $jm_ac_cv_header_inttypes_h = yes; then
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15880 _ACEOF
15885 echo "$as_me:$LINENO: checking for stdint.h" >&5
15886 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15887 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h. */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <sys/types.h>
15897 #include <stdint.h>
15899 main ()
15901 uintmax_t i = (uintmax_t) -1;
15903 return 0;
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag"
15916 || test ! -s conftest.err'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 jm_ac_cv_header_stdint_h=yes
15929 else
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 jm_ac_cv_header_stdint_h=no
15935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15937 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15938 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15939 if test $jm_ac_cv_header_stdint_h = yes; then
15941 cat >>confdefs.h <<_ACEOF
15942 #define HAVE_STDINT_H_WITH_UINTMAX 1
15943 _ACEOF
15948 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15949 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15950 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 unsigned long long ull = 1; int i = 63;
15961 main ()
15963 unsigned long long ullmax = (unsigned long long) -1;
15964 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15966 return 0;
15968 _ACEOF
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15971 (eval $ac_link) 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
15978 { ac_try='test -z "$ac_c_werror_flag"
15979 || test ! -s conftest.err'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest$ac_exeext'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 ac_cv_type_unsigned_long_long=yes
15992 else
15993 echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15996 ac_cv_type_unsigned_long_long=no
15998 rm -f conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16001 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16002 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16003 if test $ac_cv_type_unsigned_long_long = yes; then
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_UNSIGNED_LONG_LONG 1
16007 _ACEOF
16014 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
16016 test $ac_cv_type_unsigned_long_long = yes \
16017 && ac_type='unsigned long long' \
16018 || ac_type='unsigned long'
16020 cat >>confdefs.h <<_ACEOF
16021 #define uintmax_t $ac_type
16022 _ACEOF
16027 echo "$as_me:$LINENO: checking for inttypes.h" >&5
16028 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16029 if test "${gt_cv_header_inttypes_h+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <sys/types.h>
16040 #include <inttypes.h>
16042 main ()
16046 return 0;
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>conftest.er1
16052 ac_status=$?
16053 grep -v '^ *+' conftest.er1 >conftest.err
16054 rm -f conftest.er1
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -z "$ac_c_werror_flag"
16059 || test ! -s conftest.err'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; } &&
16065 { ac_try='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 gt_cv_header_inttypes_h=yes
16072 else
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 gt_cv_header_inttypes_h=no
16078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16081 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16082 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16083 if test $gt_cv_header_inttypes_h = yes; then
16085 cat >>confdefs.h <<_ACEOF
16086 #define HAVE_INTTYPES_H 1
16087 _ACEOF
16093 if test $gt_cv_header_inttypes_h = yes; then
16094 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16095 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16096 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16100 cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h. */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #include <inttypes.h>
16107 #ifdef PRId32
16108 char *p = PRId32;
16109 #endif
16112 main ()
16116 return 0;
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 gt_cv_inttypes_pri_broken=no
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 gt_cv_inttypes_pri_broken=yes
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16152 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16154 if test "$gt_cv_inttypes_pri_broken" = yes; then
16156 cat >>confdefs.h <<_ACEOF
16157 #define PRI_MACROS_BROKEN 1
16158 _ACEOF
16163 if test "X$prefix" = "XNONE"; then
16164 acl_final_prefix="$ac_default_prefix"
16165 else
16166 acl_final_prefix="$prefix"
16168 if test "X$exec_prefix" = "XNONE"; then
16169 acl_final_exec_prefix='${prefix}'
16170 else
16171 acl_final_exec_prefix="$exec_prefix"
16173 acl_save_prefix="$prefix"
16174 prefix="$acl_final_prefix"
16175 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16176 prefix="$acl_save_prefix"
16179 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16180 if test "${with_gnu_ld+set}" = set; then
16181 withval="$with_gnu_ld"
16182 test "$withval" = no || with_gnu_ld=yes
16183 else
16184 with_gnu_ld=no
16186 ac_prog=ld
16187 if test "$GCC" = yes; then
16188 # Check if gcc -print-prog-name=ld gives a path.
16189 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16190 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16191 case $host in
16192 *-*-mingw*)
16193 # gcc leaves a trailing carriage return which upsets mingw
16194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16197 esac
16198 case $ac_prog in
16199 # Accept absolute paths.
16200 [\\/]* | [A-Za-z]:[\\/]*)
16201 re_direlt='/[^/][^/]*/\.\./'
16202 # Canonicalize the path of ld
16203 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16204 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16205 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16206 done
16207 test -z "$LD" && LD="$ac_prog"
16210 # If it fails, then pretend we aren't using GCC.
16211 ac_prog=ld
16214 # If it is relative, then search for the first ld in PATH.
16215 with_gnu_ld=unknown
16217 esac
16218 elif test "$with_gnu_ld" = yes; then
16219 echo "$as_me:$LINENO: checking for GNU ld" >&5
16220 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16221 else
16222 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16223 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16225 if test "${acl_cv_path_LD+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228 if test -z "$LD"; then
16229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16230 for ac_dir in $PATH; do
16231 test -z "$ac_dir" && ac_dir=.
16232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16233 acl_cv_path_LD="$ac_dir/$ac_prog"
16234 # Check to see if the program is GNU ld. I'd rather use --version,
16235 # but apparently some GNU ld's only accept -v.
16236 # Break only if it was the GNU/non-GNU ld that we prefer.
16237 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16238 test "$with_gnu_ld" != no && break
16239 else
16240 test "$with_gnu_ld" != yes && break
16243 done
16244 IFS="$ac_save_ifs"
16245 else
16246 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16250 LD="$acl_cv_path_LD"
16251 if test -n "$LD"; then
16252 echo "$as_me:$LINENO: result: $LD" >&5
16253 echo "${ECHO_T}$LD" >&6
16254 else
16255 echo "$as_me:$LINENO: result: no" >&5
16256 echo "${ECHO_T}no" >&6
16258 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16259 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16260 { (exit 1); exit 1; }; }
16261 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16262 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16263 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16267 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16268 acl_cv_prog_gnu_ld=yes
16269 else
16270 acl_cv_prog_gnu_ld=no
16273 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16274 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16275 with_gnu_ld=$acl_cv_prog_gnu_ld
16279 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16280 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16281 if test "${acl_cv_rpath+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16285 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16286 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16287 . ./conftest.sh
16288 rm -f ./conftest.sh
16289 acl_cv_rpath=done
16292 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16293 echo "${ECHO_T}$acl_cv_rpath" >&6
16294 wl="$acl_cv_wl"
16295 libext="$acl_cv_libext"
16296 shlibext="$acl_cv_shlibext"
16297 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16298 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16299 hardcode_direct="$acl_cv_hardcode_direct"
16300 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16301 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16302 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16303 # Check whether --enable-rpath or --disable-rpath was given.
16304 if test "${enable_rpath+set}" = set; then
16305 enableval="$enable_rpath"
16307 else
16308 enable_rpath=yes
16317 use_additional=yes
16319 acl_save_prefix="$prefix"
16320 prefix="$acl_final_prefix"
16321 acl_save_exec_prefix="$exec_prefix"
16322 exec_prefix="$acl_final_exec_prefix"
16324 eval additional_includedir=\"$includedir\"
16325 eval additional_libdir=\"$libdir\"
16327 exec_prefix="$acl_save_exec_prefix"
16328 prefix="$acl_save_prefix"
16331 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16332 if test "${with_libiconv_prefix+set}" = set; then
16333 withval="$with_libiconv_prefix"
16335 if test "X$withval" = "Xno"; then
16336 use_additional=no
16337 else
16338 if test "X$withval" = "X"; then
16340 acl_save_prefix="$prefix"
16341 prefix="$acl_final_prefix"
16342 acl_save_exec_prefix="$exec_prefix"
16343 exec_prefix="$acl_final_exec_prefix"
16345 eval additional_includedir=\"$includedir\"
16346 eval additional_libdir=\"$libdir\"
16348 exec_prefix="$acl_save_exec_prefix"
16349 prefix="$acl_save_prefix"
16351 else
16352 additional_includedir="$withval/include"
16353 additional_libdir="$withval/lib"
16358 LIBICONV=
16359 LTLIBICONV=
16360 INCICONV=
16361 rpathdirs=
16362 ltrpathdirs=
16363 names_already_handled=
16364 names_next_round='iconv '
16365 while test -n "$names_next_round"; do
16366 names_this_round="$names_next_round"
16367 names_next_round=
16368 for name in $names_this_round; do
16369 already_handled=
16370 for n in $names_already_handled; do
16371 if test "$n" = "$name"; then
16372 already_handled=yes
16373 break
16375 done
16376 if test -z "$already_handled"; then
16377 names_already_handled="$names_already_handled $name"
16378 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16379 eval value=\"\$HAVE_LIB$uppername\"
16380 if test -n "$value"; then
16381 if test "$value" = yes; then
16382 eval value=\"\$LIB$uppername\"
16383 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16384 eval value=\"\$LTLIB$uppername\"
16385 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16386 else
16389 else
16390 found_dir=
16391 found_la=
16392 found_so=
16393 found_a=
16394 if test $use_additional = yes; then
16395 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16396 found_dir="$additional_libdir"
16397 found_so="$additional_libdir/lib$name.$shlibext"
16398 if test -f "$additional_libdir/lib$name.la"; then
16399 found_la="$additional_libdir/lib$name.la"
16401 else
16402 if test -f "$additional_libdir/lib$name.$libext"; then
16403 found_dir="$additional_libdir"
16404 found_a="$additional_libdir/lib$name.$libext"
16405 if test -f "$additional_libdir/lib$name.la"; then
16406 found_la="$additional_libdir/lib$name.la"
16411 if test "X$found_dir" = "X"; then
16412 for x in $LDFLAGS $LTLIBICONV; do
16414 acl_save_prefix="$prefix"
16415 prefix="$acl_final_prefix"
16416 acl_save_exec_prefix="$exec_prefix"
16417 exec_prefix="$acl_final_exec_prefix"
16418 eval x=\"$x\"
16419 exec_prefix="$acl_save_exec_prefix"
16420 prefix="$acl_save_prefix"
16422 case "$x" in
16423 -L*)
16424 dir=`echo "X$x" | sed -e 's/^X-L//'`
16425 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16426 found_dir="$dir"
16427 found_so="$dir/lib$name.$shlibext"
16428 if test -f "$dir/lib$name.la"; then
16429 found_la="$dir/lib$name.la"
16431 else
16432 if test -f "$dir/lib$name.$libext"; then
16433 found_dir="$dir"
16434 found_a="$dir/lib$name.$libext"
16435 if test -f "$dir/lib$name.la"; then
16436 found_la="$dir/lib$name.la"
16441 esac
16442 if test "X$found_dir" != "X"; then
16443 break
16445 done
16447 if test "X$found_dir" != "X"; then
16448 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16449 if test "X$found_so" != "X"; then
16450 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16452 else
16453 haveit=
16454 for x in $ltrpathdirs; do
16455 if test "X$x" = "X$found_dir"; then
16456 haveit=yes
16457 break
16459 done
16460 if test -z "$haveit"; then
16461 ltrpathdirs="$ltrpathdirs $found_dir"
16463 if test "$hardcode_direct" = yes; then
16464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16465 else
16466 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16468 haveit=
16469 for x in $rpathdirs; do
16470 if test "X$x" = "X$found_dir"; then
16471 haveit=yes
16472 break
16474 done
16475 if test -z "$haveit"; then
16476 rpathdirs="$rpathdirs $found_dir"
16478 else
16479 haveit=
16480 for x in $LDFLAGS $LIBICONV; do
16482 acl_save_prefix="$prefix"
16483 prefix="$acl_final_prefix"
16484 acl_save_exec_prefix="$exec_prefix"
16485 exec_prefix="$acl_final_exec_prefix"
16486 eval x=\"$x\"
16487 exec_prefix="$acl_save_exec_prefix"
16488 prefix="$acl_save_prefix"
16490 if test "X$x" = "X-L$found_dir"; then
16491 haveit=yes
16492 break
16494 done
16495 if test -z "$haveit"; then
16496 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16498 if test "$hardcode_minus_L" != no; then
16499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16500 else
16501 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16506 else
16507 if test "X$found_a" != "X"; then
16508 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16509 else
16510 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16513 additional_includedir=
16514 case "$found_dir" in
16515 */lib | */lib/)
16516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16517 additional_includedir="$basedir/include"
16519 esac
16520 if test "X$additional_includedir" != "X"; then
16521 if test "X$additional_includedir" != "X/usr/include"; then
16522 haveit=
16523 if test "X$additional_includedir" = "X/usr/local/include"; then
16524 if test -n "$GCC"; then
16525 case $host_os in
16526 linux*) haveit=yes;;
16527 esac
16530 if test -z "$haveit"; then
16531 for x in $CPPFLAGS $INCICONV; do
16533 acl_save_prefix="$prefix"
16534 prefix="$acl_final_prefix"
16535 acl_save_exec_prefix="$exec_prefix"
16536 exec_prefix="$acl_final_exec_prefix"
16537 eval x=\"$x\"
16538 exec_prefix="$acl_save_exec_prefix"
16539 prefix="$acl_save_prefix"
16541 if test "X$x" = "X-I$additional_includedir"; then
16542 haveit=yes
16543 break
16545 done
16546 if test -z "$haveit"; then
16547 if test -d "$additional_includedir"; then
16548 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16554 if test -n "$found_la"; then
16555 save_libdir="$libdir"
16556 case "$found_la" in
16557 */* | *\\*) . "$found_la" ;;
16558 *) . "./$found_la" ;;
16559 esac
16560 libdir="$save_libdir"
16561 for dep in $dependency_libs; do
16562 case "$dep" in
16563 -L*)
16564 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16565 if test "X$additional_libdir" != "X/usr/lib"; then
16566 haveit=
16567 if test "X$additional_libdir" = "X/usr/local/lib"; then
16568 if test -n "$GCC"; then
16569 case $host_os in
16570 linux*) haveit=yes;;
16571 esac
16574 if test -z "$haveit"; then
16575 haveit=
16576 for x in $LDFLAGS $LIBICONV; do
16578 acl_save_prefix="$prefix"
16579 prefix="$acl_final_prefix"
16580 acl_save_exec_prefix="$exec_prefix"
16581 exec_prefix="$acl_final_exec_prefix"
16582 eval x=\"$x\"
16583 exec_prefix="$acl_save_exec_prefix"
16584 prefix="$acl_save_prefix"
16586 if test "X$x" = "X-L$additional_libdir"; then
16587 haveit=yes
16588 break
16590 done
16591 if test -z "$haveit"; then
16592 if test -d "$additional_libdir"; then
16593 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16596 haveit=
16597 for x in $LDFLAGS $LTLIBICONV; do
16599 acl_save_prefix="$prefix"
16600 prefix="$acl_final_prefix"
16601 acl_save_exec_prefix="$exec_prefix"
16602 exec_prefix="$acl_final_exec_prefix"
16603 eval x=\"$x\"
16604 exec_prefix="$acl_save_exec_prefix"
16605 prefix="$acl_save_prefix"
16607 if test "X$x" = "X-L$additional_libdir"; then
16608 haveit=yes
16609 break
16611 done
16612 if test -z "$haveit"; then
16613 if test -d "$additional_libdir"; then
16614 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16620 -R*)
16621 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16622 if test "$enable_rpath" != no; then
16623 haveit=
16624 for x in $rpathdirs; do
16625 if test "X$x" = "X$dir"; then
16626 haveit=yes
16627 break
16629 done
16630 if test -z "$haveit"; then
16631 rpathdirs="$rpathdirs $dir"
16633 haveit=
16634 for x in $ltrpathdirs; do
16635 if test "X$x" = "X$dir"; then
16636 haveit=yes
16637 break
16639 done
16640 if test -z "$haveit"; then
16641 ltrpathdirs="$ltrpathdirs $dir"
16645 -l*)
16646 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16648 *.la)
16649 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16652 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16655 esac
16656 done
16658 else
16659 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16660 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16664 done
16665 done
16666 if test "X$rpathdirs" != "X"; then
16667 if test -n "$hardcode_libdir_separator"; then
16668 alldirs=
16669 for found_dir in $rpathdirs; do
16670 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16671 done
16672 acl_save_libdir="$libdir"
16673 libdir="$alldirs"
16674 eval flag=\"$hardcode_libdir_flag_spec\"
16675 libdir="$acl_save_libdir"
16676 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16677 else
16678 for found_dir in $rpathdirs; do
16679 acl_save_libdir="$libdir"
16680 libdir="$found_dir"
16681 eval flag=\"$hardcode_libdir_flag_spec\"
16682 libdir="$acl_save_libdir"
16683 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16684 done
16687 if test "X$ltrpathdirs" != "X"; then
16688 for found_dir in $ltrpathdirs; do
16689 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16690 done
16706 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16707 stdlib.h string.h unistd.h sys/param.h
16709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16711 echo "$as_me:$LINENO: checking for $ac_header" >&5
16712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16718 else
16719 # Is the header compilable?
16720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16729 #include <$ac_header>
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16733 (eval $ac_compile) 2>conftest.er1
16734 ac_status=$?
16735 grep -v '^ *+' conftest.er1 >conftest.err
16736 rm -f conftest.er1
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag"
16741 || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try='test -s conftest.$ac_objext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_header_compiler=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_compiler=no
16760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16762 echo "${ECHO_T}$ac_header_compiler" >&6
16764 # Is the header present?
16765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <$ac_header>
16774 _ACEOF
16775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } >/dev/null; then
16783 if test -s conftest.err; then
16784 ac_cpp_err=$ac_c_preproc_warn_flag
16785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16786 else
16787 ac_cpp_err=
16789 else
16790 ac_cpp_err=yes
16792 if test -z "$ac_cpp_err"; then
16793 ac_header_preproc=yes
16794 else
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16798 ac_header_preproc=no
16800 rm -f conftest.err conftest.$ac_ext
16801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16802 echo "${ECHO_T}$ac_header_preproc" >&6
16804 # So? What about this header?
16805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16806 yes:no: )
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16811 ac_header_preproc=yes
16813 no:yes:* )
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16827 cat <<\_ASBOX
16828 ## ------------------------------ ##
16829 ## Report this to admin@amule.org ##
16830 ## ------------------------------ ##
16831 _ASBOX
16833 sed "s/^/$as_me: WARNING: /" >&2
16835 esac
16836 echo "$as_me:$LINENO: checking for $ac_header" >&5
16837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841 eval "$as_ac_Header=\$ac_header_preproc"
16843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16848 cat >>confdefs.h <<_ACEOF
16849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16850 _ACEOF
16854 done
16877 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16878 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16879 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16882 echo "$as_me:$LINENO: checking for $ac_func" >&5
16883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16884 if eval "test \"\${$as_ac_var+set}\" = set"; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887 cat >conftest.$ac_ext <<_ACEOF
16888 /* confdefs.h. */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16895 #define $ac_func innocuous_$ac_func
16897 /* System header to define __stub macros and hopefully few prototypes,
16898 which can conflict with char $ac_func (); below.
16899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 <limits.h> exists even on freestanding compilers. */
16902 #ifdef __STDC__
16903 # include <limits.h>
16904 #else
16905 # include <assert.h>
16906 #endif
16908 #undef $ac_func
16910 /* Override any gcc2 internal prototype to avoid an error. */
16911 #ifdef __cplusplus
16912 extern "C"
16914 #endif
16915 /* We use char because int might match the return type of a gcc2
16916 builtin and then its argument prototype would still apply. */
16917 char $ac_func ();
16918 /* The GNU C library defines this for functions which it implements
16919 to always fail with ENOSYS. Some functions are actually named
16920 something starting with __ and the normal name is an alias. */
16921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16922 choke me
16923 #else
16924 char (*f) () = $ac_func;
16925 #endif
16926 #ifdef __cplusplus
16928 #endif
16931 main ()
16933 return f != $ac_func;
16935 return 0;
16937 _ACEOF
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>conftest.er1
16941 ac_status=$?
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
16947 { ac_try='test -z "$ac_c_werror_flag"
16948 || test ! -s conftest.err'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest$ac_exeext'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 eval "$as_ac_var=yes"
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 eval "$as_ac_var=no"
16967 rm -f conftest.err conftest.$ac_objext \
16968 conftest$ac_exeext conftest.$ac_ext
16970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16972 if test `eval echo '${'$as_ac_var'}'` = yes; then
16973 cat >>confdefs.h <<_ACEOF
16974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16975 _ACEOF
16978 done
16986 am_save_CPPFLAGS="$CPPFLAGS"
16988 for element in $INCICONV; do
16989 haveit=
16990 for x in $CPPFLAGS; do
16992 acl_save_prefix="$prefix"
16993 prefix="$acl_final_prefix"
16994 acl_save_exec_prefix="$exec_prefix"
16995 exec_prefix="$acl_final_exec_prefix"
16996 eval x=\"$x\"
16997 exec_prefix="$acl_save_exec_prefix"
16998 prefix="$acl_save_prefix"
17000 if test "X$x" = "X$element"; then
17001 haveit=yes
17002 break
17004 done
17005 if test -z "$haveit"; then
17006 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17008 done
17011 echo "$as_me:$LINENO: checking for iconv" >&5
17012 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
17013 if test "${am_cv_func_iconv+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17017 am_cv_func_iconv="no, consider installing GNU libiconv"
17018 am_cv_lib_iconv=no
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h. */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #include <stdlib.h>
17026 #include <iconv.h>
17028 main ()
17030 iconv_t cd = iconv_open("","");
17031 iconv(cd,NULL,NULL,NULL,NULL);
17032 iconv_close(cd);
17034 return 0;
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>conftest.er1
17040 ac_status=$?
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag"
17047 || test ! -s conftest.err'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest$ac_exeext'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 am_cv_func_iconv=yes
17060 else
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17065 rm -f conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067 if test "$am_cv_func_iconv" != yes; then
17068 am_save_LIBS="$LIBS"
17069 LIBS="$LIBS $LIBICONV"
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 #include <stdlib.h>
17077 #include <iconv.h>
17079 main ()
17081 iconv_t cd = iconv_open("","");
17082 iconv(cd,NULL,NULL,NULL,NULL);
17083 iconv_close(cd);
17085 return 0;
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17090 (eval $ac_link) 2>conftest.er1
17091 ac_status=$?
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag"
17098 || test ! -s conftest.err'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 am_cv_lib_iconv=yes
17111 am_cv_func_iconv=yes
17112 else
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17117 rm -f conftest.err conftest.$ac_objext \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS="$am_save_LIBS"
17123 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17124 echo "${ECHO_T}$am_cv_func_iconv" >&6
17125 if test "$am_cv_func_iconv" = yes; then
17127 cat >>confdefs.h <<\_ACEOF
17128 #define HAVE_ICONV 1
17129 _ACEOF
17132 if test "$am_cv_lib_iconv" = yes; then
17133 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17134 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17135 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17136 echo "${ECHO_T}$LIBICONV" >&6
17137 else
17138 CPPFLAGS="$am_save_CPPFLAGS"
17139 LIBICONV=
17140 LTLIBICONV=
17145 if test "$am_cv_func_iconv" = yes; then
17146 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17147 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17148 if test "${am_cv_proto_iconv+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17159 #include <stdlib.h>
17160 #include <iconv.h>
17161 extern
17162 #ifdef __cplusplus
17164 #endif
17165 #if defined(__STDC__) || defined(__cplusplus)
17166 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17167 #else
17168 size_t iconv();
17169 #endif
17172 main ()
17176 return 0;
17178 _ACEOF
17179 rm -f conftest.$ac_objext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181 (eval $ac_compile) 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -z "$ac_c_werror_flag"
17189 || test ! -s conftest.err'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; } &&
17195 { ac_try='test -s conftest.$ac_objext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 am_cv_proto_iconv_arg1=""
17202 else
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 am_cv_proto_iconv_arg1="const"
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209 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);"
17212 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17213 echo "$as_me:$LINENO: result: ${ac_t:-
17214 }$am_cv_proto_iconv" >&5
17215 echo "${ECHO_T}${ac_t:-
17216 }$am_cv_proto_iconv" >&6
17218 cat >>confdefs.h <<_ACEOF
17219 #define ICONV_CONST $am_cv_proto_iconv_arg1
17220 _ACEOF
17225 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17226 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17227 if test "${am_cv_langinfo_codeset+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h. */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <langinfo.h>
17238 main ()
17240 char* cs = nl_langinfo(CODESET);
17242 return 0;
17244 _ACEOF
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17247 (eval $ac_link) 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest$ac_exeext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 am_cv_langinfo_codeset=yes
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 am_cv_langinfo_codeset=no
17274 rm -f conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17278 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17279 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17280 if test $am_cv_langinfo_codeset = yes; then
17282 cat >>confdefs.h <<\_ACEOF
17283 #define HAVE_LANGINFO_CODESET 1
17284 _ACEOF
17288 if test $ac_cv_header_locale_h = yes; then
17290 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17291 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17292 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295 cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 #include <locale.h>
17303 main ()
17305 return LC_MESSAGES
17307 return 0;
17309 _ACEOF
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17312 (eval $ac_link) 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } &&
17319 { ac_try='test -z "$ac_c_werror_flag"
17320 || test ! -s conftest.err'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 am_cv_val_LC_MESSAGES=yes
17333 else
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 am_cv_val_LC_MESSAGES=no
17339 rm -f conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17342 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17343 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17344 if test $am_cv_val_LC_MESSAGES = yes; then
17346 cat >>confdefs.h <<\_ACEOF
17347 #define HAVE_LC_MESSAGES 1
17348 _ACEOF
17354 for ac_prog in bison
17356 # Extract the first word of "$ac_prog", so it can be a program name with args.
17357 set dummy $ac_prog; ac_word=$2
17358 echo "$as_me:$LINENO: checking for $ac_word" >&5
17359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17360 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363 if test -n "$INTLBISON"; then
17364 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17365 else
17366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17367 for as_dir in $PATH
17369 IFS=$as_save_IFS
17370 test -z "$as_dir" && as_dir=.
17371 for ac_exec_ext in '' $ac_executable_extensions; do
17372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17373 ac_cv_prog_INTLBISON="$ac_prog"
17374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17375 break 2
17377 done
17378 done
17382 INTLBISON=$ac_cv_prog_INTLBISON
17383 if test -n "$INTLBISON"; then
17384 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17385 echo "${ECHO_T}$INTLBISON" >&6
17386 else
17387 echo "$as_me:$LINENO: result: no" >&5
17388 echo "${ECHO_T}no" >&6
17391 test -n "$INTLBISON" && break
17392 done
17394 if test -z "$INTLBISON"; then
17395 ac_verc_fail=yes
17396 else
17397 echo "$as_me:$LINENO: checking version of bison" >&5
17398 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17399 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17400 case $ac_prog_version in
17401 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17402 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17403 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17404 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17405 esac
17406 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17407 echo "${ECHO_T}$ac_prog_version" >&6
17409 if test $ac_verc_fail = yes; then
17410 INTLBISON=:
17415 # Check whether --with-language or --without-language was given.
17416 if test "${with_language+set}" = set; then
17417 withval="$with_language"
17418 if test "$withval" = "all"; then
17419 LINGUAS='%UNSET%'
17420 else
17421 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17440 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17441 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17442 # Check whether --enable-nls or --disable-nls was given.
17443 if test "${enable_nls+set}" = set; then
17444 enableval="$enable_nls"
17445 USE_NLS=$enableval
17446 else
17447 USE_NLS=yes
17449 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17450 echo "${ECHO_T}$USE_NLS" >&6
17454 BUILD_INCLUDED_LIBINTL=no
17455 USE_INCLUDED_LIBINTL=no
17457 LIBINTL=
17458 LTLIBINTL=
17459 POSUB=
17461 if test "$USE_NLS" = "yes"; then
17462 gt_use_preinstalled_gnugettext=no
17464 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17465 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17467 # Check whether --with-included-gettext or --without-included-gettext was given.
17468 if test "${with_included_gettext+set}" = set; then
17469 withval="$with_included_gettext"
17470 nls_cv_force_use_gnu_gettext=$withval
17471 else
17472 nls_cv_force_use_gnu_gettext=no
17474 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17475 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17477 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17478 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17485 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17486 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17487 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 #include <libintl.h>
17497 extern int _nl_msg_cat_cntr;
17498 extern int *_nl_domain_bindings;
17500 main ()
17502 bindtextdomain ("", "");
17503 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17505 return 0;
17507 _ACEOF
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest$ac_exeext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 gt_cv_func_gnugettext2_libc=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 gt_cv_func_gnugettext2_libc=no
17537 rm -f conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
17540 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17541 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17543 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17547 use_additional=yes
17549 acl_save_prefix="$prefix"
17550 prefix="$acl_final_prefix"
17551 acl_save_exec_prefix="$exec_prefix"
17552 exec_prefix="$acl_final_exec_prefix"
17554 eval additional_includedir=\"$includedir\"
17555 eval additional_libdir=\"$libdir\"
17557 exec_prefix="$acl_save_exec_prefix"
17558 prefix="$acl_save_prefix"
17561 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17562 if test "${with_libintl_prefix+set}" = set; then
17563 withval="$with_libintl_prefix"
17565 if test "X$withval" = "Xno"; then
17566 use_additional=no
17567 else
17568 if test "X$withval" = "X"; then
17570 acl_save_prefix="$prefix"
17571 prefix="$acl_final_prefix"
17572 acl_save_exec_prefix="$exec_prefix"
17573 exec_prefix="$acl_final_exec_prefix"
17575 eval additional_includedir=\"$includedir\"
17576 eval additional_libdir=\"$libdir\"
17578 exec_prefix="$acl_save_exec_prefix"
17579 prefix="$acl_save_prefix"
17581 else
17582 additional_includedir="$withval/include"
17583 additional_libdir="$withval/lib"
17588 LIBINTL=
17589 LTLIBINTL=
17590 INCINTL=
17591 rpathdirs=
17592 ltrpathdirs=
17593 names_already_handled=
17594 names_next_round='intl '
17595 while test -n "$names_next_round"; do
17596 names_this_round="$names_next_round"
17597 names_next_round=
17598 for name in $names_this_round; do
17599 already_handled=
17600 for n in $names_already_handled; do
17601 if test "$n" = "$name"; then
17602 already_handled=yes
17603 break
17605 done
17606 if test -z "$already_handled"; then
17607 names_already_handled="$names_already_handled $name"
17608 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17609 eval value=\"\$HAVE_LIB$uppername\"
17610 if test -n "$value"; then
17611 if test "$value" = yes; then
17612 eval value=\"\$LIB$uppername\"
17613 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17614 eval value=\"\$LTLIB$uppername\"
17615 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17616 else
17619 else
17620 found_dir=
17621 found_la=
17622 found_so=
17623 found_a=
17624 if test $use_additional = yes; then
17625 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17626 found_dir="$additional_libdir"
17627 found_so="$additional_libdir/lib$name.$shlibext"
17628 if test -f "$additional_libdir/lib$name.la"; then
17629 found_la="$additional_libdir/lib$name.la"
17631 else
17632 if test -f "$additional_libdir/lib$name.$libext"; then
17633 found_dir="$additional_libdir"
17634 found_a="$additional_libdir/lib$name.$libext"
17635 if test -f "$additional_libdir/lib$name.la"; then
17636 found_la="$additional_libdir/lib$name.la"
17641 if test "X$found_dir" = "X"; then
17642 for x in $LDFLAGS $LTLIBINTL; do
17644 acl_save_prefix="$prefix"
17645 prefix="$acl_final_prefix"
17646 acl_save_exec_prefix="$exec_prefix"
17647 exec_prefix="$acl_final_exec_prefix"
17648 eval x=\"$x\"
17649 exec_prefix="$acl_save_exec_prefix"
17650 prefix="$acl_save_prefix"
17652 case "$x" in
17653 -L*)
17654 dir=`echo "X$x" | sed -e 's/^X-L//'`
17655 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17656 found_dir="$dir"
17657 found_so="$dir/lib$name.$shlibext"
17658 if test -f "$dir/lib$name.la"; then
17659 found_la="$dir/lib$name.la"
17661 else
17662 if test -f "$dir/lib$name.$libext"; then
17663 found_dir="$dir"
17664 found_a="$dir/lib$name.$libext"
17665 if test -f "$dir/lib$name.la"; then
17666 found_la="$dir/lib$name.la"
17671 esac
17672 if test "X$found_dir" != "X"; then
17673 break
17675 done
17677 if test "X$found_dir" != "X"; then
17678 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17679 if test "X$found_so" != "X"; then
17680 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17681 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17682 else
17683 haveit=
17684 for x in $ltrpathdirs; do
17685 if test "X$x" = "X$found_dir"; then
17686 haveit=yes
17687 break
17689 done
17690 if test -z "$haveit"; then
17691 ltrpathdirs="$ltrpathdirs $found_dir"
17693 if test "$hardcode_direct" = yes; then
17694 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17695 else
17696 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17697 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17698 haveit=
17699 for x in $rpathdirs; do
17700 if test "X$x" = "X$found_dir"; then
17701 haveit=yes
17702 break
17704 done
17705 if test -z "$haveit"; then
17706 rpathdirs="$rpathdirs $found_dir"
17708 else
17709 haveit=
17710 for x in $LDFLAGS $LIBINTL; do
17712 acl_save_prefix="$prefix"
17713 prefix="$acl_final_prefix"
17714 acl_save_exec_prefix="$exec_prefix"
17715 exec_prefix="$acl_final_exec_prefix"
17716 eval x=\"$x\"
17717 exec_prefix="$acl_save_exec_prefix"
17718 prefix="$acl_save_prefix"
17720 if test "X$x" = "X-L$found_dir"; then
17721 haveit=yes
17722 break
17724 done
17725 if test -z "$haveit"; then
17726 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17728 if test "$hardcode_minus_L" != no; then
17729 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17730 else
17731 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17736 else
17737 if test "X$found_a" != "X"; then
17738 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17739 else
17740 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17743 additional_includedir=
17744 case "$found_dir" in
17745 */lib | */lib/)
17746 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17747 additional_includedir="$basedir/include"
17749 esac
17750 if test "X$additional_includedir" != "X"; then
17751 if test "X$additional_includedir" != "X/usr/include"; then
17752 haveit=
17753 if test "X$additional_includedir" = "X/usr/local/include"; then
17754 if test -n "$GCC"; then
17755 case $host_os in
17756 linux*) haveit=yes;;
17757 esac
17760 if test -z "$haveit"; then
17761 for x in $CPPFLAGS $INCINTL; do
17763 acl_save_prefix="$prefix"
17764 prefix="$acl_final_prefix"
17765 acl_save_exec_prefix="$exec_prefix"
17766 exec_prefix="$acl_final_exec_prefix"
17767 eval x=\"$x\"
17768 exec_prefix="$acl_save_exec_prefix"
17769 prefix="$acl_save_prefix"
17771 if test "X$x" = "X-I$additional_includedir"; then
17772 haveit=yes
17773 break
17775 done
17776 if test -z "$haveit"; then
17777 if test -d "$additional_includedir"; then
17778 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17784 if test -n "$found_la"; then
17785 save_libdir="$libdir"
17786 case "$found_la" in
17787 */* | *\\*) . "$found_la" ;;
17788 *) . "./$found_la" ;;
17789 esac
17790 libdir="$save_libdir"
17791 for dep in $dependency_libs; do
17792 case "$dep" in
17793 -L*)
17794 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17795 if test "X$additional_libdir" != "X/usr/lib"; then
17796 haveit=
17797 if test "X$additional_libdir" = "X/usr/local/lib"; then
17798 if test -n "$GCC"; then
17799 case $host_os in
17800 linux*) haveit=yes;;
17801 esac
17804 if test -z "$haveit"; then
17805 haveit=
17806 for x in $LDFLAGS $LIBINTL; do
17808 acl_save_prefix="$prefix"
17809 prefix="$acl_final_prefix"
17810 acl_save_exec_prefix="$exec_prefix"
17811 exec_prefix="$acl_final_exec_prefix"
17812 eval x=\"$x\"
17813 exec_prefix="$acl_save_exec_prefix"
17814 prefix="$acl_save_prefix"
17816 if test "X$x" = "X-L$additional_libdir"; then
17817 haveit=yes
17818 break
17820 done
17821 if test -z "$haveit"; then
17822 if test -d "$additional_libdir"; then
17823 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17826 haveit=
17827 for x in $LDFLAGS $LTLIBINTL; do
17829 acl_save_prefix="$prefix"
17830 prefix="$acl_final_prefix"
17831 acl_save_exec_prefix="$exec_prefix"
17832 exec_prefix="$acl_final_exec_prefix"
17833 eval x=\"$x\"
17834 exec_prefix="$acl_save_exec_prefix"
17835 prefix="$acl_save_prefix"
17837 if test "X$x" = "X-L$additional_libdir"; then
17838 haveit=yes
17839 break
17841 done
17842 if test -z "$haveit"; then
17843 if test -d "$additional_libdir"; then
17844 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17850 -R*)
17851 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17852 if test "$enable_rpath" != no; then
17853 haveit=
17854 for x in $rpathdirs; do
17855 if test "X$x" = "X$dir"; then
17856 haveit=yes
17857 break
17859 done
17860 if test -z "$haveit"; then
17861 rpathdirs="$rpathdirs $dir"
17863 haveit=
17864 for x in $ltrpathdirs; do
17865 if test "X$x" = "X$dir"; then
17866 haveit=yes
17867 break
17869 done
17870 if test -z "$haveit"; then
17871 ltrpathdirs="$ltrpathdirs $dir"
17875 -l*)
17876 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17878 *.la)
17879 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17882 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17883 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17885 esac
17886 done
17888 else
17889 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17890 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17894 done
17895 done
17896 if test "X$rpathdirs" != "X"; then
17897 if test -n "$hardcode_libdir_separator"; then
17898 alldirs=
17899 for found_dir in $rpathdirs; do
17900 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17901 done
17902 acl_save_libdir="$libdir"
17903 libdir="$alldirs"
17904 eval flag=\"$hardcode_libdir_flag_spec\"
17905 libdir="$acl_save_libdir"
17906 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17907 else
17908 for found_dir in $rpathdirs; do
17909 acl_save_libdir="$libdir"
17910 libdir="$found_dir"
17911 eval flag=\"$hardcode_libdir_flag_spec\"
17912 libdir="$acl_save_libdir"
17913 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17914 done
17917 if test "X$ltrpathdirs" != "X"; then
17918 for found_dir in $ltrpathdirs; do
17919 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17920 done
17923 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17924 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17925 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928 gt_save_CPPFLAGS="$CPPFLAGS"
17929 CPPFLAGS="$CPPFLAGS $INCINTL"
17930 gt_save_LIBS="$LIBS"
17931 LIBS="$LIBS $LIBINTL"
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <libintl.h>
17939 extern int _nl_msg_cat_cntr;
17940 extern
17941 #ifdef __cplusplus
17943 #endif
17944 const char *_nl_expand_alias ();
17946 main ()
17948 bindtextdomain ("", "");
17949 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17951 return 0;
17953 _ACEOF
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17956 (eval $ac_link) 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest$ac_exeext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 gt_cv_func_gnugettext2_libintl=yes
17977 else
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17981 gt_cv_func_gnugettext2_libintl=no
17983 rm -f conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17985 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17986 LIBS="$LIBS $LIBICONV"
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 #include <libintl.h>
17994 extern int _nl_msg_cat_cntr;
17995 extern
17996 #ifdef __cplusplus
17998 #endif
17999 const char *_nl_expand_alias ();
18001 main ()
18003 bindtextdomain ("", "");
18004 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18006 return 0;
18008 _ACEOF
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18011 (eval $ac_link) 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
18018 { ac_try='test -z "$ac_c_werror_flag"
18019 || test ! -s conftest.err'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 LIBINTL="$LIBINTL $LIBICONV"
18032 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18033 gt_cv_func_gnugettext2_libintl=yes
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18040 rm -f conftest.err conftest.$ac_objext \
18041 conftest$ac_exeext conftest.$ac_ext
18043 CPPFLAGS="$gt_save_CPPFLAGS"
18044 LIBS="$gt_save_LIBS"
18046 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18047 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18050 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18051 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18052 && test "$PACKAGE" != gettext; }; then
18053 gt_use_preinstalled_gnugettext=yes
18054 else
18055 LIBINTL=
18056 LTLIBINTL=
18057 INCINTL=
18061 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18062 nls_cv_use_gnu_gettext=yes
18066 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18067 INTLOBJS="\$(GETTOBJS)"
18068 BUILD_INCLUDED_LIBINTL=yes
18069 USE_INCLUDED_LIBINTL=yes
18070 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
18071 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18072 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18075 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18076 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18077 CATOBJEXT=.gmo
18081 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18082 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18084 cat >>confdefs.h <<\_ACEOF
18085 #define ENABLE_NLS 1
18086 _ACEOF
18088 else
18089 USE_NLS=no
18093 if test "$USE_NLS" = "yes"; then
18095 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18096 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18097 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18098 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18099 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18100 echo "${ECHO_T}$LIBINTL" >&6
18102 for element in $INCINTL; do
18103 haveit=
18104 for x in $CPPFLAGS; do
18106 acl_save_prefix="$prefix"
18107 prefix="$acl_final_prefix"
18108 acl_save_exec_prefix="$exec_prefix"
18109 exec_prefix="$acl_final_exec_prefix"
18110 eval x=\"$x\"
18111 exec_prefix="$acl_save_exec_prefix"
18112 prefix="$acl_save_prefix"
18114 if test "X$x" = "X$element"; then
18115 haveit=yes
18116 break
18118 done
18119 if test -z "$haveit"; then
18120 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18122 done
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_GETTEXT 1
18129 _ACEOF
18132 cat >>confdefs.h <<\_ACEOF
18133 #define HAVE_DCGETTEXT 1
18134 _ACEOF
18138 POSUB=po
18142 if test "$PACKAGE" = gettext; then
18143 BUILD_INCLUDED_LIBINTL=yes
18151 nls_cv_header_intl=
18152 nls_cv_header_libgt=
18154 DATADIRNAME=share
18157 INSTOBJEXT=.mo
18160 GENCAT=gencat
18163 INTL_LIBTOOL_SUFFIX_PREFIX=
18167 INTLLIBS="$LIBINTL"
18174 if test $USE_INCLUDED_LIBINTL = yes; then
18175 INCINTL=-I\${top_builddir}/intl
18179 if test x$USE_NLS = xyes; then
18181 echo "$as_me:$LINENO: checking for autopoint" >&5
18182 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18183 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18184 if test -n "$autopoint_version"; then
18186 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18187 echo "${ECHO_T}yes ($autopoint_version)" >&6
18190 else
18192 echo "$as_me:$LINENO: result: no" >&5
18193 echo "${ECHO_T}no" >&6
18194 USE_NLS=no
18201 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18202 { echo "$as_me:$LINENO: WARNING:
18203 You need to install GNU gettext/gettext-tools to compile aMule with
18204 i18n support." >&5
18205 echo "$as_me: WARNING:
18206 You need to install GNU gettext/gettext-tools to compile aMule with
18207 i18n support." >&2;}
18208 _mule_warning_9=yes
18209 _mule_has_warnings=yes
18214 if test ${USE_NLS:-no} = yes; then
18216 echo "$as_me:$LINENO: checking for requested languages" >&5
18217 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18218 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18220 if test "$AMULE_DAEMON" = "yes"; then
18222 if test -z "$LINGUAS"; then
18223 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18224 else
18226 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18227 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18231 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18233 else
18234 AMULE_DAEMON_MANPAGES=
18240 if test "$AMULECMD" = "yes"; then
18242 if test -z "$LINGUAS"; then
18243 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18244 else
18246 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18247 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18251 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18253 else
18254 AMULECMD_MANPAGES=
18260 if test "$WEB" = "yes"; then
18262 if test -z "$LINGUAS"; then
18263 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18264 else
18266 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18267 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18271 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18273 else
18274 WEB_MANPAGES=
18280 if test "$AMULE_GUI" = "yes"; then
18282 if test -z "$LINGUAS"; then
18283 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18284 else
18286 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18287 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18291 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18293 else
18294 AMULE_GUI_MANPAGES=
18300 if test "$CAS" = "yes"; then
18302 if test -z "$LINGUAS"; then
18303 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18304 else
18306 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18307 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18311 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18313 else
18314 CAS_MANPAGES=
18320 if test "$WXCAS" = "yes"; then
18322 if test -z "$LINGUAS"; then
18323 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18324 else
18326 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18327 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18331 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18333 else
18334 WXCAS_MANPAGES=
18340 if test "$ED2K" = "yes"; then
18342 if test -z "$LINGUAS"; then
18343 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18344 else
18346 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18347 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18351 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18353 else
18354 ED2K_MANPAGES=
18360 if test "$ALC" = "yes"; then
18362 if test -z "$LINGUAS"; then
18363 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18364 else
18366 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18367 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18371 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18373 else
18374 ALC_MANPAGES=
18380 if test "$ALCC" = "yes"; then
18382 if test -z "$LINGUAS"; then
18383 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18384 else
18386 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18387 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18391 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18393 else
18394 ALCC_MANPAGES=
18400 if test "$MONOLITHIC" = "yes"; then
18402 if test -z "$LINGUAS"; then
18403 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18404 else
18406 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18407 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18411 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18413 else
18414 MONOLITHIC_MANPAGES=
18419 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18420 echo "${ECHO_T}${LINGUAS:-all}" >&6
18427 # Check for bfd.h (to have proper backtraces without using wxExecute)
18429 echo "$as_me:$LINENO: checking for bfd" >&5
18430 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18431 result=no
18432 for bfd_ldadd in "" "${LIBINTL}"; do
18433 mule_backup_LIBS="$LIBS"
18434 mule_backup_LDFLAGS="$LDFLAGS"
18435 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18436 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18437 cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h. */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18445 #include <ansidecl.h>
18446 #include <bfd.h>
18449 main ()
18452 char *dummy = bfd_errmsg(bfd_get_error());
18455 return 0;
18458 _ACEOF
18459 rm -f conftest.$ac_objext conftest$ac_exeext
18460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461 (eval $ac_link) 2>conftest.er1
18462 ac_status=$?
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -z "$ac_c_werror_flag"
18469 || test ! -s conftest.err'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest$ac_exeext'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18482 result=yes
18483 BFD_CPPFLAGS="-DHAVE_BFD"
18484 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18485 LIBS="$mule_backup_LIBS"
18486 LDFLAGS="$mule_backup_LDFLAGS"
18487 break
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18494 rm -f conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18496 LIBS="$mule_backup_LIBS"
18497 LDFLAGS="$mule_backup_LDFLAGS"
18498 done
18500 echo "$as_me:$LINENO: result: $result" >&5
18501 echo "${ECHO_T}$result" >&6
18503 if test $result = no; then
18504 { echo "$as_me:$LINENO: WARNING:
18505 bfd.h not found or unusable, please install binutils development
18506 package if you are a developer or want to help testing aMule" >&5
18507 echo "$as_me: WARNING:
18508 bfd.h not found or unusable, please install binutils development
18509 package if you are a developer or want to help testing aMule" >&2;}
18510 _mule_warning_10=yes
18511 _mule_has_warnings=yes
18518 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18519 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18520 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h. */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18528 #include <execinfo.h>
18531 main ()
18534 void *bt[1];
18535 int n = backtrace(&bt, 1);
18536 const char **bt_syms = backtrace_symbols(bt, n);
18539 return 0;
18542 _ACEOF
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>conftest.er1
18546 ac_status=$?
18547 grep -v '^ *+' conftest.er1 >conftest.err
18548 rm -f conftest.er1
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } &&
18552 { ac_try='test -z "$ac_c_werror_flag"
18553 || test ! -s conftest.err'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try='test -s conftest$ac_exeext'
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18568 cat >>confdefs.h <<\_ACEOF
18569 #define HAVE_EXECINFO 1
18570 _ACEOF
18572 echo "$as_me:$LINENO: result: yes" >&5
18573 echo "${ECHO_T}yes" >&6
18575 else
18576 echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18580 echo "$as_me:$LINENO: result: no" >&5
18581 echo "${ECHO_T}no" >&6
18584 rm -f conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18588 # Flush standard test results for speeding cache
18589 cat >confcache <<\_ACEOF
18590 # This file is a shell script that caches the results of configure
18591 # tests run on this system so they can be shared between configure
18592 # scripts and configure runs, see configure's option --config-cache.
18593 # It is not useful on other systems. If it contains results you don't
18594 # want to keep, you may remove or edit it.
18596 # config.status only pays attention to the cache file if you give it
18597 # the --recheck option to rerun configure.
18599 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18601 # following values.
18603 _ACEOF
18605 # The following way of writing the cache mishandles newlines in values,
18606 # but we know of no workaround that is simple, portable, and efficient.
18607 # So, don't put newlines in cache variables' values.
18608 # Ultrix sh set writes to stderr and can't be redirected directly,
18609 # and sets the high bit in the cache file unless we assign to the vars.
18611 (set) 2>&1 |
18612 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18613 *ac_space=\ *)
18614 # `set' does not quote correctly, so add quotes (double-quote
18615 # substitution turns \\\\ into \\, and sed turns \\ into \).
18616 sed -n \
18617 "s/'/'\\\\''/g;
18618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18621 # `set' quotes correctly as required by POSIX, so do not add quotes.
18622 sed -n \
18623 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18625 esac;
18627 sed '
18628 t clear
18629 : clear
18630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18631 t end
18632 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18633 : end' >>confcache
18634 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18635 if test -w $cache_file; then
18636 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18637 cat confcache >$cache_file
18638 else
18639 echo "not updating unwritable cache $cache_file"
18642 rm -f confcache
18644 # Other tests
18645 # aMule options
18648 # Check whether --enable-debug or --disable-debug was given.
18649 if test "${enable_debug+set}" = set; then
18650 enableval="$enable_debug"
18651 USE_DEBUG=${enableval:-yes}
18652 else
18653 USE_DEBUG=yes
18656 if test $USE_DEBUG = yes; then
18658 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18660 MULECFLAGS="$MULECFLAGS -g"
18661 MULECXXFLAGS="$MULECXXFLAGS -g"
18663 if test ${GLIBCXX:-no} = yes; then
18664 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18667 if test ${GCC:-no} = yes; then
18669 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18670 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18674 if test ${SYS:-unknown} = win32; then
18675 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18679 else
18681 if test ${GCC:-no} = yes; then
18683 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18684 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18693 # Check whether --enable-optimize or --disable-optimize was given.
18694 if test "${enable_optimize+set}" = set; then
18695 enableval="$enable_optimize"
18696 USE_OPTIMIZE=${enableval:-no}
18697 else
18698 USE_OPTIMIZE=no
18701 if test $USE_OPTIMIZE = yes; then
18703 MULECFLAGS="$MULECFLAGS -O2"
18704 MULECXXFLAGS="$MULECXXFLAGS -O2"
18710 # Check whether --enable-profile or --disable-profile was given.
18711 if test "${enable_profile+set}" = set; then
18712 enableval="$enable_profile"
18713 USE_PROFILE=${enableval:-no}
18714 else
18715 USE_PROFILE=no
18718 if test $USE_PROFILE = yes; then
18721 MULECFLAGS="$MULECFLAGS -pg"
18722 MULECXXFLAGS="$MULECXXFLAGS -pg"
18724 MULELDFLAGS="$MULELDFLAGS -pg"
18730 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18731 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18732 # Check whether --enable-static or --disable-static was given.
18733 if test "${enable_static+set}" = set; then
18734 enableval="$enable_static"
18735 if test ${enableval:-no} = yes; then
18736 MULELDFLAGS="$MULELDFLAGS -static"
18740 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18741 echo "${ECHO_T}${enableval:-no}" >&6
18743 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18746 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18747 echo "$as_me:$LINENO: checking for docdir" >&5
18748 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18749 if test -z "$docdir"; then
18750 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18753 echo "$as_me:$LINENO: result: $docdir" >&5
18754 echo "${ECHO_T}$docdir" >&6
18756 # Try to set the SVN checkout-date
18757 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18758 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18759 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18760 then
18761 svndate="rev. `cat $srcdir/.svn-revision`"
18762 elif test -d $srcdir/.svn # SVNDATE for svn
18763 then
18764 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18766 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18767 echo "${ECHO_T}${svndate:-None required}" >&6
18768 if test -n "$svndate"; then
18771 cat >>confdefs.h <<_ACEOF
18772 #define SVNDATE "$svndate"
18773 _ACEOF
18775 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18779 SVNDATE=$svndate
18783 # Check whether --with-denoise-level or --without-denoise-level was given.
18784 if test "${with_denoise_level+set}" = set; then
18785 withval="$with_denoise_level"
18789 echo "$as_me:$LINENO: checking denoising level" >&5
18790 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18791 if test ${with_denoise_level:-5} = yes; then
18792 with_denoise_level=5
18795 if test ${with_denoise_level:-5} = no; then
18796 with_denoise_level=0
18799 if test ${with_denoise_level:-5} -gt 4; then
18800 if test "${svndate:+set}" = "set"; then
18801 with_denoise_level=0
18802 else
18803 with_denoise_level=4
18808 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18809 echo "${ECHO_T}$with_denoise_level" >&6
18811 ac_config_commands="$ac_config_commands denoiser"
18817 if test x$WEB = xyes; then
18818 WEB_TRUE=
18819 WEB_FALSE='#'
18820 else
18821 WEB_TRUE='#'
18822 WEB_FALSE=
18827 if test x$ED2K = xyes; then
18828 ED2K_TRUE=
18829 ED2K_FALSE='#'
18830 else
18831 ED2K_TRUE='#'
18832 ED2K_FALSE=
18837 if test x$CAS = xyes; then
18838 CAS_TRUE=
18839 CAS_FALSE='#'
18840 else
18841 CAS_TRUE='#'
18842 CAS_FALSE=
18847 if test x$WXCAS = xyes; then
18848 WXCAS_TRUE=
18849 WXCAS_FALSE='#'
18850 else
18851 WXCAS_TRUE='#'
18852 WXCAS_FALSE=
18857 if test x$ALC = xyes; then
18858 ALC_TRUE=
18859 ALC_FALSE='#'
18860 else
18861 ALC_TRUE='#'
18862 ALC_FALSE=
18867 if test x$ALCC = xyes; then
18868 ALCC_TRUE=
18869 ALCC_FALSE='#'
18870 else
18871 ALCC_TRUE='#'
18872 ALCC_FALSE=
18877 if test x$AMULE_GUI = xyes; then
18878 AMULE_GUI_TRUE=
18879 AMULE_GUI_FALSE='#'
18880 else
18881 AMULE_GUI_TRUE='#'
18882 AMULE_GUI_FALSE=
18887 if test x$AMULE_DAEMON = xyes; then
18888 AMULE_DAEMON_TRUE=
18889 AMULE_DAEMON_FALSE='#'
18890 else
18891 AMULE_DAEMON_TRUE='#'
18892 AMULE_DAEMON_FALSE=
18897 if test x$AMULECMD = xyes; then
18898 COMPILE_CMD_TRUE=
18899 COMPILE_CMD_FALSE='#'
18900 else
18901 COMPILE_CMD_TRUE='#'
18902 COMPILE_CMD_FALSE=
18907 if test x$MONOLITHIC = xyes; then
18908 MONOLITHIC_TRUE=
18909 MONOLITHIC_FALSE='#'
18910 else
18911 MONOLITHIC_TRUE='#'
18912 MONOLITHIC_FALSE=
18917 if test x$XAS = xyes; then
18918 XAS_TRUE=
18919 XAS_FALSE='#'
18920 else
18921 XAS_TRUE='#'
18922 XAS_FALSE=
18927 if test x$ENABLE_UPNP = xyes; then
18928 ENABLE_UPNP_TRUE=
18929 ENABLE_UPNP_FALSE='#'
18930 else
18931 ENABLE_UPNP_TRUE='#'
18932 ENABLE_UPNP_FALSE=
18937 if test x$ENABLE_IP2COUNTRY = xyes; then
18938 ENABLE_IP2COUNTRY_TRUE=
18939 ENABLE_IP2COUNTRY_FALSE='#'
18940 else
18941 ENABLE_IP2COUNTRY_TRUE='#'
18942 ENABLE_IP2COUNTRY_FALSE=
18947 if test x$SYS = xwin32; then
18948 SYS_WIN32_TRUE=
18949 SYS_WIN32_FALSE='#'
18950 else
18951 SYS_WIN32_TRUE='#'
18952 SYS_WIN32_FALSE=
18957 if test x$SYS = xwin32 -a "$RC" != ":"; then
18958 NEED_RC_TRUE=
18959 NEED_RC_FALSE='#'
18960 else
18961 NEED_RC_TRUE='#'
18962 NEED_RC_FALSE=
18967 if test x$SYS = xdarwin; then
18968 NEED_CORESERVICES_TRUE=
18969 NEED_CORESERVICES_FALSE='#'
18970 else
18971 NEED_CORESERVICES_TRUE='#'
18972 NEED_CORESERVICES_FALSE=
18977 if test x$USE_NLS = xyes; then
18978 COMPILE_NLS_TRUE=
18979 COMPILE_NLS_FALSE='#'
18980 else
18981 COMPILE_NLS_TRUE='#'
18982 COMPILE_NLS_FALSE=
18987 if test x$HAVE_FLEX_EXTENDED = xyes; then
18988 GENERATE_FLEX_HEADER_TRUE=
18989 GENERATE_FLEX_HEADER_FALSE='#'
18990 else
18991 GENERATE_FLEX_HEADER_TRUE='#'
18992 GENERATE_FLEX_HEADER_FALSE=
18997 if test x$INSTALL_SKINS = xyes; then
18998 INSTALL_SKINS_TRUE=
18999 INSTALL_SKINS_FALSE='#'
19000 else
19001 INSTALL_SKINS_TRUE='#'
19002 INSTALL_SKINS_FALSE=
19006 # Check for readline library
19007 if test x$AMULECMD = xyes -o x$WEB = xyes; then
19009 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
19010 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
19011 if test "${vl_cv_lib_readline+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19015 ORIG_LIBS="$LIBS"
19016 for readline_lib in readline edit editline; do
19017 for termcap_lib in "" termcap curses ncurses; do
19018 if test -z "$termcap_lib"; then
19019 TRY_LIB="-l$readline_lib"
19020 else
19021 TRY_LIB="-l$readline_lib -l$termcap_lib"
19023 LIBS="$ORIG_LIBS $TRY_LIB"
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19031 /* Override any gcc2 internal prototype to avoid an error. */
19032 #ifdef __cplusplus
19033 extern "C"
19034 #endif
19035 /* We use char because int might match the return type of a gcc2
19036 builtin and then its argument prototype would still apply. */
19037 char readline ();
19039 main ()
19041 readline ();
19043 return 0;
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048 (eval $ac_link) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 vl_cv_lib_readline="$TRY_LIB"
19069 else
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19074 rm -f conftest.err conftest.$ac_objext \
19075 conftest$ac_exeext conftest.$ac_ext
19076 if test -n "$vl_cv_lib_readline"; then
19077 break
19079 done
19080 if test -n "$vl_cv_lib_readline"; then
19081 break
19083 done
19084 if test -z "$vl_cv_lib_readline"; then
19085 vl_cv_lib_readline="no"
19086 LIBS="$ORIG_LIBS"
19087 READLINE_LIBS=""
19088 else
19089 READLINE_LIBS="$vl_cv_lib_readline"
19093 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19094 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19096 if test "$vl_cv_lib_readline" != "no"; then
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_LIBREADLINE 1
19100 _ACEOF
19104 for ac_header in readline.h readline/readline.h
19106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19108 echo "$as_me:$LINENO: checking for $ac_header" >&5
19109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19115 else
19116 # Is the header compilable?
19117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19119 cat >conftest.$ac_ext <<_ACEOF
19120 /* confdefs.h. */
19121 _ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 $ac_includes_default
19126 #include <$ac_header>
19127 _ACEOF
19128 rm -f conftest.$ac_objext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19130 (eval $ac_compile) 2>conftest.er1
19131 ac_status=$?
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -z "$ac_c_werror_flag"
19138 || test ! -s conftest.err'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest.$ac_objext'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_header_compiler=yes
19151 else
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_header_compiler=no
19157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19159 echo "${ECHO_T}$ac_header_compiler" >&6
19161 # Is the header present?
19162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 #include <$ac_header>
19171 _ACEOF
19172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19174 ac_status=$?
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } >/dev/null; then
19180 if test -s conftest.err; then
19181 ac_cpp_err=$ac_c_preproc_warn_flag
19182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19183 else
19184 ac_cpp_err=
19186 else
19187 ac_cpp_err=yes
19189 if test -z "$ac_cpp_err"; then
19190 ac_header_preproc=yes
19191 else
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 ac_header_preproc=no
19197 rm -f conftest.err conftest.$ac_ext
19198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19199 echo "${ECHO_T}$ac_header_preproc" >&6
19201 # So? What about this header?
19202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19203 yes:no: )
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19208 ac_header_preproc=yes
19210 no:yes:* )
19211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19224 cat <<\_ASBOX
19225 ## ------------------------------ ##
19226 ## Report this to admin@amule.org ##
19227 ## ------------------------------ ##
19228 _ASBOX
19230 sed "s/^/$as_me: WARNING: /" >&2
19232 esac
19233 echo "$as_me:$LINENO: checking for $ac_header" >&5
19234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238 eval "$as_ac_Header=\$ac_header_preproc"
19240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19245 cat >>confdefs.h <<_ACEOF
19246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19247 _ACEOF
19251 done
19253 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19254 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19255 if test "${vl_cv_lib_readline_history+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19259 vl_cv_lib_readline_history="no"
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h. */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any gcc2 internal prototype to avoid an error. */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 /* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19273 char add_history ();
19275 main ()
19277 add_history ();
19279 return 0;
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 vl_cv_lib_readline_history="yes"
19305 else
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19310 rm -f conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19314 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19315 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19316 if test "$vl_cv_lib_readline_history" = "yes"; then
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_READLINE_HISTORY 1
19320 _ACEOF
19324 for ac_header in history.h readline/history.h
19326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19328 echo "$as_me:$LINENO: checking for $ac_header" >&5
19329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19335 else
19336 # Is the header compilable?
19337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 $ac_includes_default
19346 #include <$ac_header>
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_header_compiler=yes
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 ac_header_compiler=no
19377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19379 echo "${ECHO_T}$ac_header_compiler" >&6
19381 # Is the header present?
19382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h. */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 #include <$ac_header>
19391 _ACEOF
19392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } >/dev/null; then
19400 if test -s conftest.err; then
19401 ac_cpp_err=$ac_c_preproc_warn_flag
19402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19403 else
19404 ac_cpp_err=
19406 else
19407 ac_cpp_err=yes
19409 if test -z "$ac_cpp_err"; then
19410 ac_header_preproc=yes
19411 else
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 ac_header_preproc=no
19417 rm -f conftest.err conftest.$ac_ext
19418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19419 echo "${ECHO_T}$ac_header_preproc" >&6
19421 # So? What about this header?
19422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19423 yes:no: )
19424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19428 ac_header_preproc=yes
19430 no:yes:* )
19431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19444 cat <<\_ASBOX
19445 ## ------------------------------ ##
19446 ## Report this to admin@amule.org ##
19447 ## ------------------------------ ##
19448 _ASBOX
19450 sed "s/^/$as_me: WARNING: /" >&2
19452 esac
19453 echo "$as_me:$LINENO: checking for $ac_header" >&5
19454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458 eval "$as_ac_Header=\$ac_header_preproc"
19460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19465 cat >>confdefs.h <<_ACEOF
19466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19467 _ACEOF
19471 done
19476 LIBS="$ORIG_LIBS"
19480 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19483 # Check whether --enable-ccache or --disable-ccache was given.
19484 if test "${enable_ccache+set}" = set; then
19485 enableval="$enable_ccache"
19490 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19491 if test "${with_ccache_prefix+set}" = set; then
19492 withval="$with_ccache_prefix"
19496 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19497 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19498 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19499 echo "${ECHO_T}${enable_ccache:-no}" >&6
19501 if test ${enable_ccache:-no} = yes; then
19503 echo "$as_me:$LINENO: checking for ccache presence" >&5
19504 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19505 if test -z "$with_ccache_prefix"; then
19507 ccache_full=`which ccache`
19508 with_ccache_prefix=`dirname ${ccache_full}`
19512 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19514 echo "$as_me:$LINENO: result: yes" >&5
19515 echo "${ECHO_T}yes" >&6
19516 CC="$with_ccache_prefix/ccache $CC"
19517 CXX="$with_ccache_prefix/ccache $CXX"
19518 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19520 else
19522 enable_ccache=no
19523 echo "$as_me:$LINENO: result: no" >&5
19524 echo "${ECHO_T}no" >&6
19533 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"
19535 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19537 if test x$SYS = xwin32; then
19538 ac_config_files="$ac_config_files version.rc"
19542 cat >confcache <<\_ACEOF
19543 # This file is a shell script that caches the results of configure
19544 # tests run on this system so they can be shared between configure
19545 # scripts and configure runs, see configure's option --config-cache.
19546 # It is not useful on other systems. If it contains results you don't
19547 # want to keep, you may remove or edit it.
19549 # config.status only pays attention to the cache file if you give it
19550 # the --recheck option to rerun configure.
19552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19554 # following values.
19556 _ACEOF
19558 # The following way of writing the cache mishandles newlines in values,
19559 # but we know of no workaround that is simple, portable, and efficient.
19560 # So, don't put newlines in cache variables' values.
19561 # Ultrix sh set writes to stderr and can't be redirected directly,
19562 # and sets the high bit in the cache file unless we assign to the vars.
19564 (set) 2>&1 |
19565 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19566 *ac_space=\ *)
19567 # `set' does not quote correctly, so add quotes (double-quote
19568 # substitution turns \\\\ into \\, and sed turns \\ into \).
19569 sed -n \
19570 "s/'/'\\\\''/g;
19571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19574 # `set' quotes correctly as required by POSIX, so do not add quotes.
19575 sed -n \
19576 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19578 esac;
19580 sed '
19581 t clear
19582 : clear
19583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19584 t end
19585 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19586 : end' >>confcache
19587 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19588 if test -w $cache_file; then
19589 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19590 cat confcache >$cache_file
19591 else
19592 echo "not updating unwritable cache $cache_file"
19595 rm -f confcache
19597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19598 # Let make expand exec_prefix.
19599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19603 # trailing colons and then remove the whole line if VPATH becomes empty
19604 # (actually we leave an empty line to preserve line numbers).
19605 if test "x$srcdir" = x.; then
19606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19607 s/:*\$(srcdir):*/:/;
19608 s/:*\${srcdir}:*/:/;
19609 s/:*@srcdir@:*/:/;
19610 s/^\([^=]*=[ ]*\):*/\1/;
19611 s/:*$//;
19612 s/^[^=]*=[ ]*$//;
19616 DEFS=-DHAVE_CONFIG_H
19618 ac_libobjs=
19619 ac_ltlibobjs=
19620 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19621 # 1. Remove the extension, and $U if already installed.
19622 ac_i=`echo "$ac_i" |
19623 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19624 # 2. Add them.
19625 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19626 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19627 done
19628 LIBOBJS=$ac_libobjs
19630 LTLIBOBJS=$ac_ltlibobjs
19633 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19634 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&5
19636 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&2;}
19638 { (exit 1); exit 1; }; }
19640 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19641 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19642 Usually this means the macro was only invoked conditionally." >&5
19643 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19644 Usually this means the macro was only invoked conditionally." >&2;}
19645 { (exit 1); exit 1; }; }
19647 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19648 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19649 Usually this means the macro was only invoked conditionally." >&5
19650 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19651 Usually this means the macro was only invoked conditionally." >&2;}
19652 { (exit 1); exit 1; }; }
19654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19655 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19656 Usually this means the macro was only invoked conditionally." >&5
19657 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19658 Usually this means the macro was only invoked conditionally." >&2;}
19659 { (exit 1); exit 1; }; }
19661 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19662 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19663 Usually this means the macro was only invoked conditionally." >&5
19664 echo "$as_me: error: conditional \"WEB\" was never defined.
19665 Usually this means the macro was only invoked conditionally." >&2;}
19666 { (exit 1); exit 1; }; }
19668 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19669 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19670 Usually this means the macro was only invoked conditionally." >&5
19671 echo "$as_me: error: conditional \"ED2K\" was never defined.
19672 Usually this means the macro was only invoked conditionally." >&2;}
19673 { (exit 1); exit 1; }; }
19675 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19676 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19677 Usually this means the macro was only invoked conditionally." >&5
19678 echo "$as_me: error: conditional \"CAS\" was never defined.
19679 Usually this means the macro was only invoked conditionally." >&2;}
19680 { (exit 1); exit 1; }; }
19682 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19683 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19684 Usually this means the macro was only invoked conditionally." >&5
19685 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19686 Usually this means the macro was only invoked conditionally." >&2;}
19687 { (exit 1); exit 1; }; }
19689 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19690 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19691 Usually this means the macro was only invoked conditionally." >&5
19692 echo "$as_me: error: conditional \"ALC\" was never defined.
19693 Usually this means the macro was only invoked conditionally." >&2;}
19694 { (exit 1); exit 1; }; }
19696 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19697 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19698 Usually this means the macro was only invoked conditionally." >&5
19699 echo "$as_me: error: conditional \"ALCC\" was never defined.
19700 Usually this means the macro was only invoked conditionally." >&2;}
19701 { (exit 1); exit 1; }; }
19703 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19704 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19705 Usually this means the macro was only invoked conditionally." >&5
19706 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19707 Usually this means the macro was only invoked conditionally." >&2;}
19708 { (exit 1); exit 1; }; }
19710 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19711 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19712 Usually this means the macro was only invoked conditionally." >&5
19713 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19714 Usually this means the macro was only invoked conditionally." >&2;}
19715 { (exit 1); exit 1; }; }
19717 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19718 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19719 Usually this means the macro was only invoked conditionally." >&5
19720 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19721 Usually this means the macro was only invoked conditionally." >&2;}
19722 { (exit 1); exit 1; }; }
19724 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19725 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19726 Usually this means the macro was only invoked conditionally." >&5
19727 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19728 Usually this means the macro was only invoked conditionally." >&2;}
19729 { (exit 1); exit 1; }; }
19731 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19732 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19733 Usually this means the macro was only invoked conditionally." >&5
19734 echo "$as_me: error: conditional \"XAS\" was never defined.
19735 Usually this means the macro was only invoked conditionally." >&2;}
19736 { (exit 1); exit 1; }; }
19738 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19739 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19740 Usually this means the macro was only invoked conditionally." >&5
19741 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19742 Usually this means the macro was only invoked conditionally." >&2;}
19743 { (exit 1); exit 1; }; }
19745 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19746 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19747 Usually this means the macro was only invoked conditionally." >&5
19748 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19749 Usually this means the macro was only invoked conditionally." >&2;}
19750 { (exit 1); exit 1; }; }
19752 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19753 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19754 Usually this means the macro was only invoked conditionally." >&5
19755 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19756 Usually this means the macro was only invoked conditionally." >&2;}
19757 { (exit 1); exit 1; }; }
19759 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19760 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19761 Usually this means the macro was only invoked conditionally." >&5
19762 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19763 Usually this means the macro was only invoked conditionally." >&2;}
19764 { (exit 1); exit 1; }; }
19766 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19767 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19768 Usually this means the macro was only invoked conditionally." >&5
19769 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19770 Usually this means the macro was only invoked conditionally." >&2;}
19771 { (exit 1); exit 1; }; }
19773 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19774 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19775 Usually this means the macro was only invoked conditionally." >&5
19776 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19777 Usually this means the macro was only invoked conditionally." >&2;}
19778 { (exit 1); exit 1; }; }
19780 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19781 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19782 Usually this means the macro was only invoked conditionally." >&5
19783 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19784 Usually this means the macro was only invoked conditionally." >&2;}
19785 { (exit 1); exit 1; }; }
19787 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19788 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19789 Usually this means the macro was only invoked conditionally." >&5
19790 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19791 Usually this means the macro was only invoked conditionally." >&2;}
19792 { (exit 1); exit 1; }; }
19795 : ${CONFIG_STATUS=./config.status}
19796 ac_clean_files_save=$ac_clean_files
19797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19798 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19799 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19800 cat >$CONFIG_STATUS <<_ACEOF
19801 #! $SHELL
19802 # Generated by $as_me.
19803 # Run this file to recreate the current configuration.
19804 # Compiler output produced by configure, useful for debugging
19805 # configure, is in config.log if it exists.
19807 debug=false
19808 ac_cs_recheck=false
19809 ac_cs_silent=false
19810 SHELL=\${CONFIG_SHELL-$SHELL}
19811 _ACEOF
19813 cat >>$CONFIG_STATUS <<\_ACEOF
19814 ## --------------------- ##
19815 ## M4sh Initialization. ##
19816 ## --------------------- ##
19818 # Be Bourne compatible
19819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19820 emulate sh
19821 NULLCMD=:
19822 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19823 # is contrary to our usage. Disable this feature.
19824 alias -g '${1+"$@"}'='"$@"'
19825 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19826 set -o posix
19828 DUALCASE=1; export DUALCASE # for MKS sh
19830 # Support unset when possible.
19831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19832 as_unset=unset
19833 else
19834 as_unset=false
19838 # Work around bugs in pre-3.0 UWIN ksh.
19839 $as_unset ENV MAIL MAILPATH
19840 PS1='$ '
19841 PS2='> '
19842 PS4='+ '
19844 # NLS nuisances.
19845 for as_var in \
19846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19848 LC_TELEPHONE LC_TIME
19850 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19851 eval $as_var=C; export $as_var
19852 else
19853 $as_unset $as_var
19855 done
19857 # Required to use basename.
19858 if expr a : '\(a\)' >/dev/null 2>&1; then
19859 as_expr=expr
19860 else
19861 as_expr=false
19864 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19865 as_basename=basename
19866 else
19867 as_basename=false
19871 # Name of the executable.
19872 as_me=`$as_basename "$0" ||
19873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19874 X"$0" : 'X\(//\)$' \| \
19875 X"$0" : 'X\(/\)$' \| \
19876 . : '\(.\)' 2>/dev/null ||
19877 echo X/"$0" |
19878 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19879 /^X\/\(\/\/\)$/{ s//\1/; q; }
19880 /^X\/\(\/\).*/{ s//\1/; q; }
19881 s/.*/./; q'`
19884 # PATH needs CR, and LINENO needs CR and PATH.
19885 # Avoid depending upon Character Ranges.
19886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19889 as_cr_digits='0123456789'
19890 as_cr_alnum=$as_cr_Letters$as_cr_digits
19892 # The user is always right.
19893 if test "${PATH_SEPARATOR+set}" != set; then
19894 echo "#! /bin/sh" >conf$$.sh
19895 echo "exit 0" >>conf$$.sh
19896 chmod +x conf$$.sh
19897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19898 PATH_SEPARATOR=';'
19899 else
19900 PATH_SEPARATOR=:
19902 rm -f conf$$.sh
19906 as_lineno_1=$LINENO
19907 as_lineno_2=$LINENO
19908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19909 test "x$as_lineno_1" != "x$as_lineno_2" &&
19910 test "x$as_lineno_3" = "x$as_lineno_2" || {
19911 # Find who we are. Look in the path if we contain no path at all
19912 # relative or not.
19913 case $0 in
19914 *[\\/]* ) as_myself=$0 ;;
19915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19916 for as_dir in $PATH
19918 IFS=$as_save_IFS
19919 test -z "$as_dir" && as_dir=.
19920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19921 done
19924 esac
19925 # We did not find ourselves, most probably we were run as `sh COMMAND'
19926 # in which case we are not to be found in the path.
19927 if test "x$as_myself" = x; then
19928 as_myself=$0
19930 if test ! -f "$as_myself"; then
19931 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19932 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19933 { (exit 1); exit 1; }; }
19935 case $CONFIG_SHELL in
19937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19938 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19940 IFS=$as_save_IFS
19941 test -z "$as_dir" && as_dir=.
19942 for as_base in sh bash ksh sh5; do
19943 case $as_dir in
19945 if ("$as_dir/$as_base" -c '
19946 as_lineno_1=$LINENO
19947 as_lineno_2=$LINENO
19948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19949 test "x$as_lineno_1" != "x$as_lineno_2" &&
19950 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19951 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19952 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19953 CONFIG_SHELL=$as_dir/$as_base
19954 export CONFIG_SHELL
19955 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19956 fi;;
19957 esac
19958 done
19959 done
19961 esac
19963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19964 # uniformly replaced by the line number. The first 'sed' inserts a
19965 # line-number line before each line; the second 'sed' does the real
19966 # work. The second script uses 'N' to pair each line-number line
19967 # with the numbered line, and appends trailing '-' during
19968 # substitution so that $LINENO is not a special case at line end.
19969 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19970 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19971 sed '=' <$as_myself |
19972 sed '
19974 s,$,-,
19975 : loop
19976 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19977 t loop
19978 s,-$,,
19979 s,^['$as_cr_digits']*\n,,
19980 ' >$as_me.lineno &&
19981 chmod +x $as_me.lineno ||
19982 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19983 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19984 { (exit 1); exit 1; }; }
19986 # Don't try to exec as it changes $[0], causing all sort of problems
19987 # (the dirname of $[0] is not the place where we might find the
19988 # original and so on. Autoconf is especially sensible to this).
19989 . ./$as_me.lineno
19990 # Exit status is that of the last command.
19991 exit
19995 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19996 *c*,-n*) ECHO_N= ECHO_C='
19997 ' ECHO_T=' ' ;;
19998 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19999 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20000 esac
20002 if expr a : '\(a\)' >/dev/null 2>&1; then
20003 as_expr=expr
20004 else
20005 as_expr=false
20008 rm -f conf$$ conf$$.exe conf$$.file
20009 echo >conf$$.file
20010 if ln -s conf$$.file conf$$ 2>/dev/null; then
20011 # We could just check for DJGPP; but this test a) works b) is more generic
20012 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20013 if test -f conf$$.exe; then
20014 # Don't use ln at all; we don't have any links
20015 as_ln_s='cp -p'
20016 else
20017 as_ln_s='ln -s'
20019 elif ln conf$$.file conf$$ 2>/dev/null; then
20020 as_ln_s=ln
20021 else
20022 as_ln_s='cp -p'
20024 rm -f conf$$ conf$$.exe conf$$.file
20026 if mkdir -p . 2>/dev/null; then
20027 as_mkdir_p=:
20028 else
20029 test -d ./-p && rmdir ./-p
20030 as_mkdir_p=false
20033 as_executable_p="test -f"
20035 # Sed expression to map a string onto a valid CPP name.
20036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20038 # Sed expression to map a string onto a valid variable name.
20039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20042 # IFS
20043 # We need space, tab and new line, in precisely that order.
20044 as_nl='
20046 IFS=" $as_nl"
20048 # CDPATH.
20049 $as_unset CDPATH
20051 exec 6>&1
20053 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20054 # report actual input values of CONFIG_FILES etc. instead of their
20055 # values after options handling. Logging --version etc. is OK.
20056 exec 5>>config.log
20058 echo
20059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20060 ## Running $as_me. ##
20061 _ASBOX
20062 } >&5
20063 cat >&5 <<_CSEOF
20065 This file was extended by aMule $as_me SVN, which was
20066 generated by GNU Autoconf 2.59. Invocation command line was
20068 CONFIG_FILES = $CONFIG_FILES
20069 CONFIG_HEADERS = $CONFIG_HEADERS
20070 CONFIG_LINKS = $CONFIG_LINKS
20071 CONFIG_COMMANDS = $CONFIG_COMMANDS
20072 $ $0 $@
20074 _CSEOF
20075 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20076 echo >&5
20077 _ACEOF
20079 # Files that config.status was made for.
20080 if test -n "$ac_config_files"; then
20081 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20084 if test -n "$ac_config_headers"; then
20085 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20088 if test -n "$ac_config_links"; then
20089 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20092 if test -n "$ac_config_commands"; then
20093 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20096 cat >>$CONFIG_STATUS <<\_ACEOF
20098 ac_cs_usage="\
20099 \`$as_me' instantiates files from templates according to the
20100 current configuration.
20102 Usage: $0 [OPTIONS] [FILE]...
20104 -h, --help print this help, then exit
20105 -V, --version print version number, then exit
20106 -q, --quiet do not print progress messages
20107 -d, --debug don't remove temporary files
20108 --recheck update $as_me by reconfiguring in the same conditions
20109 --file=FILE[:TEMPLATE]
20110 instantiate the configuration file FILE
20111 --header=FILE[:TEMPLATE]
20112 instantiate the configuration header FILE
20114 Configuration files:
20115 $config_files
20117 Configuration headers:
20118 $config_headers
20120 Configuration commands:
20121 $config_commands
20123 Report bugs to <bug-autoconf@gnu.org>."
20124 _ACEOF
20126 cat >>$CONFIG_STATUS <<_ACEOF
20127 ac_cs_version="\\
20128 aMule config.status SVN
20129 configured by $0, generated by GNU Autoconf 2.59,
20130 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20132 Copyright (C) 2003 Free Software Foundation, Inc.
20133 This config.status script is free software; the Free Software Foundation
20134 gives unlimited permission to copy, distribute and modify it."
20135 srcdir=$srcdir
20136 INSTALL="$INSTALL"
20137 _ACEOF
20139 cat >>$CONFIG_STATUS <<\_ACEOF
20140 # If no file are specified by the user, then we need to provide default
20141 # value. By we need to know if files were specified by the user.
20142 ac_need_defaults=:
20143 while test $# != 0
20145 case $1 in
20146 --*=*)
20147 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20148 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20149 ac_shift=:
20152 ac_option=$1
20153 ac_optarg=$2
20154 ac_shift=shift
20156 *) # This is not an option, so the user has probably given explicit
20157 # arguments.
20158 ac_option=$1
20159 ac_need_defaults=false;;
20160 esac
20162 case $ac_option in
20163 # Handling of the options.
20164 _ACEOF
20165 cat >>$CONFIG_STATUS <<\_ACEOF
20166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20167 ac_cs_recheck=: ;;
20168 --version | --vers* | -V )
20169 echo "$ac_cs_version"; exit 0 ;;
20170 --he | --h)
20171 # Conflict between --help and --header
20172 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20173 Try \`$0 --help' for more information." >&5
20174 echo "$as_me: error: ambiguous option: $1
20175 Try \`$0 --help' for more information." >&2;}
20176 { (exit 1); exit 1; }; };;
20177 --help | --hel | -h )
20178 echo "$ac_cs_usage"; exit 0 ;;
20179 --debug | --d* | -d )
20180 debug=: ;;
20181 --file | --fil | --fi | --f )
20182 $ac_shift
20183 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20184 ac_need_defaults=false;;
20185 --header | --heade | --head | --hea )
20186 $ac_shift
20187 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20188 ac_need_defaults=false;;
20189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20191 ac_cs_silent=: ;;
20193 # This is an error.
20194 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20195 Try \`$0 --help' for more information." >&5
20196 echo "$as_me: error: unrecognized option: $1
20197 Try \`$0 --help' for more information." >&2;}
20198 { (exit 1); exit 1; }; } ;;
20200 *) ac_config_targets="$ac_config_targets $1" ;;
20202 esac
20203 shift
20204 done
20206 ac_configure_extra_args=
20208 if $ac_cs_silent; then
20209 exec 6>/dev/null
20210 ac_configure_extra_args="$ac_configure_extra_args --silent"
20213 _ACEOF
20214 cat >>$CONFIG_STATUS <<_ACEOF
20215 if \$ac_cs_recheck; then
20216 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20217 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20220 _ACEOF
20222 cat >>$CONFIG_STATUS <<_ACEOF
20224 # INIT-COMMANDS section.
20227 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20228 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20229 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20230 # from automake.
20231 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20232 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20233 LINGUAS="${LINGUAS-%UNSET%}"
20235 denoiserlevel=$with_denoise_level
20237 _ACEOF
20241 cat >>$CONFIG_STATUS <<\_ACEOF
20242 for ac_config_target in $ac_config_targets
20244 case "$ac_config_target" in
20245 # Handling of arguments.
20246 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20247 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20248 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20249 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20250 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20251 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20252 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20253 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20254 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20255 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20256 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20257 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20258 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20259 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20260 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20261 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20262 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20263 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20264 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20265 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20266 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20267 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20268 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20269 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20270 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20271 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20272 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20273 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20274 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20275 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20276 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20277 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20278 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20279 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20280 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20281 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20282 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20283 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20286 { (exit 1); exit 1; }; };;
20287 esac
20288 done
20290 # If the user did not use the arguments to specify the items to instantiate,
20291 # then the envvar interface is used. Set only those that are not.
20292 # We use the long form for the default assignment because of an extremely
20293 # bizarre bug on SunOS 4.1.3.
20294 if $ac_need_defaults; then
20295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20300 # Have a temporary directory for convenience. Make it in the build tree
20301 # simply because there is no reason to put it here, and in addition,
20302 # creating and moving files from /tmp can sometimes cause problems.
20303 # Create a temporary directory, and hook for its removal unless debugging.
20304 $debug ||
20306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20307 trap '{ (exit 1); exit 1; }' 1 2 13 15
20310 # Create a (secure) tmp directory for tmp files.
20313 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20314 test -n "$tmp" && test -d "$tmp"
20315 } ||
20317 tmp=./confstat$$-$RANDOM
20318 (umask 077 && mkdir $tmp)
20319 } ||
20321 echo "$me: cannot create a temporary directory in ." >&2
20322 { (exit 1); exit 1; }
20325 _ACEOF
20327 cat >>$CONFIG_STATUS <<_ACEOF
20330 # CONFIG_FILES section.
20333 # No need to generate the scripts if there are no CONFIG_FILES.
20334 # This happens for instance when ./config.status config.h
20335 if test -n "\$CONFIG_FILES"; then
20336 # Protect against being on the right side of a sed subst in config.status.
20337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20339 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20340 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20341 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20342 s,@SHELL@,$SHELL,;t t
20343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20349 s,@exec_prefix@,$exec_prefix,;t t
20350 s,@prefix@,$prefix,;t t
20351 s,@program_transform_name@,$program_transform_name,;t t
20352 s,@bindir@,$bindir,;t t
20353 s,@sbindir@,$sbindir,;t t
20354 s,@libexecdir@,$libexecdir,;t t
20355 s,@datadir@,$datadir,;t t
20356 s,@sysconfdir@,$sysconfdir,;t t
20357 s,@sharedstatedir@,$sharedstatedir,;t t
20358 s,@localstatedir@,$localstatedir,;t t
20359 s,@libdir@,$libdir,;t t
20360 s,@includedir@,$includedir,;t t
20361 s,@oldincludedir@,$oldincludedir,;t t
20362 s,@infodir@,$infodir,;t t
20363 s,@mandir@,$mandir,;t t
20364 s,@build_alias@,$build_alias,;t t
20365 s,@host_alias@,$host_alias,;t t
20366 s,@target_alias@,$target_alias,;t t
20367 s,@DEFS@,$DEFS,;t t
20368 s,@ECHO_C@,$ECHO_C,;t t
20369 s,@ECHO_N@,$ECHO_N,;t t
20370 s,@ECHO_T@,$ECHO_T,;t t
20371 s,@LIBS@,$LIBS,;t t
20372 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20373 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20374 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20375 s,@CYGPATH_W@,$CYGPATH_W,;t t
20376 s,@PACKAGE@,$PACKAGE,;t t
20377 s,@VERSION@,$VERSION,;t t
20378 s,@ACLOCAL@,$ACLOCAL,;t t
20379 s,@AUTOCONF@,$AUTOCONF,;t t
20380 s,@AUTOMAKE@,$AUTOMAKE,;t t
20381 s,@AUTOHEADER@,$AUTOHEADER,;t t
20382 s,@MAKEINFO@,$MAKEINFO,;t t
20383 s,@install_sh@,$install_sh,;t t
20384 s,@STRIP@,$STRIP,;t t
20385 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20386 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20387 s,@mkdir_p@,$mkdir_p,;t t
20388 s,@AWK@,$AWK,;t t
20389 s,@SET_MAKE@,$SET_MAKE,;t t
20390 s,@am__leading_dot@,$am__leading_dot,;t t
20391 s,@AMTAR@,$AMTAR,;t t
20392 s,@am__tar@,$am__tar,;t t
20393 s,@am__untar@,$am__untar,;t t
20394 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20395 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20396 s,@MAINT@,$MAINT,;t t
20397 s,@build@,$build,;t t
20398 s,@build_cpu@,$build_cpu,;t t
20399 s,@build_vendor@,$build_vendor,;t t
20400 s,@build_os@,$build_os,;t t
20401 s,@host@,$host,;t t
20402 s,@host_cpu@,$host_cpu,;t t
20403 s,@host_vendor@,$host_vendor,;t t
20404 s,@host_os@,$host_os,;t t
20405 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20406 s,@X11LIBS@,$X11LIBS,;t t
20407 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20408 s,@MULECFLAGS@,$MULECFLAGS,;t t
20409 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20410 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20411 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20412 s,@CXX@,$CXX,;t t
20413 s,@CXXFLAGS@,$CXXFLAGS,;t t
20414 s,@LDFLAGS@,$LDFLAGS,;t t
20415 s,@CPPFLAGS@,$CPPFLAGS,;t t
20416 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20417 s,@EXEEXT@,$EXEEXT,;t t
20418 s,@OBJEXT@,$OBJEXT,;t t
20419 s,@DEPDIR@,$DEPDIR,;t t
20420 s,@am__include@,$am__include,;t t
20421 s,@am__quote@,$am__quote,;t t
20422 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20423 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20424 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20425 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20426 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20427 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20428 s,@CXXCPP@,$CXXCPP,;t t
20429 s,@CC@,$CC,;t t
20430 s,@CFLAGS@,$CFLAGS,;t t
20431 s,@ac_ct_CC@,$ac_ct_CC,;t t
20432 s,@CCDEPMODE@,$CCDEPMODE,;t t
20433 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20434 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20435 s,@CPP@,$CPP,;t t
20436 s,@BUILD_CC@,$BUILD_CC,;t t
20437 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20438 s,@EXEEXT@,$EXEEXT,;t t
20439 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20440 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20441 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20442 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20443 s,@EGREP@,$EGREP,;t t
20444 s,@LEX@,$LEX,;t t
20445 s,@LEXLIB@,$LEXLIB,;t t
20446 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20447 s,@RANLIB@,$RANLIB,;t t
20448 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20449 s,@YACC@,$YACC,;t t
20450 s,@AR@,$AR,;t t
20451 s,@ac_ct_AR@,$ac_ct_AR,;t t
20452 s,@LD@,$LD,;t t
20453 s,@ac_ct_LD@,$ac_ct_LD,;t t
20454 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20455 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20456 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20457 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20458 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20459 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20460 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20461 s,@CAS_DEFS@,$CAS_DEFS,;t t
20462 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20463 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20464 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20465 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20466 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20467 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20468 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20469 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20470 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20471 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20472 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20473 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20474 s,@WX_LIBS@,$WX_LIBS,;t t
20475 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20476 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20477 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20478 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20479 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20480 s,@WX_UNICODE@,$WX_UNICODE,;t t
20481 s,@WX_DEBUG@,$WX_DEBUG,;t t
20482 s,@WX_SHARED@,$WX_SHARED,;t t
20483 s,@WX_PORT@,$WX_PORT,;t t
20484 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20485 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20486 s,@RC@,$RC,;t t
20487 s,@RCFLAGS@,$RCFLAGS,;t t
20488 s,@ac_ct_RC@,$ac_ct_RC,;t t
20489 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20490 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20491 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20492 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20493 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20494 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20495 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20496 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20497 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20498 s,@ALLOCA@,$ALLOCA,;t t
20499 s,@LIBOBJS@,$LIBOBJS,;t t
20500 s,@POW_LIB@,$POW_LIB,;t t
20501 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20502 s,@MSGFMT@,$MSGFMT,;t t
20503 s,@GMSGFMT@,$GMSGFMT,;t t
20504 s,@XGETTEXT@,$XGETTEXT,;t t
20505 s,@MSGMERGE@,$MSGMERGE,;t t
20506 s,@GLIBC21@,$GLIBC21,;t t
20507 s,@LIBICONV@,$LIBICONV,;t t
20508 s,@LTLIBICONV@,$LTLIBICONV,;t t
20509 s,@INTLBISON@,$INTLBISON,;t t
20510 s,@USE_NLS@,$USE_NLS,;t t
20511 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20512 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20513 s,@CATOBJEXT@,$CATOBJEXT,;t t
20514 s,@INTLOBJS@,$INTLOBJS,;t t
20515 s,@DATADIRNAME@,$DATADIRNAME,;t t
20516 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20517 s,@GENCAT@,$GENCAT,;t t
20518 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20519 s,@INTLLIBS@,$INTLLIBS,;t t
20520 s,@LIBINTL@,$LIBINTL,;t t
20521 s,@LTLIBINTL@,$LTLIBINTL,;t t
20522 s,@POSUB@,$POSUB,;t t
20523 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20524 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20525 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20526 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20527 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20528 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20529 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20530 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20531 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20532 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20533 s,@INCINTL@,$INCINTL,;t t
20534 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20535 s,@BFD_LIBS@,$BFD_LIBS,;t t
20536 s,@docdir@,$docdir,;t t
20537 s,@SVNDATE@,$SVNDATE,;t t
20538 s,@WEB_TRUE@,$WEB_TRUE,;t t
20539 s,@WEB_FALSE@,$WEB_FALSE,;t t
20540 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20541 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20542 s,@CAS_TRUE@,$CAS_TRUE,;t t
20543 s,@CAS_FALSE@,$CAS_FALSE,;t t
20544 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20545 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20546 s,@ALC_TRUE@,$ALC_TRUE,;t t
20547 s,@ALC_FALSE@,$ALC_FALSE,;t t
20548 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20549 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20550 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20551 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20552 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20553 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20554 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20555 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20556 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20557 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20558 s,@XAS_TRUE@,$XAS_TRUE,;t t
20559 s,@XAS_FALSE@,$XAS_FALSE,;t t
20560 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20561 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20562 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20563 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20564 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20565 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20566 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20567 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20568 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20569 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20570 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20571 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20572 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20573 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20574 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20575 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20576 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20577 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20578 CEOF
20580 _ACEOF
20582 cat >>$CONFIG_STATUS <<\_ACEOF
20583 # Split the substitutions into bite-sized pieces for seds with
20584 # small command number limits, like on Digital OSF/1 and HP-UX.
20585 ac_max_sed_lines=48
20586 ac_sed_frag=1 # Number of current file.
20587 ac_beg=1 # First line for current file.
20588 ac_end=$ac_max_sed_lines # Line after last line for current file.
20589 ac_more_lines=:
20590 ac_sed_cmds=
20591 while $ac_more_lines; do
20592 if test $ac_beg -gt 1; then
20593 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20594 else
20595 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20597 if test ! -s $tmp/subs.frag; then
20598 ac_more_lines=false
20599 else
20600 # The purpose of the label and of the branching condition is to
20601 # speed up the sed processing (if there are no `@' at all, there
20602 # is no need to browse any of the substitutions).
20603 # These are the two extra sed commands mentioned above.
20604 (echo ':t
20605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20606 if test -z "$ac_sed_cmds"; then
20607 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20608 else
20609 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20611 ac_sed_frag=`expr $ac_sed_frag + 1`
20612 ac_beg=$ac_end
20613 ac_end=`expr $ac_end + $ac_max_sed_lines`
20615 done
20616 if test -z "$ac_sed_cmds"; then
20617 ac_sed_cmds=cat
20619 fi # test -n "$CONFIG_FILES"
20621 _ACEOF
20622 cat >>$CONFIG_STATUS <<\_ACEOF
20623 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20625 case $ac_file in
20626 - | *:- | *:-:* ) # input from stdin
20627 cat >$tmp/stdin
20628 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20630 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20632 * ) ac_file_in=$ac_file.in ;;
20633 esac
20635 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20636 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20638 X"$ac_file" : 'X\(//\)[^/]' \| \
20639 X"$ac_file" : 'X\(//\)$' \| \
20640 X"$ac_file" : 'X\(/\)' \| \
20641 . : '\(.\)' 2>/dev/null ||
20642 echo X"$ac_file" |
20643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20645 /^X\(\/\/\)$/{ s//\1/; q; }
20646 /^X\(\/\).*/{ s//\1/; q; }
20647 s/.*/./; q'`
20648 { if $as_mkdir_p; then
20649 mkdir -p "$ac_dir"
20650 else
20651 as_dir="$ac_dir"
20652 as_dirs=
20653 while test ! -d "$as_dir"; do
20654 as_dirs="$as_dir $as_dirs"
20655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20657 X"$as_dir" : 'X\(//\)[^/]' \| \
20658 X"$as_dir" : 'X\(//\)$' \| \
20659 X"$as_dir" : 'X\(/\)' \| \
20660 . : '\(.\)' 2>/dev/null ||
20661 echo X"$as_dir" |
20662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20664 /^X\(\/\/\)$/{ s//\1/; q; }
20665 /^X\(\/\).*/{ s//\1/; q; }
20666 s/.*/./; q'`
20667 done
20668 test ! -n "$as_dirs" || mkdir $as_dirs
20669 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20671 { (exit 1); exit 1; }; }; }
20673 ac_builddir=.
20675 if test "$ac_dir" != .; then
20676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20677 # A "../" for each directory in $ac_dir_suffix.
20678 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20679 else
20680 ac_dir_suffix= ac_top_builddir=
20683 case $srcdir in
20684 .) # No --srcdir option. We are building in place.
20685 ac_srcdir=.
20686 if test -z "$ac_top_builddir"; then
20687 ac_top_srcdir=.
20688 else
20689 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20690 fi ;;
20691 [\\/]* | ?:[\\/]* ) # Absolute path.
20692 ac_srcdir=$srcdir$ac_dir_suffix;
20693 ac_top_srcdir=$srcdir ;;
20694 *) # Relative path.
20695 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20696 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20697 esac
20699 # Do not use `cd foo && pwd` to compute absolute paths, because
20700 # the directories may not exist.
20701 case `pwd` in
20702 .) ac_abs_builddir="$ac_dir";;
20704 case "$ac_dir" in
20705 .) ac_abs_builddir=`pwd`;;
20706 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20707 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20708 esac;;
20709 esac
20710 case $ac_abs_builddir in
20711 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20713 case ${ac_top_builddir}. in
20714 .) ac_abs_top_builddir=$ac_abs_builddir;;
20715 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20716 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20717 esac;;
20718 esac
20719 case $ac_abs_builddir in
20720 .) ac_abs_srcdir=$ac_srcdir;;
20722 case $ac_srcdir in
20723 .) ac_abs_srcdir=$ac_abs_builddir;;
20724 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20725 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20726 esac;;
20727 esac
20728 case $ac_abs_builddir in
20729 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20731 case $ac_top_srcdir in
20732 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20733 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20734 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20735 esac;;
20736 esac
20739 case $INSTALL in
20740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20741 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20742 esac
20744 if test x"$ac_file" != x-; then
20745 { echo "$as_me:$LINENO: creating $ac_file" >&5
20746 echo "$as_me: creating $ac_file" >&6;}
20747 rm -f "$ac_file"
20749 # Let's still pretend it is `configure' which instantiates (i.e., don't
20750 # use $as_me), people would be surprised to read:
20751 # /* config.h. Generated by config.status. */
20752 if test x"$ac_file" = x-; then
20753 configure_input=
20754 else
20755 configure_input="$ac_file. "
20757 configure_input=$configure_input"Generated from `echo $ac_file_in |
20758 sed 's,.*/,,'` by configure."
20760 # First look for the input files in the build tree, otherwise in the
20761 # src tree.
20762 ac_file_inputs=`IFS=:
20763 for f in $ac_file_in; do
20764 case $f in
20765 -) echo $tmp/stdin ;;
20766 [\\/$]*)
20767 # Absolute (can't be DOS-style, as IFS=:)
20768 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20769 echo "$as_me: error: cannot find input file: $f" >&2;}
20770 { (exit 1); exit 1; }; }
20771 echo "$f";;
20772 *) # Relative
20773 if test -f "$f"; then
20774 # Build tree
20775 echo "$f"
20776 elif test -f "$srcdir/$f"; then
20777 # Source tree
20778 echo "$srcdir/$f"
20779 else
20780 # /dev/null tree
20781 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20782 echo "$as_me: error: cannot find input file: $f" >&2;}
20783 { (exit 1); exit 1; }; }
20784 fi;;
20785 esac
20786 done` || { (exit 1); exit 1; }
20787 _ACEOF
20788 cat >>$CONFIG_STATUS <<_ACEOF
20789 sed "$ac_vpsub
20790 $extrasub
20791 _ACEOF
20792 cat >>$CONFIG_STATUS <<\_ACEOF
20794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20795 s,@configure_input@,$configure_input,;t t
20796 s,@srcdir@,$ac_srcdir,;t t
20797 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20798 s,@top_srcdir@,$ac_top_srcdir,;t t
20799 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20800 s,@builddir@,$ac_builddir,;t t
20801 s,@abs_builddir@,$ac_abs_builddir,;t t
20802 s,@top_builddir@,$ac_top_builddir,;t t
20803 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20804 s,@INSTALL@,$ac_INSTALL,;t t
20805 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20806 rm -f $tmp/stdin
20807 if test x"$ac_file" != x-; then
20808 mv $tmp/out $ac_file
20809 else
20810 cat $tmp/out
20811 rm -f $tmp/out
20814 done
20815 _ACEOF
20816 cat >>$CONFIG_STATUS <<\_ACEOF
20819 # CONFIG_HEADER section.
20822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20825 # ac_d sets the value in "#define NAME VALUE" lines.
20826 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20827 ac_dB='[ ].*$,\1#\2'
20828 ac_dC=' '
20829 ac_dD=',;t'
20830 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20831 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20832 ac_uB='$,\1#\2define\3'
20833 ac_uC=' '
20834 ac_uD=',;t'
20836 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20838 case $ac_file in
20839 - | *:- | *:-:* ) # input from stdin
20840 cat >$tmp/stdin
20841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20845 * ) ac_file_in=$ac_file.in ;;
20846 esac
20848 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20849 echo "$as_me: creating $ac_file" >&6;}
20851 # First look for the input files in the build tree, otherwise in the
20852 # src tree.
20853 ac_file_inputs=`IFS=:
20854 for f in $ac_file_in; do
20855 case $f in
20856 -) echo $tmp/stdin ;;
20857 [\\/$]*)
20858 # Absolute (can't be DOS-style, as IFS=:)
20859 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20860 echo "$as_me: error: cannot find input file: $f" >&2;}
20861 { (exit 1); exit 1; }; }
20862 # Do quote $f, to prevent DOS paths from being IFS'd.
20863 echo "$f";;
20864 *) # Relative
20865 if test -f "$f"; then
20866 # Build tree
20867 echo "$f"
20868 elif test -f "$srcdir/$f"; then
20869 # Source tree
20870 echo "$srcdir/$f"
20871 else
20872 # /dev/null tree
20873 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20874 echo "$as_me: error: cannot find input file: $f" >&2;}
20875 { (exit 1); exit 1; }; }
20876 fi;;
20877 esac
20878 done` || { (exit 1); exit 1; }
20879 # Remove the trailing spaces.
20880 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20882 _ACEOF
20884 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20885 # `conftest.undefs', that substitutes the proper values into
20886 # config.h.in to produce config.h. The first handles `#define'
20887 # templates, and the second `#undef' templates.
20888 # And first: Protect against being on the right side of a sed subst in
20889 # config.status. Protect against being in an unquoted here document
20890 # in config.status.
20891 rm -f conftest.defines conftest.undefs
20892 # Using a here document instead of a string reduces the quoting nightmare.
20893 # Putting comments in sed scripts is not portable.
20895 # `end' is used to avoid that the second main sed command (meant for
20896 # 0-ary CPP macros) applies to n-ary macro definitions.
20897 # See the Autoconf documentation for `clear'.
20898 cat >confdef2sed.sed <<\_ACEOF
20899 s/[\\&,]/\\&/g
20900 s,[\\$`],\\&,g
20901 t clear
20902 : clear
20903 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20904 t end
20905 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20906 : end
20907 _ACEOF
20908 # If some macros were called several times there might be several times
20909 # the same #defines, which is useless. Nevertheless, we may not want to
20910 # sort them, since we want the *last* AC-DEFINE to be honored.
20911 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20912 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20913 rm -f confdef2sed.sed
20915 # This sed command replaces #undef with comments. This is necessary, for
20916 # example, in the case of _POSIX_SOURCE, which is predefined and required
20917 # on some systems where configure will not decide to define it.
20918 cat >>conftest.undefs <<\_ACEOF
20919 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20920 _ACEOF
20922 # Break up conftest.defines because some shells have a limit on the size
20923 # of here documents, and old seds have small limits too (100 cmds).
20924 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20925 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20926 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20927 echo ' :' >>$CONFIG_STATUS
20928 rm -f conftest.tail
20929 while grep . conftest.defines >/dev/null
20931 # Write a limited-size here document to $tmp/defines.sed.
20932 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20933 # Speed up: don't consider the non `#define' lines.
20934 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20935 # Work around the forget-to-reset-the-flag bug.
20936 echo 't clr' >>$CONFIG_STATUS
20937 echo ': clr' >>$CONFIG_STATUS
20938 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20939 echo 'CEOF
20940 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20941 rm -f $tmp/in
20942 mv $tmp/out $tmp/in
20943 ' >>$CONFIG_STATUS
20944 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20945 rm -f conftest.defines
20946 mv conftest.tail conftest.defines
20947 done
20948 rm -f conftest.defines
20949 echo ' fi # grep' >>$CONFIG_STATUS
20950 echo >>$CONFIG_STATUS
20952 # Break up conftest.undefs because some shells have a limit on the size
20953 # of here documents, and old seds have small limits too (100 cmds).
20954 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20955 rm -f conftest.tail
20956 while grep . conftest.undefs >/dev/null
20958 # Write a limited-size here document to $tmp/undefs.sed.
20959 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20960 # Speed up: don't consider the non `#undef'
20961 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20962 # Work around the forget-to-reset-the-flag bug.
20963 echo 't clr' >>$CONFIG_STATUS
20964 echo ': clr' >>$CONFIG_STATUS
20965 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20966 echo 'CEOF
20967 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20968 rm -f $tmp/in
20969 mv $tmp/out $tmp/in
20970 ' >>$CONFIG_STATUS
20971 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20972 rm -f conftest.undefs
20973 mv conftest.tail conftest.undefs
20974 done
20975 rm -f conftest.undefs
20977 cat >>$CONFIG_STATUS <<\_ACEOF
20978 # Let's still pretend it is `configure' which instantiates (i.e., don't
20979 # use $as_me), people would be surprised to read:
20980 # /* config.h. Generated by config.status. */
20981 if test x"$ac_file" = x-; then
20982 echo "/* Generated by configure. */" >$tmp/config.h
20983 else
20984 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20986 cat $tmp/in >>$tmp/config.h
20987 rm -f $tmp/in
20988 if test x"$ac_file" != x-; then
20989 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20990 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20991 echo "$as_me: $ac_file is unchanged" >&6;}
20992 else
20993 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20995 X"$ac_file" : 'X\(//\)[^/]' \| \
20996 X"$ac_file" : 'X\(//\)$' \| \
20997 X"$ac_file" : 'X\(/\)' \| \
20998 . : '\(.\)' 2>/dev/null ||
20999 echo X"$ac_file" |
21000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21002 /^X\(\/\/\)$/{ s//\1/; q; }
21003 /^X\(\/\).*/{ s//\1/; q; }
21004 s/.*/./; q'`
21005 { if $as_mkdir_p; then
21006 mkdir -p "$ac_dir"
21007 else
21008 as_dir="$ac_dir"
21009 as_dirs=
21010 while test ! -d "$as_dir"; do
21011 as_dirs="$as_dir $as_dirs"
21012 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21014 X"$as_dir" : 'X\(//\)[^/]' \| \
21015 X"$as_dir" : 'X\(//\)$' \| \
21016 X"$as_dir" : 'X\(/\)' \| \
21017 . : '\(.\)' 2>/dev/null ||
21018 echo X"$as_dir" |
21019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21021 /^X\(\/\/\)$/{ s//\1/; q; }
21022 /^X\(\/\).*/{ s//\1/; q; }
21023 s/.*/./; q'`
21024 done
21025 test ! -n "$as_dirs" || mkdir $as_dirs
21026 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21027 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21028 { (exit 1); exit 1; }; }; }
21030 rm -f $ac_file
21031 mv $tmp/config.h $ac_file
21033 else
21034 cat $tmp/config.h
21035 rm -f $tmp/config.h
21037 # Compute $ac_file's index in $config_headers.
21038 _am_stamp_count=1
21039 for _am_header in $config_headers :; do
21040 case $_am_header in
21041 $ac_file | $ac_file:* )
21042 break ;;
21044 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21045 esac
21046 done
21047 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21048 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21049 X$ac_file : 'X\(//\)[^/]' \| \
21050 X$ac_file : 'X\(//\)$' \| \
21051 X$ac_file : 'X\(/\)' \| \
21052 . : '\(.\)' 2>/dev/null ||
21053 echo X$ac_file |
21054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21056 /^X\(\/\/\)$/{ s//\1/; q; }
21057 /^X\(\/\).*/{ s//\1/; q; }
21058 s/.*/./; q'`/stamp-h$_am_stamp_count
21059 done
21060 _ACEOF
21061 cat >>$CONFIG_STATUS <<\_ACEOF
21064 # CONFIG_COMMANDS section.
21066 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21067 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21068 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21069 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21070 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21071 X"$ac_dest" : 'X\(//\)[^/]' \| \
21072 X"$ac_dest" : 'X\(//\)$' \| \
21073 X"$ac_dest" : 'X\(/\)' \| \
21074 . : '\(.\)' 2>/dev/null ||
21075 echo X"$ac_dest" |
21076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21078 /^X\(\/\/\)$/{ s//\1/; q; }
21079 /^X\(\/\).*/{ s//\1/; q; }
21080 s/.*/./; q'`
21081 { if $as_mkdir_p; then
21082 mkdir -p "$ac_dir"
21083 else
21084 as_dir="$ac_dir"
21085 as_dirs=
21086 while test ! -d "$as_dir"; do
21087 as_dirs="$as_dir $as_dirs"
21088 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21090 X"$as_dir" : 'X\(//\)[^/]' \| \
21091 X"$as_dir" : 'X\(//\)$' \| \
21092 X"$as_dir" : 'X\(/\)' \| \
21093 . : '\(.\)' 2>/dev/null ||
21094 echo X"$as_dir" |
21095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21097 /^X\(\/\/\)$/{ s//\1/; q; }
21098 /^X\(\/\).*/{ s//\1/; q; }
21099 s/.*/./; q'`
21100 done
21101 test ! -n "$as_dirs" || mkdir $as_dirs
21102 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21103 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21104 { (exit 1); exit 1; }; }; }
21106 ac_builddir=.
21108 if test "$ac_dir" != .; then
21109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21110 # A "../" for each directory in $ac_dir_suffix.
21111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21112 else
21113 ac_dir_suffix= ac_top_builddir=
21116 case $srcdir in
21117 .) # No --srcdir option. We are building in place.
21118 ac_srcdir=.
21119 if test -z "$ac_top_builddir"; then
21120 ac_top_srcdir=.
21121 else
21122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21123 fi ;;
21124 [\\/]* | ?:[\\/]* ) # Absolute path.
21125 ac_srcdir=$srcdir$ac_dir_suffix;
21126 ac_top_srcdir=$srcdir ;;
21127 *) # Relative path.
21128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21130 esac
21132 # Do not use `cd foo && pwd` to compute absolute paths, because
21133 # the directories may not exist.
21134 case `pwd` in
21135 .) ac_abs_builddir="$ac_dir";;
21137 case "$ac_dir" in
21138 .) ac_abs_builddir=`pwd`;;
21139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21141 esac;;
21142 esac
21143 case $ac_abs_builddir in
21144 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21146 case ${ac_top_builddir}. in
21147 .) ac_abs_top_builddir=$ac_abs_builddir;;
21148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21150 esac;;
21151 esac
21152 case $ac_abs_builddir in
21153 .) ac_abs_srcdir=$ac_srcdir;;
21155 case $ac_srcdir in
21156 .) ac_abs_srcdir=$ac_abs_builddir;;
21157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21159 esac;;
21160 esac
21161 case $ac_abs_builddir in
21162 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21164 case $ac_top_srcdir in
21165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21168 esac;;
21169 esac
21172 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21173 echo "$as_me: executing $ac_dest commands" >&6;}
21174 case $ac_dest in
21175 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21176 # Strip MF so we end up with the name of the file.
21177 mf=`echo "$mf" | sed -e 's/:.*$//'`
21178 # Check whether this is an Automake generated Makefile or not.
21179 # We used to match only the files named `Makefile.in', but
21180 # some people rename them; so instead we look at the file content.
21181 # Grep'ing the first line is not enough: some people post-process
21182 # each Makefile.in and add a new line on top of each file to say so.
21183 # So let's grep whole file.
21184 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21185 dirpart=`(dirname "$mf") 2>/dev/null ||
21186 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21187 X"$mf" : 'X\(//\)[^/]' \| \
21188 X"$mf" : 'X\(//\)$' \| \
21189 X"$mf" : 'X\(/\)' \| \
21190 . : '\(.\)' 2>/dev/null ||
21191 echo X"$mf" |
21192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21194 /^X\(\/\/\)$/{ s//\1/; q; }
21195 /^X\(\/\).*/{ s//\1/; q; }
21196 s/.*/./; q'`
21197 else
21198 continue
21200 # Extract the definition of DEPDIR, am__include, and am__quote
21201 # from the Makefile without running `make'.
21202 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21203 test -z "$DEPDIR" && continue
21204 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21205 test -z "am__include" && continue
21206 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21207 # When using ansi2knr, U may be empty or an underscore; expand it
21208 U=`sed -n 's/^U = //p' < "$mf"`
21209 # Find all dependency output files, they are included files with
21210 # $(DEPDIR) in their names. We invoke sed twice because it is the
21211 # simplest approach to changing $(DEPDIR) to its actual value in the
21212 # expansion.
21213 for file in `sed -n "
21214 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21215 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21216 # Make sure the directory exists.
21217 test -f "$dirpart/$file" && continue
21218 fdir=`(dirname "$file") 2>/dev/null ||
21219 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21220 X"$file" : 'X\(//\)[^/]' \| \
21221 X"$file" : 'X\(//\)$' \| \
21222 X"$file" : 'X\(/\)' \| \
21223 . : '\(.\)' 2>/dev/null ||
21224 echo X"$file" |
21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21227 /^X\(\/\/\)$/{ s//\1/; q; }
21228 /^X\(\/\).*/{ s//\1/; q; }
21229 s/.*/./; q'`
21230 { if $as_mkdir_p; then
21231 mkdir -p $dirpart/$fdir
21232 else
21233 as_dir=$dirpart/$fdir
21234 as_dirs=
21235 while test ! -d "$as_dir"; do
21236 as_dirs="$as_dir $as_dirs"
21237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21239 X"$as_dir" : 'X\(//\)[^/]' \| \
21240 X"$as_dir" : 'X\(//\)$' \| \
21241 X"$as_dir" : 'X\(/\)' \| \
21242 . : '\(.\)' 2>/dev/null ||
21243 echo X"$as_dir" |
21244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21246 /^X\(\/\/\)$/{ s//\1/; q; }
21247 /^X\(\/\).*/{ s//\1/; q; }
21248 s/.*/./; q'`
21249 done
21250 test ! -n "$as_dirs" || mkdir $as_dirs
21251 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21252 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21253 { (exit 1); exit 1; }; }; }
21255 # echo "creating $dirpart/$file"
21256 echo '# dummy' > "$dirpart/$file"
21257 done
21258 done
21260 default-1 )
21261 for ac_file in $CONFIG_FILES; do
21262 # Support "outfile[:infile[:infile...]]"
21263 case "$ac_file" in
21264 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21265 esac
21266 # PO directories have a Makefile.in generated from Makefile.in.in.
21267 case "$ac_file" in */Makefile.in)
21268 # Adjust a relative srcdir.
21269 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21270 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21271 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21272 # In autoconf-2.13 it is called $ac_given_srcdir.
21273 # In autoconf-2.50 it is called $srcdir.
21274 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21275 case "$ac_given_srcdir" in
21276 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21277 /*) top_srcdir="$ac_given_srcdir" ;;
21278 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21279 esac
21280 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21281 rm -f "$ac_dir/POTFILES"
21282 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21283 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21284 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21285 # on $ac_dir but don't depend on user-specified configuration
21286 # parameters.
21287 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21288 # The LINGUAS file contains the set of available languages.
21289 if test -n "$ALL_LINGUAS"; then
21290 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21292 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21293 # Hide the ALL_LINGUAS assigment from automake.
21294 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21296 case "$ac_given_srcdir" in
21297 .) srcdirpre= ;;
21298 *) srcdirpre='$(srcdir)/' ;;
21299 esac
21300 POFILES=
21301 GMOFILES=
21302 UPDATEPOFILES=
21303 DUMMYPOFILES=
21304 for lang in $ALL_LINGUAS; do
21305 POFILES="$POFILES $srcdirpre$lang.po"
21306 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21307 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21308 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21309 done
21310 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21311 # environment variable.
21312 INST_LINGUAS=
21313 if test -n "$ALL_LINGUAS"; then
21314 for presentlang in $ALL_LINGUAS; do
21315 useit=no
21316 if test "%UNSET%" != "$LINGUAS"; then
21317 desiredlanguages="$LINGUAS"
21318 else
21319 desiredlanguages="$ALL_LINGUAS"
21321 for desiredlang in $desiredlanguages; do
21322 # Use the presentlang catalog if desiredlang is
21323 # a. equal to presentlang, or
21324 # b. a variant of presentlang (because in this case,
21325 # presentlang can be used as a fallback for messages
21326 # which are not translated in the desiredlang catalog).
21327 case "$desiredlang" in
21328 "$presentlang"*) useit=yes;;
21329 esac
21330 done
21331 if test $useit = yes; then
21332 INST_LINGUAS="$INST_LINGUAS $presentlang"
21334 done
21336 CATALOGS=
21337 if test -n "$INST_LINGUAS"; then
21338 for lang in $INST_LINGUAS; do
21339 CATALOGS="$CATALOGS $lang.gmo"
21340 done
21342 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21343 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"
21344 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21345 if test -f "$f"; then
21346 case "$f" in
21347 *.orig | *.bak | *~) ;;
21348 *) cat "$f" >> "$ac_dir/Makefile" ;;
21349 esac
21351 done
21354 esac
21355 done ;;
21356 denoiser ) if test $denoiserlevel -gt 0; then
21357 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21358 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" \
21359 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21360 for i in `find . -name 'Makefile' -print`; do
21361 if test -n "`head -n 1 $i | grep '^#'`"; then
21362 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21364 done
21365 fi ;;
21366 esac
21367 done
21368 _ACEOF
21370 cat >>$CONFIG_STATUS <<\_ACEOF
21372 { (exit 0); exit 0; }
21373 _ACEOF
21374 chmod +x $CONFIG_STATUS
21375 ac_clean_files=$ac_clean_files_save
21378 # configure is writing to config.log, and then calls config.status.
21379 # config.status does its own redirection, appending to config.log.
21380 # Unfortunately, on DOS this fails, as config.log is still kept open
21381 # by configure, so config.status won't be able to write to it; its
21382 # output is simply discarded. So we exec the FD to /dev/null,
21383 # effectively closing config.log, so it can be properly (re)opened and
21384 # appended to by config.status. When coming back to configure, we
21385 # need to make the FD available again.
21386 if test "$no_create" != yes; then
21387 ac_cs_success=:
21388 ac_config_status_args=
21389 test "$silent" = yes &&
21390 ac_config_status_args="$ac_config_status_args --quiet"
21391 exec 5>/dev/null
21392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21393 exec 5>>config.log
21394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21395 # would make configure fail if this is the last instruction.
21396 $ac_cs_success || { (exit 1); exit 1; }
21400 if test -n "$svndate"; then
21401 SVN_REVISION=" ($svndate)"
21402 else
21403 SVN_REVISION=
21407 echo
21408 echo
21409 echo " Configure script has finished system check."
21410 echo
21411 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21412 echo
21413 echo " aMule enabled options:"
21414 echo
21415 echo " **** aMule Core ****"
21416 echo " Prefix where aMule should be installed? ${prefix:-none}"
21417 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21418 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21419 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21420 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21421 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21422 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21423 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21424 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21425 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21426 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21428 echo
21429 echo " **** aMule TextClient ****"
21430 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21431 echo
21432 echo " **** aMule WebServer ****"
21433 echo " Should aMule WebServer be built? ${WEB:-no}"
21434 echo
21435 echo " **** aMule ED2K Links Handler ****"
21436 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21437 echo
21438 echo " **** aMuleLinkCreator ****"
21439 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21440 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21441 echo
21442 echo " **** aMule Statistics ****"
21443 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21444 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21445 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21447 echo
21448 echo " **** General Libraries and Tools ****"
21449 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21450 echo " Libraries aMule will use to build:"
21451 wxinfo="$WX_PORT"
21452 if test $WX_DEBUG -eq 1; then
21453 wxinfo="$wxinfo,debug"
21456 if test $WX_SHARED -eq 1; then
21457 wxinfo="$wxinfo,shared"
21458 else
21459 wxinfo="$wxinfo,static"
21462 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21463 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21464 if test -n "$with_libupnp_prefix"; then
21465 libupnp_place=" (in $with_libupnp_prefix)"
21468 if test x${ENABLE_UPNP} = xyes; then
21469 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21472 if test x${WEB:-no} != xno; then
21473 if test $regex_found = no; then
21474 regex_found="Not detected"
21475 else
21476 if test -z "$REGEX_LIB"; then
21477 regex_found=system
21478 else
21479 regex_found="standalone (in $REGEX_LIB)"
21484 echo " regex $regex_found"
21486 if test ${enable_nls:-yes} = yes; then
21487 if test x$USE_NLS = xno; then
21488 libintl_found="Not detected"
21489 else
21490 if test x$USE_INCLUDED_LIBINTL = xyes; then
21491 libintl_found="included"
21492 else
21493 libintl_found="system"
21498 echo " libintl $libintl_found"
21500 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21501 geoip_style=system
21502 else
21503 geoip_style=user
21506 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21507 echo " libGeoIP ${geoip_style}"
21510 if test x$LIBPNG_VERSION != xnot_needed; then
21511 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21513 if test x$GDLIB_VERSION != xnot_needed; then
21514 echo " libgd ${GDLIB_VERSION:-Not detected}"
21516 echo " zlib ${ZLIB_VERSION:-Not detected}"
21517 if test ${_mule_has_warnings:-no} = yes; then
21518 echo ""
21519 echo ""
21520 echo " *** Warnings during configuration ***"
21522 if test ${_mule_warning_0:-no} = yes; then
21523 cat <<_MULEEOT
21525 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21526 Please check that gdlib-config is in your default path, check out
21527 LD_LIBRARY_PATH or equivalent variable.
21528 Or this might also be that your gdlib-config has other name.
21529 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21530 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21531 If you use compiled packages check if you have devel pack installed.
21532 To download the latest version check http://www.boutell.com/gd for sources.
21533 _MULEEOT
21535 if test ${_mule_warning_1:-no} = yes; then
21536 cat <<_MULEEOT
21538 * amuleweb has been disabled because configure could not find a POSIX
21539 compliant regex library.
21540 _MULEEOT
21542 if test ${_mule_warning_2:-no} = yes; then
21543 cat <<_MULEEOT
21545 * libpng >= 1.2.0 not found.
21546 amuleweb will be compiled but file download progress bar images will NOT be
21547 generated.
21548 _MULEEOT
21550 if test ${_mule_warning_3:-no} = yes; then
21551 cat <<_MULEEOT
21553 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21554 _MULEEOT
21556 if test ${_mule_warning_4:-no} = yes; then
21557 cat <<_MULEEOT
21559 * GeoIP support has been disabled because the GeoIP libraries were not found
21560 _MULEEOT
21562 if test ${_mule_warning_5:-no} = yes; then
21563 cat <<_MULEEOT
21565 * GeoIP support has been disabled because the GeoIP header files were not
21566 found
21567 _MULEEOT
21569 if test ${_mule_warning_6:-no} = yes; then
21570 cat <<_MULEEOT
21572 * UPnP code has been disabled because ${libupnp_error}.
21573 _MULEEOT
21575 if test ${_mule_warning_7:-no} = yes; then
21576 cat <<_MULEEOT
21578 * Cross-compilation detected, so exception handling cannot be tested.
21579 Note that broken exception handling in your compiler may lead to unexpected
21580 crashes.
21581 _MULEEOT
21583 if test ${_mule_warning_8:-no} = yes; then
21584 cat <<_MULEEOT
21586 * configure cannot check whether malloc() and realloc() are GNU libc
21587 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21588 configure with the --without-gnu-malloc switch.
21589 _MULEEOT
21591 if test ${_mule_warning_9:-no} = yes; then
21592 cat <<_MULEEOT
21594 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21595 support.
21596 _MULEEOT
21598 if test ${_mule_warning_10:-no} = yes; then
21599 cat <<_MULEEOT
21601 * bfd.h not found or unusable, please install binutils development package if
21602 you are a developer or want to help testing aMule
21603 _MULEEOT