Upstream tarball 20080908
[amule.git] / configure
blobee53ffc01ea7e09e59c38fb5d9e8b63bf07233fb
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 BFD_CPPFLAGS BFD_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 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 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 --disable-xas do not install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --disable-rpath do not hardcode runtime library paths
902 --disable-nls do not use Native Language Support
903 --disable-debug disable additional debugging output
904 --enable-optimize enable code optimization
905 --enable-profile enable code profiling
906 --enable-static produce a statically linked executable
907 --enable-ccache enable ccache support for fast recompilation
909 Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --without-gnu-malloc Don't assume that we use GNU libc compatible
913 malloc/realloc when cross-compiling
914 --with-zlib=PREFIX use zlib in PREFIX
915 --with-gdlib-prefix=PREFIX
916 prefix where gdlib is installed (optional)
917 --with-gdlib-config=CONFIG
918 gdlib-config script to use (optional)
919 --with-libpng-prefix=PREFIX
920 prefix where libpng is installed (optional)
921 --with-libpng-config=CONFIG
922 libpng-config script to use (optional)
923 --with-geoip-headers=DIR
924 GeoIP include files location
925 --with-geoip-lib=DIR GeoIP library location
926 --with-geoip-static Explicitly link GeoIP statically (default=no)
927 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
928 --with-wx-config=CONFIG wx-config script to use (optional)
929 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
930 --with-wx-exec-prefix=PREFIX
931 Exec prefix where wxWidgets is installed (optional)
932 --with-toolkit Build against a specific wxWidgets toolkit (default
933 is auto)
934 --with-wxshared Force building against a shared build of wxWidgets,
935 even if --disable-shared is given (default is auto)
936 --with-wxdebug Force building against a debug build of wxWidgets,
937 even if --disable-debug is given (default is auto)
938 --with-wxversion Build against a specific version of wxWidgets
939 (default is auto)
940 --with-libupnp-prefix=PREFIX
941 UPnP library location
942 --with-crypto-prefix=PREFIX
943 prefix where crypto++ is installed
944 --with-x use the X Window System
945 --with-language=<langs> Specify a comma-separated list of languages you want
946 to have installed. See po/LINGUAS for available
947 languages
948 --with-gnu-ld assume the C compiler uses GNU ld default=no
949 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
950 --without-libiconv-prefix don't search for libiconv in includedir and libdir
951 --with-included-gettext use the GNU gettext library included here
952 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
953 --without-libintl-prefix don't search for libintl in includedir and libdir
954 --with-denoise-level=<level>
955 Specifies denoising level (0-4):
956 0 - Do nothing
957 4 - Suppress all normal output
958 (for more information see
959 src/utils/scripts/denoiser.rules)
961 --with-ccache-prefix=PREFIX
962 prefix where ccache is installed
964 Some influential environment variables:
965 CXX C++ compiler command
966 CXXFLAGS C++ compiler flags
967 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
968 nonstandard directory <lib dir>
969 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
970 headers in a nonstandard directory <include dir>
971 CXXCPP C++ preprocessor
972 CC C compiler command
973 CFLAGS C compiler flags
974 CPP C preprocessor
975 RC Resource Compiler
976 RCFLAGS Resource Compiler Flags
977 PKG_CONFIG path to pkg-config utility
979 Use these variables to override the choices made by `configure' or to help
980 it to find libraries and programs with nonstandard names/locations.
982 Report bugs to <admin@amule.org>.
983 _ACEOF
986 if test "$ac_init_help" = "recursive"; then
987 # If there are subdirs, report their specific --help.
988 ac_popdir=`pwd`
989 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
990 test -d $ac_dir || continue
991 ac_builddir=.
993 if test "$ac_dir" != .; then
994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
995 # A "../" for each directory in $ac_dir_suffix.
996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
997 else
998 ac_dir_suffix= ac_top_builddir=
1001 case $srcdir in
1002 .) # No --srcdir option. We are building in place.
1003 ac_srcdir=.
1004 if test -z "$ac_top_builddir"; then
1005 ac_top_srcdir=.
1006 else
1007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1008 fi ;;
1009 [\\/]* | ?:[\\/]* ) # Absolute path.
1010 ac_srcdir=$srcdir$ac_dir_suffix;
1011 ac_top_srcdir=$srcdir ;;
1012 *) # Relative path.
1013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1015 esac
1017 # Do not use `cd foo && pwd` to compute absolute paths, because
1018 # the directories may not exist.
1019 case `pwd` in
1020 .) ac_abs_builddir="$ac_dir";;
1022 case "$ac_dir" in
1023 .) ac_abs_builddir=`pwd`;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1025 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1026 esac;;
1027 esac
1028 case $ac_abs_builddir in
1029 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 case ${ac_top_builddir}. in
1032 .) ac_abs_top_builddir=$ac_abs_builddir;;
1033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1035 esac;;
1036 esac
1037 case $ac_abs_builddir in
1038 .) ac_abs_srcdir=$ac_srcdir;;
1040 case $ac_srcdir in
1041 .) ac_abs_srcdir=$ac_abs_builddir;;
1042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1044 esac;;
1045 esac
1046 case $ac_abs_builddir in
1047 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 case $ac_top_srcdir in
1050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1053 esac;;
1054 esac
1056 cd $ac_dir
1057 # Check for guested configure; otherwise get Cygnus style configure.
1058 if test -f $ac_srcdir/configure.gnu; then
1059 echo
1060 $SHELL $ac_srcdir/configure.gnu --help=recursive
1061 elif test -f $ac_srcdir/configure; then
1062 echo
1063 $SHELL $ac_srcdir/configure --help=recursive
1064 elif test -f $ac_srcdir/configure.ac ||
1065 test -f $ac_srcdir/configure.in; then
1066 echo
1067 $ac_configure --help
1068 else
1069 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1071 cd $ac_popdir
1072 done
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1077 cat <<\_ACEOF
1078 aMule configure SVN
1079 generated by GNU Autoconf 2.59
1081 Copyright (C) 2003 Free Software Foundation, Inc.
1082 This configure script is free software; the Free Software Foundation
1083 gives unlimited permission to copy, distribute and modify it.
1084 _ACEOF
1085 exit 0
1087 exec 5>config.log
1088 cat >&5 <<_ACEOF
1089 This file contains any messages produced by compilers while
1090 running configure, to aid debugging if configure makes a mistake.
1092 It was created by aMule $as_me SVN, which was
1093 generated by GNU Autoconf 2.59. Invocation command line was
1095 $ $0 $@
1097 _ACEOF
1099 cat <<_ASUNAME
1100 ## --------- ##
1101 ## Platform. ##
1102 ## --------- ##
1104 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1105 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1106 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1107 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1108 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1110 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1111 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1113 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1114 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1115 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1116 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1117 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1118 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1119 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1121 _ASUNAME
1123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1124 for as_dir in $PATH
1126 IFS=$as_save_IFS
1127 test -z "$as_dir" && as_dir=.
1128 echo "PATH: $as_dir"
1129 done
1131 } >&5
1133 cat >&5 <<_ACEOF
1136 ## ----------- ##
1137 ## Core tests. ##
1138 ## ----------- ##
1140 _ACEOF
1143 # Keep a trace of the command line.
1144 # Strip out --no-create and --no-recursion so they do not pile up.
1145 # Strip out --silent because we don't want to record it for future runs.
1146 # Also quote any args containing shell meta-characters.
1147 # Make two passes to allow for proper duplicate-argument suppression.
1148 ac_configure_args=
1149 ac_configure_args0=
1150 ac_configure_args1=
1151 ac_sep=
1152 ac_must_keep_next=false
1153 for ac_pass in 1 2
1155 for ac_arg
1157 case $ac_arg in
1158 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 continue ;;
1162 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1163 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1164 esac
1165 case $ac_pass in
1166 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1168 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1169 if test $ac_must_keep_next = true; then
1170 ac_must_keep_next=false # Got value, back to normal.
1171 else
1172 case $ac_arg in
1173 *=* | --config-cache | -C | -disable-* | --disable-* \
1174 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1175 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1176 | -with-* | --with-* | -without-* | --without-* | --x)
1177 case "$ac_configure_args0 " in
1178 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1179 esac
1181 -* ) ac_must_keep_next=true ;;
1182 esac
1184 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1185 # Get rid of the leading space.
1186 ac_sep=" "
1188 esac
1189 done
1190 done
1191 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1192 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log. We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close' the trap.
1199 trap 'exit_status=$?
1200 # Save into config.log some information that might help in debugging.
1202 echo
1204 cat <<\_ASBOX
1205 ## ---------------- ##
1206 ## Cache variables. ##
1207 ## ---------------- ##
1208 _ASBOX
1209 echo
1210 # The following way of writing the cache mishandles newlines in values,
1212 (set) 2>&1 |
1213 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1214 *ac_space=\ *)
1215 sed -n \
1216 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1220 sed -n \
1221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1223 esac;
1225 echo
1227 cat <<\_ASBOX
1228 ## ----------------- ##
1229 ## Output variables. ##
1230 ## ----------------- ##
1231 _ASBOX
1232 echo
1233 for ac_var in $ac_subst_vars
1235 eval ac_val=$`echo $ac_var`
1236 echo "$ac_var='"'"'$ac_val'"'"'"
1237 done | sort
1238 echo
1240 if test -n "$ac_subst_files"; then
1241 cat <<\_ASBOX
1242 ## ------------- ##
1243 ## Output files. ##
1244 ## ------------- ##
1245 _ASBOX
1246 echo
1247 for ac_var in $ac_subst_files
1249 eval ac_val=$`echo $ac_var`
1250 echo "$ac_var='"'"'$ac_val'"'"'"
1251 done | sort
1252 echo
1255 if test -s confdefs.h; then
1256 cat <<\_ASBOX
1257 ## ----------- ##
1258 ## confdefs.h. ##
1259 ## ----------- ##
1260 _ASBOX
1261 echo
1262 sed "/^$/d" confdefs.h | sort
1263 echo
1265 test "$ac_signal" != 0 &&
1266 echo "$as_me: caught signal $ac_signal"
1267 echo "$as_me: exit $exit_status"
1268 } >&5
1269 rm -f core *.core &&
1270 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1271 exit $exit_status
1273 for ac_signal in 1 2 13 15; do
1274 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1275 done
1276 ac_signal=0
1278 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1279 rm -rf conftest* confdefs.h
1280 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1281 echo >confdefs.h
1283 # Predefined preprocessor variables.
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_NAME "$PACKAGE_NAME"
1287 _ACEOF
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1292 _ACEOF
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1297 _ACEOF
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_STRING "$PACKAGE_STRING"
1302 _ACEOF
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1307 _ACEOF
1310 # Let the site file select an alternate cache file if it wants to.
1311 # Prefer explicitly selected file to automatically selected ones.
1312 if test -z "$CONFIG_SITE"; then
1313 if test "x$prefix" != xNONE; then
1314 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1315 else
1316 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1319 for ac_site_file in $CONFIG_SITE; do
1320 if test -r "$ac_site_file"; then
1321 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1322 echo "$as_me: loading site script $ac_site_file" >&6;}
1323 sed 's/^/| /' "$ac_site_file" >&5
1324 . "$ac_site_file"
1326 done
1328 if test -r "$cache_file"; then
1329 # Some versions of bash will fail to source /dev/null (special
1330 # files actually), so we avoid doing that.
1331 if test -f "$cache_file"; then
1332 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1333 echo "$as_me: loading cache $cache_file" >&6;}
1334 case $cache_file in
1335 [\\/]* | ?:[\\/]* ) . $cache_file;;
1336 *) . ./$cache_file;;
1337 esac
1339 else
1340 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1341 echo "$as_me: creating cache $cache_file" >&6;}
1342 >$cache_file
1345 # Check that the precious variables saved in the cache have kept the same
1346 # value.
1347 ac_cache_corrupted=false
1348 for ac_var in `(set) 2>&1 |
1349 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1351 eval ac_new_set=\$ac_env_${ac_var}_set
1352 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1353 eval ac_new_val="\$ac_env_${ac_var}_value"
1354 case $ac_old_set,$ac_new_set in
1355 set,)
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1358 ac_cache_corrupted=: ;;
1359 ,set)
1360 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1361 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1362 ac_cache_corrupted=: ;;
1363 ,);;
1365 if test "x$ac_old_val" != "x$ac_new_val"; then
1366 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1367 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1368 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1369 echo "$as_me: former value: $ac_old_val" >&2;}
1370 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1371 echo "$as_me: current value: $ac_new_val" >&2;}
1372 ac_cache_corrupted=:
1373 fi;;
1374 esac
1375 # Pass precious variables to config.status.
1376 if test "$ac_new_set" = set; then
1377 case $ac_new_val in
1378 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1379 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1380 *) ac_arg=$ac_var=$ac_new_val ;;
1381 esac
1382 case " $ac_configure_args " in
1383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1384 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1385 esac
1387 done
1388 if $ac_cache_corrupted; then
1389 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1390 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1391 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1392 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1393 { (exit 1); exit 1; }; }
1396 ac_ext=c
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 am__api_version="1.9"
1429 ac_aux_dir=
1430 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1431 if test -f $ac_dir/install-sh; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/install-sh -c"
1434 break
1435 elif test -f $ac_dir/install.sh; then
1436 ac_aux_dir=$ac_dir
1437 ac_install_sh="$ac_aux_dir/install.sh -c"
1438 break
1439 elif test -f $ac_dir/shtool; then
1440 ac_aux_dir=$ac_dir
1441 ac_install_sh="$ac_aux_dir/shtool install -c"
1442 break
1444 done
1445 if test -z "$ac_aux_dir"; then
1446 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1447 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1448 { (exit 1); exit 1; }; }
1450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1452 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1460 # AIX /bin/install
1461 # AmigaOS /C/install, which installs bootblocks on floppy discs
1462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465 # OS/2's system install, which has a completely different semantic
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469 if test -z "$INSTALL"; then
1470 if test "${ac_cv_path_install+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 # Account for people who put trailing slashes in PATH elements.
1479 case $as_dir/ in
1480 ./ | .// | /cC/* | \
1481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1482 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1483 /usr/ucb/* ) ;;
1485 # OSF1 and SCO ODT 3.0 have their own names for install.
1486 # Don't use installbsd from OSF since it installs stuff as root
1487 # by default.
1488 for ac_prog in ginstall scoinst install; do
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491 if test $ac_prog = install &&
1492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1493 # AIX install. It has an incompatible calling convention.
1495 elif test $ac_prog = install &&
1496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497 # program-specific install script used by HP pwplus--don't use.
1499 else
1500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501 break 3
1504 done
1505 done
1507 esac
1508 done
1512 if test "${ac_cv_path_install+set}" = set; then
1513 INSTALL=$ac_cv_path_install
1514 else
1515 # As a last resort, use the slow shell script. We don't cache a
1516 # path for INSTALL within a source directory, because that will
1517 # break other packages using the cache if that directory is
1518 # removed, or if the path is relative.
1519 INSTALL=$ac_install_sh
1522 echo "$as_me:$LINENO: result: $INSTALL" >&5
1523 echo "${ECHO_T}$INSTALL" >&6
1525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526 # It thinks the first close brace ends the variable substitution.
1527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1533 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1535 # Just in case
1536 sleep 1
1537 echo timestamp > conftest.file
1538 # Do `set' in a subshell so we don't clobber the current shell's
1539 # arguments. Must try -L first in case configure is actually a
1540 # symlink; some systems play weird games with the mod time of symlinks
1541 # (eg FreeBSD returns the mod time of the symlink's containing
1542 # directory).
1543 if (
1544 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545 if test "$*" = "X"; then
1546 # -L didn't work.
1547 set X `ls -t $srcdir/configure conftest.file`
1549 rm -f conftest.file
1550 if test "$*" != "X $srcdir/configure conftest.file" \
1551 && test "$*" != "X conftest.file $srcdir/configure"; then
1553 # If neither matched, then we have a broken ls. This can happen
1554 # if, for instance, CONFIG_SHELL is bash and it inherits a
1555 # broken ls alias from the environment. This has actually
1556 # happened. Such a system could not be considered "sane".
1557 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1558 alias in your environment" >&5
1559 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&2;}
1561 { (exit 1); exit 1; }; }
1564 test "$2" = conftest.file
1566 then
1567 # Ok.
1569 else
1570 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571 Check your system clock" >&5
1572 echo "$as_me: error: newly created file is older than distributed files!
1573 Check your system clock" >&2;}
1574 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 test "$program_prefix" != NONE &&
1579 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1580 # Use a double $ so make ignores it.
1581 test "$program_suffix" != NONE &&
1582 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1583 # Double any \ or $. echo might interpret backslashes.
1584 # By default was `s,x,x', remove it if useless.
1585 cat <<\_ACEOF >conftest.sed
1586 s/[\\$]/&&/g;s/;s,x,x,$//
1587 _ACEOF
1588 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1589 rm conftest.sed
1591 # expand $ac_aux_dir to an absolute path
1592 am_aux_dir=`cd $ac_aux_dir && pwd`
1594 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1595 # Use eval to expand $SHELL
1596 if eval "$MISSING --run true"; then
1597 am_missing_run="$MISSING --run "
1598 else
1599 am_missing_run=
1600 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1605 # We used to keeping the `.' as first argument, in order to
1606 # allow $(mkdir_p) to be used without argument. As in
1607 # $(mkdir_p) $(somedir)
1608 # where $(somedir) is conditionally defined. However this is wrong
1609 # for two reasons:
1610 # 1. if the package is installed by a user who cannot write `.'
1611 # make install will fail,
1612 # 2. the above comment should most certainly read
1613 # $(mkdir_p) $(DESTDIR)$(somedir)
1614 # so it does not work when $(somedir) is undefined and
1615 # $(DESTDIR) is not.
1616 # To support the latter case, we have to write
1617 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1618 # so the `.' trick is pointless.
1619 mkdir_p='mkdir -p --'
1620 else
1621 # On NextStep and OpenStep, the `mkdir' command does not
1622 # recognize any option. It will interpret all options as
1623 # directories to create, and then abort because `.' already
1624 # exists.
1625 for d in ./-p ./--version;
1627 test -d $d && rmdir $d
1628 done
1629 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1630 if test -f "$ac_aux_dir/mkinstalldirs"; then
1631 mkdir_p='$(mkinstalldirs)'
1632 else
1633 mkdir_p='$(install_sh) -d'
1637 for ac_prog in gawk mawk nawk awk
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$AWK"; then
1647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_AWK="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1665 AWK=$ac_cv_prog_AWK
1666 if test -n "$AWK"; then
1667 echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$AWK" && break
1675 done
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 cat >conftest.make <<\_ACEOF
1684 all:
1685 @echo 'ac_maketemp="$(MAKE)"'
1686 _ACEOF
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690 eval ac_cv_prog_make_${ac_make}_set=yes
1691 else
1692 eval ac_cv_prog_make_${ac_make}_set=no
1694 rm -f conftest.make
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699 SET_MAKE=
1700 else
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 SET_MAKE="MAKE=${MAKE-make}"
1706 rm -rf .tst 2>/dev/null
1707 mkdir .tst 2>/dev/null
1708 if test -d .tst; then
1709 am__leading_dot=.
1710 else
1711 am__leading_dot=_
1713 rmdir .tst 2>/dev/null
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath --version) >/dev/null 2>/dev/null; then
1726 CYGPATH_W='cygpath -w'
1727 else
1728 CYGPATH_W=echo
1733 # Define the identity of the package.
1734 PACKAGE='amule'
1735 VERSION='SVN'
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1740 _ACEOF
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1745 _ACEOF
1747 # Some tools Automake needs.
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1763 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1765 # Installed binaries are usually stripped using `strip' when the user
1766 # run `make install-strip'. However `strip' might not be the right
1767 # tool to use in cross-compilation environments, therefore Automake
1768 # will honor the `STRIP' environment variable to overrule this program.
1769 if test "$cross_compiling" != no; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772 set dummy ${ac_tool_prefix}strip; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_STRIP+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778 if test -n "$STRIP"; then
1779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1780 else
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1792 done
1793 done
1797 STRIP=$ac_cv_prog_STRIP
1798 if test -n "$STRIP"; then
1799 echo "$as_me:$LINENO: result: $STRIP" >&5
1800 echo "${ECHO_T}$STRIP" >&6
1801 else
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1807 if test -z "$ac_cv_prog_STRIP"; then
1808 ac_ct_STRIP=$STRIP
1809 # Extract the first word of "strip", so it can be a program name with args.
1810 set dummy strip; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816 if test -n "$ac_ct_STRIP"; then
1817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_STRIP="strip"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1830 done
1831 done
1833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1837 if test -n "$ac_ct_STRIP"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839 echo "${ECHO_T}$ac_ct_STRIP" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 STRIP=$ac_ct_STRIP
1846 else
1847 STRIP="$ac_cv_prog_STRIP"
1851 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1853 # We need awk for the "check" target. The system "awk" is bad on
1854 # some platforms.
1855 # Always define AMTAR for backward compatibility.
1857 AMTAR=${AMTAR-"${am_missing_run}tar"}
1859 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1867 ac_config_headers="$ac_config_headers config.h"
1869 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1870 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1871 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1872 if test "${enable_maintainer_mode+set}" = set; then
1873 enableval="$enable_maintainer_mode"
1874 USE_MAINTAINER_MODE=$enableval
1875 else
1876 USE_MAINTAINER_MODE=no
1878 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1879 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1882 if test $USE_MAINTAINER_MODE = yes; then
1883 MAINTAINER_MODE_TRUE=
1884 MAINTAINER_MODE_FALSE='#'
1885 else
1886 MAINTAINER_MODE_TRUE='#'
1887 MAINTAINER_MODE_FALSE=
1890 MAINT=$MAINTAINER_MODE_TRUE
1894 # Make sure we can run config.sub.
1895 $ac_config_sub sun4 >/dev/null 2>&1 ||
1896 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898 { (exit 1); exit 1; }; }
1900 echo "$as_me:$LINENO: checking build system type" >&5
1901 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902 if test "${ac_cv_build+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 ac_cv_build_alias=$build_alias
1906 test -z "$ac_cv_build_alias" &&
1907 ac_cv_build_alias=`$ac_config_guess`
1908 test -z "$ac_cv_build_alias" &&
1909 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911 { (exit 1); exit 1; }; }
1912 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1913 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1918 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919 echo "${ECHO_T}$ac_cv_build" >&6
1920 build=$ac_cv_build
1921 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1926 echo "$as_me:$LINENO: checking host system type" >&5
1927 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928 if test "${ac_cv_host+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 ac_cv_host_alias=$host_alias
1932 test -z "$ac_cv_host_alias" &&
1933 ac_cv_host_alias=$ac_cv_build_alias
1934 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937 { (exit 1); exit 1; }; }
1940 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941 echo "${ECHO_T}$ac_cv_host" >&6
1942 host=$ac_cv_host
1943 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 case "${host_os}" in
1950 darwin*)
1951 SYS=darwin
1952 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1953 MULELDFLAGS="-bind_at_load"
1954 touch src/Scanner.cpp
1956 openbsd*)
1957 SYS=openbsd
1958 LIBS="$LIBS -L/usr/local/lib"
1959 X11LIBS="-lX11 -L/usr/X11R6/lib"
1960 MULECPPFLAGS="-D__OPENBSD__"
1962 *cygwin* | *mingw32*)
1963 SYS=win32
1964 MULECPPFLAGS="-DNOMINMAX"
1966 solaris*)
1967 SYS=solaris
1968 RESOLV_LIB="-lresolv -lnsl"
1969 X11LIBS="-lX11"
1970 LIBS="$LIBS -lrt"
1972 *netbsd*)
1973 SYS=netbsd
1974 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1975 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1976 # Still, we prepend them, instead of adding, so the user may override them.
1977 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1978 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1981 SYS=unknown
1983 esac
1985 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1986 if test ${SYS:-unknown} != win32; then
1988 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1989 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1990 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1992 MULELDFLAGS="$MULELDFLAGS -pthread"
1993 echo "$as_me:$LINENO: result: yes" >&5
1994 echo "${ECHO_T}yes" >&6
1996 else
1998 MULELDFLAGS="$MULELDFLAGS -lpthread"
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2010 mule_backup_CFLAGS="$CFLAGS"
2011 mule_backup_CXXFLAGS="$CXXFLAGS"
2012 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2013 ac_ext=cc
2014 ac_cpp='$CXXCPP $CPPFLAGS'
2015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2018 if test -n "$ac_tool_prefix"; then
2019 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CXX+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CXX"; then
2029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2042 done
2043 done
2047 CXX=$ac_cv_prog_CXX
2048 if test -n "$CXX"; then
2049 echo "$as_me:$LINENO: result: $CXX" >&5
2050 echo "${ECHO_T}$CXX" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2056 test -n "$CXX" && break
2057 done
2059 if test -z "$CXX"; then
2060 ac_ct_CXX=$CXX
2061 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$ac_ct_CXX"; then
2071 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_ac_ct_CXX="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2089 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2090 if test -n "$ac_ct_CXX"; then
2091 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2092 echo "${ECHO_T}$ac_ct_CXX" >&6
2093 else
2094 echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6
2098 test -n "$ac_ct_CXX" && break
2099 done
2100 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2102 CXX=$ac_ct_CXX
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO:" \
2108 "checking for C++ compiler version" >&5
2109 ac_compiler=`set X $ac_compile; echo $2`
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2111 (eval $ac_compiler --version </dev/null >&5) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2116 (eval $ac_compiler -v </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); }
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h. */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 main ()
2138 return 0;
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2147 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2150 (eval $ac_link_default) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # Find the output, starting from the most likely. This scheme is
2155 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2156 # resort.
2158 # Be careful to initialize this variable, since it used to be cached.
2159 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2160 ac_cv_exeext=
2161 # b.out is created by i960 compilers.
2162 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164 test -f "$ac_file" || continue
2165 case $ac_file in
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168 conftest.$ac_ext )
2169 # This is the source file.
2171 [ab].out )
2172 # We found the default executable, but exeext='' is most
2173 # certainly right.
2174 break;;
2175 *.* )
2176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 # FIXME: I believe we export ac_cv_exeext for Libtool,
2178 # but it would be cool to find out if it's true. Does anybody
2179 # maintain Libtool? --akim.
2180 export ac_cv_exeext
2181 break;;
2183 break;;
2184 esac
2185 done
2186 else
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C++ compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
2197 ac_exeext=$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2204 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208 if { ac_try='./$ac_file'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 cross_compiling=no
2215 else
2216 if test "$cross_compiling" = maybe; then
2217 cross_compiling=yes
2218 else
2219 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C++ compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2229 echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6
2232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2233 ac_clean_files=$ac_clean_files_save
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2238 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6
2241 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2244 (eval $ac_link) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2250 # work properly (i.e., refer to `conftest.exe'), while it won't with
2251 # `rm'.
2252 for ac_file in conftest.exe conftest conftest.*; do
2253 test -f "$ac_file" || continue
2254 case $ac_file in
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 export ac_cv_exeext
2258 break;;
2259 * ) break;;
2260 esac
2261 done
2262 else
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2270 rm -f conftest$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2274 rm -f conftest.$ac_ext
2275 EXEEXT=$ac_cv_exeext
2276 ac_exeext=$EXEEXT
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h. */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2290 main ()
2294 return 0;
2296 _ACEOF
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2304 case $ac_file in
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307 break;;
2308 esac
2309 done
2310 else
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2326 ac_objext=$OBJEXT
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2340 main ()
2342 #ifndef __GNUC__
2343 choke me
2344 #endif
2347 return 0;
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2353 ac_status=$?
2354 grep -v '^ *+' conftest.er1 >conftest.err
2355 rm -f conftest.er1
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_cxx_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 (eval $ac_try) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 ac_compiler_gnu=yes
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 ac_compiler_gnu=no
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2383 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2384 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2385 GXX=`test $ac_compiler_gnu = yes && echo yes`
2386 ac_test_CXXFLAGS=${CXXFLAGS+set}
2387 ac_save_CXXFLAGS=$CXXFLAGS
2388 CXXFLAGS="-g"
2389 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2390 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2391 if test "${ac_cv_prog_cxx_g+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394 cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h. */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2402 main ()
2406 return 0;
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_cxx_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 ac_cv_prog_cxx_g=yes
2432 else
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 ac_cv_prog_cxx_g=no
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2442 if test "$ac_test_CXXFLAGS" = set; then
2443 CXXFLAGS=$ac_save_CXXFLAGS
2444 elif test $ac_cv_prog_cxx_g = yes; then
2445 if test "$GXX" = yes; then
2446 CXXFLAGS="-g -O2"
2447 else
2448 CXXFLAGS="-g"
2450 else
2451 if test "$GXX" = yes; then
2452 CXXFLAGS="-O2"
2453 else
2454 CXXFLAGS=
2457 for ac_declaration in \
2458 '' \
2459 'extern "C" void std::exit (int) throw (); using std::exit;' \
2460 'extern "C" void std::exit (int); using std::exit;' \
2461 'extern "C" void exit (int) throw ();' \
2462 'extern "C" void exit (int);' \
2463 'void exit (int);'
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2471 $ac_declaration
2472 #include <stdlib.h>
2474 main ()
2476 exit (42);
2478 return 0;
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_cxx_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 continue
2510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 $ac_declaration
2519 main ()
2521 exit (42);
2523 return 0;
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_cxx_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 break
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 done
2556 rm -f conftest*
2557 if test -n "$ac_declaration"; then
2558 echo '#ifdef __cplusplus' >>confdefs.h
2559 echo $ac_declaration >>confdefs.h
2560 echo '#endif' >>confdefs.h
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 DEPDIR="${am__leading_dot}deps"
2570 ac_config_commands="$ac_config_commands depfiles"
2573 am_make=${MAKE-make}
2574 cat > confinc << 'END'
2575 am__doit:
2576 @echo done
2577 .PHONY: am__doit
2579 # If we don't find an include directive, just comment out the code.
2580 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2581 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2582 am__include="#"
2583 am__quote=
2584 _am_result=none
2585 # First try GNU make style include.
2586 echo "include confinc" > confmf
2587 # We grep out `Entering directory' and `Leaving directory'
2588 # messages which can occur if `w' ends up in MAKEFLAGS.
2589 # In particular we don't look at `^make:' because GNU make might
2590 # be invoked under some other name (usually "gmake"), in which
2591 # case it prints its new name instead of `make'.
2592 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2593 am__include=include
2594 am__quote=
2595 _am_result=GNU
2597 # Now try BSD make style include.
2598 if test "$am__include" = "#"; then
2599 echo '.include "confinc"' > confmf
2600 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2601 am__include=.include
2602 am__quote="\""
2603 _am_result=BSD
2608 echo "$as_me:$LINENO: result: $_am_result" >&5
2609 echo "${ECHO_T}$_am_result" >&6
2610 rm -f confinc confmf
2612 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2613 if test "${enable_dependency_tracking+set}" = set; then
2614 enableval="$enable_dependency_tracking"
2617 if test "x$enable_dependency_tracking" != xno; then
2618 am_depcomp="$ac_aux_dir/depcomp"
2619 AMDEPBACKSLASH='\'
2623 if test "x$enable_dependency_tracking" != xno; then
2624 AMDEP_TRUE=
2625 AMDEP_FALSE='#'
2626 else
2627 AMDEP_TRUE='#'
2628 AMDEP_FALSE=
2634 depcc="$CXX" am_compiler_list=
2636 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2637 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2638 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2642 # We make a subdir and do the tests there. Otherwise we can end up
2643 # making bogus files that we don't know about and never remove. For
2644 # instance it was reported that on HP-UX the gcc test will end up
2645 # making a dummy file named `D' -- because `-MD' means `put the output
2646 # in D'.
2647 mkdir conftest.dir
2648 # Copy depcomp to subdir because otherwise we won't find it if we're
2649 # using a relative directory.
2650 cp "$am_depcomp" conftest.dir
2651 cd conftest.dir
2652 # We will build objects and dependencies in a subdirectory because
2653 # it helps to detect inapplicable dependency modes. For instance
2654 # both Tru64's cc and ICC support -MD to output dependencies as a
2655 # side effect of compilation, but ICC will put the dependencies in
2656 # the current directory while Tru64 will put them in the object
2657 # directory.
2658 mkdir sub
2660 am_cv_CXX_dependencies_compiler_type=none
2661 if test "$am_compiler_list" = ""; then
2662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2664 for depmode in $am_compiler_list; do
2665 # Setup a source with many dependencies, because some compilers
2666 # like to wrap large dependency lists on column 80 (with \), and
2667 # we should not choose a depcomp mode which is confused by this.
2669 # We need to recreate these files for each test, as the compiler may
2670 # overwrite some of them when testing with obscure command lines.
2671 # This happens at least with the AIX C compiler.
2672 : > sub/conftest.c
2673 for i in 1 2 3 4 5 6; do
2674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2676 # Solaris 8's {/usr,}/bin/sh.
2677 touch sub/conftst$i.h
2678 done
2679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2681 case $depmode in
2682 nosideeffect)
2683 # after this tag, mechanisms are not by side-effect, so they'll
2684 # only be used when explicitly requested
2685 if test "x$enable_dependency_tracking" = xyes; then
2686 continue
2687 else
2688 break
2691 none) break ;;
2692 esac
2693 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2694 # mode. It turns out that the SunPro C++ compiler does not properly
2695 # handle `-M -o', and we need to detect this.
2696 if depmode=$depmode \
2697 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2699 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2700 >/dev/null 2>conftest.err &&
2701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2702 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2704 # icc doesn't choke on unknown options, it will just issue warnings
2705 # or remarks (even with -Werror). So we grep stderr for any message
2706 # that says an option was ignored or not supported.
2707 # When given -MP, icc 7.0 and 7.1 complain thusly:
2708 # icc: Command line warning: ignoring option '-M'; no argument required
2709 # The diagnosis changed in icc 8.0:
2710 # icc: Command line remark: option '-MP' not supported
2711 if (grep 'ignoring option' conftest.err ||
2712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2713 am_cv_CXX_dependencies_compiler_type=$depmode
2714 break
2717 done
2719 cd ..
2720 rm -rf conftest.dir
2721 else
2722 am_cv_CXX_dependencies_compiler_type=none
2726 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2727 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2728 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2733 test "x$enable_dependency_tracking" != xno \
2734 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2735 am__fastdepCXX_TRUE=
2736 am__fastdepCXX_FALSE='#'
2737 else
2738 am__fastdepCXX_TRUE='#'
2739 am__fastdepCXX_FALSE=
2743 ac_ext=cc
2744 ac_cpp='$CXXCPP $CPPFLAGS'
2745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2748 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2749 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2750 if test -z "$CXXCPP"; then
2751 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 # Double quotes because CXXCPP needs to be expanded
2755 for CXXCPP in "$CXX -E" "/lib/cpp"
2757 ac_preproc_ok=false
2758 for ac_cxx_preproc_warn_flag in '' yes
2760 # Use a header file that comes with gcc, so configuring glibc
2761 # with a fresh cross-compiler works.
2762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2763 # <limits.h> exists even on freestanding compilers.
2764 # On the NeXT, cc -E runs the code through the compiler's parser,
2765 # not just through cpp. "Syntax error" is here to catch this case.
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 #ifdef __STDC__
2773 # include <limits.h>
2774 #else
2775 # include <assert.h>
2776 #endif
2777 Syntax error
2778 _ACEOF
2779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } >/dev/null; then
2787 if test -s conftest.err; then
2788 ac_cpp_err=$ac_cxx_preproc_warn_flag
2789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2790 else
2791 ac_cpp_err=
2793 else
2794 ac_cpp_err=yes
2796 if test -z "$ac_cpp_err"; then
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 # Broken: fails on valid input.
2803 continue
2805 rm -f conftest.err conftest.$ac_ext
2807 # OK, works on sane cases. Now check whether non-existent headers
2808 # can be detected and how.
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #include <ac_nonexistent.h>
2816 _ACEOF
2817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } >/dev/null; then
2825 if test -s conftest.err; then
2826 ac_cpp_err=$ac_cxx_preproc_warn_flag
2827 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2828 else
2829 ac_cpp_err=
2831 else
2832 ac_cpp_err=yes
2834 if test -z "$ac_cpp_err"; then
2835 # Broken: success on invalid input.
2836 continue
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 # Passes both tests.
2842 ac_preproc_ok=:
2843 break
2845 rm -f conftest.err conftest.$ac_ext
2847 done
2848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2849 rm -f conftest.err conftest.$ac_ext
2850 if $ac_preproc_ok; then
2851 break
2854 done
2855 ac_cv_prog_CXXCPP=$CXXCPP
2858 CXXCPP=$ac_cv_prog_CXXCPP
2859 else
2860 ac_cv_prog_CXXCPP=$CXXCPP
2862 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2863 echo "${ECHO_T}$CXXCPP" >&6
2864 ac_preproc_ok=false
2865 for ac_cxx_preproc_warn_flag in '' yes
2867 # Use a header file that comes with gcc, so configuring glibc
2868 # with a fresh cross-compiler works.
2869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 # <limits.h> exists even on freestanding compilers.
2871 # On the NeXT, cc -E runs the code through the compiler's parser,
2872 # not just through cpp. "Syntax error" is here to catch this case.
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 #ifdef __STDC__
2880 # include <limits.h>
2881 #else
2882 # include <assert.h>
2883 #endif
2884 Syntax error
2885 _ACEOF
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_cxx_preproc_warn_flag
2896 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2897 else
2898 ac_cpp_err=
2900 else
2901 ac_cpp_err=yes
2903 if test -z "$ac_cpp_err"; then
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Broken: fails on valid input.
2910 continue
2912 rm -f conftest.err conftest.$ac_ext
2914 # OK, works on sane cases. Now check whether non-existent headers
2915 # can be detected and how.
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <ac_nonexistent.h>
2923 _ACEOF
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926 ac_status=$?
2927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev/null; then
2932 if test -s conftest.err; then
2933 ac_cpp_err=$ac_cxx_preproc_warn_flag
2934 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2935 else
2936 ac_cpp_err=
2938 else
2939 ac_cpp_err=yes
2941 if test -z "$ac_cpp_err"; then
2942 # Broken: success on invalid input.
2943 continue
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Passes both tests.
2949 ac_preproc_ok=:
2950 break
2952 rm -f conftest.err conftest.$ac_ext
2954 done
2955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956 rm -f conftest.err conftest.$ac_ext
2957 if $ac_preproc_ok; then
2959 else
2960 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2961 See \`config.log' for more details." >&5
2962 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 echo "$as_me:$LINENO: result: $CC" >&5
3008 echo "${ECHO_T}$CC" >&6
3009 else
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3015 if test -z "$ac_cv_prog_CC"; then
3016 ac_ct_CC=$CC
3017 # Extract the first word of "gcc", so it can be a program name with args.
3018 set dummy gcc; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_CC="gcc"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3046 echo "${ECHO_T}$ac_ct_CC" >&6
3047 else
3048 echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3052 CC=$ac_ct_CC
3053 else
3054 CC="$ac_cv_prog_CC"
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}cc; ac_word=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="${ac_tool_prefix}cc"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$ac_cv_prog_CC"; then
3096 ac_ct_CC=$CC
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_CC="cc"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3118 done
3119 done
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3126 echo "${ECHO_T}$ac_ct_CC" >&6
3127 else
3128 echo "$as_me:$LINENO: result: no" >&5
3129 echo "${ECHO_T}no" >&6
3132 CC=$ac_ct_CC
3133 else
3134 CC="$ac_cv_prog_CC"
3138 if test -z "$CC"; then
3139 # Extract the first word of "cc", so it can be a program name with args.
3140 set dummy cc; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_CC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 ac_prog_rejected=no
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158 ac_prog_rejected=yes
3159 continue
3161 ac_cv_prog_CC="cc"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3168 if test $ac_prog_rejected = yes; then
3169 # We found a bogon in the path, so make sure we never use it.
3170 set dummy $ac_cv_prog_CC
3171 shift
3172 if test $# != 0; then
3173 # We chose a different compiler from the bogus one.
3174 # However, it has the same basename, so the bogon will be chosen
3175 # first if we set CC to just the basename; use the full file name.
3176 shift
3177 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 echo "$as_me:$LINENO: result: $CC" >&5
3185 echo "${ECHO_T}$CC" >&6
3186 else
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 echo "$as_me:$LINENO: result: $CC" >&5
3225 echo "${ECHO_T}$CC" >&6
3226 else
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3231 test -n "$CC" && break
3232 done
3234 if test -z "$CC"; then
3235 ac_ct_CC=$CC
3236 for ac_prog in cl
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3267 echo "${ECHO_T}$ac_ct_CC" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3273 test -n "$ac_ct_CC" && break
3274 done
3276 CC=$ac_ct_CC
3282 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3283 See \`config.log' for more details." >&5
3284 echo "$as_me: error: no acceptable C compiler found in \$PATH
3285 See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3288 # Provide some information about the compiler.
3289 echo "$as_me:$LINENO:" \
3290 "checking for C compiler version" >&5
3291 ac_compiler=`set X $ac_compile; echo $2`
3292 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3293 (eval $ac_compiler --version </dev/null >&5) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3298 (eval $ac_compiler -v </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); }
3308 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 main ()
3323 #ifndef __GNUC__
3324 choke me
3325 #endif
3328 return 0;
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_compiler_gnu=yes
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 ac_compiler_gnu=no
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3366 GCC=`test $ac_compiler_gnu = yes && echo yes`
3367 ac_test_CFLAGS=${CFLAGS+set}
3368 ac_save_CFLAGS=$CFLAGS
3369 CFLAGS="-g"
3370 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3371 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3372 if test "${ac_cv_prog_cc_g+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3383 main ()
3387 return 0;
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 ac_cv_prog_cc_g=yes
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 ac_cv_prog_cc_g=no
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3427 CFLAGS="-g -O2"
3428 else
3429 CFLAGS="-g"
3431 else
3432 if test "$GCC" = yes; then
3433 CFLAGS="-O2"
3434 else
3435 CFLAGS=
3438 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3439 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3440 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 ac_cv_prog_cc_stdc=no
3444 ac_save_CC=$CC
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 #include <stdarg.h>
3452 #include <stdio.h>
3453 #include <sys/types.h>
3454 #include <sys/stat.h>
3455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3456 struct buf { int x; };
3457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3458 static char *e (p, i)
3459 char **p;
3460 int i;
3462 return p[i];
3464 static char *f (char * (*g) (char **, int), char **p, ...)
3466 char *s;
3467 va_list v;
3468 va_start (v,p);
3469 s = g (p, va_arg (v,int));
3470 va_end (v);
3471 return s;
3474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3475 function prototypes and stuff, but not '\xHH' hex character constants.
3476 These don't provoke an error unfortunately, instead are silently treated
3477 as 'x'. The following induces an error, until -std1 is added to get
3478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3479 array size at least. It's necessary to write '\x00'==0 to get something
3480 that's true only with -std1. */
3481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3490 main ()
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 return 0;
3496 _ACEOF
3497 # Don't try gcc -ansi; that turns off useful extensions and
3498 # breaks some systems' header files.
3499 # AIX -qlanglvl=ansi
3500 # Ultrix and OSF/1 -std1
3501 # HP-UX 10.20 and later -Ae
3502 # HP-UX older versions -Aa -D_HPUX_SOURCE
3503 # SVR4 -Xc -D__EXTENSIONS__
3504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506 CC="$ac_save_CC $ac_arg"
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_cv_prog_cc_stdc=$ac_arg
3530 break
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f conftest.err conftest.$ac_objext
3537 done
3538 rm -f conftest.$ac_ext conftest.$ac_objext
3539 CC=$ac_save_CC
3543 case "x$ac_cv_prog_cc_stdc" in
3544 x|xno)
3545 echo "$as_me:$LINENO: result: none needed" >&5
3546 echo "${ECHO_T}none needed" >&6 ;;
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3550 CC="$CC $ac_cv_prog_cc_stdc" ;;
3551 esac
3553 # Some people use a C++ compiler to compile C. Since we use `exit',
3554 # in C++ we need to declare it. In case someone uses the same compiler
3555 # for both compiling C and C++ we need to have the C++ compiler decide
3556 # the declaration of exit, since it's the most demanding environment.
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #ifndef __cplusplus
3559 choke me
3560 #endif
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 for ac_declaration in \
3585 '' \
3586 'extern "C" void std::exit (int) throw (); using std::exit;' \
3587 'extern "C" void std::exit (int); using std::exit;' \
3588 'extern "C" void exit (int) throw ();' \
3589 'extern "C" void exit (int);' \
3590 'void exit (int);'
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 $ac_declaration
3599 #include <stdlib.h>
3601 main ()
3603 exit (42);
3605 return 0;
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 continue
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_declaration
3646 main ()
3648 exit (42);
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 break
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682 done
3683 rm -f conftest*
3684 if test -n "$ac_declaration"; then
3685 echo '#ifdef __cplusplus' >>confdefs.h
3686 echo $ac_declaration >>confdefs.h
3687 echo '#endif' >>confdefs.h
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 depcc="$CC" am_compiler_list=
3704 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3705 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3706 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3710 # We make a subdir and do the tests there. Otherwise we can end up
3711 # making bogus files that we don't know about and never remove. For
3712 # instance it was reported that on HP-UX the gcc test will end up
3713 # making a dummy file named `D' -- because `-MD' means `put the output
3714 # in D'.
3715 mkdir conftest.dir
3716 # Copy depcomp to subdir because otherwise we won't find it if we're
3717 # using a relative directory.
3718 cp "$am_depcomp" conftest.dir
3719 cd conftest.dir
3720 # We will build objects and dependencies in a subdirectory because
3721 # it helps to detect inapplicable dependency modes. For instance
3722 # both Tru64's cc and ICC support -MD to output dependencies as a
3723 # side effect of compilation, but ICC will put the dependencies in
3724 # the current directory while Tru64 will put them in the object
3725 # directory.
3726 mkdir sub
3728 am_cv_CC_dependencies_compiler_type=none
3729 if test "$am_compiler_list" = ""; then
3730 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732 for depmode in $am_compiler_list; do
3733 # Setup a source with many dependencies, because some compilers
3734 # like to wrap large dependency lists on column 80 (with \), and
3735 # we should not choose a depcomp mode which is confused by this.
3737 # We need to recreate these files for each test, as the compiler may
3738 # overwrite some of them when testing with obscure command lines.
3739 # This happens at least with the AIX C compiler.
3740 : > sub/conftest.c
3741 for i in 1 2 3 4 5 6; do
3742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3744 # Solaris 8's {/usr,}/bin/sh.
3745 touch sub/conftst$i.h
3746 done
3747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3749 case $depmode in
3750 nosideeffect)
3751 # after this tag, mechanisms are not by side-effect, so they'll
3752 # only be used when explicitly requested
3753 if test "x$enable_dependency_tracking" = xyes; then
3754 continue
3755 else
3756 break
3759 none) break ;;
3760 esac
3761 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3762 # mode. It turns out that the SunPro C++ compiler does not properly
3763 # handle `-M -o', and we need to detect this.
3764 if depmode=$depmode \
3765 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3767 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3768 >/dev/null 2>conftest.err &&
3769 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3770 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3772 # icc doesn't choke on unknown options, it will just issue warnings
3773 # or remarks (even with -Werror). So we grep stderr for any message
3774 # that says an option was ignored or not supported.
3775 # When given -MP, icc 7.0 and 7.1 complain thusly:
3776 # icc: Command line warning: ignoring option '-M'; no argument required
3777 # The diagnosis changed in icc 8.0:
3778 # icc: Command line remark: option '-MP' not supported
3779 if (grep 'ignoring option' conftest.err ||
3780 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3781 am_cv_CC_dependencies_compiler_type=$depmode
3782 break
3785 done
3787 cd ..
3788 rm -rf conftest.dir
3789 else
3790 am_cv_CC_dependencies_compiler_type=none
3794 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3795 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3796 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3801 test "x$enable_dependency_tracking" != xno \
3802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3803 am__fastdepCC_TRUE=
3804 am__fastdepCC_FALSE='#'
3805 else
3806 am__fastdepCC_TRUE='#'
3807 am__fastdepCC_FALSE=
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3817 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3820 CPP=
3822 if test -z "$CPP"; then
3823 if test "${ac_cv_prog_CPP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 # Double quotes because CPP needs to be expanded
3827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829 ac_preproc_ok=false
3830 for ac_c_preproc_warn_flag in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #ifdef __STDC__
3845 # include <limits.h>
3846 #else
3847 # include <assert.h>
3848 #endif
3849 Syntax error
3850 _ACEOF
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3862 else
3863 ac_cpp_err=
3865 else
3866 ac_cpp_err=yes
3868 if test -z "$ac_cpp_err"; then
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 # Broken: fails on valid input.
3875 continue
3877 rm -f conftest.err conftest.$ac_ext
3879 # OK, works on sane cases. Now check whether non-existent headers
3880 # can be detected and how.
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <ac_nonexistent.h>
3888 _ACEOF
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null; then
3897 if test -s conftest.err; then
3898 ac_cpp_err=$ac_c_preproc_warn_flag
3899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3900 else
3901 ac_cpp_err=
3903 else
3904 ac_cpp_err=yes
3906 if test -z "$ac_cpp_err"; then
3907 # Broken: success on invalid input.
3908 continue
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 # Passes both tests.
3914 ac_preproc_ok=:
3915 break
3917 rm -f conftest.err conftest.$ac_ext
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then
3923 break
3926 done
3927 ac_cv_prog_CPP=$CPP
3930 CPP=$ac_cv_prog_CPP
3931 else
3932 ac_cv_prog_CPP=$CPP
3934 echo "$as_me:$LINENO: result: $CPP" >&5
3935 echo "${ECHO_T}$CPP" >&6
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956 Syntax error
3957 _ACEOF
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3969 else
3970 ac_cpp_err=
3972 else
3973 ac_cpp_err=yes
3975 if test -z "$ac_cpp_err"; then
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Broken: fails on valid input.
3982 continue
3984 rm -f conftest.err conftest.$ac_ext
3986 # OK, works on sane cases. Now check whether non-existent headers
3987 # can be detected and how.
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #include <ac_nonexistent.h>
3995 _ACEOF
3996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } >/dev/null; then
4004 if test -s conftest.err; then
4005 ac_cpp_err=$ac_c_preproc_warn_flag
4006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4007 else
4008 ac_cpp_err=
4010 else
4011 ac_cpp_err=yes
4013 if test -z "$ac_cpp_err"; then
4014 # Broken: success on invalid input.
4015 continue
4016 else
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 # Passes both tests.
4021 ac_preproc_ok=:
4022 break
4024 rm -f conftest.err conftest.$ac_ext
4026 done
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok; then
4031 else
4032 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4033 See \`config.log' for more details." >&5
4034 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4035 See \`config.log' for more details." >&2;}
4036 { (exit 1); exit 1; }; }
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 if test "$cross_compiling" = yes; then
4046 ac_build_prefix=
4047 test -n "$build_alias" && ac_build_prefix=$build_alias-
4050 # Even if we're cross-compiling, we want a compiler here
4051 # that is not a cross-compiler.
4052 saved_cross=$cross_compiling
4053 cross_compiling=no
4055 ac_ext=c
4056 ac_cpp='$CPP $BUILD_CPPFLAGS'
4057 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060 if test -n "$ac_build_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4062 set dummy ${ac_build_prefix}gcc; ac_word=$2
4063 echo "$as_me:$LINENO: checking for $ac_word" >&5
4064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4065 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if test -n "$BUILD_CC"; then
4069 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4082 done
4083 done
4087 BUILD_CC=$ac_cv_prog_BUILD_CC
4088 if test -n "$BUILD_CC"; then
4089 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4090 echo "${ECHO_T}$BUILD_CC" >&6
4091 else
4092 echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4097 if test -z "$ac_cv_prog_BUILD_CC"; then
4098 ac_ct_BUILD_CC=$BUILD_CC
4099 # Extract the first word of "gcc", so it can be a program name with args.
4100 set dummy gcc; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test -n "$ac_ct_BUILD_CC"; then
4107 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4125 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4126 if test -n "$ac_ct_BUILD_CC"; then
4127 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4128 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 BUILD_CC=$ac_ct_BUILD_CC
4135 else
4136 BUILD_CC="$ac_cv_prog_BUILD_CC"
4139 if test -z "$BUILD_CC"; then
4140 if test -n "$ac_build_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4142 set dummy ${ac_build_prefix}cc; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 if test -n "$BUILD_CC"; then
4149 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4167 BUILD_CC=$ac_cv_prog_BUILD_CC
4168 if test -n "$BUILD_CC"; then
4169 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4170 echo "${ECHO_T}$BUILD_CC" >&6
4171 else
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4177 if test -z "$ac_cv_prog_BUILD_CC"; then
4178 ac_ct_BUILD_CC=$BUILD_CC
4179 # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc; ac_word=$2
4181 echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4183 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 if test -n "$ac_ct_BUILD_CC"; then
4187 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_ac_ct_BUILD_CC="cc"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4205 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4206 if test -n "$ac_ct_BUILD_CC"; then
4207 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4208 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4209 else
4210 echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4214 BUILD_CC=$ac_ct_BUILD_CC
4215 else
4216 BUILD_CC="$ac_cv_prog_BUILD_CC"
4220 if test -z "$BUILD_CC"; then
4221 # Extract the first word of "cc", so it can be a program name with args.
4222 set dummy cc; ac_word=$2
4223 echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 if test -n "$BUILD_CC"; then
4229 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4230 else
4231 ac_prog_rejected=no
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4240 ac_prog_rejected=yes
4241 continue
4243 ac_cv_prog_BUILD_CC="cc"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4250 if test $ac_prog_rejected = yes; then
4251 # We found a bogon in the path, so make sure we never use it.
4252 set dummy $ac_cv_prog_BUILD_CC
4253 shift
4254 if test $# != 0; then
4255 # We chose a different compiler from the bogus one.
4256 # However, it has the same basename, so the bogon will be chosen
4257 # first if we set BUILD_CC to just the basename; use the full file name.
4258 shift
4259 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4264 BUILD_CC=$ac_cv_prog_BUILD_CC
4265 if test -n "$BUILD_CC"; then
4266 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4267 echo "${ECHO_T}$BUILD_CC" >&6
4268 else
4269 echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6
4274 if test -z "$BUILD_CC"; then
4275 if test -n "$ac_build_prefix"; then
4276 for ac_prog in cl
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4304 BUILD_CC=$ac_cv_prog_BUILD_CC
4305 if test -n "$BUILD_CC"; then
4306 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4307 echo "${ECHO_T}$BUILD_CC" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4313 test -n "$BUILD_CC" && break
4314 done
4316 if test -z "$BUILD_CC"; then
4317 ac_ct_BUILD_CC=$BUILD_CC
4318 for ac_prog in cl
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy $ac_prog; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 if test -n "$ac_ct_BUILD_CC"; then
4328 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4341 done
4342 done
4346 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4347 if test -n "$ac_ct_BUILD_CC"; then
4348 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4349 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4350 else
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 test -n "$ac_ct_BUILD_CC" && break
4356 done
4358 BUILD_CC=$ac_ct_BUILD_CC
4364 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details." >&5
4366 echo "$as_me: error: no acceptable C compiler found in \$PATH
4367 See \`config.log' for more details." >&2;}
4368 { (exit 1); exit 1; }; }
4370 # Provide some information about the compiler.
4371 echo "$as_me:$LINENO:" \
4372 "checking for C compiler version" >&5
4373 ac_compiler=`set X $ac_compile; echo $2`
4374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4375 (eval $ac_compiler --version </dev/null >&5) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4380 (eval $ac_compiler -v </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); }
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4398 main ()
4402 return 0;
4404 _ACEOF
4405 ac_clean_files_save=$ac_clean_files
4406 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4407 # Try to create an executable without -o first, disregard a.out.
4408 # It will help us diagnose broken compilers, and finding out an intuition
4409 # of exeext.
4410 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4411 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4414 (eval $ac_link_default) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; then
4418 # Find the output, starting from the most likely. This scheme is
4419 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4420 # resort.
4422 # Be careful to initialize this variable, since it used to be cached.
4423 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4424 ac_cv_build_exeext=
4425 # b.out is created by i960 compilers.
4426 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4428 test -f "$ac_file" || continue
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4432 conftest.$ac_ext )
4433 # This is the source file.
4435 [ab].out )
4436 # We found the default executable, but exeext='' is most
4437 # certainly right.
4438 break;;
4439 *.* )
4440 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4441 # FIXME: I believe we export ac_cv_exeext for Libtool,
4442 # but it would be cool to find out if it's true. Does anybody
4443 # maintain Libtool? --akim.
4444 export ac_cv_build_exeext
4445 break;;
4447 break;;
4448 esac
4449 done
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4455 See \`config.log' for more details." >&5
4456 echo "$as_me: error: C compiler cannot create executables
4457 See \`config.log' for more details." >&2;}
4458 { (exit 77); exit 77; }; }
4461 ac_build_exeext=$ac_cv_build_exeext
4462 echo "$as_me:$LINENO: result: $ac_file" >&5
4463 echo "${ECHO_T}$ac_file" >&6
4465 # Check the compiler produces executables we can run. If not, either
4466 # the compiler is broken, or we cross compile.
4467 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4470 # If not cross compiling, check that we can run a simple program.
4471 if test "$cross_compiling" != yes; then
4472 if { ac_try='./$ac_file'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 cross_compiling=no
4479 else
4480 if test "$cross_compiling" = maybe; then
4481 cross_compiling=yes
4482 else
4483 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." >&5
4486 echo "$as_me: error: cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." >&2;}
4489 { (exit 1); exit 1; }; }
4493 echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6
4496 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4497 ac_clean_files=$ac_clean_files_save
4498 # Check the compiler produces executables we can run. If not, either
4499 # the compiler is broken, or we cross compile.
4500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4503 echo "${ECHO_T}$cross_compiling" >&6
4505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4513 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4514 # work properly (i.e., refer to `conftest.exe'), while it won't with
4515 # `rm'.
4516 for ac_file in conftest.exe conftest conftest.*; do
4517 test -f "$ac_file" || continue
4518 case $ac_file in
4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4520 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4521 export ac_cv_build_exeext
4522 break;;
4523 * ) break;;
4524 esac
4525 done
4526 else
4527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4528 See \`config.log' for more details." >&5
4529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4530 See \`config.log' for more details." >&2;}
4531 { (exit 1); exit 1; }; }
4534 rm -f conftest$ac_cv_build_exeext
4535 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4536 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4538 rm -f conftest.$ac_ext
4539 BUILD_EXEEXT=$ac_cv_build_exeext
4540 ac_build_exeext=$BUILD_EXEEXT
4543 # Restore configuration environment
4544 cross_compiling=$saved_cross
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 else
4553 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4556 CFLAGS="$mule_backup_CFLAGS"
4557 CXXFLAGS="$mule_backup_CXXFLAGS"
4558 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4559 for ac_prog in gawk mawk nawk awk
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_AWK+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$AWK"; then
4569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_AWK="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4587 AWK=$ac_cv_prog_AWK
4588 if test -n "$AWK"; then
4589 echo "$as_me:$LINENO: result: $AWK" >&5
4590 echo "${ECHO_T}$AWK" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$AWK" && break
4597 done
4599 echo "$as_me:$LINENO: checking for egrep" >&5
4600 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4601 if test "${ac_cv_prog_egrep+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4605 then ac_cv_prog_egrep='grep -E'
4606 else ac_cv_prog_egrep='egrep'
4609 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4610 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4611 EGREP=$ac_cv_prog_egrep
4614 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4616 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4617 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.make <<\_ACEOF
4621 all:
4622 @echo 'ac_maketemp="$(MAKE)"'
4623 _ACEOF
4624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4625 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4626 if test -n "$ac_maketemp"; then
4627 eval ac_cv_prog_make_${ac_make}_set=yes
4628 else
4629 eval ac_cv_prog_make_${ac_make}_set=no
4631 rm -f conftest.make
4633 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4636 SET_MAKE=
4637 else
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 SET_MAKE="MAKE=${MAKE-make}"
4644 for ac_prog in flex lex
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_prog_LEX+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 if test -n "$LEX"; then
4654 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_LEX="$ac_prog"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4672 LEX=$ac_cv_prog_LEX
4673 if test -n "$LEX"; then
4674 echo "$as_me:$LINENO: result: $LEX" >&5
4675 echo "${ECHO_T}$LEX" >&6
4676 else
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4681 test -n "$LEX" && break
4682 done
4683 test -n "$LEX" || LEX=":"
4685 if test -z "$LEXLIB"
4686 then
4687 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4688 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4689 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 ac_check_lib_save_LIBS=$LIBS
4693 LIBS="-lfl $LIBS"
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 #ifdef __cplusplus
4703 extern "C"
4704 #endif
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4707 char yywrap ();
4709 main ()
4711 yywrap ();
4713 return 0;
4715 _ACEOF
4716 rm -f conftest.$ac_objext conftest$ac_exeext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4718 (eval $ac_link) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_lib_fl_yywrap=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_cv_lib_fl_yywrap=no
4745 rm -f conftest.err conftest.$ac_objext \
4746 conftest$ac_exeext conftest.$ac_ext
4747 LIBS=$ac_check_lib_save_LIBS
4749 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4750 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4751 if test $ac_cv_lib_fl_yywrap = yes; then
4752 LEXLIB="-lfl"
4753 else
4754 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4755 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4756 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759 ac_check_lib_save_LIBS=$LIBS
4760 LIBS="-ll $LIBS"
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 #ifdef __cplusplus
4770 extern "C"
4771 #endif
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4774 char yywrap ();
4776 main ()
4778 yywrap ();
4780 return 0;
4782 _ACEOF
4783 rm -f conftest.$ac_objext conftest$ac_exeext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4785 (eval $ac_link) 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest$ac_exeext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_cv_lib_l_yywrap=yes
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 ac_cv_lib_l_yywrap=no
4812 rm -f conftest.err conftest.$ac_objext \
4813 conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4816 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4817 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4818 if test $ac_cv_lib_l_yywrap = yes; then
4819 LEXLIB="-ll"
4826 if test "x$LEX" != "x:"; then
4827 echo "$as_me:$LINENO: checking lex output file root" >&5
4828 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4829 if test "${ac_cv_prog_lex_root+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 # The minimal lex program is just a single line: %%. But some broken lexes
4833 # (Solaris, I think it was) want two %% lines, so accommodate them.
4834 cat >conftest.l <<_ACEOF
4837 _ACEOF
4838 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4839 (eval $LEX conftest.l) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }
4843 if test -f lex.yy.c; then
4844 ac_cv_prog_lex_root=lex.yy
4845 elif test -f lexyy.c; then
4846 ac_cv_prog_lex_root=lexyy
4847 else
4848 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4849 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4850 { (exit 1); exit 1; }; }
4853 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4854 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4855 rm -f conftest.l
4856 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4858 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4859 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4860 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863 # POSIX says lex can declare yytext either as a pointer or an array; the
4864 # default is implementation-dependent. Figure out which it is, since
4865 # not all implementations provide the %pointer and %array declarations.
4866 ac_cv_prog_lex_yytext_pointer=no
4867 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4868 ac_save_LIBS=$LIBS
4869 LIBS="$LIBS $LEXLIB"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 `cat $LEX_OUTPUT_ROOT.c`
4872 _ACEOF
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest$ac_exeext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_prog_lex_yytext_pointer=yes
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4901 rm -f conftest.err conftest.$ac_objext \
4902 conftest$ac_exeext conftest.$ac_ext
4903 LIBS=$ac_save_LIBS
4904 rm -f "${LEX_OUTPUT_ROOT}.c"
4907 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4908 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4909 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4911 cat >>confdefs.h <<\_ACEOF
4912 #define YYTEXT_POINTER 1
4913 _ACEOF
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4924 # AIX /bin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 # Account for people who put trailing slashes in PATH elements.
4943 case $as_dir/ in
4944 ./ | .// | /cC/* | \
4945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4947 /usr/ucb/* ) ;;
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4951 # by default.
4952 for ac_prog in ginstall scoinst install; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4955 if test $ac_prog = install &&
4956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4959 elif test $ac_prog = install &&
4960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4963 else
4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4965 break 3
4968 done
4969 done
4971 esac
4972 done
4976 if test "${ac_cv_path_install+set}" = set; then
4977 INSTALL=$ac_cv_path_install
4978 else
4979 # As a last resort, use the slow shell script. We don't cache a
4980 # path for INSTALL within a source directory, because that will
4981 # break other packages using the cache if that directory is
4982 # removed, or if the path is relative.
4983 INSTALL=$ac_install_sh
4986 echo "$as_me:$LINENO: result: $INSTALL" >&5
4987 echo "${ECHO_T}$INSTALL" >&6
4989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4990 # It thinks the first close brace ends the variable substitution.
4991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5024 RANLIB=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026 echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6
5028 else
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035 ac_ct_RANLIB=$RANLIB
5036 # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -n "$ac_ct_RANLIB"; then
5044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_ac_ct_RANLIB="ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 RANLIB=$ac_ct_RANLIB
5073 else
5074 RANLIB="$ac_cv_prog_RANLIB"
5077 for ac_prog in 'bison -y' byacc
5079 # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_prog_YACC+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test -n "$YACC"; then
5087 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_YACC="$ac_prog"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5105 YACC=$ac_cv_prog_YACC
5106 if test -n "$YACC"; then
5107 echo "$as_me:$LINENO: result: $YACC" >&5
5108 echo "${ECHO_T}$YACC" >&6
5109 else
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5114 test -n "$YACC" && break
5115 done
5116 test -n "$YACC" || YACC="yacc"
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5122 echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_RANLIB+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 if test -n "$RANLIB"; then
5128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5146 RANLIB=$ac_cv_prog_RANLIB
5147 if test -n "$RANLIB"; then
5148 echo "$as_me:$LINENO: result: $RANLIB" >&5
5149 echo "${ECHO_T}$RANLIB" >&6
5150 else
5151 echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5156 if test -z "$ac_cv_prog_RANLIB"; then
5157 ac_ct_RANLIB=$RANLIB
5158 # Extract the first word of "ranlib", so it can be a program name with args.
5159 set dummy ranlib; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$ac_ct_RANLIB"; then
5166 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_RANLIB="ranlib"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5185 if test -n "$ac_ct_RANLIB"; then
5186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 RANLIB=$ac_ct_RANLIB
5194 else
5195 RANLIB="$ac_cv_prog_RANLIB"
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}strip; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_STRIP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test -n "$STRIP"; then
5207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5225 STRIP=$ac_cv_prog_STRIP
5226 if test -n "$STRIP"; then
5227 echo "$as_me:$LINENO: result: $STRIP" >&5
5228 echo "${ECHO_T}$STRIP" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5235 if test -z "$ac_cv_prog_STRIP"; then
5236 ac_ct_STRIP=$STRIP
5237 # Extract the first word of "strip", so it can be a program name with args.
5238 set dummy strip; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$ac_ct_STRIP"; then
5245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_STRIP="strip"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5264 if test -n "$ac_ct_STRIP"; then
5265 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5266 echo "${ECHO_T}$ac_ct_STRIP" >&6
5267 else
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 STRIP=$ac_ct_STRIP
5273 else
5274 STRIP="$ac_cv_prog_STRIP"
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}ar; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_AR+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 if test -n "$AR"; then
5286 ac_cv_prog_AR="$AR" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_AR="${ac_tool_prefix}ar"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5304 AR=$ac_cv_prog_AR
5305 if test -n "$AR"; then
5306 echo "$as_me:$LINENO: result: $AR" >&5
5307 echo "${ECHO_T}$AR" >&6
5308 else
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_AR"; then
5315 ac_ct_AR=$AR
5316 # Extract the first word of "ar", so it can be a program name with args.
5317 set dummy ar; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$ac_ct_AR"; then
5324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_AR="ar"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5342 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5343 if test -n "$ac_ct_AR"; then
5344 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5345 echo "${ECHO_T}$ac_ct_AR" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 AR=$ac_ct_AR
5352 else
5353 AR="$ac_cv_prog_AR"
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}ld; ac_word=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_prog_LD+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 if test -n "$LD"; then
5365 ac_cv_prog_LD="$LD" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_LD="${ac_tool_prefix}ld"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5383 LD=$ac_cv_prog_LD
5384 if test -n "$LD"; then
5385 echo "$as_me:$LINENO: result: $LD" >&5
5386 echo "${ECHO_T}$LD" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5393 if test -z "$ac_cv_prog_LD"; then
5394 ac_ct_LD=$LD
5395 # Extract the first word of "ld", so it can be a program name with args.
5396 set dummy ld; ac_word=$2
5397 echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 if test -n "$ac_ct_LD"; then
5403 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_ac_ct_LD="ld"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5421 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5422 if test -n "$ac_ct_LD"; then
5423 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5424 echo "${ECHO_T}$ac_ct_LD" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5430 LD=$ac_ct_LD
5431 else
5432 LD="$ac_cv_prog_LD"
5436 # Check whether --enable-monolithic or --disable-monolithic was given.
5437 if test "${enable_monolithic+set}" = set; then
5438 enableval="$enable_monolithic"
5439 MONOLITHIC=$enableval
5440 else
5441 MONOLITHIC=yes
5444 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5445 if test "${enable_amule_daemon+set}" = set; then
5446 enableval="$enable_amule_daemon"
5447 AMULE_DAEMON=$enableval
5448 else
5449 AMULE_DAEMON=no
5452 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5453 if test "${enable_amulecmd+set}" = set; then
5454 enableval="$enable_amulecmd"
5455 AMULECMD=$enableval
5456 else
5457 AMULECMD=no
5460 # Check whether --enable-webserver or --disable-webserver was given.
5461 if test "${enable_webserver+set}" = set; then
5462 enableval="$enable_webserver"
5463 WEB=$enableval
5464 else
5465 WEB=no
5468 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5469 if test "${enable_amule_gui+set}" = set; then
5470 enableval="$enable_amule_gui"
5471 AMULE_GUI=$enableval
5472 else
5473 AMULE_GUI=no
5476 # Check whether --enable-cas or --disable-cas was given.
5477 if test "${enable_cas+set}" = set; then
5478 enableval="$enable_cas"
5479 CAS=$enableval
5480 else
5481 CAS=no
5484 # Check whether --enable-wxcas or --disable-wxcas was given.
5485 if test "${enable_wxcas+set}" = set; then
5486 enableval="$enable_wxcas"
5487 WXCAS=$enableval
5488 else
5489 WXCAS=no
5492 # Check whether --enable-ed2k or --disable-ed2k was given.
5493 if test "${enable_ed2k+set}" = set; then
5494 enableval="$enable_ed2k"
5495 ED2K=$enableval
5496 else
5497 ED2K=yes
5500 # Check whether --enable-alc or --disable-alc was given.
5501 if test "${enable_alc+set}" = set; then
5502 enableval="$enable_alc"
5503 ALC=$enableval
5504 else
5505 ALC=no
5508 # Check whether --enable-alcc or --disable-alcc was given.
5509 if test "${enable_alcc+set}" = set; then
5510 enableval="$enable_alcc"
5511 ALCC=$enableval
5512 else
5513 ALCC=no
5516 # Check whether --enable-monolithic or --disable-monolithic was given.
5517 if test "${enable_monolithic+set}" = set; then
5518 enableval="$enable_monolithic"
5519 MONOLITHIC=$enableval
5520 else
5521 MONOLITHIC=yes
5524 # Check whether --enable-upnp or --disable-upnp was given.
5525 if test "${enable_upnp+set}" = set; then
5526 enableval="$enable_upnp"
5527 ENABLE_UPNP=$enableval
5528 else
5529 ENABLE_UPNP=yes
5532 # Check whether --enable-xas or --disable-xas was given.
5533 if test "${enable_xas+set}" = set; then
5534 enableval="$enable_xas"
5535 XAS=$enableval
5536 else
5537 XAS=yes
5540 # Default is yes, because they're most likely compatible.
5541 # However, this is only used when cross-compiling.
5543 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5544 if test "${with_gnu_malloc+set}" = set; then
5545 withval="$with_gnu_malloc"
5546 gnumalloc=$withval
5547 else
5548 gnumalloc=yes
5552 # Checking for libs before all other stuff to break
5553 # configure as soon as possible in case of a missing one
5554 # to avoid losing too much time
5556 # Check for zlib
5559 # Check whether --with-zlib or --without-zlib was given.
5560 if test "${with_zlib+set}" = set; then
5561 withval="$with_zlib"
5565 case "${with_zlib:-yes}" in
5567 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5568 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5569 { (exit 1); exit 1; }; }
5571 yes | sys)
5574 zlib_prefix="$with_zlib"
5575 esac
5577 mule_backup_CPPFLAGS="$CPPFLAGS"
5578 mule_backup_LDFLAGS="$LDFLAGS"
5579 mule_backup_LIBS="$LIBS"
5580 if test -n "$zlib_prefix"; then
5582 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5583 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5584 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5585 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5587 else
5589 ZLIB_CPPFLAGS=
5590 ZLIB_LDFLAGS=
5594 ZLIB_LIBS="-lz"
5595 LIBS="$ZLIB_LIBS $LIBS"
5597 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5598 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5599 if test "$cross_compiling" = yes; then
5601 result=no
5602 z_version=
5603 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5611 #include <zlib.h>
5612 #include <stdio.h>
5615 main ()
5618 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5619 zlibVersion();
5622 return 0;
5625 _ACEOF
5626 rm -f conftest.$ac_objext conftest$ac_exeext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5628 (eval $ac_link) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag"
5636 || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest$ac_exeext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5649 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5650 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5651 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5652 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5653 if test "$cross_zver_max" -gt "1"; then
5654 result=yes
5655 elif test "$cross_zver_max" -eq "1"; then
5657 if test "$cross_zver_mid" -gt "1"; then
5658 result=yes
5659 elif test "$cross_zver_mid" -eq "1"; then
5660 if test "$cross_zver_min" -ge "4"; then
5661 result=yes
5669 if test ${result:-no} = yes; then
5670 z_version=" (version $ZLIB_VERSION)"
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5679 rm -f conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $result$z_version" >&5
5682 echo "${ECHO_T}$result$z_version" >&6
5684 else
5685 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5693 #include <zlib.h>
5694 #include <stdio.h>
5697 main ()
5699 char *zver = zlibVersion();
5700 FILE *f=fopen("conftestval", "w");
5701 if (!f) return 1;
5702 fprintf(f, "%s",
5703 zver[0] > '1' ||
5704 (zver[0] == '1' &&
5705 (zver[2] > '1' ||
5706 (zver[2] == '1' &&
5707 zver[4] >= '4'))) ? "yes" : "no");
5708 fclose(f);
5709 f=fopen("conftestver", "w");
5710 if (f) {
5711 fprintf(f, "%s", ZLIB_VERSION);
5712 fclose(f);
5716 return 0;
5719 _ACEOF
5720 rm -f conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5732 if test -f conftestval; then
5733 result=`cat conftestval`
5734 else
5735 result=no
5738 if test ${result:-no} = yes; then
5740 if test -f conftestver; then
5742 ZLIB_VERSION=`cat conftestver`
5743 z_version=" (version $ZLIB_VERSION)"
5745 else
5746 z_version=
5752 echo "$as_me:$LINENO: result: $result$z_version" >&5
5753 echo "${ECHO_T}$result$z_version" >&6
5755 else
5756 echo "$as_me: program exited with status $ac_status" >&5
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ( exit $ac_status )
5762 result=no
5763 echo "$as_me:$LINENO: result: $result" >&5
5764 echo "${ECHO_T}$result" >&6
5767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770 CPPFLAGS="$mule_backup_CPPFLAGS"
5771 LDFLAGS="$mule_backup_LDFLAGS"
5772 LIBS="$mule_backup_LIBS"
5774 if test ${result:-no} = no; then
5776 ZLIB_CPPFLAGS=
5777 ZLIB_LDFLAGS=
5778 ZLIB_LIBS=
5779 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5780 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5781 { (exit 1); exit 1; }; }
5788 if test x$CAS = xyes; then
5790 # Check for gd
5792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5794 if test "${ac_cv_header_stdc+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <stdlib.h>
5804 #include <stdarg.h>
5805 #include <string.h>
5806 #include <float.h>
5809 main ()
5813 return 0;
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -z "$ac_c_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_header_stdc=yes
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 ac_cv_header_stdc=no
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <string.h>
5857 _ACEOF
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859 $EGREP "memchr" >/dev/null 2>&1; then
5861 else
5862 ac_cv_header_stdc=no
5864 rm -f conftest*
5868 if test $ac_cv_header_stdc = yes; then
5869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <stdlib.h>
5878 _ACEOF
5879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5880 $EGREP "free" >/dev/null 2>&1; then
5882 else
5883 ac_cv_header_stdc=no
5885 rm -f conftest*
5889 if test $ac_cv_header_stdc = yes; then
5890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5891 if test "$cross_compiling" = yes; then
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <ctype.h>
5901 #if ((' ' & 0x0FF) == 0x020)
5902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5904 #else
5905 # define ISLOWER(c) \
5906 (('a' <= (c) && (c) <= 'i') \
5907 || ('j' <= (c) && (c) <= 'r') \
5908 || ('s' <= (c) && (c) <= 'z'))
5909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5910 #endif
5912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5914 main ()
5916 int i;
5917 for (i = 0; i < 256; i++)
5918 if (XOR (islower (i), ISLOWER (i))
5919 || toupper (i) != TOUPPER (i))
5920 exit(2);
5921 exit (0);
5923 _ACEOF
5924 rm -f conftest$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5936 else
5937 echo "$as_me: program exited with status $ac_status" >&5
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ( exit $ac_status )
5942 ac_cv_header_stdc=no
5944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5950 if test $ac_cv_header_stdc = yes; then
5952 cat >>confdefs.h <<\_ACEOF
5953 #define STDC_HEADERS 1
5954 _ACEOF
5958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5969 inttypes.h stdint.h unistd.h
5971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972 echo "$as_me:$LINENO: checking for $ac_header" >&5
5973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5985 #include <$ac_header>
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 eval "$as_ac_Header=yes"
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 eval "$as_ac_Header=no"
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021 cat >>confdefs.h <<_ACEOF
6022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6023 _ACEOF
6027 done
6032 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6033 if test "${with_gdlib_prefix+set}" = set; then
6034 withval="$with_gdlib_prefix"
6038 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6039 if test "${with_gdlib_config+set}" = set; then
6040 withval="$with_gdlib_config"
6044 GDLIB_VERSION=
6046 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6047 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6048 GDLIB_CONFIG_NAME=gdlib-config
6051 if test -n "$with_gdlib_config"; then
6052 GDLIB_CONFIG_NAME="$with_gdlib_config"
6056 # deal with optional prefix
6057 if test -n "$with_gdlib_prefix"; then
6058 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6062 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6063 if test -x "$GDLIB_CONFIG_NAME"; then
6065 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6066 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6067 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6068 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6069 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6071 else
6072 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6073 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 case $GDLIB_CONFIG_PATH in
6080 [\\/]* | ?:[\\/]*)
6081 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6086 for as_dir in $as_dummy
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6099 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6101 esac
6103 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6105 if test -n "$GDLIB_CONFIG_PATH"; then
6106 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6107 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6108 else
6109 echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6116 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6118 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6119 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6120 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6122 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6123 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6124 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6125 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6127 gdlib_ver_ok=
6128 if test $gdlib_config_major_version -gt 2; then
6129 gdlib_ver_ok=yes
6130 elif test $gdlib_config_major_version -eq 2; then
6132 if test $gdlib_config_minor_version -gt 0; then
6133 gdlib_ver_ok=yes
6134 elif test $gdlib_config_minor_version -eq 0; then
6135 if test $gdlib_config_micro_version -ge 0; then
6136 gdlib_ver_ok=yes
6145 if test -z "$gdlib_ver_ok"; then
6147 if test -z "$GDLIB_VERSION"; then
6148 echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6
6150 else
6152 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6153 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6154 GDLIB_VERSION=
6159 else
6161 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6162 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6163 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6164 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6165 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6166 mule_backup_CFLAGS="$CFLAGS"
6167 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6168 if test "${ac_cv_header_gd_h+set}" = set; then
6169 echo "$as_me:$LINENO: checking for gd.h" >&5
6170 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6171 if test "${ac_cv_header_gd_h+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6175 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6176 else
6177 # Is the header compilable?
6178 echo "$as_me:$LINENO: checking gd.h usability" >&5
6179 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6187 #include <gd.h>
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_header_compiler=yes
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_header_compiler=no
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6220 echo "${ECHO_T}$ac_header_compiler" >&6
6222 # Is the header present?
6223 echo "$as_me:$LINENO: checking gd.h presence" >&5
6224 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <gd.h>
6232 _ACEOF
6233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } >/dev/null; then
6241 if test -s conftest.err; then
6242 ac_cpp_err=$ac_c_preproc_warn_flag
6243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6244 else
6245 ac_cpp_err=
6247 else
6248 ac_cpp_err=yes
6250 if test -z "$ac_cpp_err"; then
6251 ac_header_preproc=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_header_preproc=no
6258 rm -f conftest.err conftest.$ac_ext
6259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 echo "${ECHO_T}$ac_header_preproc" >&6
6262 # So? What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6264 yes:no: )
6265 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6266 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6268 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6269 ac_header_preproc=yes
6271 no:yes:* )
6272 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6273 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6275 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6277 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6279 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6281 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6283 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6285 cat <<\_ASBOX
6286 ## ------------------------------ ##
6287 ## Report this to admin@amule.org ##
6288 ## ------------------------------ ##
6289 _ASBOX
6291 sed "s/^/$as_me: WARNING: /" >&2
6293 esac
6294 echo "$as_me:$LINENO: checking for gd.h" >&5
6295 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6296 if test "${ac_cv_header_gd_h+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 ac_cv_header_gd_h=$ac_header_preproc
6301 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6302 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6305 if test $ac_cv_header_gd_h = yes; then
6307 else
6308 GDLIB_VERSION=
6312 CFLAGS="$mule_backup_CFLAGS"
6320 if test -n "$GDLIB_VERSION"; then
6322 CAS_DEFS="-D__GD__"
6323 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6325 else
6326 CAS_DEFS=
6332 if test -z "$CAS_DEFS"; then
6333 { echo "$as_me:$LINENO: WARNING:
6334 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6335 Please check that gdlib-config is in your default path, check out
6336 LD_LIBRARY_PATH or equivalent variable.
6337 Or this might also be that your gdlib-config has other name.
6338 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6339 (replace /usr/bin/gdlib-config with a valid path to your
6340 gdlib-config).
6341 If you use compiled packages check if you have devel pack installed.
6342 To download the latest version check http://www.boutell.com/gd for
6343 sources." >&5
6344 echo "$as_me: WARNING:
6345 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6346 Please check that gdlib-config is in your default path, check out
6347 LD_LIBRARY_PATH or equivalent variable.
6348 Or this might also be that your gdlib-config has other name.
6349 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6350 (replace /usr/bin/gdlib-config with a valid path to your
6351 gdlib-config).
6352 If you use compiled packages check if you have devel pack installed.
6353 To download the latest version check http://www.boutell.com/gd for
6354 sources." >&2;}
6355 _mule_warning_0=yes
6356 _mule_has_warnings=yes
6361 else
6362 GDLIB_VERSION="not_needed"
6367 if test x$WEB = xyes; then
6370 for ac_header in sys/types.h
6372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 else
6382 # Is the header compilable?
6383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 $ac_includes_default
6392 #include <$ac_header>
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_header_compiler=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_header_compiler=no
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425 echo "${ECHO_T}$ac_header_compiler" >&6
6427 # Is the header present?
6428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <$ac_header>
6437 _ACEOF
6438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev/null; then
6446 if test -s conftest.err; then
6447 ac_cpp_err=$ac_c_preproc_warn_flag
6448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6449 else
6450 ac_cpp_err=
6452 else
6453 ac_cpp_err=yes
6455 if test -z "$ac_cpp_err"; then
6456 ac_header_preproc=yes
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 ac_header_preproc=no
6463 rm -f conftest.err conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6
6467 # So? What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 yes:no: )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc=yes
6476 no:yes:* )
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6490 cat <<\_ASBOX
6491 ## ------------------------------ ##
6492 ## Report this to admin@amule.org ##
6493 ## ------------------------------ ##
6494 _ASBOX
6496 sed "s/^/$as_me: WARNING: /" >&2
6498 esac
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 eval "$as_ac_Header=\$ac_header_preproc"
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 _ACEOF
6517 done
6519 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6520 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6521 regex_found=no
6522 for REGEX_LIBS in '' -lgnurx -lregex; do
6523 mule_backup_LIBS="$LIBS"
6524 LIBS="$REGEX_LIBS $LIBS"
6525 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 #ifdef HAVE_SYS_TYPES_H
6534 # include <sys/types.h>
6535 #endif
6536 #include <regex.h>
6539 main ()
6542 regex_t preg;
6543 regcomp(&preg, "", REG_EXTENDED);
6544 regmatch_t *pmatch;
6545 regexec(&preg, "", 0, pmatch, 0);
6546 regfree(&preg);
6549 return 0;
6552 _ACEOF
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try='test -s conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6576 LIBS="$mule_backup_LIBS"
6577 regex_found=yes
6578 break;
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 LIBS="$mule_backup_LIBS"
6586 rm -f conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588 done
6589 echo "$as_me:$LINENO: result: $regex_found" >&5
6590 echo "${ECHO_T}$regex_found" >&6
6591 if test $regex_found = yes; then
6593 else
6595 WEB=disabled
6596 { echo "$as_me:$LINENO: WARNING:
6597 amuleweb has been disabled because configure could not find a POSIX
6598 compliant regex library." >&5
6599 echo "$as_me: WARNING:
6600 amuleweb has been disabled because configure could not find a POSIX
6601 compliant regex library." >&2;}
6602 _mule_warning_1=yes
6603 _mule_has_warnings=yes
6612 if test x$WEB = xyes; then
6615 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6616 if test "${with_libpng_prefix+set}" = set; then
6617 withval="$with_libpng_prefix"
6621 # Check whether --with-libpng-config or --without-libpng-config was given.
6622 if test "${with_libpng_config+set}" = set; then
6623 withval="$with_libpng_config"
6627 LIBPNG_VERSION=
6629 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6630 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6631 LIBPNG_CONFIG_NAME=libpng-config
6634 if test -n "$with_libpng_config"; then
6635 LIBPNG_CONFIG_NAME="$with_libpng_config"
6639 # deal with optional prefix
6640 if test -n "$with_libpng_prefix"; then
6641 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6645 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6646 if test -x "$LIBPNG_CONFIG_NAME"; then
6648 echo "$as_me:$LINENO: checking for libpng-config" >&5
6649 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6650 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6651 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6652 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6654 else
6655 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6656 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 case $LIBPNG_CONFIG_PATH in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6669 for as_dir in $as_dummy
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6679 done
6680 done
6682 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6684 esac
6686 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6688 if test -n "$LIBPNG_CONFIG_PATH"; then
6689 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6690 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6691 else
6692 echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6
6699 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6701 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6702 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6704 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6706 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6707 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6708 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6709 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6711 libpng_ver_ok=
6712 if test $libpng_config_major_version -gt 1; then
6713 libpng_ver_ok=yes
6714 elif test $libpng_config_major_version -eq 1; then
6716 if test $libpng_config_minor_version -gt 2; then
6717 libpng_ver_ok=yes
6718 elif test $libpng_config_minor_version -eq 2; then
6719 if test $libpng_config_micro_version -ge 0; then
6720 libpng_ver_ok=yes
6729 if test -z "$libpng_ver_ok"; then
6731 if test -z "$LIBPNG_VERSION"; then
6732 echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6
6734 else
6736 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6737 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6738 LIBPNG_VERSION=
6743 else
6745 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6746 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6747 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6748 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6749 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6754 else
6756 # Try hard to find a usable libpng
6757 # Some RedHat RPMs miss libpng-config, so test for
6758 # the usability with default options.
6759 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6760 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6761 mule_backup_LIBS="$LIBS"
6762 LIBS="-lpng -lz -lm $LIBS"
6763 if test "$cross_compiling" = yes; then
6765 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6766 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6767 if test "${ac_cv_header_png_h+set}" = set; then
6768 echo "$as_me:$LINENO: checking for png.h" >&5
6769 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6770 if test "${ac_cv_header_png_h+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6774 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6775 else
6776 # Is the header compilable?
6777 echo "$as_me:$LINENO: checking png.h usability" >&5
6778 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6786 #include <png.h>
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_header_compiler=yes
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 ac_header_compiler=no
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819 echo "${ECHO_T}$ac_header_compiler" >&6
6821 # Is the header present?
6822 echo "$as_me:$LINENO: checking png.h presence" >&5
6823 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <png.h>
6831 _ACEOF
6832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } >/dev/null; then
6840 if test -s conftest.err; then
6841 ac_cpp_err=$ac_c_preproc_warn_flag
6842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843 else
6844 ac_cpp_err=
6846 else
6847 ac_cpp_err=yes
6849 if test -z "$ac_cpp_err"; then
6850 ac_header_preproc=yes
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 ac_header_preproc=no
6857 rm -f conftest.err conftest.$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6859 echo "${ECHO_T}$ac_header_preproc" >&6
6861 # So? What about this header?
6862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 yes:no: )
6864 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6865 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6867 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6868 ac_header_preproc=yes
6870 no:yes:* )
6871 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6872 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6873 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6874 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6876 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6878 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6880 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6882 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6884 cat <<\_ASBOX
6885 ## ------------------------------ ##
6886 ## Report this to admin@amule.org ##
6887 ## ------------------------------ ##
6888 _ASBOX
6890 sed "s/^/$as_me: WARNING: /" >&2
6892 esac
6893 echo "$as_me:$LINENO: checking for png.h" >&5
6894 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6895 if test "${ac_cv_header_png_h+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 ac_cv_header_png_h=$ac_header_preproc
6900 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6901 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6904 if test $ac_cv_header_png_h = yes; then
6906 LIBPNG_VERSION="detected"
6907 LIBPNG_LIBS="-lpng -lz -lm"
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h. */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6922 #include <png.h>
6923 #include <stdio.h>
6925 /* Check linking to png library */
6926 void dummy() {
6927 png_check_sig(NULL, 0);
6931 main ()
6933 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6934 FILE *f=fopen("conftestval", "w");
6935 if (!f) exit(1);
6936 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6937 fclose(f);
6938 f=fopen("conftestver", "w");
6939 if (!f) exit(0);
6940 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6941 fclose(f);
6942 exit(0);
6945 return 0;
6948 _ACEOF
6949 rm -f conftest$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6961 if test -f conftestval; then
6962 result=`cat conftestval`
6963 else
6964 result=no
6967 if test ${result:-no} = yes; then
6969 if test -f conftestver; then
6971 LIBPNG_VERSION=`cat conftestver`
6972 lib_version=" (version $LIBPNG_VERSION)"
6974 else
6976 lib_version=
6977 LIBPNG_VERSION="detected"
6984 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6985 echo "${ECHO_T}$result$lib_version" >&6
6986 LIBPNG_LIBS="-lpng -lz -lm"
6988 else
6989 echo "$as_me: program exited with status $ac_status" >&5
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 ( exit $ac_status )
6995 result=no
6996 echo "$as_me:$LINENO: result: $result" >&5
6997 echo "${ECHO_T}$result" >&6
7000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7002 LIBS="$mule_backup_LIBS"
7007 if test -n "$LIBPNG_VERSION"; then
7008 AMULEWEB_DEFS="-DWITH_LIBPNG"
7009 else
7011 { echo "$as_me:$LINENO: WARNING:
7012 libpng >= 1.2.0 not found.
7013 amuleweb will be compiled but file download progress bar images will
7014 NOT be generated." >&5
7015 echo "$as_me: WARNING:
7016 libpng >= 1.2.0 not found.
7017 amuleweb will be compiled but file download progress bar images will
7018 NOT be generated." >&2;}
7019 _mule_warning_2=yes
7020 _mule_has_warnings=yes
7029 else
7030 LIBPNG_VERSION="not_needed"
7035 # Check for perl File::Copy
7036 echo "$as_me:$LINENO: checking for File::Copy" >&5
7037 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
7038 if perl -e "require File::Copy" 2>/dev/null; then
7039 echo "$as_me:$LINENO: result: ok" >&5
7040 echo "${ECHO_T}ok" >&6
7041 else
7042 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
7043 echo "$as_me: error: File::Copy perl module is required" >&2;}
7044 { (exit 1); exit 1; }; }
7049 # Check if we need the GUI
7050 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
7051 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
7052 if test x$MONOLITHIC = xyes; then
7053 need_gui=yes
7056 if test x$WXCAS = xyes; then
7057 need_gui=yes
7060 if test x$ALC = xyes; then
7061 need_gui=yes
7064 if test x$AMULE_GUI = xyes; then
7065 need_gui=yes
7068 if test x${need_gui:+set} != xset; then
7069 need_gui=no
7072 echo "$as_me:$LINENO: result: $need_gui" >&5
7073 echo "${ECHO_T}$need_gui" >&6
7076 # Check for GeoIP (required for IP2Country capability)
7078 # Check whether --enable-geoip or --disable-geoip was given.
7079 if test "${enable_geoip+set}" = set; then
7080 enableval="$enable_geoip"
7081 ENABLE_IP2COUNTRY=$enableval
7082 else
7083 ENABLE_IP2COUNTRY=no
7086 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
7088 GEOIP_LIBS="-lGeoIP"
7091 # Check whether --with-geoip-headers or --without-geoip-headers was given.
7092 if test "${with_geoip_headers+set}" = set; then
7093 withval="$with_geoip_headers"
7094 GEOIP_CPPFLAGS="-I$withval"
7098 # Check whether --with-geoip-lib or --without-geoip-lib was given.
7099 if test "${with_geoip_lib+set}" = set; then
7100 withval="$with_geoip_lib"
7101 GEOIP_LDFLAGS="-L$withval"
7104 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7105 mule_backup_CPPFLAGS="$CPPFLAGS"
7106 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7107 mule_backup_LDFLAGS="$LDFLAGS"
7108 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7109 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7110 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7111 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7112 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7116 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7117 else
7118 # Is the header compilable?
7119 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
7120 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 #include <GeoIP.h>
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132 (eval $ac_compile) 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -z "$ac_c_werror_flag"
7140 || test ! -s conftest.err'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 ac_header_compiler=yes
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 ac_header_compiler=no
7159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7161 echo "${ECHO_T}$ac_header_compiler" >&6
7163 # Is the header present?
7164 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7165 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <GeoIP.h>
7173 _ACEOF
7174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } >/dev/null; then
7182 if test -s conftest.err; then
7183 ac_cpp_err=$ac_c_preproc_warn_flag
7184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7185 else
7186 ac_cpp_err=
7188 else
7189 ac_cpp_err=yes
7191 if test -z "$ac_cpp_err"; then
7192 ac_header_preproc=yes
7193 else
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 ac_header_preproc=no
7199 rm -f conftest.err conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7201 echo "${ECHO_T}$ac_header_preproc" >&6
7203 # So? What about this header?
7204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7205 yes:no: )
7206 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7207 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7208 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7209 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7210 ac_header_preproc=yes
7212 no:yes:* )
7213 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7214 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7215 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7216 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7218 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7219 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7220 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7221 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7222 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7223 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7224 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7226 cat <<\_ASBOX
7227 ## ------------------------------ ##
7228 ## Report this to admin@amule.org ##
7229 ## ------------------------------ ##
7230 _ASBOX
7232 sed "s/^/$as_me: WARNING: /" >&2
7234 esac
7235 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7236 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7237 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240 ac_cv_header_GeoIP_h=$ac_header_preproc
7242 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7243 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7246 if test $ac_cv_header_GeoIP_h = yes; then
7248 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7249 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7250 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 ac_check_lib_save_LIBS=$LIBS
7254 LIBS="-lGeoIP $LIBS"
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7262 /* Override any gcc2 internal prototype to avoid an error. */
7263 #ifdef __cplusplus
7264 extern "C"
7265 #endif
7266 /* We use char because int might match the return type of a gcc2
7267 builtin and then its argument prototype would still apply. */
7268 char GeoIP_open ();
7270 main ()
7272 GeoIP_open ();
7274 return 0;
7276 _ACEOF
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -z "$ac_c_werror_flag"
7287 || test ! -s conftest.err'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest$ac_exeext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_cv_lib_GeoIP_GeoIP_open=yes
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_lib_GeoIP_GeoIP_open=no
7306 rm -f conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 LIBS=$ac_check_lib_save_LIBS
7310 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7311 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7312 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define SUPPORT_GEOIP 1
7317 _ACEOF
7320 # Check whether --with-geoip-static or --without-geoip-static was given.
7321 if test "${with_geoip_static+set}" = set; then
7322 withval="$with_geoip_static"
7324 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7326 mule_backup_LIBS="$LIBS"
7327 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7328 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7336 #include <GeoIP.h>
7339 main ()
7342 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7345 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7372 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7379 { echo "$as_me:$LINENO: WARNING:
7380 Cannot link GeoIP statically, because your linker ($LD) does not
7381 support it." >&5
7382 echo "$as_me: WARNING:
7383 Cannot link GeoIP statically, because your linker ($LD) does not
7384 support it." >&2;}
7385 _mule_warning_3=yes
7386 _mule_has_warnings=yes
7390 rm -f conftest.err conftest.$ac_objext \
7391 conftest$ac_exeext conftest.$ac_ext
7392 LIBS="$mule_backup_LIBS"
7399 else
7401 ENABLE_IP2COUNTRY=disabled
7402 { echo "$as_me:$LINENO: WARNING:
7403 GeoIP support has been disabled because the GeoIP libraries were not
7404 found" >&5
7405 echo "$as_me: WARNING:
7406 GeoIP support has been disabled because the GeoIP libraries were not
7407 found" >&2;}
7408 _mule_warning_4=yes
7409 _mule_has_warnings=yes
7415 else
7417 ENABLE_IP2COUNTRY=disabled
7418 { echo "$as_me:$LINENO: WARNING:
7419 GeoIP support has been disabled because the GeoIP header files were
7420 not found" >&5
7421 echo "$as_me: WARNING:
7422 GeoIP support has been disabled because the GeoIP header files were
7423 not found" >&2;}
7424 _mule_warning_5=yes
7425 _mule_has_warnings=yes
7432 CPPFLAGS="$mule_backup_CPPFLAGS"
7433 LDFLAGS="$mule_backup_LDFLAGS"
7439 # Check for wx
7442 # Check whether --with-wxdir or --without-wxdir was given.
7443 if test "${with_wxdir+set}" = set; then
7444 withval="$with_wxdir"
7445 wx_config_name="$withval/wx-config"
7446 wx_config_args="--inplace"
7449 # Check whether --with-wx-config or --without-wx-config was given.
7450 if test "${with_wx_config+set}" = set; then
7451 withval="$with_wx_config"
7452 wx_config_name="$withval"
7455 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7456 if test "${with_wx_prefix+set}" = set; then
7457 withval="$with_wx_prefix"
7458 wx_config_prefix="$withval"
7459 else
7460 wx_config_prefix=""
7463 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7464 if test "${with_wx_exec_prefix+set}" = set; then
7465 withval="$with_wx_exec_prefix"
7466 wx_config_exec_prefix="$withval"
7467 else
7468 wx_config_exec_prefix=""
7482 # Check whether --with-toolkit or --without-toolkit was given.
7483 if test "${with_toolkit+set}" = set; then
7484 withval="$with_toolkit"
7486 else
7487 withval="auto"
7490 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7491 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7492 if test "$withval" = "auto" ; then
7493 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7494 echo "${ECHO_T}will be automatically detected" >&6
7495 TOOLKIT="auto"
7496 else
7497 TOOLKIT="$withval"
7499 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7500 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7501 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7502 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7503 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7504 { { echo "$as_me:$LINENO: error:
7505 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7506 " >&5
7507 echo "$as_me: error:
7508 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7509 " >&2;}
7510 { (exit 1); exit 1; }; }
7513 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7514 echo "${ECHO_T}$TOOLKIT" >&6
7521 # Check whether --with-wxshared or --without-wxshared was given.
7522 if test "${with_wxshared+set}" = set; then
7523 withval="$with_wxshared"
7525 else
7526 withval="auto"
7529 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7530 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7531 if test "$withval" = "yes" ; then
7532 echo "$as_me:$LINENO: result: yes" >&5
7533 echo "${ECHO_T}yes" >&6
7534 WX_SHARED=1
7536 elif test "1" = "1" -a "$withval" = "no" ; then
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539 WX_SHARED=0
7540 elif test "$withval" = "auto" ; then
7541 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7542 echo "${ECHO_T}will be automatically detected" >&6
7543 WX_SHARED="auto"
7544 else
7545 { { echo "$as_me:$LINENO: error:
7546 Unrecognized option value (allowed values: yes, auto)
7547 " >&5
7548 echo "$as_me: error:
7549 Unrecognized option value (allowed values: yes, auto)
7550 " >&2;}
7551 { (exit 1); exit 1; }; }
7558 # Check whether --with-wxdebug or --without-wxdebug was given.
7559 if test "${with_wxdebug+set}" = set; then
7560 withval="$with_wxdebug"
7562 else
7563 withval="auto"
7566 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7567 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7568 if test "$withval" = "yes" ; then
7569 echo "$as_me:$LINENO: result: yes" >&5
7570 echo "${ECHO_T}yes" >&6
7571 WX_DEBUG=1
7573 elif test "1" = "1" -a "$withval" = "no" ; then
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576 WX_DEBUG=0
7577 elif test "$withval" = "auto" ; then
7578 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7579 echo "${ECHO_T}will be automatically detected" >&6
7580 WX_DEBUG="auto"
7581 else
7582 { { echo "$as_me:$LINENO: error:
7583 Unrecognized option value (allowed values: yes, auto)
7584 " >&5
7585 echo "$as_me: error:
7586 Unrecognized option value (allowed values: yes, auto)
7587 " >&2;}
7588 { (exit 1); exit 1; }; }
7595 # Check whether --with-wxversion or --without-wxversion was given.
7596 if test "${with_wxversion+set}" = set; then
7597 withval="$with_wxversion"
7599 else
7600 withval="auto"
7603 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7604 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7605 if test "$withval" = "auto" ; then
7606 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7607 echo "${ECHO_T}will be automatically detected" >&6
7608 WX_VERSION="auto"
7609 else
7611 wx_requested_major_version=`echo $withval | \
7612 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7613 wx_requested_minor_version=`echo $withval | \
7614 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7616 if test "${#wx_requested_major_version}" != "1" -o \
7617 "${#wx_requested_minor_version}" != "1" ; then
7618 { { echo "$as_me:$LINENO: error:
7619 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7620 " >&5
7621 echo "$as_me: error:
7622 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7623 " >&2;}
7624 { (exit 1); exit 1; }; }
7627 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7628 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7629 echo "${ECHO_T}$WX_VERSION" >&6
7633 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7634 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7635 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7636 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7637 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7638 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7641 # Force using a static wxWidgets library if the executable is to be linked statically.
7642 if test ${enable_static:-no} = yes; then
7643 WX_SHARED=0
7646 # Force using a unicode build of the library
7647 WX_UNICODE=1
7648 DEBUG=$WX_DEBUG
7650 if test "$WX_SHARED" = "1" ; then
7651 WXCONFIG_FLAGS="--static=no "
7652 elif test "$WX_SHARED" = "0" ; then
7653 WXCONFIG_FLAGS="--static=yes "
7656 if test "$WX_DEBUG" = "1" ; then
7657 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7658 elif test "$WX_DEBUG" = "0" ; then
7659 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7662 if test "$WX_UNICODE" = "1" ; then
7663 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7664 elif test "$WX_UNICODE" = "0" ; then
7665 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7668 if test "$TOOLKIT" != "auto" ; then
7669 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7672 if test "$WX_VERSION" != "auto" ; then
7673 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7676 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7678 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7679 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7683 if test x${WX_CONFIG_NAME+set} != xset ; then
7684 WX_CONFIG_NAME=wx-config
7687 if test "x$wx_config_name" != x ; then
7688 WX_CONFIG_NAME="$wx_config_name"
7691 if test x$wx_config_exec_prefix != x ; then
7692 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7693 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7695 if test x$wx_config_prefix != x ; then
7696 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7697 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7699 if test "$cross_compiling" = "yes"; then
7700 wx_config_args="$wx_config_args --host=$host_alias"
7703 if test -x "$WX_CONFIG_NAME" ; then
7704 echo "$as_me:$LINENO: checking for wx-config" >&5
7705 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7706 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7707 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7708 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7709 else
7710 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7711 set dummy $WX_CONFIG_NAME; ac_word=$2
7712 echo "$as_me:$LINENO: checking for $ac_word" >&5
7713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7714 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 case $WX_CONFIG_PATH in
7718 [\\/]* | ?:[\\/]*)
7719 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7724 for as_dir in $as_dummy
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7737 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7739 esac
7741 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7743 if test -n "$WX_CONFIG_PATH"; then
7744 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7745 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6
7753 if test "$WX_CONFIG_PATH" != "no" ; then
7754 WX_VERSION_FULL=""
7756 min_wx_version=2.8.0
7757 if test -z "$WXCONFIG_FLAGS" ; then
7758 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7759 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7760 else
7761 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7762 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7765 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7767 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7768 wx_config_major_version=`echo $WX_VERSION_FULL | \
7769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7770 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7771 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7772 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7773 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7775 wx_requested_major_version=`echo $min_wx_version | \
7776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7777 wx_requested_minor_version=`echo $min_wx_version | \
7778 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7779 wx_requested_micro_version=`echo $min_wx_version | \
7780 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7783 wx_ver_ok=""
7784 if test "x$WX_VERSION_FULL" != x ; then
7785 if test $wx_config_major_version -gt $wx_requested_major_version; then
7786 wx_ver_ok=yes
7787 else
7788 if test $wx_config_major_version -eq $wx_requested_major_version; then
7789 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7790 wx_ver_ok=yes
7791 else
7792 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7793 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7794 wx_ver_ok=yes
7803 if test -n "$wx_ver_ok"; then
7805 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7806 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7807 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7809 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7810 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7811 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7812 if test "x$WX_LIBS_STATIC" = "x"; then
7813 echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6
7815 else
7816 echo "$as_me:$LINENO: result: yes" >&5
7817 echo "${ECHO_T}yes" >&6
7820 wx_has_cppflags=""
7821 if test $wx_config_major_version -gt 2; then
7822 wx_has_cppflags=yes
7823 else
7824 if test $wx_config_major_version -eq 2; then
7825 if test $wx_config_minor_version -gt 2; then
7826 wx_has_cppflags=yes
7827 else
7828 if test $wx_config_minor_version -eq 2; then
7829 if test $wx_config_micro_version -ge 6; then
7830 wx_has_cppflags=yes
7837 wx_has_rescomp=""
7838 if test $wx_config_major_version -gt 2; then
7839 wx_has_rescomp=yes
7840 else
7841 if test $wx_config_major_version -eq 2; then
7842 if test $wx_config_minor_version -ge 7; then
7843 wx_has_rescomp=yes
7847 if test "x$wx_has_rescomp" = x ; then
7848 WX_RESCOMP=
7849 else
7850 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7853 if test "x$wx_has_cppflags" = x ; then
7854 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7855 WX_CPPFLAGS=$WX_CFLAGS
7856 WX_CXXFLAGS=$WX_CFLAGS
7858 WX_CFLAGS_ONLY=$WX_CFLAGS
7859 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7860 else
7861 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7862 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7863 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7865 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7866 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7869 wxWin=1
7871 else
7873 if test "x$WX_VERSION_FULL" = x; then
7874 echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6
7876 else
7877 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7878 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7881 WX_CFLAGS=""
7882 WX_CPPFLAGS=""
7883 WX_CXXFLAGS=""
7884 WX_LIBS=""
7885 WX_LIBS_STATIC=""
7886 WX_RESCOMP=""
7888 if test ! -z "$WXCONFIG_FLAGS"; then
7890 wx_error_message="
7891 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7892 build with the following settings:
7893 $WXCONFIG_FLAGS
7894 but such build is not available.
7896 To see the wxWidgets builds available on this system, please use
7897 'wx-config --list' command. To use the default build, returned by
7898 'wx-config --selected-config', use the options with their 'auto'
7899 default values."
7903 wx_error_message="
7904 The requested wxWidgets build couldn't be found.
7905 $wx_error_message
7907 If you still get this error, then check that 'wx-config' is
7908 in path, the directory where wxWidgets libraries are installed
7909 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7910 or equivalent variable and wxWidgets version is 2.8.0 or above."
7912 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7913 echo "$as_me: error: $wx_error_message" >&2;}
7914 { (exit 1); exit 1; }; }
7917 else
7919 WX_CFLAGS=""
7920 WX_CPPFLAGS=""
7921 WX_CXXFLAGS=""
7922 WX_LIBS=""
7923 WX_LIBS_STATIC=""
7924 WX_RESCOMP=""
7940 WX_VERSION_MAJOR="$wx_config_major_version"
7941 WX_VERSION_MINOR="$wx_config_minor_version"
7945 if test "$wxWin" != 1; then
7946 { { echo "$as_me:$LINENO: error:
7947 wxWidgets must be installed on your system but wx-config
7948 script couldn't be found. Please check that wx-config is
7949 in path or specified by --with-wx-config=path flag, the
7950 directory where wxWidgets libraries are installed (returned
7951 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7952 equivalent variable and wxWidgets version is 2.8.0 or above.
7953 " >&5
7954 echo "$as_me: error:
7955 wxWidgets must be installed on your system but wx-config
7956 script couldn't be found. Please check that wx-config is
7957 in path or specified by --with-wx-config=path flag, the
7958 directory where wxWidgets libraries are installed (returned
7959 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7960 equivalent variable and wxWidgets version is 2.8.0 or above.
7961 " >&2;}
7962 { (exit 1); exit 1; }; }
7965 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7966 if test $WX_VERSION -lt 26 ; then
7968 { { echo "$as_me:$LINENO: error:
7969 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7970 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7971 version of wxWidgets.
7972 " >&5
7973 echo "$as_me: error:
7974 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7975 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7976 version of wxWidgets.
7977 " >&2;}
7978 { (exit 1); exit 1; }; }
7981 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7983 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7984 echo "[dbg] Using wx-config --selected-config"
7985 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7989 if test $WX_SHARED = "1"; then
7990 STATIC=0
7991 elif test $WX_SHARED = "0"; then
7992 STATIC=1
7993 elif test $WX_SHARED = "auto"; then
7994 STATIC="auto"
7998 if test "$UNICODE" = "auto" ; then
8000 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
8001 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
8003 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8005 if test "$WX_UNICODE" != "0"; then
8006 WX_UNICODE=1
8007 echo "$as_me:$LINENO: result: yes" >&5
8008 echo "${ECHO_T}yes" >&6
8010 else
8011 WX_UNICODE=0
8012 echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6
8016 else
8018 WX_UNICODE=$UNICODE
8022 if test "$DEBUG" = "auto" ; then
8024 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
8025 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
8027 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8029 if test "$WX_DEBUG" != "0"; then
8030 WX_DEBUG=1
8031 echo "$as_me:$LINENO: result: yes" >&5
8032 echo "${ECHO_T}yes" >&6
8034 else
8035 WX_DEBUG=0
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8040 else
8042 WX_DEBUG=$DEBUG
8046 if test "$STATIC" = "auto" ; then
8048 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
8049 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
8051 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8053 if test "$WX_STATIC" != "0"; then
8054 WX_STATIC=1
8055 echo "$as_me:$LINENO: result: yes" >&5
8056 echo "${ECHO_T}yes" >&6
8058 else
8059 WX_STATIC=0
8060 echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6
8064 else
8066 WX_STATIC=$STATIC
8070 if test "$WX_STATIC" != "0"; then
8071 WX_SHARED=0
8072 else
8073 WX_SHARED=1
8080 if test "$TOOLKIT" = "auto" ; then
8082 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
8083 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
8085 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8086 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8087 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8088 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8089 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8090 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8091 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8092 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8093 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8094 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8096 WX_PORT="unknown"
8097 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8098 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8099 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8100 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8101 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8102 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8103 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8104 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8105 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8106 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8109 if test "$WX_PORT" = "unknown" ; then
8110 { { echo "$as_me:$LINENO: error:
8111 Cannot detect the currently installed wxWidgets port !
8112 Please check your 'wx-config --cxxflags'...
8113 " >&5
8114 echo "$as_me: error:
8115 Cannot detect the currently installed wxWidgets port !
8116 Please check your 'wx-config --cxxflags'...
8117 " >&2;}
8118 { (exit 1); exit 1; }; }
8121 echo "$as_me:$LINENO: result: $WX_PORT" >&5
8122 echo "${ECHO_T}$WX_PORT" >&6
8123 else
8125 if test -z "$TOOLKIT" ; then
8126 WX_PORT=$TOOLKIT
8127 else
8128 WX_PORT=$PORT
8134 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8135 echo "[dbg] Values of all WX_* options after final detection:"
8136 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8137 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8138 echo "[dbg] WX_SHARED: $WX_SHARED"
8139 echo "[dbg] WX_VERSION: $WX_VERSION"
8140 echo "[dbg] WX_PORT: $WX_PORT"
8143 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8144 { { echo "$as_me:$LINENO: error:
8145 Cannot build shared library against a static build of wxWidgets !
8146 This error happens because the wxWidgets build which was selected
8147 has been detected as static while you asked to build $PACKAGE_NAME
8148 as shared library and this is not possible.
8149 Use the '--disable-shared' option to build $PACKAGE_NAME
8150 as static library or '--with-wxshared' to use wxWidgets as shared library.
8151 " >&5
8152 echo "$as_me: error:
8153 Cannot build shared library against a static build of wxWidgets !
8154 This error happens because the wxWidgets build which was selected
8155 has been detected as static while you asked to build $PACKAGE_NAME
8156 as shared library and this is not possible.
8157 Use the '--disable-shared' option to build $PACKAGE_NAME
8158 as static library or '--with-wxshared' to use wxWidgets as shared library.
8159 " >&2;}
8160 { (exit 1); exit 1; }; }
8163 if test "$DEBUG" = "auto"; then
8164 DEBUG=$WX_DEBUG
8166 if test "$DEBUG" = "1"; then
8167 BUILD="debug"
8168 elif test "$DEBUG" = ""; then
8169 BUILD="release"
8172 if test "$UNICODE" = "auto"; then
8173 UNICODE=$WX_UNICODE
8175 if test "$SHARED" = "auto"; then
8176 SHARED=$WX_SHARED
8178 if test "$TOOLKIT" = "auto"; then
8179 TOOLKIT=$WX_PORT
8184 # We also need wxBase
8185 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8186 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8187 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8191 if test ${SYS:-unknown} = win32; then
8193 if test -n "$ac_tool_prefix"; then
8194 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8195 set dummy ${ac_tool_prefix}windres; ac_word=$2
8196 echo "$as_me:$LINENO: checking for $ac_word" >&5
8197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198 if test "${ac_cv_prog_RC+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 if test -n "$RC"; then
8202 ac_cv_prog_RC="$RC" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_RC="${ac_tool_prefix}windres"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8215 done
8216 done
8220 RC=$ac_cv_prog_RC
8221 if test -n "$RC"; then
8222 echo "$as_me:$LINENO: result: $RC" >&5
8223 echo "${ECHO_T}$RC" >&6
8224 else
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8230 if test -z "$ac_cv_prog_RC"; then
8231 ac_ct_RC=$RC
8232 # Extract the first word of "windres", so it can be a program name with args.
8233 set dummy windres; ac_word=$2
8234 echo "$as_me:$LINENO: checking for $ac_word" >&5
8235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8236 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 if test -n "$ac_ct_RC"; then
8240 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249 ac_cv_prog_ac_ct_RC="windres"
8250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8253 done
8254 done
8256 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8259 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8260 if test -n "$ac_ct_RC"; then
8261 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8262 echo "${ECHO_T}$ac_ct_RC" >&6
8263 else
8264 echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8268 RC=$ac_ct_RC
8269 else
8270 RC="$ac_cv_prog_RC"
8273 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8279 # Check for libupnp
8280 if test "${ENABLE_UPNP:-yes}" = yes; then
8284 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8285 if test -n "$ac_tool_prefix"; then
8286 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8287 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8288 echo "$as_me:$LINENO: checking for $ac_word" >&5
8289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8290 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 case $PKG_CONFIG in
8294 [\\/]* | ?:[\\/]*)
8295 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8309 done
8310 done
8313 esac
8315 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8317 if test -n "$PKG_CONFIG"; then
8318 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8319 echo "${ECHO_T}$PKG_CONFIG" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6
8326 if test -z "$ac_cv_path_PKG_CONFIG"; then
8327 ac_pt_PKG_CONFIG=$PKG_CONFIG
8328 # Extract the first word of "pkg-config", so it can be a program name with args.
8329 set dummy pkg-config; ac_word=$2
8330 echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8332 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 case $ac_pt_PKG_CONFIG in
8336 [\\/]* | ?:[\\/]*)
8337 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8347 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8355 esac
8357 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8359 if test -n "$ac_pt_PKG_CONFIG"; then
8360 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8361 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8362 else
8363 echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6
8367 PKG_CONFIG=$ac_pt_PKG_CONFIG
8368 else
8369 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8373 if test -n "$PKG_CONFIG"; then
8374 _pkg_min_version=0.9.0
8375 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8376 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8377 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8378 echo "$as_me:$LINENO: result: yes" >&5
8379 echo "${ECHO_T}yes" >&6
8380 else
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8383 PKG_CONFIG=""
8389 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8390 if test "${with_libupnp_prefix+set}" = set; then
8391 withval="$with_libupnp_prefix"
8392 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8395 if test $cross_compiling = no; then
8396 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8397 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8398 if test -n "$PKG_CONFIG"; then
8399 if $PKG_CONFIG libupnp --exists; then
8400 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8401 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8402 result=yes
8403 resultstr=" (version $LIBUPNP_VERSION)"
8404 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8405 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8406 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8407 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8408 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8410 else
8411 result=no
8412 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8416 else
8417 result=no
8418 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8422 else
8423 result=no
8424 resultstr=" (pkg-config not found)"
8427 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8428 echo "${ECHO_T}$result$resultstr" >&6
8429 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8431 else
8432 result=no
8433 libupnp_error="cross compiling"
8437 if test ${result:-no} = yes; then
8438 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8439 else
8440 ENABLE_UPNP=disabled
8441 { echo "$as_me:$LINENO: WARNING:
8442 UPnP code has been disabled because ${libupnp_error}." >&5
8443 echo "$as_me: WARNING:
8444 UPnP code has been disabled because ${libupnp_error}." >&2;}
8445 _mule_warning_6=yes
8446 _mule_has_warnings=yes
8457 # Check for Crypto++
8460 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8461 if test "${with_crypto_prefix+set}" = set; then
8462 withval="$with_crypto_prefix"
8466 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8467 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8469 cryptopp_file_with_version="cryptlib.h"
8471 CRYPTOPP_STYLE="unknown"
8472 CRYPTOPP_LIB_NAME="unknown"
8473 cryptopp_includedir="unknown"
8474 CRYPTOPP_INCLUDE_PREFIX="unknown"
8475 cryptopp_libdir="unknown"
8477 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8478 if test -z "$CRYPTOPP_PREFIX"; then
8479 continue
8483 # Find the Cryptopp header
8484 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8486 CRYPTOPP_STYLE="sources"
8487 CRYPTOPP_LIB_NAME="cryptopp"
8488 cryptopp_includedir=
8489 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8490 cryptopp_libdir=
8491 break
8493 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8495 CRYPTOPP_STYLE="installed"
8496 CRYPTOPP_LIB_NAME="cryptopp"
8497 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8498 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8499 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8500 break
8502 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8504 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8505 CRYPTOPP_STYLE="gentoo_debian"
8506 CRYPTOPP_LIB_NAME="crypto++"
8507 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8508 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8509 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8510 break
8514 done
8516 if test $CRYPTOPP_STYLE = "unknown"; then
8517 result=no; resultstr=""
8518 else
8520 # Find out the crypto++ version and check against the minimum required
8521 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8522 CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8523 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8524 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8526 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8528 result=yes
8529 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8530 if test -n "$cryptopp_includedir"; then
8531 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8532 else
8533 CRYPTOPP_CPPFLAGS=
8536 if test -n "$cryptopp_libdir"; then
8538 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8539 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8541 else
8543 CRYPTOPP_LDFLAGS=
8544 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8550 cat >>confdefs.h <<_ACEOF
8551 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8552 _ACEOF
8555 else
8557 result=no
8558 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8566 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8567 echo "${ECHO_T}$result$resultstr" >&6
8569 if test ${result:-no} = yes; then
8571 # Check for CryptoPP >= 5.5
8572 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8573 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8577 else
8579 { { echo "$as_me:$LINENO: error:
8580 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8581 Please try again with --with-crypto-prefix=/my_crypto_prefix
8582 (replace /my_crypto_prefix with a valid path to your crypto++
8583 installation directory)." >&5
8584 echo "$as_me: error:
8585 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8586 Please try again with --with-crypto-prefix=/my_crypto_prefix
8587 (replace /my_crypto_prefix with a valid path to your crypto++
8588 installation directory)." >&2;}
8589 { (exit 1); exit 1; }; }
8596 ac_ext=cc
8597 ac_cpp='$CXXCPP $CPPFLAGS'
8598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8605 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8606 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8615 #include <string>
8616 #ifndef __GLIBCXX__
8617 #error Non-GNU C++ library found.
8618 #endif
8621 _ACEOF
8622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev/null; then
8630 if test -s conftest.err; then
8631 ac_cpp_err=$ac_cxx_preproc_warn_flag
8632 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8633 else
8634 ac_cpp_err=
8636 else
8637 ac_cpp_err=yes
8639 if test -z "$ac_cpp_err"; then
8640 GLIBCXX=yes
8641 else
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 GLIBCXX=no
8647 rm -f conftest.err conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8649 echo "${ECHO_T}$GLIBCXX" >&6
8652 mule_backup_CPPFLAGS="$CPPFLAGS"
8653 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8655 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8656 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8665 #include <wx/wx.h>
8666 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8667 #error No LargeFile support!
8668 #endif
8671 _ACEOF
8672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } >/dev/null; then
8680 if test -s conftest.err; then
8681 ac_cpp_err=$ac_cxx_preproc_warn_flag
8682 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8683 else
8684 ac_cpp_err=
8686 else
8687 ac_cpp_err=yes
8689 if test -z "$ac_cpp_err"; then
8691 echo "$as_me:$LINENO: result: yes" >&5
8692 echo "${ECHO_T}yes" >&6
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8699 echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701 { { echo "$as_me:$LINENO: error:
8702 Support for large files in wxWidgets is required by aMule.
8703 To continue you must recompile wxWidgets with support for
8704 large files enabled." >&5
8705 echo "$as_me: error:
8706 Support for large files in wxWidgets is required by aMule.
8707 To continue you must recompile wxWidgets with support for
8708 large files enabled." >&2;}
8709 { (exit 1); exit 1; }; }
8712 rm -f conftest.err conftest.$ac_ext
8714 CPPFLAGS="$mule_backup_CPPFLAGS"
8717 # Check if the compiler is broken, wrt. exceptions.
8719 echo "$as_me:$LINENO: checking for exception-handling" >&5
8720 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8721 if test "$cross_compiling" = yes; then
8723 echo "$as_me:$LINENO: result: undeterminable" >&5
8724 echo "${ECHO_T}undeterminable" >&6
8725 { echo "$as_me:$LINENO: WARNING:
8726 Cross-compilation detected, so exception handling cannot be tested.
8727 Note that broken exception handling in your compiler may lead to
8728 unexpected crashes." >&5
8729 echo "$as_me: WARNING:
8730 Cross-compilation detected, so exception handling cannot be tested.
8731 Note that broken exception handling in your compiler may lead to
8732 unexpected crashes." >&2;}
8733 _mule_warning_7=yes
8734 _mule_has_warnings=yes
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h. */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8747 main ()
8750 try {
8751 throw 1;
8752 } catch (int) {
8753 return 0;
8755 return 1;
8758 return 0;
8761 _ACEOF
8762 rm -f conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8774 echo "$as_me:$LINENO: result: yes" >&5
8775 echo "${ECHO_T}yes" >&6
8777 else
8778 echo "$as_me: program exited with status $ac_status" >&5
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ( exit $ac_status )
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6
8786 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8787 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8788 { (exit 1); exit 1; }; }
8791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8796 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8797 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 #include <cxxabi.h>
8809 main ()
8812 int status;
8813 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8814 std::type_info *ti = abi::__cxa_current_exception_type();
8817 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_cxx_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8846 cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_CXXABI 1
8848 _ACEOF
8850 echo "$as_me:$LINENO: result: yes" >&5
8851 echo "${ECHO_T}yes" >&6
8853 else
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8858 echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6
8862 rm -f conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext conftest.$ac_ext
8865 ac_ext=c
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872 # Check for bfd.h (to have proper backtraces without using wxExecute)
8874 echo "$as_me:$LINENO: checking for bfd" >&5
8875 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8876 mule_backup_LIBS="$LIBS"
8877 LIBS="-lbfd -liberty $LIBS"
8878 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8886 #include <ansidecl.h>
8887 #include <bfd.h>
8890 main ()
8893 char *dummy = bfd_errmsg(bfd_get_error());
8896 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902 (eval $ac_link) 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); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8923 echo "$as_me:$LINENO: result: yes" >&5
8924 echo "${ECHO_T}yes" >&6
8925 BFD_CPPFLAGS="-DHAVE_BFD"
8926 BFD_LIBS="-lbfd -liberty"
8928 else
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8933 echo "$as_me:$LINENO: result: no" >&5
8934 echo "${ECHO_T}no" >&6
8935 { echo "$as_me:$LINENO: WARNING:
8936 bfd.h not found or unusable, please install binutils development
8937 package if you are a developer or want to help testing aMule" >&5
8938 echo "$as_me: WARNING:
8939 bfd.h not found or unusable, please install binutils development
8940 package if you are a developer or want to help testing aMule" >&2;}
8941 _mule_warning_8=yes
8942 _mule_has_warnings=yes
8946 rm -f conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 LIBS="$mule_backup_LIBS"
8952 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8953 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8962 #include <execinfo.h>
8965 main ()
8968 void *bt[1];
8969 int n = backtrace(&bt, 1);
8970 const char **bt_syms = backtrace_symbols(bt, n);
8973 return 0;
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
9002 cat >>confdefs.h <<\_ACEOF
9003 #define HAVE_EXECINFO 1
9004 _ACEOF
9006 echo "$as_me:$LINENO: result: yes" >&5
9007 echo "${ECHO_T}yes" >&6
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9014 echo "$as_me:$LINENO: result: no" >&5
9015 echo "${ECHO_T}no" >&6
9018 rm -f conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
9022 # Ok, we have all needed libs, now checking for other stuff
9023 if test "$LEX" = "flex"; then
9025 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
9026 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
9028 extended_flex=`flex --help | grep header-file`
9029 if test -n "$extended_flex"; then
9030 HAVE_FLEX_EXTENDED=yes
9031 else
9032 HAVE_FLEX_EXTENDED=no
9035 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
9036 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
9038 if test $HAVE_FLEX_EXTENDED = no; then
9039 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
9040 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
9044 else
9045 HAVE_FLEX_EXTENDED=no
9049 # Flush standard test results for speeding cache
9050 cat >confcache <<\_ACEOF
9051 # This file is a shell script that caches the results of configure
9052 # tests run on this system so they can be shared between configure
9053 # scripts and configure runs, see configure's option --config-cache.
9054 # It is not useful on other systems. If it contains results you don't
9055 # want to keep, you may remove or edit it.
9057 # config.status only pays attention to the cache file if you give it
9058 # the --recheck option to rerun configure.
9060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9062 # following values.
9064 _ACEOF
9066 # The following way of writing the cache mishandles newlines in values,
9067 # but we know of no workaround that is simple, portable, and efficient.
9068 # So, don't put newlines in cache variables' values.
9069 # Ultrix sh set writes to stderr and can't be redirected directly,
9070 # and sets the high bit in the cache file unless we assign to the vars.
9072 (set) 2>&1 |
9073 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9074 *ac_space=\ *)
9075 # `set' does not quote correctly, so add quotes (double-quote
9076 # substitution turns \\\\ into \\, and sed turns \\ into \).
9077 sed -n \
9078 "s/'/'\\\\''/g;
9079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9082 # `set' quotes correctly as required by POSIX, so do not add quotes.
9083 sed -n \
9084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9086 esac;
9088 sed '
9089 t clear
9090 : clear
9091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9092 t end
9093 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9094 : end' >>confcache
9095 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9096 if test -w $cache_file; then
9097 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9098 cat confcache >$cache_file
9099 else
9100 echo "not updating unwritable cache $cache_file"
9103 rm -f confcache
9105 # Checks for header files.
9106 echo "$as_me:$LINENO: checking for X" >&5
9107 echo $ECHO_N "checking for X... $ECHO_C" >&6
9110 # Check whether --with-x or --without-x was given.
9111 if test "${with_x+set}" = set; then
9112 withval="$with_x"
9115 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9116 if test "x$with_x" = xno; then
9117 # The user explicitly disabled X.
9118 have_x=disabled
9119 else
9120 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9121 # Both variables are already set.
9122 have_x=yes
9123 else
9124 if test "${ac_cv_have_x+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 # One or both of the vars are not set, and there is no cached value.
9128 ac_x_includes=no ac_x_libraries=no
9129 rm -fr conftest.dir
9130 if mkdir conftest.dir; then
9131 cd conftest.dir
9132 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9133 cat >Imakefile <<'_ACEOF'
9134 acfindx:
9135 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9136 _ACEOF
9137 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9138 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9139 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9140 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9141 for ac_extension in a so sl; do
9142 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9143 test -f $ac_im_libdir/libX11.$ac_extension; then
9144 ac_im_usrlibdir=$ac_im_libdir; break
9146 done
9147 # Screen out bogus values from the imake configuration. They are
9148 # bogus both because they are the default anyway, and because
9149 # using them would break gcc on systems where it needs fixed includes.
9150 case $ac_im_incroot in
9151 /usr/include) ;;
9152 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9153 esac
9154 case $ac_im_usrlibdir in
9155 /usr/lib | /lib) ;;
9156 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9157 esac
9159 cd ..
9160 rm -fr conftest.dir
9163 # Standard set of common directories for X headers.
9164 # Check X11 before X11Rn because it is often a symlink to the current release.
9165 ac_x_header_dirs='
9166 /usr/X11/include
9167 /usr/X11R6/include
9168 /usr/X11R5/include
9169 /usr/X11R4/include
9171 /usr/include/X11
9172 /usr/include/X11R6
9173 /usr/include/X11R5
9174 /usr/include/X11R4
9176 /usr/local/X11/include
9177 /usr/local/X11R6/include
9178 /usr/local/X11R5/include
9179 /usr/local/X11R4/include
9181 /usr/local/include/X11
9182 /usr/local/include/X11R6
9183 /usr/local/include/X11R5
9184 /usr/local/include/X11R4
9186 /usr/X386/include
9187 /usr/x386/include
9188 /usr/XFree86/include/X11
9190 /usr/include
9191 /usr/local/include
9192 /usr/unsupported/include
9193 /usr/athena/include
9194 /usr/local/x11r5/include
9195 /usr/lpp/Xamples/include
9197 /usr/openwin/include
9198 /usr/openwin/share/include'
9200 if test "$ac_x_includes" = no; then
9201 # Guess where to find include files, by looking for Intrinsic.h.
9202 # First, try using that file with no special directory specified.
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h. */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 #include <X11/Intrinsic.h>
9210 _ACEOF
9211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } >/dev/null; then
9219 if test -s conftest.err; then
9220 ac_cpp_err=$ac_c_preproc_warn_flag
9221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9222 else
9223 ac_cpp_err=
9225 else
9226 ac_cpp_err=yes
9228 if test -z "$ac_cpp_err"; then
9229 # We can compile using X headers with no special include directory.
9230 ac_x_includes=
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 for ac_dir in $ac_x_header_dirs; do
9236 if test -r "$ac_dir/X11/Intrinsic.h"; then
9237 ac_x_includes=$ac_dir
9238 break
9240 done
9242 rm -f conftest.err conftest.$ac_ext
9243 fi # $ac_x_includes = no
9245 if test "$ac_x_libraries" = no; then
9246 # Check for the libraries.
9247 # See if we find them without any special options.
9248 # Don't add to $LIBS permanently.
9249 ac_save_LIBS=$LIBS
9250 LIBS="-lXt $LIBS"
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <X11/Intrinsic.h>
9259 main ()
9261 XtMalloc (0)
9263 return 0;
9265 _ACEOF
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 LIBS=$ac_save_LIBS
9289 # We can link X programs with no special library path.
9290 ac_x_libraries=
9291 else
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 LIBS=$ac_save_LIBS
9296 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9298 # Don't even attempt the hair of trying to link an X program!
9299 for ac_extension in a so sl; do
9300 if test -r $ac_dir/libXt.$ac_extension; then
9301 ac_x_libraries=$ac_dir
9302 break 2
9304 done
9305 done
9307 rm -f conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 fi # $ac_x_libraries = no
9311 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9312 # Didn't find X anywhere. Cache the known absence of X.
9313 ac_cv_have_x="have_x=no"
9314 else
9315 # Record where we found X for the cache.
9316 ac_cv_have_x="have_x=yes \
9317 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9322 eval "$ac_cv_have_x"
9323 fi # $with_x != no
9325 if test "$have_x" != yes; then
9326 echo "$as_me:$LINENO: result: $have_x" >&5
9327 echo "${ECHO_T}$have_x" >&6
9328 no_x=yes
9329 else
9330 # If each of the values was on the command line, it overrides each guess.
9331 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9332 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9333 # Update the cache value to reflect the command line values.
9334 ac_cv_have_x="have_x=yes \
9335 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9336 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9337 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9340 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9341 # for constant arguments. Useless!
9342 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9343 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9344 if test "${ac_cv_working_alloca_h+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 #include <alloca.h>
9355 main ()
9357 char *p = (char *) alloca (2 * sizeof (int));
9359 return 0;
9361 _ACEOF
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9364 (eval $ac_link) 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag"
9372 || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest$ac_exeext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 (eval $ac_try) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_cv_working_alloca_h=yes
9385 else
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 ac_cv_working_alloca_h=no
9391 rm -f conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9395 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9396 if test $ac_cv_working_alloca_h = yes; then
9398 cat >>confdefs.h <<\_ACEOF
9399 #define HAVE_ALLOCA_H 1
9400 _ACEOF
9404 echo "$as_me:$LINENO: checking for alloca" >&5
9405 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9406 if test "${ac_cv_func_alloca_works+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 #ifdef __GNUC__
9416 # define alloca __builtin_alloca
9417 #else
9418 # ifdef _MSC_VER
9419 # include <malloc.h>
9420 # define alloca _alloca
9421 # else
9422 # if HAVE_ALLOCA_H
9423 # include <alloca.h>
9424 # else
9425 # ifdef _AIX
9426 #pragma alloca
9427 # else
9428 # ifndef alloca /* predefined by HP cc +Olibcalls */
9429 char *alloca ();
9430 # endif
9431 # endif
9432 # endif
9433 # endif
9434 #endif
9437 main ()
9439 char *p = (char *) alloca (1);
9441 return 0;
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_func_alloca_works=yes
9467 else
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_cv_func_alloca_works=no
9473 rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9477 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9479 if test $ac_cv_func_alloca_works = yes; then
9481 cat >>confdefs.h <<\_ACEOF
9482 #define HAVE_ALLOCA 1
9483 _ACEOF
9485 else
9486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9487 # that cause trouble. Some versions do not even contain alloca or
9488 # contain a buggy version. If you still want to use their alloca,
9489 # use ar to extract alloca.o from them instead of compiling alloca.c.
9491 ALLOCA=alloca.$ac_objext
9493 cat >>confdefs.h <<\_ACEOF
9494 #define C_ALLOCA 1
9495 _ACEOF
9498 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9499 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9500 if test "${ac_cv_os_cray+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #if defined(CRAY) && ! defined(CRAY2)
9510 webecray
9511 #else
9512 wenotbecray
9513 #endif
9515 _ACEOF
9516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9517 $EGREP "webecray" >/dev/null 2>&1; then
9518 ac_cv_os_cray=yes
9519 else
9520 ac_cv_os_cray=no
9522 rm -f conftest*
9525 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9526 echo "${ECHO_T}$ac_cv_os_cray" >&6
9527 if test $ac_cv_os_cray = yes; then
9528 for ac_func in _getb67 GETB67 getb67; do
9529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530 echo "$as_me:$LINENO: checking for $ac_func" >&5
9531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532 if eval "test \"\${$as_ac_var+set}\" = set"; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9543 #define $ac_func innocuous_$ac_func
9545 /* System header to define __stub macros and hopefully few prototypes,
9546 which can conflict with char $ac_func (); below.
9547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9548 <limits.h> exists even on freestanding compilers. */
9550 #ifdef __STDC__
9551 # include <limits.h>
9552 #else
9553 # include <assert.h>
9554 #endif
9556 #undef $ac_func
9558 /* Override any gcc2 internal prototype to avoid an error. */
9559 #ifdef __cplusplus
9560 extern "C"
9562 #endif
9563 /* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */
9565 char $ac_func ();
9566 /* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9570 choke me
9571 #else
9572 char (*f) () = $ac_func;
9573 #endif
9574 #ifdef __cplusplus
9576 #endif
9579 main ()
9581 return f != $ac_func;
9583 return 0;
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588 (eval $ac_link) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -z "$ac_c_werror_flag"
9596 || test ! -s conftest.err'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 (eval $ac_try) 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest$ac_exeext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 eval "$as_ac_var=yes"
9609 else
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9613 eval "$as_ac_var=no"
9615 rm -f conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9620 if test `eval echo '${'$as_ac_var'}'` = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623 #define CRAY_STACKSEG_END $ac_func
9624 _ACEOF
9626 break
9629 done
9632 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9634 if test "${ac_cv_c_stack_direction+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 if test "$cross_compiling" = yes; then
9638 ac_cv_c_stack_direction=0
9639 else
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 find_stack_direction ()
9649 static char *addr = 0;
9650 auto char dummy;
9651 if (addr == 0)
9653 addr = &dummy;
9654 return find_stack_direction ();
9656 else
9657 return (&dummy > addr) ? 1 : -1;
9661 main ()
9663 exit (find_stack_direction () < 0);
9665 _ACEOF
9666 rm -f conftest$ac_exeext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9668 (eval $ac_link) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_c_stack_direction=1
9678 else
9679 echo "$as_me: program exited with status $ac_status" >&5
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ( exit $ac_status )
9684 ac_cv_c_stack_direction=-1
9686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9689 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9690 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9692 cat >>confdefs.h <<_ACEOF
9693 #define STACK_DIRECTION $ac_cv_c_stack_direction
9694 _ACEOF
9704 ac_header_dirent=no
9705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9707 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <sys/types.h>
9719 #include <$ac_hdr>
9722 main ()
9724 if ((DIR *) 0)
9725 return 0;
9727 return 0;
9729 _ACEOF
9730 rm -f conftest.$ac_objext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732 (eval $ac_compile) 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 eval "$as_ac_Header=yes"
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 eval "$as_ac_Header=no"
9759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9764 cat >>confdefs.h <<_ACEOF
9765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9766 _ACEOF
9768 ac_header_dirent=$ac_hdr; break
9771 done
9772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9773 if test $ac_header_dirent = dirent.h; then
9774 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9776 if test "${ac_cv_search_opendir+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 ac_func_search_save_LIBS=$LIBS
9780 ac_cv_search_opendir=no
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 /* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9794 char opendir ();
9796 main ()
9798 opendir ();
9800 return 0;
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_search_opendir="none required"
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 if test "$ac_cv_search_opendir" = no; then
9834 for ac_lib in dir; do
9835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any gcc2 internal prototype to avoid an error. */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 /* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849 char opendir ();
9851 main ()
9853 opendir ();
9855 return 0;
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_search_opendir="-l$ac_lib"
9881 break
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9887 rm -f conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 done
9891 LIBS=$ac_func_search_save_LIBS
9893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9895 if test "$ac_cv_search_opendir" != no; then
9896 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9900 else
9901 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9903 if test "${ac_cv_search_opendir+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 ac_func_search_save_LIBS=$LIBS
9907 ac_cv_search_opendir=no
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 /* Override any gcc2 internal prototype to avoid an error. */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921 char opendir ();
9923 main ()
9925 opendir ();
9927 return 0;
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9933 ac_status=$?
9934 grep -v '^ *+' conftest.er1 >conftest.err
9935 rm -f conftest.er1
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_search_opendir="none required"
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9958 rm -f conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test "$ac_cv_search_opendir" = no; then
9961 for ac_lib in x; do
9962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9976 char opendir ();
9978 main ()
9980 opendir ();
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_search_opendir="-l$ac_lib"
10008 break
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 done
10018 LIBS=$ac_func_search_save_LIBS
10020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10022 if test "$ac_cv_search_opendir" != no; then
10023 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10029 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10031 if test "${ac_cv_header_stdc+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h. */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <stdlib.h>
10041 #include <stdarg.h>
10042 #include <string.h>
10043 #include <float.h>
10046 main ()
10050 return 0;
10052 _ACEOF
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag"
10063 || test ! -s conftest.err'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest.$ac_objext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_cv_header_stdc=yes
10076 else
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_header_stdc=no
10082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10084 if test $ac_cv_header_stdc = yes; then
10085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h. */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 #include <string.h>
10094 _ACEOF
10095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10096 $EGREP "memchr" >/dev/null 2>&1; then
10098 else
10099 ac_cv_header_stdc=no
10101 rm -f conftest*
10105 if test $ac_cv_header_stdc = yes; then
10106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 #include <stdlib.h>
10115 _ACEOF
10116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10117 $EGREP "free" >/dev/null 2>&1; then
10119 else
10120 ac_cv_header_stdc=no
10122 rm -f conftest*
10126 if test $ac_cv_header_stdc = yes; then
10127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10128 if test "$cross_compiling" = yes; then
10130 else
10131 cat >conftest.$ac_ext <<_ACEOF
10132 /* confdefs.h. */
10133 _ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10137 #include <ctype.h>
10138 #if ((' ' & 0x0FF) == 0x020)
10139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10141 #else
10142 # define ISLOWER(c) \
10143 (('a' <= (c) && (c) <= 'i') \
10144 || ('j' <= (c) && (c) <= 'r') \
10145 || ('s' <= (c) && (c) <= 'z'))
10146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10147 #endif
10149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10151 main ()
10153 int i;
10154 for (i = 0; i < 256; i++)
10155 if (XOR (islower (i), ISLOWER (i))
10156 || toupper (i) != TOUPPER (i))
10157 exit(2);
10158 exit (0);
10160 _ACEOF
10161 rm -f conftest$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10173 else
10174 echo "$as_me: program exited with status $ac_status" >&5
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ( exit $ac_status )
10179 ac_cv_header_stdc=no
10181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10185 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10186 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10187 if test $ac_cv_header_stdc = yes; then
10189 cat >>confdefs.h <<\_ACEOF
10190 #define STDC_HEADERS 1
10191 _ACEOF
10227 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
10229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231 echo "$as_me:$LINENO: checking for $ac_header" >&5
10232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10238 else
10239 # Is the header compilable?
10240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 #include <$ac_header>
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_header_compiler=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_header_compiler=no
10280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282 echo "${ECHO_T}$ac_header_compiler" >&6
10284 # Is the header present?
10285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <$ac_header>
10294 _ACEOF
10295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } >/dev/null; then
10303 if test -s conftest.err; then
10304 ac_cpp_err=$ac_c_preproc_warn_flag
10305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10306 else
10307 ac_cpp_err=
10309 else
10310 ac_cpp_err=yes
10312 if test -z "$ac_cpp_err"; then
10313 ac_header_preproc=yes
10314 else
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_header_preproc=no
10320 rm -f conftest.err conftest.$ac_ext
10321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322 echo "${ECHO_T}$ac_header_preproc" >&6
10324 # So? What about this header?
10325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326 yes:no: )
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10331 ac_header_preproc=yes
10333 no:yes:* )
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10347 cat <<\_ASBOX
10348 ## ------------------------------ ##
10349 ## Report this to admin@amule.org ##
10350 ## ------------------------------ ##
10351 _ASBOX
10353 sed "s/^/$as_me: WARNING: /" >&2
10355 esac
10356 echo "$as_me:$LINENO: checking for $ac_header" >&5
10357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361 eval "$as_ac_Header=\$ac_header_preproc"
10363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10370 _ACEOF
10374 done
10376 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10377 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10378 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 #include <sys/types.h>
10388 #include <sys/wait.h>
10389 #ifndef WEXITSTATUS
10390 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10391 #endif
10392 #ifndef WIFEXITED
10393 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10394 #endif
10397 main ()
10399 int s;
10400 wait (&s);
10401 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10403 return 0;
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_header_sys_wait_h=yes
10429 else
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_cv_header_sys_wait_h=no
10435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10437 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10438 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10439 if test $ac_cv_header_sys_wait_h = yes; then
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_SYS_WAIT_H 1
10443 _ACEOF
10448 # Checks for typedefs, structures, and compiler characteristics.
10449 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10450 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10451 if test "${ac_cv_header_stdbool_h+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10461 #include <stdbool.h>
10462 #ifndef bool
10463 # error bool is not defined
10464 #endif
10465 #ifndef false
10466 # error false is not defined
10467 #endif
10468 #if false
10469 # error false is not 0
10470 #endif
10471 #ifndef true
10472 # error true is not defined
10473 #endif
10474 #if true != 1
10475 # error true is not 1
10476 #endif
10477 #ifndef __bool_true_false_are_defined
10478 # error __bool_true_false_are_defined is not defined
10479 #endif
10481 struct s { _Bool s: 1; _Bool t; } s;
10483 char a[true == 1 ? 1 : -1];
10484 char b[false == 0 ? 1 : -1];
10485 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10486 char d[(bool) -0.5 == true ? 1 : -1];
10487 bool e = &s;
10488 char f[(_Bool) -0.0 == false ? 1 : -1];
10489 char g[true];
10490 char h[sizeof (_Bool)];
10491 char i[sizeof s.t];
10494 main ()
10496 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10498 return 0;
10500 _ACEOF
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>conftest.er1
10504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -z "$ac_c_werror_flag"
10511 || test ! -s conftest.err'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; } &&
10517 { ac_try='test -s conftest.$ac_objext'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10520 ac_status=$?
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; }; then
10523 ac_cv_header_stdbool_h=yes
10524 else
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 ac_cv_header_stdbool_h=no
10530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10532 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10533 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10534 echo "$as_me:$LINENO: checking for _Bool" >&5
10535 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10536 if test "${ac_cv_type__Bool+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 $ac_includes_default
10547 main ()
10549 if ((_Bool *) 0)
10550 return 0;
10551 if (sizeof (_Bool))
10552 return 0;
10554 return 0;
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559 (eval $ac_compile) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_type__Bool=yes
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_cv_type__Bool=no
10586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10588 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10589 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10590 if test $ac_cv_type__Bool = yes; then
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE__BOOL 1
10594 _ACEOF
10599 if test $ac_cv_header_stdbool_h = yes; then
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_STDBOOL_H 1
10603 _ACEOF
10607 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10608 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10609 if test "${ac_cv_c_const+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10620 main ()
10622 /* FIXME: Include the comments suggested by Paul. */
10623 #ifndef __cplusplus
10624 /* Ultrix mips cc rejects this. */
10625 typedef int charset[2];
10626 const charset x;
10627 /* SunOS 4.1.1 cc rejects this. */
10628 char const *const *ccp;
10629 char **p;
10630 /* NEC SVR4.0.2 mips cc rejects this. */
10631 struct point {int x, y;};
10632 static struct point const zero = {0,0};
10633 /* AIX XL C 1.02.0.0 rejects this.
10634 It does not let you subtract one const X* pointer from another in
10635 an arm of an if-expression whose if-part is not a constant
10636 expression */
10637 const char *g = "string";
10638 ccp = &g + (g ? g-g : 0);
10639 /* HPUX 7.0 cc rejects these. */
10640 ++ccp;
10641 p = (char**) ccp;
10642 ccp = (char const *const *) p;
10643 { /* SCO 3.2v4 cc rejects this. */
10644 char *t;
10645 char const *s = 0 ? (char *) 0 : (char const *) 0;
10647 *t++ = 0;
10649 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10650 int x[] = {25, 17};
10651 const int *foo = &x[0];
10652 ++foo;
10654 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10655 typedef const int *iptr;
10656 iptr p = 0;
10657 ++p;
10659 { /* AIX XL C 1.02.0.0 rejects this saying
10660 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10661 struct s { int j; const int *ap[3]; };
10662 struct s *b; b->j = 5;
10664 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10665 const int foo = 10;
10667 #endif
10670 return 0;
10672 _ACEOF
10673 rm -f conftest.$ac_objext
10674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10675 (eval $ac_compile) 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag"
10683 || test ! -s conftest.err'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; } &&
10689 { ac_try='test -s conftest.$ac_objext'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_c_const=yes
10696 else
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_cv_c_const=no
10702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10705 echo "${ECHO_T}$ac_cv_c_const" >&6
10706 if test $ac_cv_c_const = no; then
10708 cat >>confdefs.h <<\_ACEOF
10709 #define const
10710 _ACEOF
10714 echo "$as_me:$LINENO: checking for inline" >&5
10715 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10716 if test "${ac_cv_c_inline+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719 ac_cv_c_inline=no
10720 for ac_kw in inline __inline__ __inline; do
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 #ifndef __cplusplus
10728 typedef int foo_t;
10729 static $ac_kw foo_t static_foo () {return 0; }
10730 $ac_kw foo_t foo () {return 0; }
10731 #endif
10733 _ACEOF
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 (eval $ac_compile) 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag"
10744 || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest.$ac_objext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_cv_c_inline=$ac_kw; break
10757 else
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10763 done
10766 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10767 echo "${ECHO_T}$ac_cv_c_inline" >&6
10770 case $ac_cv_c_inline in
10771 inline | yes) ;;
10773 case $ac_cv_c_inline in
10774 no) ac_val=;;
10775 *) ac_val=$ac_cv_c_inline;;
10776 esac
10777 cat >>confdefs.h <<_ACEOF
10778 #ifndef __cplusplus
10779 #define inline $ac_val
10780 #endif
10781 _ACEOF
10783 esac
10785 echo "$as_me:$LINENO: checking for mode_t" >&5
10786 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10787 if test "${ac_cv_type_mode_t+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h. */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 $ac_includes_default
10798 main ()
10800 if ((mode_t *) 0)
10801 return 0;
10802 if (sizeof (mode_t))
10803 return 0;
10805 return 0;
10807 _ACEOF
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_type_mode_t=yes
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_cv_type_mode_t=no
10837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10840 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10841 if test $ac_cv_type_mode_t = yes; then
10843 else
10845 cat >>confdefs.h <<_ACEOF
10846 #define mode_t int
10847 _ACEOF
10851 echo "$as_me:$LINENO: checking for off_t" >&5
10852 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10853 if test "${ac_cv_type_off_t+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856 cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h. */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862 $ac_includes_default
10864 main ()
10866 if ((off_t *) 0)
10867 return 0;
10868 if (sizeof (off_t))
10869 return 0;
10871 return 0;
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag"
10884 || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_type_off_t=yes
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_cv_type_off_t=no
10903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10906 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10907 if test $ac_cv_type_off_t = yes; then
10909 else
10911 cat >>confdefs.h <<_ACEOF
10912 #define off_t long
10913 _ACEOF
10917 echo "$as_me:$LINENO: checking for size_t" >&5
10918 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10919 if test "${ac_cv_type_size_t+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h. */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10930 main ()
10932 if ((size_t *) 0)
10933 return 0;
10934 if (sizeof (size_t))
10935 return 0;
10937 return 0;
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_type_size_t=yes
10963 else
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_cv_type_size_t=no
10969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10971 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10972 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10973 if test $ac_cv_type_size_t = yes; then
10975 else
10977 cat >>confdefs.h <<_ACEOF
10978 #define size_t unsigned
10979 _ACEOF
10983 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10984 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10985 if test "${ac_cv_header_time+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h. */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <sys/types.h>
10995 #include <sys/time.h>
10996 #include <time.h>
10999 main ()
11001 if ((struct tm *) 0)
11002 return 0;
11004 return 0;
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_header_time=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_cv_header_time=no
11036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11038 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11039 echo "${ECHO_T}$ac_cv_header_time" >&6
11040 if test $ac_cv_header_time = yes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define TIME_WITH_SYS_TIME 1
11044 _ACEOF
11048 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11049 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11050 if test "${ac_cv_struct_tm+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <sys/types.h>
11060 #include <time.h>
11063 main ()
11065 struct tm *tp; tp->tm_sec;
11067 return 0;
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -z "$ac_c_werror_flag"
11080 || test ! -s conftest.err'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try='test -s conftest.$ac_objext'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_struct_tm=time.h
11093 else
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 ac_cv_struct_tm=sys/time.h
11099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11101 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11102 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11103 if test $ac_cv_struct_tm = sys/time.h; then
11105 cat >>confdefs.h <<\_ACEOF
11106 #define TM_IN_SYS_TIME 1
11107 _ACEOF
11111 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11112 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11113 if test "${ac_cv_type_uid_t+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 #include <sys/types.h>
11124 _ACEOF
11125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11126 $EGREP "uid_t" >/dev/null 2>&1; then
11127 ac_cv_type_uid_t=yes
11128 else
11129 ac_cv_type_uid_t=no
11131 rm -f conftest*
11134 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11135 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11136 if test $ac_cv_type_uid_t = no; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define uid_t int
11140 _ACEOF
11143 cat >>confdefs.h <<\_ACEOF
11144 #define gid_t int
11145 _ACEOF
11149 echo "$as_me:$LINENO: checking for working volatile" >&5
11150 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11151 if test "${ac_cv_c_volatile+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11162 main ()
11165 volatile int x;
11166 int * volatile y;
11168 return 0;
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11173 (eval $ac_compile) 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag"
11181 || test ! -s conftest.err'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 ac_cv_c_volatile=yes
11194 else
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ac_cv_c_volatile=no
11200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11203 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11204 if test $ac_cv_c_volatile = no; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define volatile
11208 _ACEOF
11212 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11213 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11214 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 $ac_includes_default
11225 main ()
11227 if ((ptrdiff_t *) 0)
11228 return 0;
11229 if (sizeof (ptrdiff_t))
11230 return 0;
11232 return 0;
11234 _ACEOF
11235 rm -f conftest.$ac_objext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11237 (eval $ac_compile) 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag"
11245 || test ! -s conftest.err'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; } &&
11251 { ac_try='test -s conftest.$ac_objext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 ac_cv_type_ptrdiff_t=yes
11258 else
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 ac_cv_type_ptrdiff_t=no
11264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11267 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11268 if test $ac_cv_type_ptrdiff_t = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define HAVE_PTRDIFF_T 1
11272 _ACEOF
11278 # Checks for library functions.
11279 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11280 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
11281 if test "${ac_cv_func_closedir_void+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 if test "$cross_compiling" = yes; then
11285 ac_cv_func_closedir_void=yes
11286 else
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 $ac_includes_default
11294 #include <$ac_header_dirent>
11295 #ifndef __cplusplus
11296 int closedir ();
11297 #endif
11300 main ()
11302 exit (closedir (opendir (".")) != 0);
11304 return 0;
11306 _ACEOF
11307 rm -f conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_func_closedir_void=no
11319 else
11320 echo "$as_me: program exited with status $ac_status" >&5
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ( exit $ac_status )
11325 ac_cv_func_closedir_void=yes
11327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11331 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11332 if test $ac_cv_func_closedir_void = yes; then
11334 cat >>confdefs.h <<\_ACEOF
11335 #define CLOSEDIR_VOID 1
11336 _ACEOF
11340 if test $ac_cv_c_compiler_gnu = yes; then
11341 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11342 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11343 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 ac_pattern="Autoconf.*'x'"
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h. */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 #include <sgtty.h>
11354 Autoconf TIOCGETP
11355 _ACEOF
11356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11357 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11358 ac_cv_prog_gcc_traditional=yes
11359 else
11360 ac_cv_prog_gcc_traditional=no
11362 rm -f conftest*
11365 if test $ac_cv_prog_gcc_traditional = no; then
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <termio.h>
11373 Autoconf TCGETA
11374 _ACEOF
11375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11376 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11377 ac_cv_prog_gcc_traditional=yes
11379 rm -f conftest*
11383 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11384 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11385 if test $ac_cv_prog_gcc_traditional = yes; then
11386 CC="$CC -traditional"
11390 echo "$as_me:$LINENO: checking for pid_t" >&5
11391 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11392 if test "${ac_cv_type_pid_t+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 $ac_includes_default
11403 main ()
11405 if ((pid_t *) 0)
11406 return 0;
11407 if (sizeof (pid_t))
11408 return 0;
11410 return 0;
11412 _ACEOF
11413 rm -f conftest.$ac_objext
11414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415 (eval $ac_compile) 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -z "$ac_c_werror_flag"
11423 || test ! -s conftest.err'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_type_pid_t=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_type_pid_t=no
11442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11444 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11445 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11446 if test $ac_cv_type_pid_t = yes; then
11448 else
11450 cat >>confdefs.h <<_ACEOF
11451 #define pid_t int
11452 _ACEOF
11458 for ac_header in unistd.h vfork.h
11460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11462 echo "$as_me:$LINENO: checking for $ac_header" >&5
11463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11469 else
11470 # Is the header compilable?
11471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h. */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 $ac_includes_default
11480 #include <$ac_header>
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484 (eval $ac_compile) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_header_compiler=yes
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_header_compiler=no
11511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 echo "${ECHO_T}$ac_header_compiler" >&6
11515 # Is the header present?
11516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <$ac_header>
11525 _ACEOF
11526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } >/dev/null; then
11534 if test -s conftest.err; then
11535 ac_cpp_err=$ac_c_preproc_warn_flag
11536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11537 else
11538 ac_cpp_err=
11540 else
11541 ac_cpp_err=yes
11543 if test -z "$ac_cpp_err"; then
11544 ac_header_preproc=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_header_preproc=no
11551 rm -f conftest.err conftest.$ac_ext
11552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553 echo "${ECHO_T}$ac_header_preproc" >&6
11555 # So? What about this header?
11556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557 yes:no: )
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11562 ac_header_preproc=yes
11564 no:yes:* )
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11578 cat <<\_ASBOX
11579 ## ------------------------------ ##
11580 ## Report this to admin@amule.org ##
11581 ## ------------------------------ ##
11582 _ASBOX
11584 sed "s/^/$as_me: WARNING: /" >&2
11586 esac
11587 echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592 eval "$as_ac_Header=\$ac_header_preproc"
11594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11599 cat >>confdefs.h <<_ACEOF
11600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11601 _ACEOF
11605 done
11609 for ac_func in fork vfork
11611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612 echo "$as_me:$LINENO: checking for $ac_func" >&5
11613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11614 if eval "test \"\${$as_ac_var+set}\" = set"; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11625 #define $ac_func innocuous_$ac_func
11627 /* System header to define __stub macros and hopefully few prototypes,
11628 which can conflict with char $ac_func (); below.
11629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11630 <limits.h> exists even on freestanding compilers. */
11632 #ifdef __STDC__
11633 # include <limits.h>
11634 #else
11635 # include <assert.h>
11636 #endif
11638 #undef $ac_func
11640 /* Override any gcc2 internal prototype to avoid an error. */
11641 #ifdef __cplusplus
11642 extern "C"
11644 #endif
11645 /* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647 char $ac_func ();
11648 /* The GNU C library defines this for functions which it implements
11649 to always fail with ENOSYS. Some functions are actually named
11650 something starting with __ and the normal name is an alias. */
11651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11652 choke me
11653 #else
11654 char (*f) () = $ac_func;
11655 #endif
11656 #ifdef __cplusplus
11658 #endif
11661 main ()
11663 return f != $ac_func;
11665 return 0;
11667 _ACEOF
11668 rm -f conftest.$ac_objext conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670 (eval $ac_link) 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -z "$ac_c_werror_flag"
11678 || test ! -s conftest.err'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 eval "$as_ac_var=yes"
11691 else
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 eval "$as_ac_var=no"
11697 rm -f conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11702 if test `eval echo '${'$as_ac_var'}'` = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11705 _ACEOF
11708 done
11710 if test "x$ac_cv_func_fork" = xyes; then
11711 echo "$as_me:$LINENO: checking for working fork" >&5
11712 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11713 if test "${ac_cv_func_fork_works+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716 if test "$cross_compiling" = yes; then
11717 ac_cv_func_fork_works=cross
11718 else
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* By Ruediger Kuhlmann. */
11721 #include <sys/types.h>
11722 #if HAVE_UNISTD_H
11723 # include <unistd.h>
11724 #endif
11725 /* Some systems only have a dummy stub for fork() */
11726 int main ()
11728 if (fork() < 0)
11729 exit (1);
11730 exit (0);
11732 _ACEOF
11733 rm -f conftest$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735 (eval $ac_link) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_cv_func_fork_works=yes
11745 else
11746 echo "$as_me: program exited with status $ac_status" >&5
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ( exit $ac_status )
11751 ac_cv_func_fork_works=no
11753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11756 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11757 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11759 else
11760 ac_cv_func_fork_works=$ac_cv_func_fork
11762 if test "x$ac_cv_func_fork_works" = xcross; then
11763 case $host in
11764 *-*-amigaos* | *-*-msdosdjgpp*)
11765 # Override, as these systems have only a dummy fork() stub
11766 ac_cv_func_fork_works=no
11769 ac_cv_func_fork_works=yes
11771 esac
11772 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11773 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11775 ac_cv_func_vfork_works=$ac_cv_func_vfork
11776 if test "x$ac_cv_func_vfork" = xyes; then
11777 echo "$as_me:$LINENO: checking for working vfork" >&5
11778 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11779 if test "${ac_cv_func_vfork_works+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782 if test "$cross_compiling" = yes; then
11783 ac_cv_func_vfork_works=cross
11784 else
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 /* Thanks to Paul Eggert for this test. */
11792 #include <stdio.h>
11793 #include <stdlib.h>
11794 #include <sys/types.h>
11795 #include <sys/stat.h>
11796 #include <sys/wait.h>
11797 #if HAVE_UNISTD_H
11798 # include <unistd.h>
11799 #endif
11800 #if HAVE_VFORK_H
11801 # include <vfork.h>
11802 #endif
11803 /* On some sparc systems, changes by the child to local and incoming
11804 argument registers are propagated back to the parent. The compiler
11805 is told about this with #include <vfork.h>, but some compilers
11806 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11807 static variable whose address is put into a register that is
11808 clobbered by the vfork. */
11809 static void
11810 #ifdef __cplusplus
11811 sparc_address_test (int arg)
11812 # else
11813 sparc_address_test (arg) int arg;
11814 #endif
11816 static pid_t child;
11817 if (!child) {
11818 child = vfork ();
11819 if (child < 0) {
11820 perror ("vfork");
11821 _exit(2);
11823 if (!child) {
11824 arg = getpid();
11825 write(-1, "", 0);
11826 _exit (arg);
11832 main ()
11834 pid_t parent = getpid ();
11835 pid_t child;
11837 sparc_address_test (0);
11839 child = vfork ();
11841 if (child == 0) {
11842 /* Here is another test for sparc vfork register problems. This
11843 test uses lots of local variables, at least as many local
11844 variables as main has allocated so far including compiler
11845 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11846 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11847 reuse the register of parent for one of the local variables,
11848 since it will think that parent can't possibly be used any more
11849 in this routine. Assigning to the local variable will thus
11850 munge parent in the parent process. */
11851 pid_t
11852 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11853 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11854 /* Convince the compiler that p..p7 are live; otherwise, it might
11855 use the same hardware register for all 8 local variables. */
11856 if (p != p1 || p != p2 || p != p3 || p != p4
11857 || p != p5 || p != p6 || p != p7)
11858 _exit(1);
11860 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11861 from child file descriptors. If the child closes a descriptor
11862 before it execs or exits, this munges the parent's descriptor
11863 as well. Test for this by closing stdout in the child. */
11864 _exit(close(fileno(stdout)) != 0);
11865 } else {
11866 int status;
11867 struct stat st;
11869 while (wait(&status) != child)
11871 exit(
11872 /* Was there some problem with vforking? */
11873 child < 0
11875 /* Did the child fail? (This shouldn't happen.) */
11876 || status
11878 /* Did the vfork/compiler bug occur? */
11879 || parent != getpid()
11881 /* Did the file descriptor bug occur? */
11882 || fstat(fileno(stdout), &st) != 0
11886 _ACEOF
11887 rm -f conftest$ac_exeext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_func_vfork_works=yes
11899 else
11900 echo "$as_me: program exited with status $ac_status" >&5
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ( exit $ac_status )
11905 ac_cv_func_vfork_works=no
11907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11910 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11911 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11914 if test "x$ac_cv_func_fork_works" = xcross; then
11915 ac_cv_func_vfork_works=$ac_cv_func_vfork
11916 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11917 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11920 if test "x$ac_cv_func_vfork_works" = xyes; then
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_WORKING_VFORK 1
11924 _ACEOF
11926 else
11928 cat >>confdefs.h <<\_ACEOF
11929 #define vfork fork
11930 _ACEOF
11933 if test "x$ac_cv_func_fork_works" = xyes; then
11935 cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_WORKING_FORK 1
11937 _ACEOF
11941 if test x$SYS != xwin32; then
11943 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11944 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11945 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11946 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lsun $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 /* Override any gcc2 internal prototype to avoid an error. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char getmntent ();
11966 main ()
11968 getmntent ();
11970 return 0;
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_lib_sun_getmntent=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_lib_sun_getmntent=no
12002 rm -f conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
12007 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
12008 if test $ac_cv_lib_sun_getmntent = yes; then
12009 LIBS="-lsun $LIBS"
12010 else
12011 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
12012 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
12013 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016 ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-lseq $LIBS"
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12025 /* Override any gcc2 internal prototype to avoid an error. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 /* We use char because int might match the return type of a gcc2
12030 builtin and then its argument prototype would still apply. */
12031 char getmntent ();
12033 main ()
12035 getmntent ();
12037 return 0;
12039 _ACEOF
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try='test -z "$ac_c_werror_flag"
12050 || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_cv_lib_seq_getmntent=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_lib_seq_getmntent=no
12069 rm -f conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12073 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
12074 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
12075 if test $ac_cv_lib_seq_getmntent = yes; then
12076 LIBS="-lseq $LIBS"
12077 else
12078 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
12079 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
12080 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083 ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-lgen $LIBS"
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h. */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12092 /* Override any gcc2 internal prototype to avoid an error. */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 /* We use char because int might match the return type of a gcc2
12097 builtin and then its argument prototype would still apply. */
12098 char getmntent ();
12100 main ()
12102 getmntent ();
12104 return 0;
12106 _ACEOF
12107 rm -f conftest.$ac_objext conftest$ac_exeext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12109 (eval $ac_link) 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag"
12117 || test ! -s conftest.err'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; } &&
12123 { ac_try='test -s conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_lib_gen_getmntent=yes
12130 else
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 ac_cv_lib_gen_getmntent=no
12136 rm -f conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12138 LIBS=$ac_check_lib_save_LIBS
12140 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
12141 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
12142 if test $ac_cv_lib_gen_getmntent = yes; then
12143 LIBS="-lgen $LIBS"
12151 for ac_func in getmntent
12153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12154 echo "$as_me:$LINENO: checking for $ac_func" >&5
12155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_var+set}\" = set"; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h. */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12167 #define $ac_func innocuous_$ac_func
12169 /* System header to define __stub macros and hopefully few prototypes,
12170 which can conflict with char $ac_func (); below.
12171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12172 <limits.h> exists even on freestanding compilers. */
12174 #ifdef __STDC__
12175 # include <limits.h>
12176 #else
12177 # include <assert.h>
12178 #endif
12180 #undef $ac_func
12182 /* Override any gcc2 internal prototype to avoid an error. */
12183 #ifdef __cplusplus
12184 extern "C"
12186 #endif
12187 /* We use char because int might match the return type of a gcc2
12188 builtin and then its argument prototype would still apply. */
12189 char $ac_func ();
12190 /* The GNU C library defines this for functions which it implements
12191 to always fail with ENOSYS. Some functions are actually named
12192 something starting with __ and the normal name is an alias. */
12193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12194 choke me
12195 #else
12196 char (*f) () = $ac_func;
12197 #endif
12198 #ifdef __cplusplus
12200 #endif
12203 main ()
12205 return f != $ac_func;
12207 return 0;
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212 (eval $ac_link) 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag"
12220 || test ! -s conftest.err'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; } &&
12226 { ac_try='test -s conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 eval "$as_ac_var=yes"
12233 else
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 eval "$as_ac_var=no"
12239 rm -f conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12244 if test `eval echo '${'$as_ac_var'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12247 _ACEOF
12250 done
12253 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12254 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12255 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258 rm -f conftest.sym conftest.file
12259 echo >conftest.file
12260 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12261 if test "$cross_compiling" = yes; then
12262 ac_cv_func_lstat_dereferences_slashed_symlink=no
12263 else
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h. */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 $ac_includes_default
12272 main ()
12274 struct stat sbuf;
12275 /* Linux will dereference the symlink and fail.
12276 That is better in the sense that it means we will not
12277 have to compile and use the lstat wrapper. */
12278 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12280 return 0;
12282 _ACEOF
12283 rm -f conftest$ac_exeext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12285 (eval $ac_link) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12295 else
12296 echo "$as_me: program exited with status $ac_status" >&5
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ( exit $ac_status )
12301 ac_cv_func_lstat_dereferences_slashed_symlink=no
12303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12305 else
12306 # If the `ln -s' command failed, then we probably don't even
12307 # have an lstat function.
12308 ac_cv_func_lstat_dereferences_slashed_symlink=no
12310 rm -f conftest.sym conftest.file
12313 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12314 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12316 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12318 cat >>confdefs.h <<_ACEOF
12319 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12320 _ACEOF
12323 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12324 case $LIBOBJS in
12325 "lstat.$ac_objext" | \
12326 *" lstat.$ac_objext" | \
12327 "lstat.$ac_objext "* | \
12328 *" lstat.$ac_objext "* ) ;;
12329 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12330 esac
12334 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12335 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12336 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 if test "$cross_compiling" = yes; then
12340 ac_cv_func_lstat_empty_string_bug=yes
12341 else
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 $ac_includes_default
12350 main ()
12352 struct stat sbuf;
12353 exit (lstat ("", &sbuf) ? 1 : 0);
12355 return 0;
12357 _ACEOF
12358 rm -f conftest$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 ac_cv_func_lstat_empty_string_bug=yes
12370 else
12371 echo "$as_me: program exited with status $ac_status" >&5
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ( exit $ac_status )
12376 ac_cv_func_lstat_empty_string_bug=no
12378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12382 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12383 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12384 case $LIBOBJS in
12385 "lstat.$ac_objext" | \
12386 *" lstat.$ac_objext" | \
12387 "lstat.$ac_objext "* | \
12388 *" lstat.$ac_objext "* ) ;;
12389 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12390 esac
12393 cat >>confdefs.h <<_ACEOF
12394 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12395 _ACEOF
12399 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12400 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12401 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404 rm -f conftest.sym conftest.file
12405 echo >conftest.file
12406 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12407 if test "$cross_compiling" = yes; then
12408 ac_cv_func_lstat_dereferences_slashed_symlink=no
12409 else
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h. */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 $ac_includes_default
12418 main ()
12420 struct stat sbuf;
12421 /* Linux will dereference the symlink and fail.
12422 That is better in the sense that it means we will not
12423 have to compile and use the lstat wrapper. */
12424 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12426 return 0;
12428 _ACEOF
12429 rm -f conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12441 else
12442 echo "$as_me: program exited with status $ac_status" >&5
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ( exit $ac_status )
12447 ac_cv_func_lstat_dereferences_slashed_symlink=no
12449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12451 else
12452 # If the `ln -s' command failed, then we probably don't even
12453 # have an lstat function.
12454 ac_cv_func_lstat_dereferences_slashed_symlink=no
12456 rm -f conftest.sym conftest.file
12459 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12460 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12462 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12464 cat >>confdefs.h <<_ACEOF
12465 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12466 _ACEOF
12469 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12470 case $LIBOBJS in
12471 "lstat.$ac_objext" | \
12472 *" lstat.$ac_objext" | \
12473 "lstat.$ac_objext "* | \
12474 *" lstat.$ac_objext "* ) ;;
12475 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12476 esac
12483 echo "$as_me:$LINENO: checking for working memcmp" >&5
12484 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12485 if test "${ac_cv_func_memcmp_working+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 if test "$cross_compiling" = yes; then
12489 ac_cv_func_memcmp_working=no
12490 else
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h. */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12499 main ()
12502 /* Some versions of memcmp are not 8-bit clean. */
12503 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12504 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12505 exit (1);
12507 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12508 or more and with at least one buffer not starting on a 4-byte boundary.
12509 William Lewis provided this test program. */
12511 char foo[21];
12512 char bar[21];
12513 int i;
12514 for (i = 0; i < 4; i++)
12516 char *a = foo + i;
12517 char *b = bar + i;
12518 strcpy (a, "--------01111111");
12519 strcpy (b, "--------10000000");
12520 if (memcmp (a, b, 16) >= 0)
12521 exit (1);
12523 exit (0);
12527 return 0;
12529 _ACEOF
12530 rm -f conftest$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_func_memcmp_working=yes
12542 else
12543 echo "$as_me: program exited with status $ac_status" >&5
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ( exit $ac_status )
12548 ac_cv_func_memcmp_working=no
12550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12553 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12554 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12555 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12556 "memcmp.$ac_objext" | \
12557 *" memcmp.$ac_objext" | \
12558 "memcmp.$ac_objext "* | \
12559 *" memcmp.$ac_objext "* ) ;;
12560 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12561 esac
12566 for ac_header in stdlib.h unistd.h
12568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12570 echo "$as_me:$LINENO: checking for $ac_header" >&5
12571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12577 else
12578 # Is the header compilable?
12579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 $ac_includes_default
12588 #include <$ac_header>
12589 _ACEOF
12590 rm -f conftest.$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592 (eval $ac_compile) 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag"
12600 || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 ac_header_compiler=yes
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_header_compiler=no
12619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12621 echo "${ECHO_T}$ac_header_compiler" >&6
12623 # Is the header present?
12624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 #include <$ac_header>
12633 _ACEOF
12634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } >/dev/null; then
12642 if test -s conftest.err; then
12643 ac_cpp_err=$ac_c_preproc_warn_flag
12644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12645 else
12646 ac_cpp_err=
12648 else
12649 ac_cpp_err=yes
12651 if test -z "$ac_cpp_err"; then
12652 ac_header_preproc=yes
12653 else
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 ac_header_preproc=no
12659 rm -f conftest.err conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12661 echo "${ECHO_T}$ac_header_preproc" >&6
12663 # So? What about this header?
12664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12665 yes:no: )
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12670 ac_header_preproc=yes
12672 no:yes:* )
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12686 cat <<\_ASBOX
12687 ## ------------------------------ ##
12688 ## Report this to admin@amule.org ##
12689 ## ------------------------------ ##
12690 _ASBOX
12692 sed "s/^/$as_me: WARNING: /" >&2
12694 esac
12695 echo "$as_me:$LINENO: checking for $ac_header" >&5
12696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 eval "$as_ac_Header=\$ac_header_preproc"
12702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12707 cat >>confdefs.h <<_ACEOF
12708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12709 _ACEOF
12713 done
12716 for ac_func in getpagesize
12718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719 echo "$as_me:$LINENO: checking for $ac_func" >&5
12720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12721 if eval "test \"\${$as_ac_var+set}\" = set"; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12732 #define $ac_func innocuous_$ac_func
12734 /* System header to define __stub macros and hopefully few prototypes,
12735 which can conflict with char $ac_func (); below.
12736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737 <limits.h> exists even on freestanding compilers. */
12739 #ifdef __STDC__
12740 # include <limits.h>
12741 #else
12742 # include <assert.h>
12743 #endif
12745 #undef $ac_func
12747 /* Override any gcc2 internal prototype to avoid an error. */
12748 #ifdef __cplusplus
12749 extern "C"
12751 #endif
12752 /* We use char because int might match the return type of a gcc2
12753 builtin and then its argument prototype would still apply. */
12754 char $ac_func ();
12755 /* The GNU C library defines this for functions which it implements
12756 to always fail with ENOSYS. Some functions are actually named
12757 something starting with __ and the normal name is an alias. */
12758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12759 choke me
12760 #else
12761 char (*f) () = $ac_func;
12762 #endif
12763 #ifdef __cplusplus
12765 #endif
12768 main ()
12770 return f != $ac_func;
12772 return 0;
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag"
12785 || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 eval "$as_ac_var=yes"
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 eval "$as_ac_var=no"
12804 rm -f conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12809 if test `eval echo '${'$as_ac_var'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12812 _ACEOF
12815 done
12817 echo "$as_me:$LINENO: checking for working mmap" >&5
12818 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12819 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822 if test "$cross_compiling" = yes; then
12823 ac_cv_func_mmap_fixed_mapped=no
12824 else
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 $ac_includes_default
12832 /* malloc might have been renamed as rpl_malloc. */
12833 #undef malloc
12835 /* Thanks to Mike Haertel and Jim Avera for this test.
12836 Here is a matrix of mmap possibilities:
12837 mmap private not fixed
12838 mmap private fixed at somewhere currently unmapped
12839 mmap private fixed at somewhere already mapped
12840 mmap shared not fixed
12841 mmap shared fixed at somewhere currently unmapped
12842 mmap shared fixed at somewhere already mapped
12843 For private mappings, we should verify that changes cannot be read()
12844 back from the file, nor mmap's back from the file at a different
12845 address. (There have been systems where private was not correctly
12846 implemented like the infamous i386 svr4.0, and systems where the
12847 VM page cache was not coherent with the file system buffer cache
12848 like early versions of FreeBSD and possibly contemporary NetBSD.)
12849 For shared mappings, we should conversely verify that changes get
12850 propagated back to all the places they're supposed to be.
12852 Grep wants private fixed already mapped.
12853 The main things grep needs to know about mmap are:
12854 * does it exist and is it safe to write into the mmap'd area
12855 * how to use it (BSD variants) */
12857 #include <fcntl.h>
12858 #include <sys/mman.h>
12860 #if !STDC_HEADERS && !HAVE_STDLIB_H
12861 char *malloc ();
12862 #endif
12864 /* This mess was copied from the GNU getpagesize.h. */
12865 #if !HAVE_GETPAGESIZE
12866 /* Assume that all systems that can run configure have sys/param.h. */
12867 # if !HAVE_SYS_PARAM_H
12868 # define HAVE_SYS_PARAM_H 1
12869 # endif
12871 # ifdef _SC_PAGESIZE
12872 # define getpagesize() sysconf(_SC_PAGESIZE)
12873 # else /* no _SC_PAGESIZE */
12874 # if HAVE_SYS_PARAM_H
12875 # include <sys/param.h>
12876 # ifdef EXEC_PAGESIZE
12877 # define getpagesize() EXEC_PAGESIZE
12878 # else /* no EXEC_PAGESIZE */
12879 # ifdef NBPG
12880 # define getpagesize() NBPG * CLSIZE
12881 # ifndef CLSIZE
12882 # define CLSIZE 1
12883 # endif /* no CLSIZE */
12884 # else /* no NBPG */
12885 # ifdef NBPC
12886 # define getpagesize() NBPC
12887 # else /* no NBPC */
12888 # ifdef PAGESIZE
12889 # define getpagesize() PAGESIZE
12890 # endif /* PAGESIZE */
12891 # endif /* no NBPC */
12892 # endif /* no NBPG */
12893 # endif /* no EXEC_PAGESIZE */
12894 # else /* no HAVE_SYS_PARAM_H */
12895 # define getpagesize() 8192 /* punt totally */
12896 # endif /* no HAVE_SYS_PARAM_H */
12897 # endif /* no _SC_PAGESIZE */
12899 #endif /* no HAVE_GETPAGESIZE */
12902 main ()
12904 char *data, *data2, *data3;
12905 int i, pagesize;
12906 int fd;
12908 pagesize = getpagesize ();
12910 /* First, make a file with some known garbage in it. */
12911 data = (char *) malloc (pagesize);
12912 if (!data)
12913 exit (1);
12914 for (i = 0; i < pagesize; ++i)
12915 *(data + i) = rand ();
12916 umask (0);
12917 fd = creat ("conftest.mmap", 0600);
12918 if (fd < 0)
12919 exit (1);
12920 if (write (fd, data, pagesize) != pagesize)
12921 exit (1);
12922 close (fd);
12924 /* Next, try to mmap the file at a fixed address which already has
12925 something else allocated at it. If we can, also make sure that
12926 we see the same garbage. */
12927 fd = open ("conftest.mmap", O_RDWR);
12928 if (fd < 0)
12929 exit (1);
12930 data2 = (char *) malloc (2 * pagesize);
12931 if (!data2)
12932 exit (1);
12933 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12934 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12935 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12936 exit (1);
12937 for (i = 0; i < pagesize; ++i)
12938 if (*(data + i) != *(data2 + i))
12939 exit (1);
12941 /* Finally, make sure that changes to the mapped area do not
12942 percolate back to the file as seen by read(). (This is a bug on
12943 some variants of i386 svr4.0.) */
12944 for (i = 0; i < pagesize; ++i)
12945 *(data2 + i) = *(data2 + i) + 1;
12946 data3 = (char *) malloc (pagesize);
12947 if (!data3)
12948 exit (1);
12949 if (read (fd, data3, pagesize) != pagesize)
12950 exit (1);
12951 for (i = 0; i < pagesize; ++i)
12952 if (*(data + i) != *(data3 + i))
12953 exit (1);
12954 close (fd);
12955 exit (0);
12957 _ACEOF
12958 rm -f conftest$ac_exeext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12960 (eval $ac_link) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 ac_cv_func_mmap_fixed_mapped=yes
12970 else
12971 echo "$as_me: program exited with status $ac_status" >&5
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12975 ( exit $ac_status )
12976 ac_cv_func_mmap_fixed_mapped=no
12978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12981 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12982 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12983 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12985 cat >>confdefs.h <<\_ACEOF
12986 #define HAVE_MMAP 1
12987 _ACEOF
12990 rm -f conftest.mmap
12994 for ac_header in sys/select.h sys/socket.h
12996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12998 echo "$as_me:$LINENO: checking for $ac_header" >&5
12999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13005 else
13006 # Is the header compilable?
13007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13009 cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h. */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 $ac_includes_default
13016 #include <$ac_header>
13017 _ACEOF
13018 rm -f conftest.$ac_objext
13019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13020 (eval $ac_compile) 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag"
13028 || test ! -s conftest.err'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; } &&
13034 { ac_try='test -s conftest.$ac_objext'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 ac_header_compiler=yes
13041 else
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13045 ac_header_compiler=no
13047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13049 echo "${ECHO_T}$ac_header_compiler" >&6
13051 # Is the header present?
13052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 #include <$ac_header>
13061 _ACEOF
13062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } >/dev/null; then
13070 if test -s conftest.err; then
13071 ac_cpp_err=$ac_c_preproc_warn_flag
13072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13073 else
13074 ac_cpp_err=
13076 else
13077 ac_cpp_err=yes
13079 if test -z "$ac_cpp_err"; then
13080 ac_header_preproc=yes
13081 else
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_header_preproc=no
13087 rm -f conftest.err conftest.$ac_ext
13088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13089 echo "${ECHO_T}$ac_header_preproc" >&6
13091 # So? What about this header?
13092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13093 yes:no: )
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13098 ac_header_preproc=yes
13100 no:yes:* )
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13114 cat <<\_ASBOX
13115 ## ------------------------------ ##
13116 ## Report this to admin@amule.org ##
13117 ## ------------------------------ ##
13118 _ASBOX
13120 sed "s/^/$as_me: WARNING: /" >&2
13122 esac
13123 echo "$as_me:$LINENO: checking for $ac_header" >&5
13124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 eval "$as_ac_Header=\$ac_header_preproc"
13130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13135 cat >>confdefs.h <<_ACEOF
13136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13137 _ACEOF
13141 done
13143 echo "$as_me:$LINENO: checking types of arguments for select" >&5
13144 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
13145 if test "${ac_cv_func_select_args+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13149 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
13150 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 #if HAVE_SYS_SELECT_H
13159 # include <sys/select.h>
13160 #endif
13161 #if HAVE_SYS_SOCKET_H
13162 # include <sys/socket.h>
13163 #endif
13166 main ()
13168 extern int select ($ac_arg1,
13169 $ac_arg234, $ac_arg234, $ac_arg234,
13170 $ac_arg5);
13172 return 0;
13174 _ACEOF
13175 rm -f conftest.$ac_objext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177 (eval $ac_compile) 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag"
13185 || test ! -s conftest.err'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest.$ac_objext'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13197 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13198 else
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13204 done
13205 done
13206 done
13207 # Provide a safe default value.
13208 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13211 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13212 echo "${ECHO_T}$ac_cv_func_select_args" >&6
13213 ac_save_IFS=$IFS; IFS=','
13214 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13215 IFS=$ac_save_IFS
13216 shift
13218 cat >>confdefs.h <<_ACEOF
13219 #define SELECT_TYPE_ARG1 $1
13220 _ACEOF
13223 cat >>confdefs.h <<_ACEOF
13224 #define SELECT_TYPE_ARG234 ($2)
13225 _ACEOF
13228 cat >>confdefs.h <<_ACEOF
13229 #define SELECT_TYPE_ARG5 ($3)
13230 _ACEOF
13232 rm -f conftest*
13234 echo "$as_me:$LINENO: checking for function prototypes" >&5
13235 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13236 if test "$ac_cv_prog_cc_stdc" != no; then
13237 echo "$as_me:$LINENO: result: yes" >&5
13238 echo "${ECHO_T}yes" >&6
13240 cat >>confdefs.h <<\_ACEOF
13241 #define PROTOTYPES 1
13242 _ACEOF
13245 cat >>confdefs.h <<\_ACEOF
13246 #define __PROTOTYPES 1
13247 _ACEOF
13249 else
13250 echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6
13254 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13255 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13256 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259 ac_cv_func_setvbuf_reversed=no
13260 cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h. */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 #include <stdio.h>
13267 # if PROTOTYPES
13268 int (setvbuf) (FILE *, int, char *, size_t);
13269 # endif
13271 main ()
13273 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13275 return 0;
13277 _ACEOF
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag"
13288 || test ! -s conftest.err'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest$ac_exeext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h. */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306 #include <stdio.h>
13307 # if PROTOTYPES
13308 int (setvbuf) (FILE *, int, char *, size_t);
13309 # endif
13311 main ()
13313 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13315 return 0;
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag"
13328 || test ! -s conftest.err'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 # It compiles and links either way, so it must not be declared
13341 # with a prototype and most likely this is a K&R C compiler.
13342 # Try running it.
13343 if test "$cross_compiling" = yes; then
13344 : # Assume setvbuf is not reversed when cross-compiling.
13345 else
13346 cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h. */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 #include <stdio.h>
13354 main ()
13356 /* This call has the arguments reversed.
13357 A reversed system may check and see that the address of buf
13358 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13359 char buf;
13360 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13361 exit (1);
13362 putchar ('\r');
13363 exit (0); /* Non-reversed systems SEGV here. */
13365 return 0;
13367 _ACEOF
13368 rm -f conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370 (eval $ac_link) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13379 ac_cv_func_setvbuf_reversed=yes
13380 else
13381 echo "$as_me: program exited with status $ac_status" >&5
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ( exit $ac_status )
13386 rm -f core *.core
13388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13390 ac_cv_func_setvbuf_reversed=yes
13391 else
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13396 rm -f conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 else
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13403 rm -f conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13406 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13407 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13408 if test $ac_cv_func_setvbuf_reversed = yes; then
13410 cat >>confdefs.h <<\_ACEOF
13411 #define SETVBUF_REVERSED 1
13412 _ACEOF
13416 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13417 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13418 if test "${ac_cv_type_signal+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 cat >conftest.$ac_ext <<_ACEOF
13422 /* confdefs.h. */
13423 _ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13427 #include <sys/types.h>
13428 #include <signal.h>
13429 #ifdef signal
13430 # undef signal
13431 #endif
13432 #ifdef __cplusplus
13433 extern "C" void (*signal (int, void (*)(int)))(int);
13434 #else
13435 void (*signal ()) ();
13436 #endif
13439 main ()
13441 int i;
13443 return 0;
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_type_signal=void
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_cv_type_signal=int
13475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13477 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13478 echo "${ECHO_T}$ac_cv_type_signal" >&6
13480 cat >>confdefs.h <<_ACEOF
13481 #define RETSIGTYPE $ac_cv_type_signal
13482 _ACEOF
13485 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13486 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13487 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 if test "$cross_compiling" = yes; then
13491 ac_cv_func_stat_empty_string_bug=yes
13492 else
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h. */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 $ac_includes_default
13501 main ()
13503 struct stat sbuf;
13504 exit (stat ("", &sbuf) ? 1 : 0);
13506 return 0;
13508 _ACEOF
13509 rm -f conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_cv_func_stat_empty_string_bug=yes
13521 else
13522 echo "$as_me: program exited with status $ac_status" >&5
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ( exit $ac_status )
13527 ac_cv_func_stat_empty_string_bug=no
13529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13532 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13533 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13534 if test $ac_cv_func_stat_empty_string_bug = yes; then
13535 case $LIBOBJS in
13536 "stat.$ac_objext" | \
13537 *" stat.$ac_objext" | \
13538 "stat.$ac_objext "* | \
13539 *" stat.$ac_objext "* ) ;;
13540 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13541 esac
13544 cat >>confdefs.h <<_ACEOF
13545 #define HAVE_STAT_EMPTY_STRING_BUG 1
13546 _ACEOF
13551 for ac_func in strftime
13553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13554 echo "$as_me:$LINENO: checking for $ac_func" >&5
13555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13556 if eval "test \"\${$as_ac_var+set}\" = set"; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13567 #define $ac_func innocuous_$ac_func
13569 /* System header to define __stub macros and hopefully few prototypes,
13570 which can conflict with char $ac_func (); below.
13571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13572 <limits.h> exists even on freestanding compilers. */
13574 #ifdef __STDC__
13575 # include <limits.h>
13576 #else
13577 # include <assert.h>
13578 #endif
13580 #undef $ac_func
13582 /* Override any gcc2 internal prototype to avoid an error. */
13583 #ifdef __cplusplus
13584 extern "C"
13586 #endif
13587 /* We use char because int might match the return type of a gcc2
13588 builtin and then its argument prototype would still apply. */
13589 char $ac_func ();
13590 /* The GNU C library defines this for functions which it implements
13591 to always fail with ENOSYS. Some functions are actually named
13592 something starting with __ and the normal name is an alias. */
13593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13594 choke me
13595 #else
13596 char (*f) () = $ac_func;
13597 #endif
13598 #ifdef __cplusplus
13600 #endif
13603 main ()
13605 return f != $ac_func;
13607 return 0;
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612 (eval $ac_link) 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag"
13620 || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest$ac_exeext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 eval "$as_ac_var=yes"
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 eval "$as_ac_var=no"
13639 rm -f conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13644 if test `eval echo '${'$as_ac_var'}'` = yes; then
13645 cat >>confdefs.h <<_ACEOF
13646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13647 _ACEOF
13649 else
13650 # strftime is in -lintl on SCO UNIX.
13651 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13652 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13653 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656 ac_check_lib_save_LIBS=$LIBS
13657 LIBS="-lintl $LIBS"
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 /* Override any gcc2 internal prototype to avoid an error. */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 /* We use char because int might match the return type of a gcc2
13670 builtin and then its argument prototype would still apply. */
13671 char strftime ();
13673 main ()
13675 strftime ();
13677 return 0;
13679 _ACEOF
13680 rm -f conftest.$ac_objext conftest$ac_exeext
13681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13682 (eval $ac_link) 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } &&
13689 { ac_try='test -z "$ac_c_werror_flag"
13690 || test ! -s conftest.err'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; } &&
13696 { ac_try='test -s conftest$ac_exeext'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }; then
13702 ac_cv_lib_intl_strftime=yes
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 ac_cv_lib_intl_strftime=no
13709 rm -f conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext conftest.$ac_ext
13711 LIBS=$ac_check_lib_save_LIBS
13713 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13714 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13715 if test $ac_cv_lib_intl_strftime = yes; then
13716 cat >>confdefs.h <<\_ACEOF
13717 #define HAVE_STRFTIME 1
13718 _ACEOF
13720 LIBS="-lintl $LIBS"
13724 done
13726 echo "$as_me:$LINENO: checking for working strtod" >&5
13727 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13728 if test "${ac_cv_func_strtod+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731 if test "$cross_compiling" = yes; then
13732 ac_cv_func_strtod=no
13733 else
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 double strtod ();
13743 main()
13746 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13747 char *string = " +69";
13748 char *term;
13749 double value;
13750 value = strtod (string, &term);
13751 if (value != 69 || term != (string + 4))
13752 exit (1);
13756 /* Under Solaris 2.4, strtod returns the wrong value for the
13757 terminating character under some conditions. */
13758 char *string = "NaN";
13759 char *term;
13760 strtod (string, &term);
13761 if (term != string && *(term - 1) == 0)
13762 exit (1);
13764 exit (0);
13767 _ACEOF
13768 rm -f conftest$ac_exeext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770 (eval $ac_link) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_func_strtod=yes
13780 else
13781 echo "$as_me: program exited with status $ac_status" >&5
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ( exit $ac_status )
13786 ac_cv_func_strtod=no
13788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13791 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13792 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13793 if test $ac_cv_func_strtod = no; then
13794 case $LIBOBJS in
13795 "strtod.$ac_objext" | \
13796 *" strtod.$ac_objext" | \
13797 "strtod.$ac_objext "* | \
13798 *" strtod.$ac_objext "* ) ;;
13799 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13800 esac
13802 echo "$as_me:$LINENO: checking for pow" >&5
13803 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13804 if test "${ac_cv_func_pow+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807 cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h. */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13815 #define pow innocuous_pow
13817 /* System header to define __stub macros and hopefully few prototypes,
13818 which can conflict with char pow (); below.
13819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13820 <limits.h> exists even on freestanding compilers. */
13822 #ifdef __STDC__
13823 # include <limits.h>
13824 #else
13825 # include <assert.h>
13826 #endif
13828 #undef pow
13830 /* Override any gcc2 internal prototype to avoid an error. */
13831 #ifdef __cplusplus
13832 extern "C"
13834 #endif
13835 /* We use char because int might match the return type of a gcc2
13836 builtin and then its argument prototype would still apply. */
13837 char pow ();
13838 /* The GNU C library defines this for functions which it implements
13839 to always fail with ENOSYS. Some functions are actually named
13840 something starting with __ and the normal name is an alias. */
13841 #if defined (__stub_pow) || defined (__stub___pow)
13842 choke me
13843 #else
13844 char (*f) () = pow;
13845 #endif
13846 #ifdef __cplusplus
13848 #endif
13851 main ()
13853 return f != pow;
13855 return 0;
13857 _ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860 (eval $ac_link) 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_cv_func_pow=yes
13881 else
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_cv_func_pow=no
13887 rm -f conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13890 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13891 echo "${ECHO_T}$ac_cv_func_pow" >&6
13893 if test $ac_cv_func_pow = no; then
13894 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13895 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13896 if test "${ac_cv_lib_m_pow+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 ac_check_lib_save_LIBS=$LIBS
13900 LIBS="-lm $LIBS"
13901 cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h. */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13908 /* Override any gcc2 internal prototype to avoid an error. */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 /* We use char because int might match the return type of a gcc2
13913 builtin and then its argument prototype would still apply. */
13914 char pow ();
13916 main ()
13918 pow ();
13920 return 0;
13922 _ACEOF
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag"
13933 || test ! -s conftest.err'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest$ac_exeext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_lib_m_pow=yes
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_lib_m_pow=no
13952 rm -f conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13956 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13957 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13958 if test $ac_cv_lib_m_pow = yes; then
13959 POW_LIB=-lm
13960 else
13961 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13962 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13970 for ac_func in vprintf
13972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13973 echo "$as_me:$LINENO: checking for $ac_func" >&5
13974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13975 if eval "test \"\${$as_ac_var+set}\" = set"; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13986 #define $ac_func innocuous_$ac_func
13988 /* System header to define __stub macros and hopefully few prototypes,
13989 which can conflict with char $ac_func (); below.
13990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13991 <limits.h> exists even on freestanding compilers. */
13993 #ifdef __STDC__
13994 # include <limits.h>
13995 #else
13996 # include <assert.h>
13997 #endif
13999 #undef $ac_func
14001 /* Override any gcc2 internal prototype to avoid an error. */
14002 #ifdef __cplusplus
14003 extern "C"
14005 #endif
14006 /* We use char because int might match the return type of a gcc2
14007 builtin and then its argument prototype would still apply. */
14008 char $ac_func ();
14009 /* The GNU C library defines this for functions which it implements
14010 to always fail with ENOSYS. Some functions are actually named
14011 something starting with __ and the normal name is an alias. */
14012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14013 choke me
14014 #else
14015 char (*f) () = $ac_func;
14016 #endif
14017 #ifdef __cplusplus
14019 #endif
14022 main ()
14024 return f != $ac_func;
14026 return 0;
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag"
14039 || test ! -s conftest.err'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 eval "$as_ac_var=yes"
14052 else
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 eval "$as_ac_var=no"
14058 rm -f conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14063 if test `eval echo '${'$as_ac_var'}'` = yes; then
14064 cat >>confdefs.h <<_ACEOF
14065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14066 _ACEOF
14068 echo "$as_me:$LINENO: checking for _doprnt" >&5
14069 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
14070 if test "${ac_cv_func__doprnt+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14081 #define _doprnt innocuous__doprnt
14083 /* System header to define __stub macros and hopefully few prototypes,
14084 which can conflict with char _doprnt (); below.
14085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14086 <limits.h> exists even on freestanding compilers. */
14088 #ifdef __STDC__
14089 # include <limits.h>
14090 #else
14091 # include <assert.h>
14092 #endif
14094 #undef _doprnt
14096 /* Override any gcc2 internal prototype to avoid an error. */
14097 #ifdef __cplusplus
14098 extern "C"
14100 #endif
14101 /* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */
14103 char _doprnt ();
14104 /* The GNU C library defines this for functions which it implements
14105 to always fail with ENOSYS. Some functions are actually named
14106 something starting with __ and the normal name is an alias. */
14107 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14108 choke me
14109 #else
14110 char (*f) () = _doprnt;
14111 #endif
14112 #ifdef __cplusplus
14114 #endif
14117 main ()
14119 return f != _doprnt;
14121 return 0;
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14126 (eval $ac_link) 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -z "$ac_c_werror_flag"
14134 || test ! -s conftest.err'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; } &&
14140 { ac_try='test -s conftest$ac_exeext'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 ac_cv_func__doprnt=yes
14147 else
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ac_cv_func__doprnt=no
14153 rm -f conftest.err conftest.$ac_objext \
14154 conftest$ac_exeext conftest.$ac_ext
14156 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14157 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14158 if test $ac_cv_func__doprnt = yes; then
14160 cat >>confdefs.h <<\_ACEOF
14161 #define HAVE_DOPRNT 1
14162 _ACEOF
14167 done
14170 if test $cross_compiling = yes -a $gnumalloc = yes; then
14172 { echo "$as_me:$LINENO: WARNING:
14173 configure cannot check whether malloc() and realloc() are GNU libc
14174 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14175 run configure with the --without-gnu-malloc switch." >&5
14176 echo "$as_me: WARNING:
14177 configure cannot check whether malloc() and realloc() are GNU libc
14178 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14179 run configure with the --without-gnu-malloc switch." >&2;}
14180 _mule_warning_9=yes
14181 _mule_has_warnings=yes
14183 ac_cv_func_malloc_0_nonnull=yes
14184 ac_cv_func_realloc_0_nonnull=yes
14189 for ac_header in stdlib.h
14191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14193 echo "$as_me:$LINENO: checking for $ac_header" >&5
14194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14200 else
14201 # Is the header compilable?
14202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14211 #include <$ac_header>
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>conftest.er1
14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_header_compiler=yes
14236 else
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_header_compiler=no
14242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14244 echo "${ECHO_T}$ac_header_compiler" >&6
14246 # Is the header present?
14247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 #include <$ac_header>
14256 _ACEOF
14257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14259 ac_status=$?
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } >/dev/null; then
14265 if test -s conftest.err; then
14266 ac_cpp_err=$ac_c_preproc_warn_flag
14267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14268 else
14269 ac_cpp_err=
14271 else
14272 ac_cpp_err=yes
14274 if test -z "$ac_cpp_err"; then
14275 ac_header_preproc=yes
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_header_preproc=no
14282 rm -f conftest.err conftest.$ac_ext
14283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14284 echo "${ECHO_T}$ac_header_preproc" >&6
14286 # So? What about this header?
14287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14288 yes:no: )
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14293 ac_header_preproc=yes
14295 no:yes:* )
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14309 cat <<\_ASBOX
14310 ## ------------------------------ ##
14311 ## Report this to admin@amule.org ##
14312 ## ------------------------------ ##
14313 _ASBOX
14315 sed "s/^/$as_me: WARNING: /" >&2
14317 esac
14318 echo "$as_me:$LINENO: checking for $ac_header" >&5
14319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323 eval "$as_ac_Header=\$ac_header_preproc"
14325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14330 cat >>confdefs.h <<_ACEOF
14331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14332 _ACEOF
14336 done
14338 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14339 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14340 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343 if test "$cross_compiling" = yes; then
14344 ac_cv_func_malloc_0_nonnull=no
14345 else
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 #if STDC_HEADERS || HAVE_STDLIB_H
14353 # include <stdlib.h>
14354 #else
14355 char *malloc ();
14356 #endif
14359 main ()
14361 exit (malloc (0) ? 0 : 1);
14363 return 0;
14365 _ACEOF
14366 rm -f conftest$ac_exeext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14368 (eval $ac_link) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_func_malloc_0_nonnull=yes
14378 else
14379 echo "$as_me: program exited with status $ac_status" >&5
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14383 ( exit $ac_status )
14384 ac_cv_func_malloc_0_nonnull=no
14386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14389 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14390 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14391 if test $ac_cv_func_malloc_0_nonnull = yes; then
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_MALLOC 1
14395 _ACEOF
14397 else
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE_MALLOC 0
14400 _ACEOF
14402 case $LIBOBJS in
14403 "malloc.$ac_objext" | \
14404 *" malloc.$ac_objext" | \
14405 "malloc.$ac_objext "* | \
14406 *" malloc.$ac_objext "* ) ;;
14407 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
14408 esac
14411 cat >>confdefs.h <<\_ACEOF
14412 #define malloc rpl_malloc
14413 _ACEOF
14420 for ac_header in stdlib.h
14422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14424 echo "$as_me:$LINENO: checking for $ac_header" >&5
14425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14431 else
14432 # Is the header compilable?
14433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 $ac_includes_default
14442 #include <$ac_header>
14443 _ACEOF
14444 rm -f conftest.$ac_objext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14446 (eval $ac_compile) 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } &&
14453 { ac_try='test -z "$ac_c_werror_flag"
14454 || test ! -s conftest.err'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } &&
14460 { ac_try='test -s conftest.$ac_objext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_header_compiler=yes
14467 else
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_header_compiler=no
14473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14475 echo "${ECHO_T}$ac_header_compiler" >&6
14477 # Is the header present?
14478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14480 cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 #include <$ac_header>
14487 _ACEOF
14488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14490 ac_status=$?
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } >/dev/null; then
14496 if test -s conftest.err; then
14497 ac_cpp_err=$ac_c_preproc_warn_flag
14498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14499 else
14500 ac_cpp_err=
14502 else
14503 ac_cpp_err=yes
14505 if test -z "$ac_cpp_err"; then
14506 ac_header_preproc=yes
14507 else
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 ac_header_preproc=no
14513 rm -f conftest.err conftest.$ac_ext
14514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14515 echo "${ECHO_T}$ac_header_preproc" >&6
14517 # So? What about this header?
14518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14519 yes:no: )
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14524 ac_header_preproc=yes
14526 no:yes:* )
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14540 cat <<\_ASBOX
14541 ## ------------------------------ ##
14542 ## Report this to admin@amule.org ##
14543 ## ------------------------------ ##
14544 _ASBOX
14546 sed "s/^/$as_me: WARNING: /" >&2
14548 esac
14549 echo "$as_me:$LINENO: checking for $ac_header" >&5
14550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554 eval "$as_ac_Header=\$ac_header_preproc"
14556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14561 cat >>confdefs.h <<_ACEOF
14562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14563 _ACEOF
14567 done
14569 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14570 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14571 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 if test "$cross_compiling" = yes; then
14575 ac_cv_func_realloc_0_nonnull=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 #if STDC_HEADERS || HAVE_STDLIB_H
14584 # include <stdlib.h>
14585 #else
14586 char *realloc ();
14587 #endif
14590 main ()
14592 exit (realloc (0, 0) ? 0 : 1);
14594 return 0;
14596 _ACEOF
14597 rm -f conftest$ac_exeext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14599 (eval $ac_link) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14608 ac_cv_func_realloc_0_nonnull=yes
14609 else
14610 echo "$as_me: program exited with status $ac_status" >&5
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ( exit $ac_status )
14615 ac_cv_func_realloc_0_nonnull=no
14617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14620 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14621 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14622 if test $ac_cv_func_realloc_0_nonnull = yes; then
14624 cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_REALLOC 1
14626 _ACEOF
14628 else
14629 cat >>confdefs.h <<\_ACEOF
14630 #define HAVE_REALLOC 0
14631 _ACEOF
14633 case $LIBOBJS in
14634 "realloc.$ac_objext" | \
14635 *" realloc.$ac_objext" | \
14636 "realloc.$ac_objext "* | \
14637 *" realloc.$ac_objext "* ) ;;
14638 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14639 esac
14642 cat >>confdefs.h <<\_ACEOF
14643 #define realloc rpl_realloc
14644 _ACEOF
14683 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 munmap nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
14685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14686 echo "$as_me:$LINENO: checking for $ac_func" >&5
14687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14688 if eval "test \"\${$as_ac_var+set}\" = set"; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14699 #define $ac_func innocuous_$ac_func
14701 /* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char $ac_func (); below.
14703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14704 <limits.h> exists even on freestanding compilers. */
14706 #ifdef __STDC__
14707 # include <limits.h>
14708 #else
14709 # include <assert.h>
14710 #endif
14712 #undef $ac_func
14714 /* Override any gcc2 internal prototype to avoid an error. */
14715 #ifdef __cplusplus
14716 extern "C"
14718 #endif
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14721 char $ac_func ();
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14726 choke me
14727 #else
14728 char (*f) () = $ac_func;
14729 #endif
14730 #ifdef __cplusplus
14732 #endif
14735 main ()
14737 return f != $ac_func;
14739 return 0;
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 eval "$as_ac_var=yes"
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 eval "$as_ac_var=no"
14771 rm -f conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14779 _ACEOF
14782 done
14784 #-------------------------------------------------------------------------------
14785 # End of autoscan stuff
14786 #-------------------------------------------------------------------------------
14792 for ac_func in mkdir getrlimit setrlimit getopt_long
14794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14795 echo "$as_me:$LINENO: checking for $ac_func" >&5
14796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14797 if eval "test \"\${$as_ac_var+set}\" = set"; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h. */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14808 #define $ac_func innocuous_$ac_func
14810 /* System header to define __stub macros and hopefully few prototypes,
14811 which can conflict with char $ac_func (); below.
14812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14813 <limits.h> exists even on freestanding compilers. */
14815 #ifdef __STDC__
14816 # include <limits.h>
14817 #else
14818 # include <assert.h>
14819 #endif
14821 #undef $ac_func
14823 /* Override any gcc2 internal prototype to avoid an error. */
14824 #ifdef __cplusplus
14825 extern "C"
14827 #endif
14828 /* We use char because int might match the return type of a gcc2
14829 builtin and then its argument prototype would still apply. */
14830 char $ac_func ();
14831 /* The GNU C library defines this for functions which it implements
14832 to always fail with ENOSYS. Some functions are actually named
14833 something starting with __ and the normal name is an alias. */
14834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14835 choke me
14836 #else
14837 char (*f) () = $ac_func;
14838 #endif
14839 #ifdef __cplusplus
14841 #endif
14844 main ()
14846 return f != $ac_func;
14848 return 0;
14850 _ACEOF
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14853 (eval $ac_link) 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_c_werror_flag"
14861 || test ! -s conftest.err'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try='test -s conftest$ac_exeext'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 eval "$as_ac_var=yes"
14874 else
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14878 eval "$as_ac_var=no"
14880 rm -f conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14885 if test `eval echo '${'$as_ac_var'}'` = yes; then
14886 cat >>confdefs.h <<_ACEOF
14887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14888 _ACEOF
14891 done
14894 mule_backup_CPPFLAGS="$CPPFLAGS"
14895 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14896 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14897 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14898 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14909 main ()
14911 #ifndef strerror_r
14912 char *p = (char *) strerror_r;
14913 #endif
14916 return 0;
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_have_decl_strerror_r=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_have_decl_strerror_r=no
14948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14950 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14951 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14952 if test $ac_cv_have_decl_strerror_r = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_DECL_STRERROR_R 1
14956 _ACEOF
14959 else
14960 cat >>confdefs.h <<_ACEOF
14961 #define HAVE_DECL_STRERROR_R 0
14962 _ACEOF
14969 for ac_func in strerror_r
14971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14972 echo "$as_me:$LINENO: checking for $ac_func" >&5
14973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14974 if eval "test \"\${$as_ac_var+set}\" = set"; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14985 #define $ac_func innocuous_$ac_func
14987 /* System header to define __stub macros and hopefully few prototypes,
14988 which can conflict with char $ac_func (); below.
14989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14990 <limits.h> exists even on freestanding compilers. */
14992 #ifdef __STDC__
14993 # include <limits.h>
14994 #else
14995 # include <assert.h>
14996 #endif
14998 #undef $ac_func
15000 /* Override any gcc2 internal prototype to avoid an error. */
15001 #ifdef __cplusplus
15002 extern "C"
15004 #endif
15005 /* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15007 char $ac_func ();
15008 /* The GNU C library defines this for functions which it implements
15009 to always fail with ENOSYS. Some functions are actually named
15010 something starting with __ and the normal name is an alias. */
15011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15012 choke me
15013 #else
15014 char (*f) () = $ac_func;
15015 #endif
15016 #ifdef __cplusplus
15018 #endif
15021 main ()
15023 return f != $ac_func;
15025 return 0;
15027 _ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15030 (eval $ac_link) 2>conftest.er1
15031 ac_status=$?
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -z "$ac_c_werror_flag"
15038 || test ! -s conftest.err'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 eval "$as_ac_var=yes"
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 eval "$as_ac_var=no"
15057 rm -f conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
15060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15062 if test `eval echo '${'$as_ac_var'}'` = yes; then
15063 cat >>confdefs.h <<_ACEOF
15064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15065 _ACEOF
15068 done
15070 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15071 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
15072 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15076 ac_cv_func_strerror_r_char_p=no
15077 if test $ac_cv_have_decl_strerror_r = yes; then
15078 cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h. */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15084 $ac_includes_default
15086 main ()
15089 char buf[100];
15090 char x = *strerror_r (0, buf, sizeof buf);
15091 char *p = strerror_r (0, buf, sizeof buf);
15094 return 0;
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_cv_func_strerror_r_char_p=yes
15120 else
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15126 else
15127 # strerror_r is not declared. Choose between
15128 # systems that have relatively inaccessible declarations for the
15129 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15130 # former has a strerror_r that returns char*, while the latter
15131 # has a strerror_r that returns `int'.
15132 # This test should segfault on the DEC system.
15133 if test "$cross_compiling" = yes; then
15135 else
15136 cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h. */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 $ac_includes_default
15143 extern char *strerror_r ();
15145 main ()
15147 char buf[100];
15148 char x = *strerror_r (0, buf, sizeof buf);
15149 exit (!isalpha (x));
15151 return 0;
15153 _ACEOF
15154 rm -f conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_cv_func_strerror_r_char_p=yes
15166 else
15167 echo "$as_me: program exited with status $ac_status" >&5
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15177 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15178 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15179 if test $ac_cv_func_strerror_r_char_p = yes; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define STRERROR_R_CHAR_P 1
15183 _ACEOF
15187 CPPFLAGS="$mule_backup_CPPFLAGS"
15189 # Look for a way to preallocate disk space for files.
15191 echo "$as_me:$LINENO: checking for fallocate" >&5
15192 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h. */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15201 #include <linux/falloc.h>
15204 main ()
15207 fallocate(0, 0, 0, 0);
15210 return 0;
15213 _ACEOF
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15216 (eval $ac_link) 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } &&
15223 { ac_try='test -z "$ac_c_werror_flag"
15224 || test ! -s conftest.err'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest$ac_exeext'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15239 cat >>confdefs.h <<\_ACEOF
15240 #define HAVE_FALLOCATE 1
15241 _ACEOF
15243 echo "$as_me:$LINENO: result: yes" >&5
15244 echo "${ECHO_T}yes" >&6
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15251 echo "$as_me:$LINENO: result: no" >&5
15252 echo "${ECHO_T}no" >&6
15255 rm -f conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15259 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15260 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15261 cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h. */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15269 #include <sys/sycall.h>
15270 #include <sys/types.h>
15271 #include <unistd.h>
15274 main ()
15277 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15280 return 0;
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286 (eval $ac_link) 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag"
15294 || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest$ac_exeext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15309 cat >>confdefs.h <<\_ACEOF
15310 #define HAVE_SYS_FALLOCATE 1
15311 _ACEOF
15313 echo "$as_me:$LINENO: result: yes" >&5
15314 echo "${ECHO_T}yes" >&6
15316 else
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15321 echo "$as_me:$LINENO: result: no" >&5
15322 echo "${ECHO_T}no" >&6
15325 rm -f conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15328 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15329 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15338 #define _XOPEN_SOURCE 600
15339 #include <stdlib.h>
15340 #ifdef HAVE_FCNTL_H
15341 # include <fcntl.h>
15342 #endif
15345 main ()
15348 posix_fallocate(0, 0, 0);
15351 return 0;
15354 _ACEOF
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15357 (eval $ac_link) 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag"
15365 || test ! -s conftest.err'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; } &&
15371 { ac_try='test -s conftest$ac_exeext'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15380 cat >>confdefs.h <<\_ACEOF
15381 #define HAVE_POSIX_FALLOCATE 1
15382 _ACEOF
15384 echo "$as_me:$LINENO: result: yes" >&5
15385 echo "${ECHO_T}yes" >&6
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15392 echo "$as_me:$LINENO: result: no" >&5
15393 echo "${ECHO_T}no" >&6
15396 rm -f conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15400 # Checking Native Language Support
15403 MKINSTALLDIRS=
15404 if test -n "$ac_aux_dir"; then
15405 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15407 if test -z "$MKINSTALLDIRS"; then
15408 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15415 # Extract the first word of "msgfmt", so it can be a program name with args.
15416 set dummy msgfmt; ac_word=$2
15417 echo "$as_me:$LINENO: checking for $ac_word" >&5
15418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15419 if test "${ac_cv_path_MSGFMT+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422 case "$MSGFMT" in
15424 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15428 for ac_dir in $PATH; do
15429 test -z "$ac_dir" && ac_dir=.
15430 if test -f $ac_dir/$ac_word; then
15431 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15432 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15433 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15434 break
15437 done
15438 IFS="$ac_save_ifs"
15439 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15441 esac
15443 MSGFMT="$ac_cv_path_MSGFMT"
15444 if test "$MSGFMT" != ":"; then
15445 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15446 echo "${ECHO_T}$MSGFMT" >&6
15447 else
15448 echo "$as_me:$LINENO: result: no" >&5
15449 echo "${ECHO_T}no" >&6
15452 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15453 set dummy gmsgfmt; ac_word=$2
15454 echo "$as_me:$LINENO: checking for $ac_word" >&5
15455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15456 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459 case $GMSGFMT in
15460 [\\/]* | ?:[\\/]*)
15461 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15465 for as_dir in $PATH
15467 IFS=$as_save_IFS
15468 test -z "$as_dir" && as_dir=.
15469 for ac_exec_ext in '' $ac_executable_extensions; do
15470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15471 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15473 break 2
15475 done
15476 done
15478 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15480 esac
15482 GMSGFMT=$ac_cv_path_GMSGFMT
15484 if test -n "$GMSGFMT"; then
15485 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15486 echo "${ECHO_T}$GMSGFMT" >&6
15487 else
15488 echo "$as_me:$LINENO: result: no" >&5
15489 echo "${ECHO_T}no" >&6
15493 # Extract the first word of "xgettext", so it can be a program name with args.
15494 set dummy xgettext; ac_word=$2
15495 echo "$as_me:$LINENO: checking for $ac_word" >&5
15496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15497 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500 case "$XGETTEXT" in
15502 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15506 for ac_dir in $PATH; do
15507 test -z "$ac_dir" && ac_dir=.
15508 if test -f $ac_dir/$ac_word; then
15509 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15510 (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
15511 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15512 break
15515 done
15516 IFS="$ac_save_ifs"
15517 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15519 esac
15521 XGETTEXT="$ac_cv_path_XGETTEXT"
15522 if test "$XGETTEXT" != ":"; then
15523 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15524 echo "${ECHO_T}$XGETTEXT" >&6
15525 else
15526 echo "$as_me:$LINENO: result: no" >&5
15527 echo "${ECHO_T}no" >&6
15530 rm -f messages.po
15532 # Extract the first word of "msgmerge", so it can be a program name with args.
15533 set dummy msgmerge; ac_word=$2
15534 echo "$as_me:$LINENO: checking for $ac_word" >&5
15535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15536 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539 case "$MSGMERGE" in
15541 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15545 for ac_dir in $PATH; do
15546 test -z "$ac_dir" && ac_dir=.
15547 if test -f $ac_dir/$ac_word; then
15548 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15549 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15550 break
15553 done
15554 IFS="$ac_save_ifs"
15555 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15557 esac
15559 MSGMERGE="$ac_cv_path_MSGMERGE"
15560 if test "$MSGMERGE" != ":"; then
15561 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15562 echo "${ECHO_T}$MSGMERGE" >&6
15563 else
15564 echo "$as_me:$LINENO: result: no" >&5
15565 echo "${ECHO_T}no" >&6
15569 if test "$GMSGFMT" != ":"; then
15570 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15571 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15573 else
15574 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15575 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15576 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15577 GMSGFMT=":"
15581 if test "$XGETTEXT" != ":"; then
15582 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15583 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15585 else
15586 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15587 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15588 XGETTEXT=":"
15590 rm -f messages.po
15593 ac_config_commands="$ac_config_commands default-1"
15596 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15597 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15598 if test "${ac_cv_search_strerror+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601 ac_func_search_save_LIBS=$LIBS
15602 ac_cv_search_strerror=no
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any gcc2 internal prototype to avoid an error. */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15616 char strerror ();
15618 main ()
15620 strerror ();
15622 return 0;
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_cv_search_strerror="none required"
15648 else
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15653 rm -f conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655 if test "$ac_cv_search_strerror" = no; then
15656 for ac_lib in cposix; do
15657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15665 /* Override any gcc2 internal prototype to avoid an error. */
15666 #ifdef __cplusplus
15667 extern "C"
15668 #endif
15669 /* We use char because int might match the return type of a gcc2
15670 builtin and then its argument prototype would still apply. */
15671 char strerror ();
15673 main ()
15675 strerror ();
15677 return 0;
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682 (eval $ac_link) 2>conftest.er1
15683 ac_status=$?
15684 grep -v '^ *+' conftest.er1 >conftest.err
15685 rm -f conftest.er1
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -z "$ac_c_werror_flag"
15690 || test ! -s conftest.err'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_cv_search_strerror="-l$ac_lib"
15703 break
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15709 rm -f conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15711 done
15713 LIBS=$ac_func_search_save_LIBS
15715 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15716 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15717 if test "$ac_cv_search_strerror" != no; then
15718 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15723 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15724 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15725 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h. */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15735 #include <features.h>
15736 #ifdef __GNU_LIBRARY__
15737 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15738 Lucky GNU user
15739 #endif
15740 #endif
15742 _ACEOF
15743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15744 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15745 ac_cv_gnu_library_2_1=yes
15746 else
15747 ac_cv_gnu_library_2_1=no
15749 rm -f conftest*
15754 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15755 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15757 GLIBC21="$ac_cv_gnu_library_2_1"
15762 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15763 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15764 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 else
15768 if test "$cross_compiling" = yes; then
15770 # Guess based on the CPU.
15771 case "$host_cpu" in
15772 alpha* | i3456786 | m68k | s390*)
15773 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15775 gt_cv_int_divbyzero_sigfpe="guessing no";;
15776 esac
15778 else
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h. */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15786 #include <stdlib.h>
15787 #include <signal.h>
15789 static void
15790 #ifdef __cplusplus
15791 sigfpe_handler (int sig)
15792 #else
15793 sigfpe_handler (sig) int sig;
15794 #endif
15796 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15797 exit (sig != SIGFPE);
15800 int x = 1;
15801 int y = 0;
15802 int z;
15803 int nan;
15805 int main ()
15807 signal (SIGFPE, sigfpe_handler);
15808 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15809 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15810 signal (SIGTRAP, sigfpe_handler);
15811 #endif
15812 /* Linux/SPARC yields signal SIGILL. */
15813 #if defined (__sparc__) && defined (__linux__)
15814 signal (SIGILL, sigfpe_handler);
15815 #endif
15817 z = x / y;
15818 nan = y / y;
15819 exit (1);
15822 _ACEOF
15823 rm -f conftest$ac_exeext
15824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15825 (eval $ac_link) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 gt_cv_int_divbyzero_sigfpe=yes
15835 else
15836 echo "$as_me: program exited with status $ac_status" >&5
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ( exit $ac_status )
15841 gt_cv_int_divbyzero_sigfpe=no
15843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15847 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15848 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15849 case "$gt_cv_int_divbyzero_sigfpe" in
15850 *yes) value=1;;
15851 *) value=0;;
15852 esac
15854 cat >>confdefs.h <<_ACEOF
15855 #define INTDIV0_RAISES_SIGFPE $value
15856 _ACEOF
15860 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15861 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15862 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h. */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 #include <sys/types.h>
15872 #include <inttypes.h>
15874 main ()
15876 uintmax_t i = (uintmax_t) -1;
15878 return 0;
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 jm_ac_cv_header_inttypes_h=yes
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 jm_ac_cv_header_inttypes_h=no
15910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15912 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15913 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15914 if test $jm_ac_cv_header_inttypes_h = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15918 _ACEOF
15923 echo "$as_me:$LINENO: checking for stdint.h" >&5
15924 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15925 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <sys/types.h>
15935 #include <stdint.h>
15937 main ()
15939 uintmax_t i = (uintmax_t) -1;
15941 return 0;
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15946 (eval $ac_compile) 2>conftest.er1
15947 ac_status=$?
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 jm_ac_cv_header_stdint_h=yes
15967 else
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 jm_ac_cv_header_stdint_h=no
15973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15975 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15976 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15977 if test $jm_ac_cv_header_stdint_h = yes; then
15979 cat >>confdefs.h <<_ACEOF
15980 #define HAVE_STDINT_H_WITH_UINTMAX 1
15981 _ACEOF
15986 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15987 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15988 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991 cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h. */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 unsigned long long ull = 1; int i = 63;
15999 main ()
16001 unsigned long long ullmax = (unsigned long long) -1;
16002 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
16004 return 0;
16006 _ACEOF
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009 (eval $ac_link) 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -z "$ac_c_werror_flag"
16017 || test ! -s conftest.err'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest$ac_exeext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_type_unsigned_long_long=yes
16030 else
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_cv_type_unsigned_long_long=no
16036 rm -f conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16039 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16040 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16041 if test $ac_cv_type_unsigned_long_long = yes; then
16043 cat >>confdefs.h <<\_ACEOF
16044 #define HAVE_UNSIGNED_LONG_LONG 1
16045 _ACEOF
16052 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
16054 test $ac_cv_type_unsigned_long_long = yes \
16055 && ac_type='unsigned long long' \
16056 || ac_type='unsigned long'
16058 cat >>confdefs.h <<_ACEOF
16059 #define uintmax_t $ac_type
16060 _ACEOF
16065 echo "$as_me:$LINENO: checking for inttypes.h" >&5
16066 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16067 if test "${gt_cv_header_inttypes_h+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h. */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 #include <sys/types.h>
16078 #include <inttypes.h>
16080 main ()
16084 return 0;
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 gt_cv_header_inttypes_h=yes
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 gt_cv_header_inttypes_h=no
16116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16119 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16120 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16121 if test $gt_cv_header_inttypes_h = yes; then
16123 cat >>confdefs.h <<_ACEOF
16124 #define HAVE_INTTYPES_H 1
16125 _ACEOF
16131 if test $gt_cv_header_inttypes_h = yes; then
16132 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16133 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16134 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h. */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 #include <inttypes.h>
16145 #ifdef PRId32
16146 char *p = PRId32;
16147 #endif
16150 main ()
16154 return 0;
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159 (eval $ac_compile) 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
16166 { ac_try='test -z "$ac_c_werror_flag"
16167 || test ! -s conftest.err'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 gt_cv_inttypes_pri_broken=no
16180 else
16181 echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 gt_cv_inttypes_pri_broken=yes
16186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16189 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16190 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16192 if test "$gt_cv_inttypes_pri_broken" = yes; then
16194 cat >>confdefs.h <<_ACEOF
16195 #define PRI_MACROS_BROKEN 1
16196 _ACEOF
16201 if test "X$prefix" = "XNONE"; then
16202 acl_final_prefix="$ac_default_prefix"
16203 else
16204 acl_final_prefix="$prefix"
16206 if test "X$exec_prefix" = "XNONE"; then
16207 acl_final_exec_prefix='${prefix}'
16208 else
16209 acl_final_exec_prefix="$exec_prefix"
16211 acl_save_prefix="$prefix"
16212 prefix="$acl_final_prefix"
16213 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16214 prefix="$acl_save_prefix"
16217 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16218 if test "${with_gnu_ld+set}" = set; then
16219 withval="$with_gnu_ld"
16220 test "$withval" = no || with_gnu_ld=yes
16221 else
16222 with_gnu_ld=no
16224 ac_prog=ld
16225 if test "$GCC" = yes; then
16226 # Check if gcc -print-prog-name=ld gives a path.
16227 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16228 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16229 case $host in
16230 *-*-mingw*)
16231 # gcc leaves a trailing carriage return which upsets mingw
16232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16235 esac
16236 case $ac_prog in
16237 # Accept absolute paths.
16238 [\\/]* | [A-Za-z]:[\\/]*)
16239 re_direlt='/[^/][^/]*/\.\./'
16240 # Canonicalize the path of ld
16241 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16242 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16243 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16244 done
16245 test -z "$LD" && LD="$ac_prog"
16248 # If it fails, then pretend we aren't using GCC.
16249 ac_prog=ld
16252 # If it is relative, then search for the first ld in PATH.
16253 with_gnu_ld=unknown
16255 esac
16256 elif test "$with_gnu_ld" = yes; then
16257 echo "$as_me:$LINENO: checking for GNU ld" >&5
16258 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16259 else
16260 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16261 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16263 if test "${acl_cv_path_LD+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266 if test -z "$LD"; then
16267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16268 for ac_dir in $PATH; do
16269 test -z "$ac_dir" && ac_dir=.
16270 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16271 acl_cv_path_LD="$ac_dir/$ac_prog"
16272 # Check to see if the program is GNU ld. I'd rather use --version,
16273 # but apparently some GNU ld's only accept -v.
16274 # Break only if it was the GNU/non-GNU ld that we prefer.
16275 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16276 test "$with_gnu_ld" != no && break
16277 else
16278 test "$with_gnu_ld" != yes && break
16281 done
16282 IFS="$ac_save_ifs"
16283 else
16284 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16288 LD="$acl_cv_path_LD"
16289 if test -n "$LD"; then
16290 echo "$as_me:$LINENO: result: $LD" >&5
16291 echo "${ECHO_T}$LD" >&6
16292 else
16293 echo "$as_me:$LINENO: result: no" >&5
16294 echo "${ECHO_T}no" >&6
16296 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16297 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16298 { (exit 1); exit 1; }; }
16299 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16300 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16301 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 else
16304 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16305 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16306 acl_cv_prog_gnu_ld=yes
16307 else
16308 acl_cv_prog_gnu_ld=no
16311 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16312 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16313 with_gnu_ld=$acl_cv_prog_gnu_ld
16317 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16318 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16319 if test "${acl_cv_rpath+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16323 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16324 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16325 . ./conftest.sh
16326 rm -f ./conftest.sh
16327 acl_cv_rpath=done
16330 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16331 echo "${ECHO_T}$acl_cv_rpath" >&6
16332 wl="$acl_cv_wl"
16333 libext="$acl_cv_libext"
16334 shlibext="$acl_cv_shlibext"
16335 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16336 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16337 hardcode_direct="$acl_cv_hardcode_direct"
16338 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16339 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16340 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16341 # Check whether --enable-rpath or --disable-rpath was given.
16342 if test "${enable_rpath+set}" = set; then
16343 enableval="$enable_rpath"
16345 else
16346 enable_rpath=yes
16355 use_additional=yes
16357 acl_save_prefix="$prefix"
16358 prefix="$acl_final_prefix"
16359 acl_save_exec_prefix="$exec_prefix"
16360 exec_prefix="$acl_final_exec_prefix"
16362 eval additional_includedir=\"$includedir\"
16363 eval additional_libdir=\"$libdir\"
16365 exec_prefix="$acl_save_exec_prefix"
16366 prefix="$acl_save_prefix"
16369 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16370 if test "${with_libiconv_prefix+set}" = set; then
16371 withval="$with_libiconv_prefix"
16373 if test "X$withval" = "Xno"; then
16374 use_additional=no
16375 else
16376 if test "X$withval" = "X"; then
16378 acl_save_prefix="$prefix"
16379 prefix="$acl_final_prefix"
16380 acl_save_exec_prefix="$exec_prefix"
16381 exec_prefix="$acl_final_exec_prefix"
16383 eval additional_includedir=\"$includedir\"
16384 eval additional_libdir=\"$libdir\"
16386 exec_prefix="$acl_save_exec_prefix"
16387 prefix="$acl_save_prefix"
16389 else
16390 additional_includedir="$withval/include"
16391 additional_libdir="$withval/lib"
16396 LIBICONV=
16397 LTLIBICONV=
16398 INCICONV=
16399 rpathdirs=
16400 ltrpathdirs=
16401 names_already_handled=
16402 names_next_round='iconv '
16403 while test -n "$names_next_round"; do
16404 names_this_round="$names_next_round"
16405 names_next_round=
16406 for name in $names_this_round; do
16407 already_handled=
16408 for n in $names_already_handled; do
16409 if test "$n" = "$name"; then
16410 already_handled=yes
16411 break
16413 done
16414 if test -z "$already_handled"; then
16415 names_already_handled="$names_already_handled $name"
16416 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16417 eval value=\"\$HAVE_LIB$uppername\"
16418 if test -n "$value"; then
16419 if test "$value" = yes; then
16420 eval value=\"\$LIB$uppername\"
16421 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16422 eval value=\"\$LTLIB$uppername\"
16423 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16424 else
16427 else
16428 found_dir=
16429 found_la=
16430 found_so=
16431 found_a=
16432 if test $use_additional = yes; then
16433 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16434 found_dir="$additional_libdir"
16435 found_so="$additional_libdir/lib$name.$shlibext"
16436 if test -f "$additional_libdir/lib$name.la"; then
16437 found_la="$additional_libdir/lib$name.la"
16439 else
16440 if test -f "$additional_libdir/lib$name.$libext"; then
16441 found_dir="$additional_libdir"
16442 found_a="$additional_libdir/lib$name.$libext"
16443 if test -f "$additional_libdir/lib$name.la"; then
16444 found_la="$additional_libdir/lib$name.la"
16449 if test "X$found_dir" = "X"; then
16450 for x in $LDFLAGS $LTLIBICONV; do
16452 acl_save_prefix="$prefix"
16453 prefix="$acl_final_prefix"
16454 acl_save_exec_prefix="$exec_prefix"
16455 exec_prefix="$acl_final_exec_prefix"
16456 eval x=\"$x\"
16457 exec_prefix="$acl_save_exec_prefix"
16458 prefix="$acl_save_prefix"
16460 case "$x" in
16461 -L*)
16462 dir=`echo "X$x" | sed -e 's/^X-L//'`
16463 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16464 found_dir="$dir"
16465 found_so="$dir/lib$name.$shlibext"
16466 if test -f "$dir/lib$name.la"; then
16467 found_la="$dir/lib$name.la"
16469 else
16470 if test -f "$dir/lib$name.$libext"; then
16471 found_dir="$dir"
16472 found_a="$dir/lib$name.$libext"
16473 if test -f "$dir/lib$name.la"; then
16474 found_la="$dir/lib$name.la"
16479 esac
16480 if test "X$found_dir" != "X"; then
16481 break
16483 done
16485 if test "X$found_dir" != "X"; then
16486 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16487 if test "X$found_so" != "X"; then
16488 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16489 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16490 else
16491 haveit=
16492 for x in $ltrpathdirs; do
16493 if test "X$x" = "X$found_dir"; then
16494 haveit=yes
16495 break
16497 done
16498 if test -z "$haveit"; then
16499 ltrpathdirs="$ltrpathdirs $found_dir"
16501 if test "$hardcode_direct" = yes; then
16502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16503 else
16504 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16505 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16506 haveit=
16507 for x in $rpathdirs; do
16508 if test "X$x" = "X$found_dir"; then
16509 haveit=yes
16510 break
16512 done
16513 if test -z "$haveit"; then
16514 rpathdirs="$rpathdirs $found_dir"
16516 else
16517 haveit=
16518 for x in $LDFLAGS $LIBICONV; do
16520 acl_save_prefix="$prefix"
16521 prefix="$acl_final_prefix"
16522 acl_save_exec_prefix="$exec_prefix"
16523 exec_prefix="$acl_final_exec_prefix"
16524 eval x=\"$x\"
16525 exec_prefix="$acl_save_exec_prefix"
16526 prefix="$acl_save_prefix"
16528 if test "X$x" = "X-L$found_dir"; then
16529 haveit=yes
16530 break
16532 done
16533 if test -z "$haveit"; then
16534 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16536 if test "$hardcode_minus_L" != no; then
16537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16538 else
16539 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16544 else
16545 if test "X$found_a" != "X"; then
16546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16547 else
16548 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16551 additional_includedir=
16552 case "$found_dir" in
16553 */lib | */lib/)
16554 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16555 additional_includedir="$basedir/include"
16557 esac
16558 if test "X$additional_includedir" != "X"; then
16559 if test "X$additional_includedir" != "X/usr/include"; then
16560 haveit=
16561 if test "X$additional_includedir" = "X/usr/local/include"; then
16562 if test -n "$GCC"; then
16563 case $host_os in
16564 linux*) haveit=yes;;
16565 esac
16568 if test -z "$haveit"; then
16569 for x in $CPPFLAGS $INCICONV; do
16571 acl_save_prefix="$prefix"
16572 prefix="$acl_final_prefix"
16573 acl_save_exec_prefix="$exec_prefix"
16574 exec_prefix="$acl_final_exec_prefix"
16575 eval x=\"$x\"
16576 exec_prefix="$acl_save_exec_prefix"
16577 prefix="$acl_save_prefix"
16579 if test "X$x" = "X-I$additional_includedir"; then
16580 haveit=yes
16581 break
16583 done
16584 if test -z "$haveit"; then
16585 if test -d "$additional_includedir"; then
16586 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16592 if test -n "$found_la"; then
16593 save_libdir="$libdir"
16594 case "$found_la" in
16595 */* | *\\*) . "$found_la" ;;
16596 *) . "./$found_la" ;;
16597 esac
16598 libdir="$save_libdir"
16599 for dep in $dependency_libs; do
16600 case "$dep" in
16601 -L*)
16602 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16603 if test "X$additional_libdir" != "X/usr/lib"; then
16604 haveit=
16605 if test "X$additional_libdir" = "X/usr/local/lib"; then
16606 if test -n "$GCC"; then
16607 case $host_os in
16608 linux*) haveit=yes;;
16609 esac
16612 if test -z "$haveit"; then
16613 haveit=
16614 for x in $LDFLAGS $LIBICONV; do
16616 acl_save_prefix="$prefix"
16617 prefix="$acl_final_prefix"
16618 acl_save_exec_prefix="$exec_prefix"
16619 exec_prefix="$acl_final_exec_prefix"
16620 eval x=\"$x\"
16621 exec_prefix="$acl_save_exec_prefix"
16622 prefix="$acl_save_prefix"
16624 if test "X$x" = "X-L$additional_libdir"; then
16625 haveit=yes
16626 break
16628 done
16629 if test -z "$haveit"; then
16630 if test -d "$additional_libdir"; then
16631 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16634 haveit=
16635 for x in $LDFLAGS $LTLIBICONV; do
16637 acl_save_prefix="$prefix"
16638 prefix="$acl_final_prefix"
16639 acl_save_exec_prefix="$exec_prefix"
16640 exec_prefix="$acl_final_exec_prefix"
16641 eval x=\"$x\"
16642 exec_prefix="$acl_save_exec_prefix"
16643 prefix="$acl_save_prefix"
16645 if test "X$x" = "X-L$additional_libdir"; then
16646 haveit=yes
16647 break
16649 done
16650 if test -z "$haveit"; then
16651 if test -d "$additional_libdir"; then
16652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16658 -R*)
16659 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16660 if test "$enable_rpath" != no; then
16661 haveit=
16662 for x in $rpathdirs; do
16663 if test "X$x" = "X$dir"; then
16664 haveit=yes
16665 break
16667 done
16668 if test -z "$haveit"; then
16669 rpathdirs="$rpathdirs $dir"
16671 haveit=
16672 for x in $ltrpathdirs; do
16673 if test "X$x" = "X$dir"; then
16674 haveit=yes
16675 break
16677 done
16678 if test -z "$haveit"; then
16679 ltrpathdirs="$ltrpathdirs $dir"
16683 -l*)
16684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16686 *.la)
16687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16690 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16691 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16693 esac
16694 done
16696 else
16697 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16698 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16702 done
16703 done
16704 if test "X$rpathdirs" != "X"; then
16705 if test -n "$hardcode_libdir_separator"; then
16706 alldirs=
16707 for found_dir in $rpathdirs; do
16708 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16709 done
16710 acl_save_libdir="$libdir"
16711 libdir="$alldirs"
16712 eval flag=\"$hardcode_libdir_flag_spec\"
16713 libdir="$acl_save_libdir"
16714 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16715 else
16716 for found_dir in $rpathdirs; do
16717 acl_save_libdir="$libdir"
16718 libdir="$found_dir"
16719 eval flag=\"$hardcode_libdir_flag_spec\"
16720 libdir="$acl_save_libdir"
16721 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16722 done
16725 if test "X$ltrpathdirs" != "X"; then
16726 for found_dir in $ltrpathdirs; do
16727 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16728 done
16744 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16745 stdlib.h string.h unistd.h sys/param.h
16747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16749 echo "$as_me:$LINENO: checking for $ac_header" >&5
16750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16756 else
16757 # Is the header compilable?
16758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 $ac_includes_default
16767 #include <$ac_header>
16768 _ACEOF
16769 rm -f conftest.$ac_objext
16770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16771 (eval $ac_compile) 2>conftest.er1
16772 ac_status=$?
16773 grep -v '^ *+' conftest.er1 >conftest.err
16774 rm -f conftest.er1
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -z "$ac_c_werror_flag"
16779 || test ! -s conftest.err'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_header_compiler=yes
16792 else
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_header_compiler=no
16798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16800 echo "${ECHO_T}$ac_header_compiler" >&6
16802 # Is the header present?
16803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h. */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 #include <$ac_header>
16812 _ACEOF
16813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } >/dev/null; then
16821 if test -s conftest.err; then
16822 ac_cpp_err=$ac_c_preproc_warn_flag
16823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16824 else
16825 ac_cpp_err=
16827 else
16828 ac_cpp_err=yes
16830 if test -z "$ac_cpp_err"; then
16831 ac_header_preproc=yes
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 ac_header_preproc=no
16838 rm -f conftest.err conftest.$ac_ext
16839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16840 echo "${ECHO_T}$ac_header_preproc" >&6
16842 # So? What about this header?
16843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16844 yes:no: )
16845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16849 ac_header_preproc=yes
16851 no:yes:* )
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16865 cat <<\_ASBOX
16866 ## ------------------------------ ##
16867 ## Report this to admin@amule.org ##
16868 ## ------------------------------ ##
16869 _ASBOX
16871 sed "s/^/$as_me: WARNING: /" >&2
16873 esac
16874 echo "$as_me:$LINENO: checking for $ac_header" >&5
16875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 else
16879 eval "$as_ac_Header=\$ac_header_preproc"
16881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16888 _ACEOF
16892 done
16915 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16916 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16917 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16920 echo "$as_me:$LINENO: checking for $ac_func" >&5
16921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16922 if eval "test \"\${$as_ac_var+set}\" = set"; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 else
16925 cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h. */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16933 #define $ac_func innocuous_$ac_func
16935 /* System header to define __stub macros and hopefully few prototypes,
16936 which can conflict with char $ac_func (); below.
16937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938 <limits.h> exists even on freestanding compilers. */
16940 #ifdef __STDC__
16941 # include <limits.h>
16942 #else
16943 # include <assert.h>
16944 #endif
16946 #undef $ac_func
16948 /* Override any gcc2 internal prototype to avoid an error. */
16949 #ifdef __cplusplus
16950 extern "C"
16952 #endif
16953 /* We use char because int might match the return type of a gcc2
16954 builtin and then its argument prototype would still apply. */
16955 char $ac_func ();
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16960 choke me
16961 #else
16962 char (*f) () = $ac_func;
16963 #endif
16964 #ifdef __cplusplus
16966 #endif
16969 main ()
16971 return f != $ac_func;
16973 return 0;
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978 (eval $ac_link) 2>conftest.er1
16979 ac_status=$?
16980 grep -v '^ *+' conftest.er1 >conftest.err
16981 rm -f conftest.er1
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -z "$ac_c_werror_flag"
16986 || test ! -s conftest.err'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try='test -s conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 eval "$as_ac_var=yes"
16999 else
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 eval "$as_ac_var=no"
17005 rm -f conftest.err conftest.$ac_objext \
17006 conftest$ac_exeext conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17010 if test `eval echo '${'$as_ac_var'}'` = yes; then
17011 cat >>confdefs.h <<_ACEOF
17012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17013 _ACEOF
17016 done
17024 am_save_CPPFLAGS="$CPPFLAGS"
17026 for element in $INCICONV; do
17027 haveit=
17028 for x in $CPPFLAGS; do
17030 acl_save_prefix="$prefix"
17031 prefix="$acl_final_prefix"
17032 acl_save_exec_prefix="$exec_prefix"
17033 exec_prefix="$acl_final_exec_prefix"
17034 eval x=\"$x\"
17035 exec_prefix="$acl_save_exec_prefix"
17036 prefix="$acl_save_prefix"
17038 if test "X$x" = "X$element"; then
17039 haveit=yes
17040 break
17042 done
17043 if test -z "$haveit"; then
17044 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17046 done
17049 echo "$as_me:$LINENO: checking for iconv" >&5
17050 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
17051 if test "${am_cv_func_iconv+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17055 am_cv_func_iconv="no, consider installing GNU libiconv"
17056 am_cv_lib_iconv=no
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <stdlib.h>
17064 #include <iconv.h>
17066 main ()
17068 iconv_t cd = iconv_open("","");
17069 iconv(cd,NULL,NULL,NULL,NULL);
17070 iconv_close(cd);
17072 return 0;
17074 _ACEOF
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17077 (eval $ac_link) 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 am_cv_func_iconv=yes
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17103 rm -f conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105 if test "$am_cv_func_iconv" != yes; then
17106 am_save_LIBS="$LIBS"
17107 LIBS="$LIBS $LIBICONV"
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h. */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 #include <stdlib.h>
17115 #include <iconv.h>
17117 main ()
17119 iconv_t cd = iconv_open("","");
17120 iconv(cd,NULL,NULL,NULL,NULL);
17121 iconv_close(cd);
17123 return 0;
17125 _ACEOF
17126 rm -f conftest.$ac_objext conftest$ac_exeext
17127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17128 (eval $ac_link) 2>conftest.er1
17129 ac_status=$?
17130 grep -v '^ *+' conftest.er1 >conftest.err
17131 rm -f conftest.er1
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } &&
17135 { ac_try='test -z "$ac_c_werror_flag"
17136 || test ! -s conftest.err'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; } &&
17142 { ac_try='test -s conftest$ac_exeext'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 am_cv_lib_iconv=yes
17149 am_cv_func_iconv=yes
17150 else
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17155 rm -f conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157 LIBS="$am_save_LIBS"
17161 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17162 echo "${ECHO_T}$am_cv_func_iconv" >&6
17163 if test "$am_cv_func_iconv" = yes; then
17165 cat >>confdefs.h <<\_ACEOF
17166 #define HAVE_ICONV 1
17167 _ACEOF
17170 if test "$am_cv_lib_iconv" = yes; then
17171 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17172 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17173 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17174 echo "${ECHO_T}$LIBICONV" >&6
17175 else
17176 CPPFLAGS="$am_save_CPPFLAGS"
17177 LIBICONV=
17178 LTLIBICONV=
17183 if test "$am_cv_func_iconv" = yes; then
17184 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17185 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17186 if test "${am_cv_proto_iconv+set}" = set; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 else
17190 cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h. */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17197 #include <stdlib.h>
17198 #include <iconv.h>
17199 extern
17200 #ifdef __cplusplus
17202 #endif
17203 #if defined(__STDC__) || defined(__cplusplus)
17204 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17205 #else
17206 size_t iconv();
17207 #endif
17210 main ()
17214 return 0;
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 am_cv_proto_iconv_arg1=""
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 am_cv_proto_iconv_arg1="const"
17246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17247 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);"
17250 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17251 echo "$as_me:$LINENO: result: ${ac_t:-
17252 }$am_cv_proto_iconv" >&5
17253 echo "${ECHO_T}${ac_t:-
17254 }$am_cv_proto_iconv" >&6
17256 cat >>confdefs.h <<_ACEOF
17257 #define ICONV_CONST $am_cv_proto_iconv_arg1
17258 _ACEOF
17263 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17264 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17265 if test "${am_cv_langinfo_codeset+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274 #include <langinfo.h>
17276 main ()
17278 char* cs = nl_langinfo(CODESET);
17280 return 0;
17282 _ACEOF
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17285 (eval $ac_link) 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest$ac_exeext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 am_cv_langinfo_codeset=yes
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 am_cv_langinfo_codeset=no
17312 rm -f conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17316 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17317 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17318 if test $am_cv_langinfo_codeset = yes; then
17320 cat >>confdefs.h <<\_ACEOF
17321 #define HAVE_LANGINFO_CODESET 1
17322 _ACEOF
17326 if test $ac_cv_header_locale_h = yes; then
17328 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17329 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17330 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 #include <locale.h>
17341 main ()
17343 return LC_MESSAGES
17345 return 0;
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 am_cv_val_LC_MESSAGES=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 am_cv_val_LC_MESSAGES=no
17377 rm -f conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17380 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17381 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17382 if test $am_cv_val_LC_MESSAGES = yes; then
17384 cat >>confdefs.h <<\_ACEOF
17385 #define HAVE_LC_MESSAGES 1
17386 _ACEOF
17392 for ac_prog in bison
17394 # Extract the first word of "$ac_prog", so it can be a program name with args.
17395 set dummy $ac_prog; ac_word=$2
17396 echo "$as_me:$LINENO: checking for $ac_word" >&5
17397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17398 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401 if test -n "$INTLBISON"; then
17402 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17403 else
17404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17405 for as_dir in $PATH
17407 IFS=$as_save_IFS
17408 test -z "$as_dir" && as_dir=.
17409 for ac_exec_ext in '' $ac_executable_extensions; do
17410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17411 ac_cv_prog_INTLBISON="$ac_prog"
17412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17413 break 2
17415 done
17416 done
17420 INTLBISON=$ac_cv_prog_INTLBISON
17421 if test -n "$INTLBISON"; then
17422 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17423 echo "${ECHO_T}$INTLBISON" >&6
17424 else
17425 echo "$as_me:$LINENO: result: no" >&5
17426 echo "${ECHO_T}no" >&6
17429 test -n "$INTLBISON" && break
17430 done
17432 if test -z "$INTLBISON"; then
17433 ac_verc_fail=yes
17434 else
17435 echo "$as_me:$LINENO: checking version of bison" >&5
17436 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17437 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17438 case $ac_prog_version in
17439 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17440 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17441 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17442 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17443 esac
17444 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17445 echo "${ECHO_T}$ac_prog_version" >&6
17447 if test $ac_verc_fail = yes; then
17448 INTLBISON=:
17453 # Check whether --with-language or --without-language was given.
17454 if test "${with_language+set}" = set; then
17455 withval="$with_language"
17456 if test "$withval" = "all"; then
17457 LINGUAS='%UNSET%'
17458 else
17459 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17478 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17479 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17480 # Check whether --enable-nls or --disable-nls was given.
17481 if test "${enable_nls+set}" = set; then
17482 enableval="$enable_nls"
17483 USE_NLS=$enableval
17484 else
17485 USE_NLS=yes
17487 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17488 echo "${ECHO_T}$USE_NLS" >&6
17492 BUILD_INCLUDED_LIBINTL=no
17493 USE_INCLUDED_LIBINTL=no
17495 LIBINTL=
17496 LTLIBINTL=
17497 POSUB=
17499 if test "$USE_NLS" = "yes"; then
17500 gt_use_preinstalled_gnugettext=no
17502 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17503 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17505 # Check whether --with-included-gettext or --without-included-gettext was given.
17506 if test "${with_included_gettext+set}" = set; then
17507 withval="$with_included_gettext"
17508 nls_cv_force_use_gnu_gettext=$withval
17509 else
17510 nls_cv_force_use_gnu_gettext=no
17512 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17513 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17515 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17516 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17523 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17524 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17525 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 #include <libintl.h>
17535 extern int _nl_msg_cat_cntr;
17536 extern int *_nl_domain_bindings;
17538 main ()
17540 bindtextdomain ("", "");
17541 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17543 return 0;
17545 _ACEOF
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 gt_cv_func_gnugettext2_libc=yes
17569 else
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 gt_cv_func_gnugettext2_libc=no
17575 rm -f conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17578 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17579 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17581 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17585 use_additional=yes
17587 acl_save_prefix="$prefix"
17588 prefix="$acl_final_prefix"
17589 acl_save_exec_prefix="$exec_prefix"
17590 exec_prefix="$acl_final_exec_prefix"
17592 eval additional_includedir=\"$includedir\"
17593 eval additional_libdir=\"$libdir\"
17595 exec_prefix="$acl_save_exec_prefix"
17596 prefix="$acl_save_prefix"
17599 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17600 if test "${with_libintl_prefix+set}" = set; then
17601 withval="$with_libintl_prefix"
17603 if test "X$withval" = "Xno"; then
17604 use_additional=no
17605 else
17606 if test "X$withval" = "X"; then
17608 acl_save_prefix="$prefix"
17609 prefix="$acl_final_prefix"
17610 acl_save_exec_prefix="$exec_prefix"
17611 exec_prefix="$acl_final_exec_prefix"
17613 eval additional_includedir=\"$includedir\"
17614 eval additional_libdir=\"$libdir\"
17616 exec_prefix="$acl_save_exec_prefix"
17617 prefix="$acl_save_prefix"
17619 else
17620 additional_includedir="$withval/include"
17621 additional_libdir="$withval/lib"
17626 LIBINTL=
17627 LTLIBINTL=
17628 INCINTL=
17629 rpathdirs=
17630 ltrpathdirs=
17631 names_already_handled=
17632 names_next_round='intl '
17633 while test -n "$names_next_round"; do
17634 names_this_round="$names_next_round"
17635 names_next_round=
17636 for name in $names_this_round; do
17637 already_handled=
17638 for n in $names_already_handled; do
17639 if test "$n" = "$name"; then
17640 already_handled=yes
17641 break
17643 done
17644 if test -z "$already_handled"; then
17645 names_already_handled="$names_already_handled $name"
17646 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17647 eval value=\"\$HAVE_LIB$uppername\"
17648 if test -n "$value"; then
17649 if test "$value" = yes; then
17650 eval value=\"\$LIB$uppername\"
17651 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17652 eval value=\"\$LTLIB$uppername\"
17653 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17654 else
17657 else
17658 found_dir=
17659 found_la=
17660 found_so=
17661 found_a=
17662 if test $use_additional = yes; then
17663 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17664 found_dir="$additional_libdir"
17665 found_so="$additional_libdir/lib$name.$shlibext"
17666 if test -f "$additional_libdir/lib$name.la"; then
17667 found_la="$additional_libdir/lib$name.la"
17669 else
17670 if test -f "$additional_libdir/lib$name.$libext"; then
17671 found_dir="$additional_libdir"
17672 found_a="$additional_libdir/lib$name.$libext"
17673 if test -f "$additional_libdir/lib$name.la"; then
17674 found_la="$additional_libdir/lib$name.la"
17679 if test "X$found_dir" = "X"; then
17680 for x in $LDFLAGS $LTLIBINTL; do
17682 acl_save_prefix="$prefix"
17683 prefix="$acl_final_prefix"
17684 acl_save_exec_prefix="$exec_prefix"
17685 exec_prefix="$acl_final_exec_prefix"
17686 eval x=\"$x\"
17687 exec_prefix="$acl_save_exec_prefix"
17688 prefix="$acl_save_prefix"
17690 case "$x" in
17691 -L*)
17692 dir=`echo "X$x" | sed -e 's/^X-L//'`
17693 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17694 found_dir="$dir"
17695 found_so="$dir/lib$name.$shlibext"
17696 if test -f "$dir/lib$name.la"; then
17697 found_la="$dir/lib$name.la"
17699 else
17700 if test -f "$dir/lib$name.$libext"; then
17701 found_dir="$dir"
17702 found_a="$dir/lib$name.$libext"
17703 if test -f "$dir/lib$name.la"; then
17704 found_la="$dir/lib$name.la"
17709 esac
17710 if test "X$found_dir" != "X"; then
17711 break
17713 done
17715 if test "X$found_dir" != "X"; then
17716 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17717 if test "X$found_so" != "X"; then
17718 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17719 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17720 else
17721 haveit=
17722 for x in $ltrpathdirs; do
17723 if test "X$x" = "X$found_dir"; then
17724 haveit=yes
17725 break
17727 done
17728 if test -z "$haveit"; then
17729 ltrpathdirs="$ltrpathdirs $found_dir"
17731 if test "$hardcode_direct" = yes; then
17732 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17733 else
17734 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17735 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17736 haveit=
17737 for x in $rpathdirs; do
17738 if test "X$x" = "X$found_dir"; then
17739 haveit=yes
17740 break
17742 done
17743 if test -z "$haveit"; then
17744 rpathdirs="$rpathdirs $found_dir"
17746 else
17747 haveit=
17748 for x in $LDFLAGS $LIBINTL; do
17750 acl_save_prefix="$prefix"
17751 prefix="$acl_final_prefix"
17752 acl_save_exec_prefix="$exec_prefix"
17753 exec_prefix="$acl_final_exec_prefix"
17754 eval x=\"$x\"
17755 exec_prefix="$acl_save_exec_prefix"
17756 prefix="$acl_save_prefix"
17758 if test "X$x" = "X-L$found_dir"; then
17759 haveit=yes
17760 break
17762 done
17763 if test -z "$haveit"; then
17764 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17766 if test "$hardcode_minus_L" != no; then
17767 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17768 else
17769 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17774 else
17775 if test "X$found_a" != "X"; then
17776 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17777 else
17778 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17781 additional_includedir=
17782 case "$found_dir" in
17783 */lib | */lib/)
17784 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17785 additional_includedir="$basedir/include"
17787 esac
17788 if test "X$additional_includedir" != "X"; then
17789 if test "X$additional_includedir" != "X/usr/include"; then
17790 haveit=
17791 if test "X$additional_includedir" = "X/usr/local/include"; then
17792 if test -n "$GCC"; then
17793 case $host_os in
17794 linux*) haveit=yes;;
17795 esac
17798 if test -z "$haveit"; then
17799 for x in $CPPFLAGS $INCINTL; do
17801 acl_save_prefix="$prefix"
17802 prefix="$acl_final_prefix"
17803 acl_save_exec_prefix="$exec_prefix"
17804 exec_prefix="$acl_final_exec_prefix"
17805 eval x=\"$x\"
17806 exec_prefix="$acl_save_exec_prefix"
17807 prefix="$acl_save_prefix"
17809 if test "X$x" = "X-I$additional_includedir"; then
17810 haveit=yes
17811 break
17813 done
17814 if test -z "$haveit"; then
17815 if test -d "$additional_includedir"; then
17816 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17822 if test -n "$found_la"; then
17823 save_libdir="$libdir"
17824 case "$found_la" in
17825 */* | *\\*) . "$found_la" ;;
17826 *) . "./$found_la" ;;
17827 esac
17828 libdir="$save_libdir"
17829 for dep in $dependency_libs; do
17830 case "$dep" in
17831 -L*)
17832 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17833 if test "X$additional_libdir" != "X/usr/lib"; then
17834 haveit=
17835 if test "X$additional_libdir" = "X/usr/local/lib"; then
17836 if test -n "$GCC"; then
17837 case $host_os in
17838 linux*) haveit=yes;;
17839 esac
17842 if test -z "$haveit"; then
17843 haveit=
17844 for x in $LDFLAGS $LIBINTL; do
17846 acl_save_prefix="$prefix"
17847 prefix="$acl_final_prefix"
17848 acl_save_exec_prefix="$exec_prefix"
17849 exec_prefix="$acl_final_exec_prefix"
17850 eval x=\"$x\"
17851 exec_prefix="$acl_save_exec_prefix"
17852 prefix="$acl_save_prefix"
17854 if test "X$x" = "X-L$additional_libdir"; then
17855 haveit=yes
17856 break
17858 done
17859 if test -z "$haveit"; then
17860 if test -d "$additional_libdir"; then
17861 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17864 haveit=
17865 for x in $LDFLAGS $LTLIBINTL; do
17867 acl_save_prefix="$prefix"
17868 prefix="$acl_final_prefix"
17869 acl_save_exec_prefix="$exec_prefix"
17870 exec_prefix="$acl_final_exec_prefix"
17871 eval x=\"$x\"
17872 exec_prefix="$acl_save_exec_prefix"
17873 prefix="$acl_save_prefix"
17875 if test "X$x" = "X-L$additional_libdir"; then
17876 haveit=yes
17877 break
17879 done
17880 if test -z "$haveit"; then
17881 if test -d "$additional_libdir"; then
17882 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17888 -R*)
17889 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17890 if test "$enable_rpath" != no; then
17891 haveit=
17892 for x in $rpathdirs; do
17893 if test "X$x" = "X$dir"; then
17894 haveit=yes
17895 break
17897 done
17898 if test -z "$haveit"; then
17899 rpathdirs="$rpathdirs $dir"
17901 haveit=
17902 for x in $ltrpathdirs; do
17903 if test "X$x" = "X$dir"; then
17904 haveit=yes
17905 break
17907 done
17908 if test -z "$haveit"; then
17909 ltrpathdirs="$ltrpathdirs $dir"
17913 -l*)
17914 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17916 *.la)
17917 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17920 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17921 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17923 esac
17924 done
17926 else
17927 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17928 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17932 done
17933 done
17934 if test "X$rpathdirs" != "X"; then
17935 if test -n "$hardcode_libdir_separator"; then
17936 alldirs=
17937 for found_dir in $rpathdirs; do
17938 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17939 done
17940 acl_save_libdir="$libdir"
17941 libdir="$alldirs"
17942 eval flag=\"$hardcode_libdir_flag_spec\"
17943 libdir="$acl_save_libdir"
17944 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17945 else
17946 for found_dir in $rpathdirs; do
17947 acl_save_libdir="$libdir"
17948 libdir="$found_dir"
17949 eval flag=\"$hardcode_libdir_flag_spec\"
17950 libdir="$acl_save_libdir"
17951 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17952 done
17955 if test "X$ltrpathdirs" != "X"; then
17956 for found_dir in $ltrpathdirs; do
17957 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17958 done
17961 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17962 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17963 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 gt_save_CPPFLAGS="$CPPFLAGS"
17967 CPPFLAGS="$CPPFLAGS $INCINTL"
17968 gt_save_LIBS="$LIBS"
17969 LIBS="$LIBS $LIBINTL"
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 #include <libintl.h>
17977 extern int _nl_msg_cat_cntr;
17978 extern
17979 #ifdef __cplusplus
17981 #endif
17982 const char *_nl_expand_alias ();
17984 main ()
17986 bindtextdomain ("", "");
17987 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17989 return 0;
17991 _ACEOF
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 gt_cv_func_gnugettext2_libintl=yes
18015 else
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 gt_cv_func_gnugettext2_libintl=no
18021 rm -f conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18023 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
18024 LIBS="$LIBS $LIBICONV"
18025 cat >conftest.$ac_ext <<_ACEOF
18026 /* confdefs.h. */
18027 _ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18031 #include <libintl.h>
18032 extern int _nl_msg_cat_cntr;
18033 extern
18034 #ifdef __cplusplus
18036 #endif
18037 const char *_nl_expand_alias ();
18039 main ()
18041 bindtextdomain ("", "");
18042 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18044 return 0;
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 LIBINTL="$LIBINTL $LIBICONV"
18070 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18071 gt_cv_func_gnugettext2_libintl=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18078 rm -f conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18081 CPPFLAGS="$gt_save_CPPFLAGS"
18082 LIBS="$gt_save_LIBS"
18084 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18085 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18088 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18089 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18090 && test "$PACKAGE" != gettext; }; then
18091 gt_use_preinstalled_gnugettext=yes
18092 else
18093 LIBINTL=
18094 LTLIBINTL=
18095 INCINTL=
18099 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18100 nls_cv_use_gnu_gettext=yes
18104 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18105 INTLOBJS="\$(GETTOBJS)"
18106 BUILD_INCLUDED_LIBINTL=yes
18107 USE_INCLUDED_LIBINTL=yes
18108 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
18109 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18110 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18113 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18114 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18115 CATOBJEXT=.gmo
18119 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18120 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18122 cat >>confdefs.h <<\_ACEOF
18123 #define ENABLE_NLS 1
18124 _ACEOF
18126 else
18127 USE_NLS=no
18131 if test "$USE_NLS" = "yes"; then
18133 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18134 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18135 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18136 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18137 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18138 echo "${ECHO_T}$LIBINTL" >&6
18140 for element in $INCINTL; do
18141 haveit=
18142 for x in $CPPFLAGS; do
18144 acl_save_prefix="$prefix"
18145 prefix="$acl_final_prefix"
18146 acl_save_exec_prefix="$exec_prefix"
18147 exec_prefix="$acl_final_exec_prefix"
18148 eval x=\"$x\"
18149 exec_prefix="$acl_save_exec_prefix"
18150 prefix="$acl_save_prefix"
18152 if test "X$x" = "X$element"; then
18153 haveit=yes
18154 break
18156 done
18157 if test -z "$haveit"; then
18158 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18160 done
18165 cat >>confdefs.h <<\_ACEOF
18166 #define HAVE_GETTEXT 1
18167 _ACEOF
18170 cat >>confdefs.h <<\_ACEOF
18171 #define HAVE_DCGETTEXT 1
18172 _ACEOF
18176 POSUB=po
18180 if test "$PACKAGE" = gettext; then
18181 BUILD_INCLUDED_LIBINTL=yes
18189 nls_cv_header_intl=
18190 nls_cv_header_libgt=
18192 DATADIRNAME=share
18195 INSTOBJEXT=.mo
18198 GENCAT=gencat
18201 INTL_LIBTOOL_SUFFIX_PREFIX=
18205 INTLLIBS="$LIBINTL"
18212 if test $USE_INCLUDED_LIBINTL = yes; then
18213 INCINTL=-I\${top_builddir}/intl
18217 if test x$USE_NLS = xyes; then
18219 echo "$as_me:$LINENO: checking for autopoint" >&5
18220 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18221 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18222 if test -n "$autopoint_version"; then
18224 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18225 echo "${ECHO_T}yes ($autopoint_version)" >&6
18228 else
18230 echo "$as_me:$LINENO: result: no" >&5
18231 echo "${ECHO_T}no" >&6
18232 USE_NLS=no
18239 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18240 { echo "$as_me:$LINENO: WARNING:
18241 You need to install GNU gettext/gettext-tools to compile aMule with
18242 i18n support." >&5
18243 echo "$as_me: WARNING:
18244 You need to install GNU gettext/gettext-tools to compile aMule with
18245 i18n support." >&2;}
18246 _mule_warning_10=yes
18247 _mule_has_warnings=yes
18252 if test ${USE_NLS:-no} = yes; then
18254 echo "$as_me:$LINENO: checking for requested languages" >&5
18255 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18256 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18258 if test "$AMULE_DAEMON" = "yes"; then
18260 if test -z "$LINGUAS"; then
18261 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18262 else
18264 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18265 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18269 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18271 else
18272 AMULE_DAEMON_MANPAGES=
18278 if test "$AMULECMD" = "yes"; then
18280 if test -z "$LINGUAS"; then
18281 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18282 else
18284 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18285 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18289 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18291 else
18292 AMULECMD_MANPAGES=
18298 if test "$WEB" = "yes"; then
18300 if test -z "$LINGUAS"; then
18301 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18302 else
18304 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18305 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18309 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18311 else
18312 WEB_MANPAGES=
18318 if test "$AMULE_GUI" = "yes"; then
18320 if test -z "$LINGUAS"; then
18321 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18322 else
18324 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18325 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18329 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18331 else
18332 AMULE_GUI_MANPAGES=
18338 if test "$CAS" = "yes"; then
18340 if test -z "$LINGUAS"; then
18341 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18342 else
18344 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18345 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18349 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18351 else
18352 CAS_MANPAGES=
18358 if test "$WXCAS" = "yes"; then
18360 if test -z "$LINGUAS"; then
18361 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18362 else
18364 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18365 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18369 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18371 else
18372 WXCAS_MANPAGES=
18378 if test "$ED2K" = "yes"; then
18380 if test -z "$LINGUAS"; then
18381 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18382 else
18384 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18385 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18389 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18391 else
18392 ED2K_MANPAGES=
18398 if test "$ALC" = "yes"; then
18400 if test -z "$LINGUAS"; then
18401 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18402 else
18404 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18405 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18409 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18411 else
18412 ALC_MANPAGES=
18418 if test "$ALCC" = "yes"; then
18420 if test -z "$LINGUAS"; then
18421 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18422 else
18424 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18425 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18429 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18431 else
18432 ALCC_MANPAGES=
18438 if test "$MONOLITHIC" = "yes"; then
18440 if test -z "$LINGUAS"; then
18441 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18442 else
18444 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18445 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18449 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18451 else
18452 MONOLITHIC_MANPAGES=
18457 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18458 echo "${ECHO_T}${LINGUAS:-all}" >&6
18465 # Flush standard test results for speeding cache
18466 cat >confcache <<\_ACEOF
18467 # This file is a shell script that caches the results of configure
18468 # tests run on this system so they can be shared between configure
18469 # scripts and configure runs, see configure's option --config-cache.
18470 # It is not useful on other systems. If it contains results you don't
18471 # want to keep, you may remove or edit it.
18473 # config.status only pays attention to the cache file if you give it
18474 # the --recheck option to rerun configure.
18476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18478 # following values.
18480 _ACEOF
18482 # The following way of writing the cache mishandles newlines in values,
18483 # but we know of no workaround that is simple, portable, and efficient.
18484 # So, don't put newlines in cache variables' values.
18485 # Ultrix sh set writes to stderr and can't be redirected directly,
18486 # and sets the high bit in the cache file unless we assign to the vars.
18488 (set) 2>&1 |
18489 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18490 *ac_space=\ *)
18491 # `set' does not quote correctly, so add quotes (double-quote
18492 # substitution turns \\\\ into \\, and sed turns \\ into \).
18493 sed -n \
18494 "s/'/'\\\\''/g;
18495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18498 # `set' quotes correctly as required by POSIX, so do not add quotes.
18499 sed -n \
18500 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18502 esac;
18504 sed '
18505 t clear
18506 : clear
18507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18508 t end
18509 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18510 : end' >>confcache
18511 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18512 if test -w $cache_file; then
18513 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18514 cat confcache >$cache_file
18515 else
18516 echo "not updating unwritable cache $cache_file"
18519 rm -f confcache
18521 # Other tests
18522 # aMule options
18525 # Check whether --enable-debug or --disable-debug was given.
18526 if test "${enable_debug+set}" = set; then
18527 enableval="$enable_debug"
18528 USE_DEBUG=${enableval:-yes}
18529 else
18530 USE_DEBUG=yes
18533 if test $USE_DEBUG = yes; then
18535 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18537 MULECFLAGS="$MULECFLAGS -g"
18538 MULECXXFLAGS="$MULECXXFLAGS -g"
18540 if test ${GLIBCXX:-no} = yes; then
18541 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18544 if test ${GCC:-no} = yes; then
18546 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18547 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18551 if test ${SYS:-unknown} = win32; then
18552 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18556 else
18558 if test ${GCC:-no} = yes; then
18560 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18561 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18570 # Check whether --enable-optimize or --disable-optimize was given.
18571 if test "${enable_optimize+set}" = set; then
18572 enableval="$enable_optimize"
18573 USE_OPTIMIZE=${enableval:-no}
18574 else
18575 USE_OPTIMIZE=no
18578 if test $USE_OPTIMIZE = yes; then
18580 MULECFLAGS="$MULECFLAGS -O2"
18581 MULECXXFLAGS="$MULECXXFLAGS -O2"
18587 # Check whether --enable-profile or --disable-profile was given.
18588 if test "${enable_profile+set}" = set; then
18589 enableval="$enable_profile"
18590 USE_PROFILE=${enableval:-no}
18591 else
18592 USE_PROFILE=no
18595 if test $USE_PROFILE = yes; then
18598 MULECFLAGS="$MULECFLAGS -pg"
18599 MULECXXFLAGS="$MULECXXFLAGS -pg"
18601 MULELDFLAGS="$MULELDFLAGS -pg"
18607 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18608 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18609 # Check whether --enable-static or --disable-static was given.
18610 if test "${enable_static+set}" = set; then
18611 enableval="$enable_static"
18612 if test ${enableval:-no} = yes; then
18613 MULELDFLAGS="$MULELDFLAGS -static"
18617 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18618 echo "${ECHO_T}${enableval:-no}" >&6
18620 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18623 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18624 echo "$as_me:$LINENO: checking for docdir" >&5
18625 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18626 if test -z "$docdir"; then
18627 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18630 echo "$as_me:$LINENO: result: $docdir" >&5
18631 echo "${ECHO_T}$docdir" >&6
18633 # Try to set the SVN checkout-date
18634 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18635 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18636 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
18637 then
18638 svndate=`cat $srcdir/SVNDATE`
18639 elif test -d $srcdir/.svn # SVNDATE for svn
18640 then
18641 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18643 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18644 echo "${ECHO_T}${svndate:-None required}" >&6
18645 if test -n "$svndate"; then
18648 cat >>confdefs.h <<_ACEOF
18649 #define SVNDATE "$svndate"
18650 _ACEOF
18652 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18656 SVNDATE=$svndate
18660 # Check whether --with-denoise-level or --without-denoise-level was given.
18661 if test "${with_denoise_level+set}" = set; then
18662 withval="$with_denoise_level"
18666 echo "$as_me:$LINENO: checking denoising level" >&5
18667 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18668 if test ${with_denoise_level:-5} = yes; then
18669 with_denoise_level=5
18672 if test ${with_denoise_level:-5} = no; then
18673 with_denoise_level=0
18676 if test ${with_denoise_level:-5} -gt 4; then
18677 if test "${svndate:+set}" = "set"; then
18678 with_denoise_level=0
18679 else
18680 with_denoise_level=4
18685 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18686 echo "${ECHO_T}$with_denoise_level" >&6
18688 ac_config_commands="$ac_config_commands denoiser"
18694 if test x$WEB = xyes; then
18695 WEB_TRUE=
18696 WEB_FALSE='#'
18697 else
18698 WEB_TRUE='#'
18699 WEB_FALSE=
18704 if test x$ED2K = xyes; then
18705 ED2K_TRUE=
18706 ED2K_FALSE='#'
18707 else
18708 ED2K_TRUE='#'
18709 ED2K_FALSE=
18714 if test x$CAS = xyes; then
18715 CAS_TRUE=
18716 CAS_FALSE='#'
18717 else
18718 CAS_TRUE='#'
18719 CAS_FALSE=
18724 if test x$WXCAS = xyes; then
18725 WXCAS_TRUE=
18726 WXCAS_FALSE='#'
18727 else
18728 WXCAS_TRUE='#'
18729 WXCAS_FALSE=
18734 if test x$ALC = xyes; then
18735 ALC_TRUE=
18736 ALC_FALSE='#'
18737 else
18738 ALC_TRUE='#'
18739 ALC_FALSE=
18744 if test x$ALCC = xyes; then
18745 ALCC_TRUE=
18746 ALCC_FALSE='#'
18747 else
18748 ALCC_TRUE='#'
18749 ALCC_FALSE=
18754 if test x$AMULE_GUI = xyes; then
18755 AMULE_GUI_TRUE=
18756 AMULE_GUI_FALSE='#'
18757 else
18758 AMULE_GUI_TRUE='#'
18759 AMULE_GUI_FALSE=
18764 if test x$AMULE_DAEMON = xyes; then
18765 AMULE_DAEMON_TRUE=
18766 AMULE_DAEMON_FALSE='#'
18767 else
18768 AMULE_DAEMON_TRUE='#'
18769 AMULE_DAEMON_FALSE=
18774 if test x$AMULECMD = xyes; then
18775 COMPILE_CMD_TRUE=
18776 COMPILE_CMD_FALSE='#'
18777 else
18778 COMPILE_CMD_TRUE='#'
18779 COMPILE_CMD_FALSE=
18784 if test x$MONOLITHIC = xyes; then
18785 MONOLITHIC_TRUE=
18786 MONOLITHIC_FALSE='#'
18787 else
18788 MONOLITHIC_TRUE='#'
18789 MONOLITHIC_FALSE=
18794 if test x$XAS = xyes; then
18795 XAS_TRUE=
18796 XAS_FALSE='#'
18797 else
18798 XAS_TRUE='#'
18799 XAS_FALSE=
18804 if test x$ENABLE_UPNP = xyes; then
18805 ENABLE_UPNP_TRUE=
18806 ENABLE_UPNP_FALSE='#'
18807 else
18808 ENABLE_UPNP_TRUE='#'
18809 ENABLE_UPNP_FALSE=
18814 if test x$ENABLE_IP2COUNTRY = xyes; then
18815 ENABLE_IP2COUNTRY_TRUE=
18816 ENABLE_IP2COUNTRY_FALSE='#'
18817 else
18818 ENABLE_IP2COUNTRY_TRUE='#'
18819 ENABLE_IP2COUNTRY_FALSE=
18824 if test x$SYS = xwin32; then
18825 SYS_WIN32_TRUE=
18826 SYS_WIN32_FALSE='#'
18827 else
18828 SYS_WIN32_TRUE='#'
18829 SYS_WIN32_FALSE=
18834 if test x$SYS = xwin32 -a "$RC" != ":"; then
18835 NEED_RC_TRUE=
18836 NEED_RC_FALSE='#'
18837 else
18838 NEED_RC_TRUE='#'
18839 NEED_RC_FALSE=
18844 if test x$SYS = xdarwin; then
18845 NEED_CORESERVICES_TRUE=
18846 NEED_CORESERVICES_FALSE='#'
18847 else
18848 NEED_CORESERVICES_TRUE='#'
18849 NEED_CORESERVICES_FALSE=
18854 if test x$USE_NLS = xyes; then
18855 COMPILE_NLS_TRUE=
18856 COMPILE_NLS_FALSE='#'
18857 else
18858 COMPILE_NLS_TRUE='#'
18859 COMPILE_NLS_FALSE=
18864 if test x$HAVE_FLEX_EXTENDED = xyes; then
18865 GENERATE_FLEX_HEADER_TRUE=
18866 GENERATE_FLEX_HEADER_FALSE='#'
18867 else
18868 GENERATE_FLEX_HEADER_TRUE='#'
18869 GENERATE_FLEX_HEADER_FALSE=
18873 # Check for readline library
18874 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18876 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18877 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18878 if test "${vl_cv_lib_readline+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18882 ORIG_LIBS="$LIBS"
18883 for readline_lib in readline edit editline; do
18884 for termcap_lib in "" termcap curses ncurses; do
18885 if test -z "$termcap_lib"; then
18886 TRY_LIB="-l$readline_lib"
18887 else
18888 TRY_LIB="-l$readline_lib -l$termcap_lib"
18890 LIBS="$ORIG_LIBS $TRY_LIB"
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 /* Override any gcc2 internal prototype to avoid an error. */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 /* We use char because int might match the return type of a gcc2
18903 builtin and then its argument prototype would still apply. */
18904 char readline ();
18906 main ()
18908 readline ();
18910 return 0;
18912 _ACEOF
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -z "$ac_c_werror_flag"
18923 || test ! -s conftest.err'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 vl_cv_lib_readline="$TRY_LIB"
18936 else
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18941 rm -f conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18943 if test -n "$vl_cv_lib_readline"; then
18944 break
18946 done
18947 if test -n "$vl_cv_lib_readline"; then
18948 break
18950 done
18951 if test -z "$vl_cv_lib_readline"; then
18952 vl_cv_lib_readline="no"
18953 LIBS="$ORIG_LIBS"
18954 READLINE_LIBS=""
18955 else
18956 READLINE_LIBS="$vl_cv_lib_readline"
18960 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18961 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18963 if test "$vl_cv_lib_readline" != "no"; then
18965 cat >>confdefs.h <<\_ACEOF
18966 #define HAVE_LIBREADLINE 1
18967 _ACEOF
18971 for ac_header in readline.h readline/readline.h
18973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18975 echo "$as_me:$LINENO: checking for $ac_header" >&5
18976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18982 else
18983 # Is the header compilable?
18984 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18986 cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h. */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 $ac_includes_default
18993 #include <$ac_header>
18994 _ACEOF
18995 rm -f conftest.$ac_objext
18996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18997 (eval $ac_compile) 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_c_werror_flag"
19005 || test ! -s conftest.err'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest.$ac_objext'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_header_compiler=yes
19018 else
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_header_compiler=no
19024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19026 echo "${ECHO_T}$ac_header_compiler" >&6
19028 # Is the header present?
19029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <$ac_header>
19038 _ACEOF
19039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } >/dev/null; then
19047 if test -s conftest.err; then
19048 ac_cpp_err=$ac_c_preproc_warn_flag
19049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19050 else
19051 ac_cpp_err=
19053 else
19054 ac_cpp_err=yes
19056 if test -z "$ac_cpp_err"; then
19057 ac_header_preproc=yes
19058 else
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_header_preproc=no
19064 rm -f conftest.err conftest.$ac_ext
19065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19066 echo "${ECHO_T}$ac_header_preproc" >&6
19068 # So? What about this header?
19069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19070 yes:no: )
19071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19075 ac_header_preproc=yes
19077 no:yes:* )
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19091 cat <<\_ASBOX
19092 ## ------------------------------ ##
19093 ## Report this to admin@amule.org ##
19094 ## ------------------------------ ##
19095 _ASBOX
19097 sed "s/^/$as_me: WARNING: /" >&2
19099 esac
19100 echo "$as_me:$LINENO: checking for $ac_header" >&5
19101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105 eval "$as_ac_Header=\$ac_header_preproc"
19107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19112 cat >>confdefs.h <<_ACEOF
19113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19114 _ACEOF
19118 done
19120 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19121 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19122 if test "${vl_cv_lib_readline_history+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19126 vl_cv_lib_readline_history="no"
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h. */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19134 /* Override any gcc2 internal prototype to avoid an error. */
19135 #ifdef __cplusplus
19136 extern "C"
19137 #endif
19138 /* We use char because int might match the return type of a gcc2
19139 builtin and then its argument prototype would still apply. */
19140 char add_history ();
19142 main ()
19144 add_history ();
19146 return 0;
19148 _ACEOF
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>conftest.er1
19152 ac_status=$?
19153 grep -v '^ *+' conftest.er1 >conftest.err
19154 rm -f conftest.er1
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag"
19159 || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest$ac_exeext'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 vl_cv_lib_readline_history="yes"
19172 else
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19177 rm -f conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19181 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19182 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19183 if test "$vl_cv_lib_readline_history" = "yes"; then
19185 cat >>confdefs.h <<\_ACEOF
19186 #define HAVE_READLINE_HISTORY 1
19187 _ACEOF
19191 for ac_header in history.h readline/history.h
19193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19195 echo "$as_me:$LINENO: checking for $ac_header" >&5
19196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19202 else
19203 # Is the header compilable?
19204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 $ac_includes_default
19213 #include <$ac_header>
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest.$ac_objext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_header_compiler=yes
19238 else
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_header_compiler=no
19244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19246 echo "${ECHO_T}$ac_header_compiler" >&6
19248 # Is the header present?
19249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 #include <$ac_header>
19258 _ACEOF
19259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } >/dev/null; then
19267 if test -s conftest.err; then
19268 ac_cpp_err=$ac_c_preproc_warn_flag
19269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19270 else
19271 ac_cpp_err=
19273 else
19274 ac_cpp_err=yes
19276 if test -z "$ac_cpp_err"; then
19277 ac_header_preproc=yes
19278 else
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_header_preproc=no
19284 rm -f conftest.err conftest.$ac_ext
19285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19286 echo "${ECHO_T}$ac_header_preproc" >&6
19288 # So? What about this header?
19289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19290 yes:no: )
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19295 ac_header_preproc=yes
19297 no:yes:* )
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19311 cat <<\_ASBOX
19312 ## ------------------------------ ##
19313 ## Report this to admin@amule.org ##
19314 ## ------------------------------ ##
19315 _ASBOX
19317 sed "s/^/$as_me: WARNING: /" >&2
19319 esac
19320 echo "$as_me:$LINENO: checking for $ac_header" >&5
19321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325 eval "$as_ac_Header=\$ac_header_preproc"
19327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19332 cat >>confdefs.h <<_ACEOF
19333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19334 _ACEOF
19338 done
19343 LIBS="$ORIG_LIBS"
19347 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19350 # Check whether --enable-ccache or --disable-ccache was given.
19351 if test "${enable_ccache+set}" = set; then
19352 enableval="$enable_ccache"
19357 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19358 if test "${with_ccache_prefix+set}" = set; then
19359 withval="$with_ccache_prefix"
19363 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19364 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19365 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19366 echo "${ECHO_T}${enable_ccache:-no}" >&6
19368 if test ${enable_ccache:-no} = yes; then
19370 echo "$as_me:$LINENO: checking for ccache presence" >&5
19371 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19372 if test -z "$with_ccache_prefix"; then
19374 ccache_full=`which ccache`
19375 with_ccache_prefix=`dirname ${ccache_full}`
19379 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19381 echo "$as_me:$LINENO: result: yes" >&5
19382 echo "${ECHO_T}yes" >&6
19383 CC="$with_ccache_prefix/ccache $CC"
19384 CXX="$with_ccache_prefix/ccache $CXX"
19385 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19387 else
19389 enable_ccache=no
19390 echo "$as_me:$LINENO: result: no" >&5
19391 echo "${ECHO_T}no" >&6
19400 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 src/webserver/php-default/Makefile src/webserver/chicane/Makefile src/webserver/litoral/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19402 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19404 if test x$SYS = xwin32; then
19405 ac_config_files="$ac_config_files version.rc"
19409 cat >confcache <<\_ACEOF
19410 # This file is a shell script that caches the results of configure
19411 # tests run on this system so they can be shared between configure
19412 # scripts and configure runs, see configure's option --config-cache.
19413 # It is not useful on other systems. If it contains results you don't
19414 # want to keep, you may remove or edit it.
19416 # config.status only pays attention to the cache file if you give it
19417 # the --recheck option to rerun configure.
19419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19421 # following values.
19423 _ACEOF
19425 # The following way of writing the cache mishandles newlines in values,
19426 # but we know of no workaround that is simple, portable, and efficient.
19427 # So, don't put newlines in cache variables' values.
19428 # Ultrix sh set writes to stderr and can't be redirected directly,
19429 # and sets the high bit in the cache file unless we assign to the vars.
19431 (set) 2>&1 |
19432 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19433 *ac_space=\ *)
19434 # `set' does not quote correctly, so add quotes (double-quote
19435 # substitution turns \\\\ into \\, and sed turns \\ into \).
19436 sed -n \
19437 "s/'/'\\\\''/g;
19438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19441 # `set' quotes correctly as required by POSIX, so do not add quotes.
19442 sed -n \
19443 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19445 esac;
19447 sed '
19448 t clear
19449 : clear
19450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19451 t end
19452 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19453 : end' >>confcache
19454 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19455 if test -w $cache_file; then
19456 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19457 cat confcache >$cache_file
19458 else
19459 echo "not updating unwritable cache $cache_file"
19462 rm -f confcache
19464 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19465 # Let make expand exec_prefix.
19466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19470 # trailing colons and then remove the whole line if VPATH becomes empty
19471 # (actually we leave an empty line to preserve line numbers).
19472 if test "x$srcdir" = x.; then
19473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19474 s/:*\$(srcdir):*/:/;
19475 s/:*\${srcdir}:*/:/;
19476 s/:*@srcdir@:*/:/;
19477 s/^\([^=]*=[ ]*\):*/\1/;
19478 s/:*$//;
19479 s/^[^=]*=[ ]*$//;
19483 DEFS=-DHAVE_CONFIG_H
19485 ac_libobjs=
19486 ac_ltlibobjs=
19487 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19488 # 1. Remove the extension, and $U if already installed.
19489 ac_i=`echo "$ac_i" |
19490 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19491 # 2. Add them.
19492 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19493 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19494 done
19495 LIBOBJS=$ac_libobjs
19497 LTLIBOBJS=$ac_ltlibobjs
19500 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19501 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19502 Usually this means the macro was only invoked conditionally." >&5
19503 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19504 Usually this means the macro was only invoked conditionally." >&2;}
19505 { (exit 1); exit 1; }; }
19507 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19508 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19509 Usually this means the macro was only invoked conditionally." >&5
19510 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19511 Usually this means the macro was only invoked conditionally." >&2;}
19512 { (exit 1); exit 1; }; }
19514 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19515 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19516 Usually this means the macro was only invoked conditionally." >&5
19517 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19518 Usually this means the macro was only invoked conditionally." >&2;}
19519 { (exit 1); exit 1; }; }
19521 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19522 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19523 Usually this means the macro was only invoked conditionally." >&5
19524 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19525 Usually this means the macro was only invoked conditionally." >&2;}
19526 { (exit 1); exit 1; }; }
19528 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19529 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19530 Usually this means the macro was only invoked conditionally." >&5
19531 echo "$as_me: error: conditional \"WEB\" was never defined.
19532 Usually this means the macro was only invoked conditionally." >&2;}
19533 { (exit 1); exit 1; }; }
19535 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19536 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19537 Usually this means the macro was only invoked conditionally." >&5
19538 echo "$as_me: error: conditional \"ED2K\" was never defined.
19539 Usually this means the macro was only invoked conditionally." >&2;}
19540 { (exit 1); exit 1; }; }
19542 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19543 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19544 Usually this means the macro was only invoked conditionally." >&5
19545 echo "$as_me: error: conditional \"CAS\" was never defined.
19546 Usually this means the macro was only invoked conditionally." >&2;}
19547 { (exit 1); exit 1; }; }
19549 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19550 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19551 Usually this means the macro was only invoked conditionally." >&5
19552 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19553 Usually this means the macro was only invoked conditionally." >&2;}
19554 { (exit 1); exit 1; }; }
19556 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19557 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19558 Usually this means the macro was only invoked conditionally." >&5
19559 echo "$as_me: error: conditional \"ALC\" was never defined.
19560 Usually this means the macro was only invoked conditionally." >&2;}
19561 { (exit 1); exit 1; }; }
19563 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19564 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19565 Usually this means the macro was only invoked conditionally." >&5
19566 echo "$as_me: error: conditional \"ALCC\" was never defined.
19567 Usually this means the macro was only invoked conditionally." >&2;}
19568 { (exit 1); exit 1; }; }
19570 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19571 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19572 Usually this means the macro was only invoked conditionally." >&5
19573 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19574 Usually this means the macro was only invoked conditionally." >&2;}
19575 { (exit 1); exit 1; }; }
19577 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19578 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19579 Usually this means the macro was only invoked conditionally." >&5
19580 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19581 Usually this means the macro was only invoked conditionally." >&2;}
19582 { (exit 1); exit 1; }; }
19584 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19585 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19586 Usually this means the macro was only invoked conditionally." >&5
19587 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19588 Usually this means the macro was only invoked conditionally." >&2;}
19589 { (exit 1); exit 1; }; }
19591 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19592 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19593 Usually this means the macro was only invoked conditionally." >&5
19594 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19595 Usually this means the macro was only invoked conditionally." >&2;}
19596 { (exit 1); exit 1; }; }
19598 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19599 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19600 Usually this means the macro was only invoked conditionally." >&5
19601 echo "$as_me: error: conditional \"XAS\" was never defined.
19602 Usually this means the macro was only invoked conditionally." >&2;}
19603 { (exit 1); exit 1; }; }
19605 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19606 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19607 Usually this means the macro was only invoked conditionally." >&5
19608 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19609 Usually this means the macro was only invoked conditionally." >&2;}
19610 { (exit 1); exit 1; }; }
19612 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19613 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19614 Usually this means the macro was only invoked conditionally." >&5
19615 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19616 Usually this means the macro was only invoked conditionally." >&2;}
19617 { (exit 1); exit 1; }; }
19619 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19620 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19621 Usually this means the macro was only invoked conditionally." >&5
19622 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19623 Usually this means the macro was only invoked conditionally." >&2;}
19624 { (exit 1); exit 1; }; }
19626 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19627 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19628 Usually this means the macro was only invoked conditionally." >&5
19629 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19630 Usually this means the macro was only invoked conditionally." >&2;}
19631 { (exit 1); exit 1; }; }
19633 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19634 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&5
19636 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&2;}
19638 { (exit 1); exit 1; }; }
19640 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19641 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19642 Usually this means the macro was only invoked conditionally." >&5
19643 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19644 Usually this means the macro was only invoked conditionally." >&2;}
19645 { (exit 1); exit 1; }; }
19647 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19648 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19649 Usually this means the macro was only invoked conditionally." >&5
19650 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19651 Usually this means the macro was only invoked conditionally." >&2;}
19652 { (exit 1); exit 1; }; }
19655 : ${CONFIG_STATUS=./config.status}
19656 ac_clean_files_save=$ac_clean_files
19657 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19658 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19659 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19660 cat >$CONFIG_STATUS <<_ACEOF
19661 #! $SHELL
19662 # Generated by $as_me.
19663 # Run this file to recreate the current configuration.
19664 # Compiler output produced by configure, useful for debugging
19665 # configure, is in config.log if it exists.
19667 debug=false
19668 ac_cs_recheck=false
19669 ac_cs_silent=false
19670 SHELL=\${CONFIG_SHELL-$SHELL}
19671 _ACEOF
19673 cat >>$CONFIG_STATUS <<\_ACEOF
19674 ## --------------------- ##
19675 ## M4sh Initialization. ##
19676 ## --------------------- ##
19678 # Be Bourne compatible
19679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19680 emulate sh
19681 NULLCMD=:
19682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19683 # is contrary to our usage. Disable this feature.
19684 alias -g '${1+"$@"}'='"$@"'
19685 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19686 set -o posix
19688 DUALCASE=1; export DUALCASE # for MKS sh
19690 # Support unset when possible.
19691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19692 as_unset=unset
19693 else
19694 as_unset=false
19698 # Work around bugs in pre-3.0 UWIN ksh.
19699 $as_unset ENV MAIL MAILPATH
19700 PS1='$ '
19701 PS2='> '
19702 PS4='+ '
19704 # NLS nuisances.
19705 for as_var in \
19706 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19707 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19708 LC_TELEPHONE LC_TIME
19710 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19711 eval $as_var=C; export $as_var
19712 else
19713 $as_unset $as_var
19715 done
19717 # Required to use basename.
19718 if expr a : '\(a\)' >/dev/null 2>&1; then
19719 as_expr=expr
19720 else
19721 as_expr=false
19724 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19725 as_basename=basename
19726 else
19727 as_basename=false
19731 # Name of the executable.
19732 as_me=`$as_basename "$0" ||
19733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19734 X"$0" : 'X\(//\)$' \| \
19735 X"$0" : 'X\(/\)$' \| \
19736 . : '\(.\)' 2>/dev/null ||
19737 echo X/"$0" |
19738 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19739 /^X\/\(\/\/\)$/{ s//\1/; q; }
19740 /^X\/\(\/\).*/{ s//\1/; q; }
19741 s/.*/./; q'`
19744 # PATH needs CR, and LINENO needs CR and PATH.
19745 # Avoid depending upon Character Ranges.
19746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19749 as_cr_digits='0123456789'
19750 as_cr_alnum=$as_cr_Letters$as_cr_digits
19752 # The user is always right.
19753 if test "${PATH_SEPARATOR+set}" != set; then
19754 echo "#! /bin/sh" >conf$$.sh
19755 echo "exit 0" >>conf$$.sh
19756 chmod +x conf$$.sh
19757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19758 PATH_SEPARATOR=';'
19759 else
19760 PATH_SEPARATOR=:
19762 rm -f conf$$.sh
19766 as_lineno_1=$LINENO
19767 as_lineno_2=$LINENO
19768 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19769 test "x$as_lineno_1" != "x$as_lineno_2" &&
19770 test "x$as_lineno_3" = "x$as_lineno_2" || {
19771 # Find who we are. Look in the path if we contain no path at all
19772 # relative or not.
19773 case $0 in
19774 *[\\/]* ) as_myself=$0 ;;
19775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19776 for as_dir in $PATH
19778 IFS=$as_save_IFS
19779 test -z "$as_dir" && as_dir=.
19780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19781 done
19784 esac
19785 # We did not find ourselves, most probably we were run as `sh COMMAND'
19786 # in which case we are not to be found in the path.
19787 if test "x$as_myself" = x; then
19788 as_myself=$0
19790 if test ! -f "$as_myself"; then
19791 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19792 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19793 { (exit 1); exit 1; }; }
19795 case $CONFIG_SHELL in
19797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19798 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19800 IFS=$as_save_IFS
19801 test -z "$as_dir" && as_dir=.
19802 for as_base in sh bash ksh sh5; do
19803 case $as_dir in
19805 if ("$as_dir/$as_base" -c '
19806 as_lineno_1=$LINENO
19807 as_lineno_2=$LINENO
19808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19809 test "x$as_lineno_1" != "x$as_lineno_2" &&
19810 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19811 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19812 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19813 CONFIG_SHELL=$as_dir/$as_base
19814 export CONFIG_SHELL
19815 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19816 fi;;
19817 esac
19818 done
19819 done
19821 esac
19823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19824 # uniformly replaced by the line number. The first 'sed' inserts a
19825 # line-number line before each line; the second 'sed' does the real
19826 # work. The second script uses 'N' to pair each line-number line
19827 # with the numbered line, and appends trailing '-' during
19828 # substitution so that $LINENO is not a special case at line end.
19829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19830 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19831 sed '=' <$as_myself |
19832 sed '
19834 s,$,-,
19835 : loop
19836 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19837 t loop
19838 s,-$,,
19839 s,^['$as_cr_digits']*\n,,
19840 ' >$as_me.lineno &&
19841 chmod +x $as_me.lineno ||
19842 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19843 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19844 { (exit 1); exit 1; }; }
19846 # Don't try to exec as it changes $[0], causing all sort of problems
19847 # (the dirname of $[0] is not the place where we might find the
19848 # original and so on. Autoconf is especially sensible to this).
19849 . ./$as_me.lineno
19850 # Exit status is that of the last command.
19851 exit
19855 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19856 *c*,-n*) ECHO_N= ECHO_C='
19857 ' ECHO_T=' ' ;;
19858 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19859 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19860 esac
19862 if expr a : '\(a\)' >/dev/null 2>&1; then
19863 as_expr=expr
19864 else
19865 as_expr=false
19868 rm -f conf$$ conf$$.exe conf$$.file
19869 echo >conf$$.file
19870 if ln -s conf$$.file conf$$ 2>/dev/null; then
19871 # We could just check for DJGPP; but this test a) works b) is more generic
19872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19873 if test -f conf$$.exe; then
19874 # Don't use ln at all; we don't have any links
19875 as_ln_s='cp -p'
19876 else
19877 as_ln_s='ln -s'
19879 elif ln conf$$.file conf$$ 2>/dev/null; then
19880 as_ln_s=ln
19881 else
19882 as_ln_s='cp -p'
19884 rm -f conf$$ conf$$.exe conf$$.file
19886 if mkdir -p . 2>/dev/null; then
19887 as_mkdir_p=:
19888 else
19889 test -d ./-p && rmdir ./-p
19890 as_mkdir_p=false
19893 as_executable_p="test -f"
19895 # Sed expression to map a string onto a valid CPP name.
19896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19898 # Sed expression to map a string onto a valid variable name.
19899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19902 # IFS
19903 # We need space, tab and new line, in precisely that order.
19904 as_nl='
19906 IFS=" $as_nl"
19908 # CDPATH.
19909 $as_unset CDPATH
19911 exec 6>&1
19913 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19914 # report actual input values of CONFIG_FILES etc. instead of their
19915 # values after options handling. Logging --version etc. is OK.
19916 exec 5>>config.log
19918 echo
19919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19920 ## Running $as_me. ##
19921 _ASBOX
19922 } >&5
19923 cat >&5 <<_CSEOF
19925 This file was extended by aMule $as_me SVN, which was
19926 generated by GNU Autoconf 2.59. Invocation command line was
19928 CONFIG_FILES = $CONFIG_FILES
19929 CONFIG_HEADERS = $CONFIG_HEADERS
19930 CONFIG_LINKS = $CONFIG_LINKS
19931 CONFIG_COMMANDS = $CONFIG_COMMANDS
19932 $ $0 $@
19934 _CSEOF
19935 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19936 echo >&5
19937 _ACEOF
19939 # Files that config.status was made for.
19940 if test -n "$ac_config_files"; then
19941 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19944 if test -n "$ac_config_headers"; then
19945 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19948 if test -n "$ac_config_links"; then
19949 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19952 if test -n "$ac_config_commands"; then
19953 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19956 cat >>$CONFIG_STATUS <<\_ACEOF
19958 ac_cs_usage="\
19959 \`$as_me' instantiates files from templates according to the
19960 current configuration.
19962 Usage: $0 [OPTIONS] [FILE]...
19964 -h, --help print this help, then exit
19965 -V, --version print version number, then exit
19966 -q, --quiet do not print progress messages
19967 -d, --debug don't remove temporary files
19968 --recheck update $as_me by reconfiguring in the same conditions
19969 --file=FILE[:TEMPLATE]
19970 instantiate the configuration file FILE
19971 --header=FILE[:TEMPLATE]
19972 instantiate the configuration header FILE
19974 Configuration files:
19975 $config_files
19977 Configuration headers:
19978 $config_headers
19980 Configuration commands:
19981 $config_commands
19983 Report bugs to <bug-autoconf@gnu.org>."
19984 _ACEOF
19986 cat >>$CONFIG_STATUS <<_ACEOF
19987 ac_cs_version="\\
19988 aMule config.status SVN
19989 configured by $0, generated by GNU Autoconf 2.59,
19990 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19992 Copyright (C) 2003 Free Software Foundation, Inc.
19993 This config.status script is free software; the Free Software Foundation
19994 gives unlimited permission to copy, distribute and modify it."
19995 srcdir=$srcdir
19996 INSTALL="$INSTALL"
19997 _ACEOF
19999 cat >>$CONFIG_STATUS <<\_ACEOF
20000 # If no file are specified by the user, then we need to provide default
20001 # value. By we need to know if files were specified by the user.
20002 ac_need_defaults=:
20003 while test $# != 0
20005 case $1 in
20006 --*=*)
20007 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20008 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20009 ac_shift=:
20012 ac_option=$1
20013 ac_optarg=$2
20014 ac_shift=shift
20016 *) # This is not an option, so the user has probably given explicit
20017 # arguments.
20018 ac_option=$1
20019 ac_need_defaults=false;;
20020 esac
20022 case $ac_option in
20023 # Handling of the options.
20024 _ACEOF
20025 cat >>$CONFIG_STATUS <<\_ACEOF
20026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20027 ac_cs_recheck=: ;;
20028 --version | --vers* | -V )
20029 echo "$ac_cs_version"; exit 0 ;;
20030 --he | --h)
20031 # Conflict between --help and --header
20032 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20033 Try \`$0 --help' for more information." >&5
20034 echo "$as_me: error: ambiguous option: $1
20035 Try \`$0 --help' for more information." >&2;}
20036 { (exit 1); exit 1; }; };;
20037 --help | --hel | -h )
20038 echo "$ac_cs_usage"; exit 0 ;;
20039 --debug | --d* | -d )
20040 debug=: ;;
20041 --file | --fil | --fi | --f )
20042 $ac_shift
20043 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20044 ac_need_defaults=false;;
20045 --header | --heade | --head | --hea )
20046 $ac_shift
20047 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20048 ac_need_defaults=false;;
20049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20051 ac_cs_silent=: ;;
20053 # This is an error.
20054 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20055 Try \`$0 --help' for more information." >&5
20056 echo "$as_me: error: unrecognized option: $1
20057 Try \`$0 --help' for more information." >&2;}
20058 { (exit 1); exit 1; }; } ;;
20060 *) ac_config_targets="$ac_config_targets $1" ;;
20062 esac
20063 shift
20064 done
20066 ac_configure_extra_args=
20068 if $ac_cs_silent; then
20069 exec 6>/dev/null
20070 ac_configure_extra_args="$ac_configure_extra_args --silent"
20073 _ACEOF
20074 cat >>$CONFIG_STATUS <<_ACEOF
20075 if \$ac_cs_recheck; then
20076 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20077 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20080 _ACEOF
20082 cat >>$CONFIG_STATUS <<_ACEOF
20084 # INIT-COMMANDS section.
20087 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20088 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20089 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20090 # from automake.
20091 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20092 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20093 LINGUAS="${LINGUAS-%UNSET%}"
20095 denoiserlevel=$with_denoise_level
20097 _ACEOF
20101 cat >>$CONFIG_STATUS <<\_ACEOF
20102 for ac_config_target in $ac_config_targets
20104 case "$ac_config_target" in
20105 # Handling of arguments.
20106 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20107 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20108 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20109 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20110 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20111 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20112 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20113 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20114 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20115 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20116 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20117 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20118 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20119 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20120 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20121 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20122 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20123 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20124 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20125 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20126 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20127 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20128 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20129 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20130 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20131 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20132 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20133 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20134 "src/webserver/php-default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
20135 "src/webserver/chicane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
20136 "src/webserver/litoral/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
20137 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20138 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20139 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20140 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20141 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20142 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20143 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20144 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20145 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20146 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20148 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20149 { (exit 1); exit 1; }; };;
20150 esac
20151 done
20153 # If the user did not use the arguments to specify the items to instantiate,
20154 # then the envvar interface is used. Set only those that are not.
20155 # We use the long form for the default assignment because of an extremely
20156 # bizarre bug on SunOS 4.1.3.
20157 if $ac_need_defaults; then
20158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20160 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20163 # Have a temporary directory for convenience. Make it in the build tree
20164 # simply because there is no reason to put it here, and in addition,
20165 # creating and moving files from /tmp can sometimes cause problems.
20166 # Create a temporary directory, and hook for its removal unless debugging.
20167 $debug ||
20169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20170 trap '{ (exit 1); exit 1; }' 1 2 13 15
20173 # Create a (secure) tmp directory for tmp files.
20176 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20177 test -n "$tmp" && test -d "$tmp"
20178 } ||
20180 tmp=./confstat$$-$RANDOM
20181 (umask 077 && mkdir $tmp)
20182 } ||
20184 echo "$me: cannot create a temporary directory in ." >&2
20185 { (exit 1); exit 1; }
20188 _ACEOF
20190 cat >>$CONFIG_STATUS <<_ACEOF
20193 # CONFIG_FILES section.
20196 # No need to generate the scripts if there are no CONFIG_FILES.
20197 # This happens for instance when ./config.status config.h
20198 if test -n "\$CONFIG_FILES"; then
20199 # Protect against being on the right side of a sed subst in config.status.
20200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20202 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20203 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20204 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20205 s,@SHELL@,$SHELL,;t t
20206 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20207 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20208 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20209 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20210 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20211 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20212 s,@exec_prefix@,$exec_prefix,;t t
20213 s,@prefix@,$prefix,;t t
20214 s,@program_transform_name@,$program_transform_name,;t t
20215 s,@bindir@,$bindir,;t t
20216 s,@sbindir@,$sbindir,;t t
20217 s,@libexecdir@,$libexecdir,;t t
20218 s,@datadir@,$datadir,;t t
20219 s,@sysconfdir@,$sysconfdir,;t t
20220 s,@sharedstatedir@,$sharedstatedir,;t t
20221 s,@localstatedir@,$localstatedir,;t t
20222 s,@libdir@,$libdir,;t t
20223 s,@includedir@,$includedir,;t t
20224 s,@oldincludedir@,$oldincludedir,;t t
20225 s,@infodir@,$infodir,;t t
20226 s,@mandir@,$mandir,;t t
20227 s,@build_alias@,$build_alias,;t t
20228 s,@host_alias@,$host_alias,;t t
20229 s,@target_alias@,$target_alias,;t t
20230 s,@DEFS@,$DEFS,;t t
20231 s,@ECHO_C@,$ECHO_C,;t t
20232 s,@ECHO_N@,$ECHO_N,;t t
20233 s,@ECHO_T@,$ECHO_T,;t t
20234 s,@LIBS@,$LIBS,;t t
20235 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20236 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20237 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20238 s,@CYGPATH_W@,$CYGPATH_W,;t t
20239 s,@PACKAGE@,$PACKAGE,;t t
20240 s,@VERSION@,$VERSION,;t t
20241 s,@ACLOCAL@,$ACLOCAL,;t t
20242 s,@AUTOCONF@,$AUTOCONF,;t t
20243 s,@AUTOMAKE@,$AUTOMAKE,;t t
20244 s,@AUTOHEADER@,$AUTOHEADER,;t t
20245 s,@MAKEINFO@,$MAKEINFO,;t t
20246 s,@install_sh@,$install_sh,;t t
20247 s,@STRIP@,$STRIP,;t t
20248 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20249 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20250 s,@mkdir_p@,$mkdir_p,;t t
20251 s,@AWK@,$AWK,;t t
20252 s,@SET_MAKE@,$SET_MAKE,;t t
20253 s,@am__leading_dot@,$am__leading_dot,;t t
20254 s,@AMTAR@,$AMTAR,;t t
20255 s,@am__tar@,$am__tar,;t t
20256 s,@am__untar@,$am__untar,;t t
20257 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20258 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20259 s,@MAINT@,$MAINT,;t t
20260 s,@build@,$build,;t t
20261 s,@build_cpu@,$build_cpu,;t t
20262 s,@build_vendor@,$build_vendor,;t t
20263 s,@build_os@,$build_os,;t t
20264 s,@host@,$host,;t t
20265 s,@host_cpu@,$host_cpu,;t t
20266 s,@host_vendor@,$host_vendor,;t t
20267 s,@host_os@,$host_os,;t t
20268 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20269 s,@X11LIBS@,$X11LIBS,;t t
20270 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20271 s,@MULECFLAGS@,$MULECFLAGS,;t t
20272 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20273 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20274 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20275 s,@CXX@,$CXX,;t t
20276 s,@CXXFLAGS@,$CXXFLAGS,;t t
20277 s,@LDFLAGS@,$LDFLAGS,;t t
20278 s,@CPPFLAGS@,$CPPFLAGS,;t t
20279 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20280 s,@EXEEXT@,$EXEEXT,;t t
20281 s,@OBJEXT@,$OBJEXT,;t t
20282 s,@DEPDIR@,$DEPDIR,;t t
20283 s,@am__include@,$am__include,;t t
20284 s,@am__quote@,$am__quote,;t t
20285 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20286 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20287 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20288 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20289 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20290 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20291 s,@CXXCPP@,$CXXCPP,;t t
20292 s,@CC@,$CC,;t t
20293 s,@CFLAGS@,$CFLAGS,;t t
20294 s,@ac_ct_CC@,$ac_ct_CC,;t t
20295 s,@CCDEPMODE@,$CCDEPMODE,;t t
20296 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20297 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20298 s,@CPP@,$CPP,;t t
20299 s,@BUILD_CC@,$BUILD_CC,;t t
20300 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20301 s,@EXEEXT@,$EXEEXT,;t t
20302 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20303 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20304 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20305 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20306 s,@EGREP@,$EGREP,;t t
20307 s,@LEX@,$LEX,;t t
20308 s,@LEXLIB@,$LEXLIB,;t t
20309 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20310 s,@RANLIB@,$RANLIB,;t t
20311 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20312 s,@YACC@,$YACC,;t t
20313 s,@AR@,$AR,;t t
20314 s,@ac_ct_AR@,$ac_ct_AR,;t t
20315 s,@LD@,$LD,;t t
20316 s,@ac_ct_LD@,$ac_ct_LD,;t t
20317 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20318 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20319 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20320 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20321 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20322 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20323 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20324 s,@CAS_DEFS@,$CAS_DEFS,;t t
20325 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20326 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20327 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20328 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20329 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20330 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20331 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20332 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20333 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20334 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20335 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20336 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20337 s,@WX_LIBS@,$WX_LIBS,;t t
20338 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20339 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20340 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20341 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20342 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20343 s,@WX_UNICODE@,$WX_UNICODE,;t t
20344 s,@WX_DEBUG@,$WX_DEBUG,;t t
20345 s,@WX_SHARED@,$WX_SHARED,;t t
20346 s,@WX_PORT@,$WX_PORT,;t t
20347 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20348 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20349 s,@RC@,$RC,;t t
20350 s,@RCFLAGS@,$RCFLAGS,;t t
20351 s,@ac_ct_RC@,$ac_ct_RC,;t t
20352 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20353 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20354 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20355 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20356 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20357 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20358 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20359 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20360 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20361 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20362 s,@BFD_LIBS@,$BFD_LIBS,;t t
20363 s,@ALLOCA@,$ALLOCA,;t t
20364 s,@LIBOBJS@,$LIBOBJS,;t t
20365 s,@POW_LIB@,$POW_LIB,;t t
20366 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20367 s,@MSGFMT@,$MSGFMT,;t t
20368 s,@GMSGFMT@,$GMSGFMT,;t t
20369 s,@XGETTEXT@,$XGETTEXT,;t t
20370 s,@MSGMERGE@,$MSGMERGE,;t t
20371 s,@GLIBC21@,$GLIBC21,;t t
20372 s,@LIBICONV@,$LIBICONV,;t t
20373 s,@LTLIBICONV@,$LTLIBICONV,;t t
20374 s,@INTLBISON@,$INTLBISON,;t t
20375 s,@USE_NLS@,$USE_NLS,;t t
20376 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20377 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20378 s,@CATOBJEXT@,$CATOBJEXT,;t t
20379 s,@INTLOBJS@,$INTLOBJS,;t t
20380 s,@DATADIRNAME@,$DATADIRNAME,;t t
20381 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20382 s,@GENCAT@,$GENCAT,;t t
20383 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20384 s,@INTLLIBS@,$INTLLIBS,;t t
20385 s,@LIBINTL@,$LIBINTL,;t t
20386 s,@LTLIBINTL@,$LTLIBINTL,;t t
20387 s,@POSUB@,$POSUB,;t t
20388 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20389 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20390 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20391 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20392 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20393 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20394 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20395 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20396 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20397 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20398 s,@INCINTL@,$INCINTL,;t t
20399 s,@docdir@,$docdir,;t t
20400 s,@SVNDATE@,$SVNDATE,;t t
20401 s,@WEB_TRUE@,$WEB_TRUE,;t t
20402 s,@WEB_FALSE@,$WEB_FALSE,;t t
20403 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20404 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20405 s,@CAS_TRUE@,$CAS_TRUE,;t t
20406 s,@CAS_FALSE@,$CAS_FALSE,;t t
20407 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20408 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20409 s,@ALC_TRUE@,$ALC_TRUE,;t t
20410 s,@ALC_FALSE@,$ALC_FALSE,;t t
20411 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20412 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20413 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20414 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20415 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20416 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20417 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20418 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20419 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20420 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20421 s,@XAS_TRUE@,$XAS_TRUE,;t t
20422 s,@XAS_FALSE@,$XAS_FALSE,;t t
20423 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20424 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20425 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20426 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20427 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20428 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20429 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20430 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20431 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20432 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20433 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20434 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20435 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20436 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20437 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20438 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20439 CEOF
20441 _ACEOF
20443 cat >>$CONFIG_STATUS <<\_ACEOF
20444 # Split the substitutions into bite-sized pieces for seds with
20445 # small command number limits, like on Digital OSF/1 and HP-UX.
20446 ac_max_sed_lines=48
20447 ac_sed_frag=1 # Number of current file.
20448 ac_beg=1 # First line for current file.
20449 ac_end=$ac_max_sed_lines # Line after last line for current file.
20450 ac_more_lines=:
20451 ac_sed_cmds=
20452 while $ac_more_lines; do
20453 if test $ac_beg -gt 1; then
20454 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20455 else
20456 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20458 if test ! -s $tmp/subs.frag; then
20459 ac_more_lines=false
20460 else
20461 # The purpose of the label and of the branching condition is to
20462 # speed up the sed processing (if there are no `@' at all, there
20463 # is no need to browse any of the substitutions).
20464 # These are the two extra sed commands mentioned above.
20465 (echo ':t
20466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20467 if test -z "$ac_sed_cmds"; then
20468 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20469 else
20470 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20472 ac_sed_frag=`expr $ac_sed_frag + 1`
20473 ac_beg=$ac_end
20474 ac_end=`expr $ac_end + $ac_max_sed_lines`
20476 done
20477 if test -z "$ac_sed_cmds"; then
20478 ac_sed_cmds=cat
20480 fi # test -n "$CONFIG_FILES"
20482 _ACEOF
20483 cat >>$CONFIG_STATUS <<\_ACEOF
20484 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20486 case $ac_file in
20487 - | *:- | *:-:* ) # input from stdin
20488 cat >$tmp/stdin
20489 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20491 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20493 * ) ac_file_in=$ac_file.in ;;
20494 esac
20496 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20497 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20499 X"$ac_file" : 'X\(//\)[^/]' \| \
20500 X"$ac_file" : 'X\(//\)$' \| \
20501 X"$ac_file" : 'X\(/\)' \| \
20502 . : '\(.\)' 2>/dev/null ||
20503 echo X"$ac_file" |
20504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20506 /^X\(\/\/\)$/{ s//\1/; q; }
20507 /^X\(\/\).*/{ s//\1/; q; }
20508 s/.*/./; q'`
20509 { if $as_mkdir_p; then
20510 mkdir -p "$ac_dir"
20511 else
20512 as_dir="$ac_dir"
20513 as_dirs=
20514 while test ! -d "$as_dir"; do
20515 as_dirs="$as_dir $as_dirs"
20516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20518 X"$as_dir" : 'X\(//\)[^/]' \| \
20519 X"$as_dir" : 'X\(//\)$' \| \
20520 X"$as_dir" : 'X\(/\)' \| \
20521 . : '\(.\)' 2>/dev/null ||
20522 echo X"$as_dir" |
20523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20525 /^X\(\/\/\)$/{ s//\1/; q; }
20526 /^X\(\/\).*/{ s//\1/; q; }
20527 s/.*/./; q'`
20528 done
20529 test ! -n "$as_dirs" || mkdir $as_dirs
20530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20531 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20532 { (exit 1); exit 1; }; }; }
20534 ac_builddir=.
20536 if test "$ac_dir" != .; then
20537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20538 # A "../" for each directory in $ac_dir_suffix.
20539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20540 else
20541 ac_dir_suffix= ac_top_builddir=
20544 case $srcdir in
20545 .) # No --srcdir option. We are building in place.
20546 ac_srcdir=.
20547 if test -z "$ac_top_builddir"; then
20548 ac_top_srcdir=.
20549 else
20550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20551 fi ;;
20552 [\\/]* | ?:[\\/]* ) # Absolute path.
20553 ac_srcdir=$srcdir$ac_dir_suffix;
20554 ac_top_srcdir=$srcdir ;;
20555 *) # Relative path.
20556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20557 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20558 esac
20560 # Do not use `cd foo && pwd` to compute absolute paths, because
20561 # the directories may not exist.
20562 case `pwd` in
20563 .) ac_abs_builddir="$ac_dir";;
20565 case "$ac_dir" in
20566 .) ac_abs_builddir=`pwd`;;
20567 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20568 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20569 esac;;
20570 esac
20571 case $ac_abs_builddir in
20572 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20574 case ${ac_top_builddir}. in
20575 .) ac_abs_top_builddir=$ac_abs_builddir;;
20576 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20577 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20578 esac;;
20579 esac
20580 case $ac_abs_builddir in
20581 .) ac_abs_srcdir=$ac_srcdir;;
20583 case $ac_srcdir in
20584 .) ac_abs_srcdir=$ac_abs_builddir;;
20585 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20586 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20587 esac;;
20588 esac
20589 case $ac_abs_builddir in
20590 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20592 case $ac_top_srcdir in
20593 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20594 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20595 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20596 esac;;
20597 esac
20600 case $INSTALL in
20601 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20602 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20603 esac
20605 if test x"$ac_file" != x-; then
20606 { echo "$as_me:$LINENO: creating $ac_file" >&5
20607 echo "$as_me: creating $ac_file" >&6;}
20608 rm -f "$ac_file"
20610 # Let's still pretend it is `configure' which instantiates (i.e., don't
20611 # use $as_me), people would be surprised to read:
20612 # /* config.h. Generated by config.status. */
20613 if test x"$ac_file" = x-; then
20614 configure_input=
20615 else
20616 configure_input="$ac_file. "
20618 configure_input=$configure_input"Generated from `echo $ac_file_in |
20619 sed 's,.*/,,'` by configure."
20621 # First look for the input files in the build tree, otherwise in the
20622 # src tree.
20623 ac_file_inputs=`IFS=:
20624 for f in $ac_file_in; do
20625 case $f in
20626 -) echo $tmp/stdin ;;
20627 [\\/$]*)
20628 # Absolute (can't be DOS-style, as IFS=:)
20629 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20630 echo "$as_me: error: cannot find input file: $f" >&2;}
20631 { (exit 1); exit 1; }; }
20632 echo "$f";;
20633 *) # Relative
20634 if test -f "$f"; then
20635 # Build tree
20636 echo "$f"
20637 elif test -f "$srcdir/$f"; then
20638 # Source tree
20639 echo "$srcdir/$f"
20640 else
20641 # /dev/null tree
20642 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20643 echo "$as_me: error: cannot find input file: $f" >&2;}
20644 { (exit 1); exit 1; }; }
20645 fi;;
20646 esac
20647 done` || { (exit 1); exit 1; }
20648 _ACEOF
20649 cat >>$CONFIG_STATUS <<_ACEOF
20650 sed "$ac_vpsub
20651 $extrasub
20652 _ACEOF
20653 cat >>$CONFIG_STATUS <<\_ACEOF
20655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20656 s,@configure_input@,$configure_input,;t t
20657 s,@srcdir@,$ac_srcdir,;t t
20658 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20659 s,@top_srcdir@,$ac_top_srcdir,;t t
20660 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20661 s,@builddir@,$ac_builddir,;t t
20662 s,@abs_builddir@,$ac_abs_builddir,;t t
20663 s,@top_builddir@,$ac_top_builddir,;t t
20664 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20665 s,@INSTALL@,$ac_INSTALL,;t t
20666 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20667 rm -f $tmp/stdin
20668 if test x"$ac_file" != x-; then
20669 mv $tmp/out $ac_file
20670 else
20671 cat $tmp/out
20672 rm -f $tmp/out
20675 done
20676 _ACEOF
20677 cat >>$CONFIG_STATUS <<\_ACEOF
20680 # CONFIG_HEADER section.
20683 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20684 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20686 # ac_d sets the value in "#define NAME VALUE" lines.
20687 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20688 ac_dB='[ ].*$,\1#\2'
20689 ac_dC=' '
20690 ac_dD=',;t'
20691 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20692 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20693 ac_uB='$,\1#\2define\3'
20694 ac_uC=' '
20695 ac_uD=',;t'
20697 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20699 case $ac_file in
20700 - | *:- | *:-:* ) # input from stdin
20701 cat >$tmp/stdin
20702 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20703 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20704 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20706 * ) ac_file_in=$ac_file.in ;;
20707 esac
20709 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20710 echo "$as_me: creating $ac_file" >&6;}
20712 # First look for the input files in the build tree, otherwise in the
20713 # src tree.
20714 ac_file_inputs=`IFS=:
20715 for f in $ac_file_in; do
20716 case $f in
20717 -) echo $tmp/stdin ;;
20718 [\\/$]*)
20719 # Absolute (can't be DOS-style, as IFS=:)
20720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20721 echo "$as_me: error: cannot find input file: $f" >&2;}
20722 { (exit 1); exit 1; }; }
20723 # Do quote $f, to prevent DOS paths from being IFS'd.
20724 echo "$f";;
20725 *) # Relative
20726 if test -f "$f"; then
20727 # Build tree
20728 echo "$f"
20729 elif test -f "$srcdir/$f"; then
20730 # Source tree
20731 echo "$srcdir/$f"
20732 else
20733 # /dev/null tree
20734 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20735 echo "$as_me: error: cannot find input file: $f" >&2;}
20736 { (exit 1); exit 1; }; }
20737 fi;;
20738 esac
20739 done` || { (exit 1); exit 1; }
20740 # Remove the trailing spaces.
20741 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20743 _ACEOF
20745 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20746 # `conftest.undefs', that substitutes the proper values into
20747 # config.h.in to produce config.h. The first handles `#define'
20748 # templates, and the second `#undef' templates.
20749 # And first: Protect against being on the right side of a sed subst in
20750 # config.status. Protect against being in an unquoted here document
20751 # in config.status.
20752 rm -f conftest.defines conftest.undefs
20753 # Using a here document instead of a string reduces the quoting nightmare.
20754 # Putting comments in sed scripts is not portable.
20756 # `end' is used to avoid that the second main sed command (meant for
20757 # 0-ary CPP macros) applies to n-ary macro definitions.
20758 # See the Autoconf documentation for `clear'.
20759 cat >confdef2sed.sed <<\_ACEOF
20760 s/[\\&,]/\\&/g
20761 s,[\\$`],\\&,g
20762 t clear
20763 : clear
20764 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20765 t end
20766 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20767 : end
20768 _ACEOF
20769 # If some macros were called several times there might be several times
20770 # the same #defines, which is useless. Nevertheless, we may not want to
20771 # sort them, since we want the *last* AC-DEFINE to be honored.
20772 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20773 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20774 rm -f confdef2sed.sed
20776 # This sed command replaces #undef with comments. This is necessary, for
20777 # example, in the case of _POSIX_SOURCE, which is predefined and required
20778 # on some systems where configure will not decide to define it.
20779 cat >>conftest.undefs <<\_ACEOF
20780 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20781 _ACEOF
20783 # Break up conftest.defines because some shells have a limit on the size
20784 # of here documents, and old seds have small limits too (100 cmds).
20785 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20786 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20787 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20788 echo ' :' >>$CONFIG_STATUS
20789 rm -f conftest.tail
20790 while grep . conftest.defines >/dev/null
20792 # Write a limited-size here document to $tmp/defines.sed.
20793 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20794 # Speed up: don't consider the non `#define' lines.
20795 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20796 # Work around the forget-to-reset-the-flag bug.
20797 echo 't clr' >>$CONFIG_STATUS
20798 echo ': clr' >>$CONFIG_STATUS
20799 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20800 echo 'CEOF
20801 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20802 rm -f $tmp/in
20803 mv $tmp/out $tmp/in
20804 ' >>$CONFIG_STATUS
20805 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20806 rm -f conftest.defines
20807 mv conftest.tail conftest.defines
20808 done
20809 rm -f conftest.defines
20810 echo ' fi # grep' >>$CONFIG_STATUS
20811 echo >>$CONFIG_STATUS
20813 # Break up conftest.undefs because some shells have a limit on the size
20814 # of here documents, and old seds have small limits too (100 cmds).
20815 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20816 rm -f conftest.tail
20817 while grep . conftest.undefs >/dev/null
20819 # Write a limited-size here document to $tmp/undefs.sed.
20820 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20821 # Speed up: don't consider the non `#undef'
20822 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20823 # Work around the forget-to-reset-the-flag bug.
20824 echo 't clr' >>$CONFIG_STATUS
20825 echo ': clr' >>$CONFIG_STATUS
20826 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20827 echo 'CEOF
20828 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20829 rm -f $tmp/in
20830 mv $tmp/out $tmp/in
20831 ' >>$CONFIG_STATUS
20832 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20833 rm -f conftest.undefs
20834 mv conftest.tail conftest.undefs
20835 done
20836 rm -f conftest.undefs
20838 cat >>$CONFIG_STATUS <<\_ACEOF
20839 # Let's still pretend it is `configure' which instantiates (i.e., don't
20840 # use $as_me), people would be surprised to read:
20841 # /* config.h. Generated by config.status. */
20842 if test x"$ac_file" = x-; then
20843 echo "/* Generated by configure. */" >$tmp/config.h
20844 else
20845 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20847 cat $tmp/in >>$tmp/config.h
20848 rm -f $tmp/in
20849 if test x"$ac_file" != x-; then
20850 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20851 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20852 echo "$as_me: $ac_file is unchanged" >&6;}
20853 else
20854 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20856 X"$ac_file" : 'X\(//\)[^/]' \| \
20857 X"$ac_file" : 'X\(//\)$' \| \
20858 X"$ac_file" : 'X\(/\)' \| \
20859 . : '\(.\)' 2>/dev/null ||
20860 echo X"$ac_file" |
20861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20863 /^X\(\/\/\)$/{ s//\1/; q; }
20864 /^X\(\/\).*/{ s//\1/; q; }
20865 s/.*/./; q'`
20866 { if $as_mkdir_p; then
20867 mkdir -p "$ac_dir"
20868 else
20869 as_dir="$ac_dir"
20870 as_dirs=
20871 while test ! -d "$as_dir"; do
20872 as_dirs="$as_dir $as_dirs"
20873 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20875 X"$as_dir" : 'X\(//\)[^/]' \| \
20876 X"$as_dir" : 'X\(//\)$' \| \
20877 X"$as_dir" : 'X\(/\)' \| \
20878 . : '\(.\)' 2>/dev/null ||
20879 echo X"$as_dir" |
20880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20882 /^X\(\/\/\)$/{ s//\1/; q; }
20883 /^X\(\/\).*/{ s//\1/; q; }
20884 s/.*/./; q'`
20885 done
20886 test ! -n "$as_dirs" || mkdir $as_dirs
20887 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20888 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20889 { (exit 1); exit 1; }; }; }
20891 rm -f $ac_file
20892 mv $tmp/config.h $ac_file
20894 else
20895 cat $tmp/config.h
20896 rm -f $tmp/config.h
20898 # Compute $ac_file's index in $config_headers.
20899 _am_stamp_count=1
20900 for _am_header in $config_headers :; do
20901 case $_am_header in
20902 $ac_file | $ac_file:* )
20903 break ;;
20905 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20906 esac
20907 done
20908 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20909 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20910 X$ac_file : 'X\(//\)[^/]' \| \
20911 X$ac_file : 'X\(//\)$' \| \
20912 X$ac_file : 'X\(/\)' \| \
20913 . : '\(.\)' 2>/dev/null ||
20914 echo X$ac_file |
20915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20917 /^X\(\/\/\)$/{ s//\1/; q; }
20918 /^X\(\/\).*/{ s//\1/; q; }
20919 s/.*/./; q'`/stamp-h$_am_stamp_count
20920 done
20921 _ACEOF
20922 cat >>$CONFIG_STATUS <<\_ACEOF
20925 # CONFIG_COMMANDS section.
20927 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20928 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20929 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20930 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20931 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20932 X"$ac_dest" : 'X\(//\)[^/]' \| \
20933 X"$ac_dest" : 'X\(//\)$' \| \
20934 X"$ac_dest" : 'X\(/\)' \| \
20935 . : '\(.\)' 2>/dev/null ||
20936 echo X"$ac_dest" |
20937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20939 /^X\(\/\/\)$/{ s//\1/; q; }
20940 /^X\(\/\).*/{ s//\1/; q; }
20941 s/.*/./; q'`
20942 { if $as_mkdir_p; then
20943 mkdir -p "$ac_dir"
20944 else
20945 as_dir="$ac_dir"
20946 as_dirs=
20947 while test ! -d "$as_dir"; do
20948 as_dirs="$as_dir $as_dirs"
20949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20951 X"$as_dir" : 'X\(//\)[^/]' \| \
20952 X"$as_dir" : 'X\(//\)$' \| \
20953 X"$as_dir" : 'X\(/\)' \| \
20954 . : '\(.\)' 2>/dev/null ||
20955 echo X"$as_dir" |
20956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20958 /^X\(\/\/\)$/{ s//\1/; q; }
20959 /^X\(\/\).*/{ s//\1/; q; }
20960 s/.*/./; q'`
20961 done
20962 test ! -n "$as_dirs" || mkdir $as_dirs
20963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20965 { (exit 1); exit 1; }; }; }
20967 ac_builddir=.
20969 if test "$ac_dir" != .; then
20970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20971 # A "../" for each directory in $ac_dir_suffix.
20972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20973 else
20974 ac_dir_suffix= ac_top_builddir=
20977 case $srcdir in
20978 .) # No --srcdir option. We are building in place.
20979 ac_srcdir=.
20980 if test -z "$ac_top_builddir"; then
20981 ac_top_srcdir=.
20982 else
20983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20984 fi ;;
20985 [\\/]* | ?:[\\/]* ) # Absolute path.
20986 ac_srcdir=$srcdir$ac_dir_suffix;
20987 ac_top_srcdir=$srcdir ;;
20988 *) # Relative path.
20989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20991 esac
20993 # Do not use `cd foo && pwd` to compute absolute paths, because
20994 # the directories may not exist.
20995 case `pwd` in
20996 .) ac_abs_builddir="$ac_dir";;
20998 case "$ac_dir" in
20999 .) ac_abs_builddir=`pwd`;;
21000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21002 esac;;
21003 esac
21004 case $ac_abs_builddir in
21005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21007 case ${ac_top_builddir}. in
21008 .) ac_abs_top_builddir=$ac_abs_builddir;;
21009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21011 esac;;
21012 esac
21013 case $ac_abs_builddir in
21014 .) ac_abs_srcdir=$ac_srcdir;;
21016 case $ac_srcdir in
21017 .) ac_abs_srcdir=$ac_abs_builddir;;
21018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21020 esac;;
21021 esac
21022 case $ac_abs_builddir in
21023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21025 case $ac_top_srcdir in
21026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21029 esac;;
21030 esac
21033 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21034 echo "$as_me: executing $ac_dest commands" >&6;}
21035 case $ac_dest in
21036 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21037 # Strip MF so we end up with the name of the file.
21038 mf=`echo "$mf" | sed -e 's/:.*$//'`
21039 # Check whether this is an Automake generated Makefile or not.
21040 # We used to match only the files named `Makefile.in', but
21041 # some people rename them; so instead we look at the file content.
21042 # Grep'ing the first line is not enough: some people post-process
21043 # each Makefile.in and add a new line on top of each file to say so.
21044 # So let's grep whole file.
21045 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21046 dirpart=`(dirname "$mf") 2>/dev/null ||
21047 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048 X"$mf" : 'X\(//\)[^/]' \| \
21049 X"$mf" : 'X\(//\)$' \| \
21050 X"$mf" : 'X\(/\)' \| \
21051 . : '\(.\)' 2>/dev/null ||
21052 echo X"$mf" |
21053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21055 /^X\(\/\/\)$/{ s//\1/; q; }
21056 /^X\(\/\).*/{ s//\1/; q; }
21057 s/.*/./; q'`
21058 else
21059 continue
21061 # Extract the definition of DEPDIR, am__include, and am__quote
21062 # from the Makefile without running `make'.
21063 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21064 test -z "$DEPDIR" && continue
21065 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21066 test -z "am__include" && continue
21067 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21068 # When using ansi2knr, U may be empty or an underscore; expand it
21069 U=`sed -n 's/^U = //p' < "$mf"`
21070 # Find all dependency output files, they are included files with
21071 # $(DEPDIR) in their names. We invoke sed twice because it is the
21072 # simplest approach to changing $(DEPDIR) to its actual value in the
21073 # expansion.
21074 for file in `sed -n "
21075 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21076 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21077 # Make sure the directory exists.
21078 test -f "$dirpart/$file" && continue
21079 fdir=`(dirname "$file") 2>/dev/null ||
21080 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21081 X"$file" : 'X\(//\)[^/]' \| \
21082 X"$file" : 'X\(//\)$' \| \
21083 X"$file" : 'X\(/\)' \| \
21084 . : '\(.\)' 2>/dev/null ||
21085 echo X"$file" |
21086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21088 /^X\(\/\/\)$/{ s//\1/; q; }
21089 /^X\(\/\).*/{ s//\1/; q; }
21090 s/.*/./; q'`
21091 { if $as_mkdir_p; then
21092 mkdir -p $dirpart/$fdir
21093 else
21094 as_dir=$dirpart/$fdir
21095 as_dirs=
21096 while test ! -d "$as_dir"; do
21097 as_dirs="$as_dir $as_dirs"
21098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21100 X"$as_dir" : 'X\(//\)[^/]' \| \
21101 X"$as_dir" : 'X\(//\)$' \| \
21102 X"$as_dir" : 'X\(/\)' \| \
21103 . : '\(.\)' 2>/dev/null ||
21104 echo X"$as_dir" |
21105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21107 /^X\(\/\/\)$/{ s//\1/; q; }
21108 /^X\(\/\).*/{ s//\1/; q; }
21109 s/.*/./; q'`
21110 done
21111 test ! -n "$as_dirs" || mkdir $as_dirs
21112 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21113 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21114 { (exit 1); exit 1; }; }; }
21116 # echo "creating $dirpart/$file"
21117 echo '# dummy' > "$dirpart/$file"
21118 done
21119 done
21121 default-1 )
21122 for ac_file in $CONFIG_FILES; do
21123 # Support "outfile[:infile[:infile...]]"
21124 case "$ac_file" in
21125 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21126 esac
21127 # PO directories have a Makefile.in generated from Makefile.in.in.
21128 case "$ac_file" in */Makefile.in)
21129 # Adjust a relative srcdir.
21130 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21131 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21132 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21133 # In autoconf-2.13 it is called $ac_given_srcdir.
21134 # In autoconf-2.50 it is called $srcdir.
21135 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21136 case "$ac_given_srcdir" in
21137 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21138 /*) top_srcdir="$ac_given_srcdir" ;;
21139 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21140 esac
21141 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21142 rm -f "$ac_dir/POTFILES"
21143 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21144 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21145 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21146 # on $ac_dir but don't depend on user-specified configuration
21147 # parameters.
21148 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21149 # The LINGUAS file contains the set of available languages.
21150 if test -n "$ALL_LINGUAS"; then
21151 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21153 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21154 # Hide the ALL_LINGUAS assigment from automake.
21155 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21157 case "$ac_given_srcdir" in
21158 .) srcdirpre= ;;
21159 *) srcdirpre='$(srcdir)/' ;;
21160 esac
21161 POFILES=
21162 GMOFILES=
21163 UPDATEPOFILES=
21164 DUMMYPOFILES=
21165 for lang in $ALL_LINGUAS; do
21166 POFILES="$POFILES $srcdirpre$lang.po"
21167 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21168 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21169 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21170 done
21171 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21172 # environment variable.
21173 INST_LINGUAS=
21174 if test -n "$ALL_LINGUAS"; then
21175 for presentlang in $ALL_LINGUAS; do
21176 useit=no
21177 if test "%UNSET%" != "$LINGUAS"; then
21178 desiredlanguages="$LINGUAS"
21179 else
21180 desiredlanguages="$ALL_LINGUAS"
21182 for desiredlang in $desiredlanguages; do
21183 # Use the presentlang catalog if desiredlang is
21184 # a. equal to presentlang, or
21185 # b. a variant of presentlang (because in this case,
21186 # presentlang can be used as a fallback for messages
21187 # which are not translated in the desiredlang catalog).
21188 case "$desiredlang" in
21189 "$presentlang"*) useit=yes;;
21190 esac
21191 done
21192 if test $useit = yes; then
21193 INST_LINGUAS="$INST_LINGUAS $presentlang"
21195 done
21197 CATALOGS=
21198 if test -n "$INST_LINGUAS"; then
21199 for lang in $INST_LINGUAS; do
21200 CATALOGS="$CATALOGS $lang.gmo"
21201 done
21203 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21204 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"
21205 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21206 if test -f "$f"; then
21207 case "$f" in
21208 *.orig | *.bak | *~) ;;
21209 *) cat "$f" >> "$ac_dir/Makefile" ;;
21210 esac
21212 done
21215 esac
21216 done ;;
21217 denoiser ) if test $denoiserlevel -gt 0; then
21218 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21219 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" \
21220 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21221 for i in `find . -name 'Makefile' -print`; do
21222 if test -n "`head -n 1 $i | grep '^#'`"; then
21223 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21225 done
21226 fi ;;
21227 esac
21228 done
21229 _ACEOF
21231 cat >>$CONFIG_STATUS <<\_ACEOF
21233 { (exit 0); exit 0; }
21234 _ACEOF
21235 chmod +x $CONFIG_STATUS
21236 ac_clean_files=$ac_clean_files_save
21239 # configure is writing to config.log, and then calls config.status.
21240 # config.status does its own redirection, appending to config.log.
21241 # Unfortunately, on DOS this fails, as config.log is still kept open
21242 # by configure, so config.status won't be able to write to it; its
21243 # output is simply discarded. So we exec the FD to /dev/null,
21244 # effectively closing config.log, so it can be properly (re)opened and
21245 # appended to by config.status. When coming back to configure, we
21246 # need to make the FD available again.
21247 if test "$no_create" != yes; then
21248 ac_cs_success=:
21249 ac_config_status_args=
21250 test "$silent" = yes &&
21251 ac_config_status_args="$ac_config_status_args --quiet"
21252 exec 5>/dev/null
21253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21254 exec 5>>config.log
21255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21256 # would make configure fail if this is the last instruction.
21257 $ac_cs_success || { (exit 1); exit 1; }
21261 echo
21262 echo
21263 echo " Configure script has finished system check."
21264 echo
21265 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
21266 echo
21267 echo " aMule enabled options:"
21268 echo
21269 echo " **** aMule Core ****"
21270 echo " Prefix where aMule should be installed? ${prefix:-none}"
21271 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21272 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21273 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21274 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21275 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21276 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21277 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21278 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21279 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21280 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21282 echo
21283 echo " **** aMule TextClient ****"
21284 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21285 echo
21286 echo " **** aMule WebServer ****"
21287 echo " Should aMule WebServer be built? ${WEB:-no}"
21288 echo
21289 echo " **** aMule ED2K Links Handler ****"
21290 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21291 echo
21292 echo " **** aMuleLinkCreator ****"
21293 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21294 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21295 echo
21296 echo " **** aMule Statistics ****"
21297 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21298 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21299 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21301 echo
21302 echo " **** General Libraries and Tools ****"
21303 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21304 echo " Libraries aMule will use to build:"
21305 wxinfo="$WX_PORT"
21306 if test $WX_DEBUG -eq 1; then
21307 wxinfo="$wxinfo,debug"
21310 if test $WX_SHARED -eq 1; then
21311 wxinfo="$wxinfo,shared"
21312 else
21313 wxinfo="$wxinfo,static"
21316 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21317 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21318 if test -n "$with_libupnp_prefix"; then
21319 libupnp_place=" (in $with_libupnp_prefix)"
21322 if test x${ENABLE_UPNP} = xyes; then
21323 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21326 if test x${WEB:-no} != xno; then
21327 if test $regex_found = no; then
21328 regex_found="Not detected"
21329 else
21330 if test -z "$REGEX_LIB"; then
21331 regex_found=system
21332 else
21333 regex_found="standalone (in $REGEX_LIB)"
21338 echo " regex $regex_found"
21340 if test ${enable_nls:-yes} = yes; then
21341 if test x$USE_NLS = xno; then
21342 libintl_found="Not detected"
21343 else
21344 if test x$USE_INCLUDED_LIBINTL = xyes; then
21345 libintl_found="included"
21346 else
21347 libintl_found="system"
21352 echo " libintl $libintl_found"
21354 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21355 geoip_style=system
21356 else
21357 geoip_style=user
21360 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21361 echo " libGeoIP ${geoip_style}"
21364 if test x$LIBPNG_VERSION != xnot_needed; then
21365 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21367 if test x$GDLIB_VERSION != xnot_needed; then
21368 echo " libgd ${GDLIB_VERSION:-Not detected}"
21370 echo " zlib ${ZLIB_VERSION:-Not detected}"
21371 if test ${_mule_has_warnings:-no} = yes; then
21372 echo ""
21373 echo ""
21374 echo " *** Warnings during configuration ***"
21376 if test ${_mule_warning_0:-no} = yes; then
21377 cat <<_MULEEOT
21379 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21380 Please check that gdlib-config is in your default path, check out
21381 LD_LIBRARY_PATH or equivalent variable.
21382 Or this might also be that your gdlib-config has other name.
21383 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21384 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21385 If you use compiled packages check if you have devel pack installed.
21386 To download the latest version check http://www.boutell.com/gd for sources.
21387 _MULEEOT
21389 if test ${_mule_warning_1:-no} = yes; then
21390 cat <<_MULEEOT
21392 * amuleweb has been disabled because configure could not find a POSIX
21393 compliant regex library.
21394 _MULEEOT
21396 if test ${_mule_warning_2:-no} = yes; then
21397 cat <<_MULEEOT
21399 * libpng >= 1.2.0 not found.
21400 amuleweb will be compiled but file download progress bar images will NOT be
21401 generated.
21402 _MULEEOT
21404 if test ${_mule_warning_3:-no} = yes; then
21405 cat <<_MULEEOT
21407 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21408 _MULEEOT
21410 if test ${_mule_warning_4:-no} = yes; then
21411 cat <<_MULEEOT
21413 * GeoIP support has been disabled because the GeoIP libraries were not found
21414 _MULEEOT
21416 if test ${_mule_warning_5:-no} = yes; then
21417 cat <<_MULEEOT
21419 * GeoIP support has been disabled because the GeoIP header files were not
21420 found
21421 _MULEEOT
21423 if test ${_mule_warning_6:-no} = yes; then
21424 cat <<_MULEEOT
21426 * UPnP code has been disabled because ${libupnp_error}.
21427 _MULEEOT
21429 if test ${_mule_warning_7:-no} = yes; then
21430 cat <<_MULEEOT
21432 * Cross-compilation detected, so exception handling cannot be tested.
21433 Note that broken exception handling in your compiler may lead to unexpected
21434 crashes.
21435 _MULEEOT
21437 if test ${_mule_warning_8:-no} = yes; then
21438 cat <<_MULEEOT
21440 * bfd.h not found or unusable, please install binutils development package if
21441 you are a developer or want to help testing aMule
21442 _MULEEOT
21444 if test ${_mule_warning_9:-no} = yes; then
21445 cat <<_MULEEOT
21447 * configure cannot check whether malloc() and realloc() are GNU libc
21448 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21449 configure with the --without-gnu-malloc switch.
21450 _MULEEOT
21452 if test ${_mule_warning_10:-no} = yes; then
21453 cat <<_MULEEOT
21455 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21456 support.
21457 _MULEEOT